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

# カスタム認識スクリプト

> ABBYY FlexiCapture で、領域を持つ field のカスタム認識アルゴリズムを定義し、IValue の結果を返して、疑わしい文字をマークします。

<div id="what-it-does">
  ## できること
</div>

このスクリプトを使用すると、領域を持つfieldに対して、カスタムの認識 (または初期化) アルゴリズムを定義できます。

カスタム認識スクリプトは、field propertiesダイアログのRecognitionタブで設定します。

このスクリプトは、recognizerの結果に基づいてfield値が初期化されるときに実行されます。認識対象の画像領域は、入力Parameterとしてスクリプトに渡されます。この時点ではドキュメントレイアウトがまだ初期化されていないため、ドキュメントのfieldにはアクセスできません (ただし、registrationやその他のParametersにはアクセスできます) 。

このスクリプトを使用すると、どのsymbolが疑わしく、検証が必要かを指定できます (**IsSuspicious** および **NeedVerification** プロパティ) 。

<div id="parameters">
  ## Parameters
</div>

<table width="100%">
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        <p>
          <strong>名前</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>アクセス</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>FieldRegion</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts/ifieldregion">IFieldRegion</a>
        </p>
      </td>

      <td>
        <p>
          読み取り専用。バッチドキュメントおよびページの内部<a href="/ja/flexi-capture/appendix/scripts/script-recognition#asterisk">\*</a>フィールドは利用できません。 (すべての親要素にも適用されます。)
        </p>
      </td>

      <td>
        <p>認識対象の領域</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Result</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts/ivalue">IValue</a> /<a href="/ja/flexi-capture/appendix/scripts/icheckmarkvalue">ICheckmarkValue</a> /
          <a href="/ja/flexi-capture/appendix/scripts/icheckmarkgroupvalue">ICheckmarkGroupValue</a>
        </p>
      </td>

      <td>
        <p>読み取り/書き込み可能。</p>
        <p>CharacterParams.NeedVerification フラグにはアクセスできません。</p>
        <p>CharacterParams.IsSuspicious フラグは読み取り/書き込み可能です。</p>
      </td>

      <td>
        <p>認識結果として得られる値です。フィールドの種類に応じて、取得されるParametersは次の型になります。</p>

        <ul>
          <li>
            <a href="/ja/flexi-capture/appendix/scripts/ivalue">IValue</a> - Text fieldの場合
          </li>

          <li>
            <a href="/ja/flexi-capture/appendix/scripts/icheckmarkvalue">ICheckmarkValue</a> - チェックマークの場合
          </li>

          <li>
            <a href="/ja/flexi-capture/appendix/scripts/icheckmarkgroupvalue">ICheckmarkGroupValue</a> - チェックマークグループの場合
          </li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>

<a id="asterisk" />\* - 内部フィールドを使用するには、オブジェクトをメモリにロードする必要があります。

スクリプトで [外部アセンブリ](/ja/flexi-capture/appendix/scripts/user-assembly) のクラスとメソッドを使用する場合は、アセンブリファイルを *(Developer)* Document Definition プロパティの .NET References タブでアタッチする必要があります。 *(Administrator)* [Document Definition プロパティ](/ja/flexi-capture/templates/template-properties)。

<div id="administrator-see-also">
  ## (管理者) 関連項目:
</div>

*(管理者)*  [Text fieldの認識オプション](/ja/flexi-capture/templates/properties-recognition-text)
