> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BarcodeRecognitionParams オブジェクト (IBarcodeRecognitionParams インターフェイス)

このオブジェクトは、バーコード認識のパラメーターを調整するための機能を提供します。

バーコードは、Document Definition 内で field または静的要素として指定できます。どちらにするかは、処理対象の文書においてバーコードが果たす役割によって決まります。バーコードを文書定義の照合や識別に使用する場合は、静的要素モードで作成します (アンカーバーコード) 。一方、データキャプチャに使用する場合は、field マーキングモードで作成します。どちらの場合も認識パラメーターは同じですが、**Value** プロパティのみはアンカーバーコードでしか使用されません。

Document Definition 内のバーコードブロックの認識パラメーターには、そのブロックの [**RecognitionParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams.md) オブジェクトの [**AsBarcodeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams-asbarcodeparams.md) メソッドを使用してアクセスします。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| **BarcodeParams** | [**BarcodeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/barcodeparams.md) | バーコードの向きと型の候補を指定します。 **注:** このプロパティは定数オブジェクトを返します。プロパティの値を変更するには、まず [**IEngine::CreateBarcodeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドを使用して中間の [**BarcodeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/barcodeparams.md) オブジェクトを取得し、必要なパラメーターを変更してから、このオブジェクトをプロパティに割り当てる必要があります。 |
| **ImageProcessingParams** | [**ImageProcessingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingparams.md) | バーコードブロック内で行う画像の前処理のパラメーターを指定します。 **注:** このプロパティは定数オブジェクトを返します。プロパティの値を変更するには、まず [**IEngine::CreateImageProcessingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドを使用して中間の [**ImageProcessingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingparams.md) オブジェクトを取得し、必要なパラメーターを変更してから、このオブジェクトをプロパティに割り当てる必要があります。 |
| **IsRequired** | [**Boolean**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md) | このプロパティの値が TRUE の場合、バーコードが一致したときにのみ Document Definition が一致します。バッチ内に、バーコードの値でしか区別できない非常によく似たドキュメント定義が多数ある場合は、このプロパティを TRUE に設定します。これにより、Document Definition の選択が高速になります。バーコードがない場合やバーコードが薄すぎる場合でも Document Definition を一致させたいときは、このプロパティを FALSE に設定します。 |
| **Value** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md) | アンカーバーコードを識別子として使用する場合 ([**IRecognitionParams::IsIdentifier**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams.md#isidentifier) プロパティが TRUE に設定されている場合) 、その識別子の値を指定できます。この場合、Document Definition の適用時に、プログラムは画像内の認識データを識別子の値と比較し、両者が一致する場合にのみ文書定義の照合が可能になります。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/BarcodeRecognitionParams.gif?s=1bbc0a86e7ed328e74d4ccdfdfc1e0c4)

## 出力パラメーター

このオブジェクトは、[**RecognitionParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams.md) オブジェクトの [**AsBarcodeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams-asbarcodeparams.md) メソッドの出力パラメーターです。

## 関連項目

[**RecognitionParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams.md)

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
