> ## 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.

# TextRecognitionParams オブジェクト（ITextRecognitionParams インターフェイス）

このオブジェクトを使用して、テキストの認識パラメーターを調整できます。これらのパラメーターはドキュメント定義で使用され、[**RecognitionParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams.md) オブジェクトの [**AsTextParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognitionparams-astextparams.md) メソッドで設定できます。

## Properties

<table width="100%">
  <thead>
    <tr>
      <th>
        **名前**
      </th>

      <th>
        **型**
      </th>

      <th>
        **説明**
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **AdjustPosition**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        認識エンジンが文書画像上でテキストブロックの最適な位置を検索するかどうかを指定します。
      </td>
    </tr>

    <tr>
      <td>
        **CaseRecognitionMode**
      </td>

      <td>
        [**CaseRecognitionModeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/caserecognitionmodeenum.md)
      </td>

      <td>
        文字の大文字/小文字の認識モードを指定します。
      </td>
    </tr>

    <tr>
      <td>
        **CellsCount**
      </td>

      <td>
        [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        認識済みブロックの文字記入枠の数を指定します。このプロパティは手書き文字の認識でのみ有効です。また、テキストをセルに分割することを前提とするフィールドのマーキングタイプ (&#x20;
        **FieldMarkingType** プロパティ) の場合にのみ意味を持ちます。このプロパティの値は正の数である必要があります。また、-1 を設定することもできます。この場合、
        セルの数は変更されません。
      </td>
    </tr>

    <tr>
      <td>
        **ErrorHighlightLevel**
      </td>

      <td>
        [**ErrorHighlightLevelEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorhighlightlevelenum.md)
      </td>

      <td>
        認識されたテキスト内の文字を、認識が不確かな文字としてマークする際の信頼度レベルを指定します (該当する文字では&#x20;

        [**ICharParams::IsSuspicious**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/charparams.md#issuspicious)

        &#x20;

        プロパティが TRUE に設定されます) 。このプロパティ名は、ABBYY FlexiCapture のドキュメントウィンドウで、認識が不確かな文字が背景色でハイライト表示されることに由来しています。
      </td>
    </tr>

    <tr>
      <td>
        **FieldMarkingType**
      </td>

      <td>
        [**FieldMarkingTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldmarkingtypeenum.md)
      </td>

      <td>
        文字を囲むマーキングの種類 (下線、枠、ボックスなど) を指定します。このプロパティは手書き文字認識の場合にのみ有効です。

        **注:** 手書き文字を正しく認識するには、**CellsCount** プロパティを使用してください。このプロパティでは、認識済みのブロックの文字記入枠の数を設定できます。
      </td>
    </tr>

    <tr>
      <td>
        **ImageProcessingParams**
      </td>

      <td>
        [**ImageProcessingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingparams.md)
      </td>

      <td>
        テキストブロックに対する画像の前処理のパラメーターを指定します。

        **注:** このプロパティは定数オブジェクトを返します。プロパティの値を変更するには、まず中間の&#x20;

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

        &#x20;

        オブジェクトを&#x20;

        [**IEngine::CreateImageProcessingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md)

        で取得し、必要なパラメーターを変更してから、このオブジェクトをプロパティに割り当てる必要があります。
      </td>
    </tr>

    <tr>
      <td>
        **Language**
      </td>

      <td>
        [**Language**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/language.md)
      </td>

      <td>
        テキスト言語を指定します。

        **注:** このプロパティは定数オブジェクトを返します。プロパティの値を変更するには、まず **TextRecognitionParams** オブジェクトのメソッドを使用して中間&#x20;

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

        &#x20;

        オブジェクトを取得し、必要なパラメーターを変更したうえで、このオブジェクトをプロパティに割り当てる必要があります。
      </td>
    </tr>

    <tr>
      <td>
        **MarkingRegion**
      </td>

      <td>
        [**Region**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        テキストマーキングの領域が格納されます。
      </td>
    </tr>

    <tr>
      <td>
        **OneLinePerBlock**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        このプロパティを TRUE に設定すると、ABBYY FlexiCapture SDK は、現在の **TextRecognitionParams** オブジェクトが属するブロック内のテキストが
        1 行以下であるとみなして処理します。
      </td>
    </tr>

    <tr>
      <td>
        **OneWordPerLine**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        このプロパティを TRUE に設定すると、ABBYY FlexiCapture SDK はどのテキスト行にも 2 つ以上の単語が含まれないものと見なし、各テキスト行を単一の単語として認識します。
      </td>
    </tr>

    <tr>
      <td>
        **TextType**
      </td>

      <td>
        [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        認識対象のテキストの種類を、&#x20;

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

        &#x20;

        定数の OR による組み合わせで指定します。
      </td>
    </tr>

    <tr>
      <td>
        **UserPatternsFile**
      </td>

      <td>
        [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        認識に使用するユーザーパターンファイルのフルパスを格納します。このプロパティの値が空でない場合、認識時にユーザーパターンファイルの情報が使用されます。
      </td>
    </tr>

    <tr>
      <td>
        **WritingStyle**
      </td>

      <td>
        [**LanguageIdEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/languageidenum.md)
      </td>

      <td>
        書き方のスタイル (ロケールによって定義) を指定します。

        <details>
          <summary>さまざまな数字の書き方の例</summary>

          <table width="100%">
            <tbody>
              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_1.gif?s=86c1e8c11cfd8885c49d82574e6d2915)
                </td>

                <td>
                  – ロシア式の 2
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_2.gif?s=6720b71d4701b808714ce8460ddd87d7)
                </td>

                <td>
                  – アメリカ式の 2
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_3.gif?s=74d459b1adcff082a2f07021ed93e1bd)
                </td>

                <td>
                  – 「一般的な」5。どのスタイルにも見られます
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_4.gif?s=bb7e6237bf9fbefa46f5864e3f99b6b6)
                </td>

                <td>
                  – 日本式の 5
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_5.gif?s=20881d31f178b149b356573c15c7a201)
                </td>

                <td>
                  – ロシア式の 1
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_6.gif?s=9d5568e181a623dd63c850c50210f718)
                </td>

                <td>
                  – ドイツ式の 1
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_7.gif?s=fe4d29abe5d7928223991e663e7d6c8f)
                </td>

                <td>
                  – 「一般的な」9。どのスタイルにも見られます
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_8.gif?s=9d3eb48b232b11eeac2599273011fc97)
                </td>

                <td>
                  – 右側に輪があるチェコ式の 9
                </td>
              </tr>

              <tr>
                <td>
                  ![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_9.gif?s=cdda3c451027a395bbd8ee974826e516)
                </td>

                <td>
                  – 下部に「フック」がないアメリカ式の 9
                </td>
              </tr>
            </tbody>
          </table>
        </details>
      </td>
    </tr>
  </tbody>
</table>

## メソッド

| **名前** | **説明** |
| - | - |
| [**CreateEmbeddedLanguage**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguage.md) | 既存の認識言語をもとに新しい認識言語を作成します。作成した言語は **Language** プロパティに割り当てることができます。 |
| [**CreateEmbeddedLanguageByDataType**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguagebydatatype.md) | 指定した field 値の型の認識に使用できる特殊な認識言語を作成します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/TextRecognitionParams.gif?s=772add3ff77839b5e23fe9bf3b92dc07)

## 出力パラメーター

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

## 関連項目

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

[認識言語の設定](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/settinguprecognitionlanguages.md)

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