Skip to content

get_deep_ocr_paramGetDeepOcrParamGetDeepOcrParamget_deep_ocr_paramT_get_deep_ocr_param🔗

説明🔗

get_deep_ocr_paramGetDeepOcrParamGetDeepOcrParamget_deep_ocr_paramT_get_deep_ocr_param — Deep OCRモデルのパラメータを取得する。

書式🔗

get_deep_ocr_param( deep_ocr DeepOcrHandle, attribute.name GenParamName, out attribute.value GenParamValue )void GetDeepOcrParam( const HTuple& DeepOcrHandle, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetDeepOcrParam( HTuple deepOcrHandle, HTuple genParamName, out HTuple genParamValue )def get_deep_ocr_param( deep_ocr_handle: HHandle, gen_param_name: str ) -> Sequence[HTupleElementType]

def get_deep_ocr_param_s( deep_ocr_handle: HHandle, gen_param_name: str ) -> HTupleElementTypeHerror T_get_deep_ocr_param( const Htuple DeepOcrHandle, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HDlModelOcr::GetDeepOcrParam( const HString& GenParamName ) const

HTuple HDlModelOcr::GetDeepOcrParam( const char* GenParamName ) const

HTuple HDlModelOcr::GetDeepOcrParam( const wchar_t* GenParamName ) const (Windows only)

HTuple HDlModelOcr.GetDeepOcrParam( string genParamName )

説明🔗

get_deep_ocr_paramGetDeepOcrParam は、Deep OCRモデル DeepOcrHandledeepOcrHandledeep_ocr_handle の パラメータ値 GenParamNamegenParamNamegen_param_name を GenParamValuegenParamValuegen_param_value に返します。

パラメータはモデル全体、あるいは特定のコンポーネントにのみ適用可能なものがあります。 次の表に、設定および取得が可能なパラメータと、 コンポーネントの対応について示します。

GenParamNamegenParamNamegen_param_name Model Det. comp. Recog. comp.
'device'"device" \(\texttt{s ~}\) \(\texttt{s ~}\) \(\texttt{s ~}\)
'detection_device'"detection_device" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_image_dimensions'"detection_image_dimensions" \(\texttt{~-~}\) \(\texttt{~ g}\) \(\texttt{~-~}\)
'detection_image_height'"detection_image_height" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_image_size'"detection_image_size" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_image_width'"detection_image_width" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_min_character_score'"detection_min_character_score" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_min_link_score'"detection_min_link_score" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_min_word_area'"detection_min_word_area" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_min_word_score'"detection_min_word_score" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_model'"detection_model" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_optimize_for_inference'"detection_optimize_for_inference" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_orientation'"detection_orientation" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_sort_by_line'"detection_sort_by_line" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_tiling'"detection_tiling" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'detection_tiling_overlap'"detection_tiling_overlap" \(\texttt{~-~}\) \(\texttt{s g}\) \(\texttt{~-~}\)
'recognition_alignment'"recognition_alignment" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_alignment_available'"recognition_alignment_available" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{~ g}\)
'recognition_alphabet'"recognition_alphabet" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_alphabet_internal'"recognition_alphabet_internal" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_alphabet_mapping'"recognition_alphabet_mapping" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_batch_size'"recognition_batch_size" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_device'"recognition_device" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_image_dimensions'"recognition_image_dimensions" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{~ g}\)
'recognition_image_height'"recognition_image_height" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{~ g}\)
'recognition_image_num_channels'"recognition_image_num_channels" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{~ g}\)
'recognition_image_width'"recognition_image_width" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_model'"recognition_model" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_num_char_candidates'"recognition_num_char_candidates" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)
'recognition_optimize_for_inference'"recognition_optimize_for_inference" \(\texttt{~-~}\) \(\texttt{~-~}\) \(\texttt{s g}\)

このとき、記号および略語は次のことを示します。:

  • 's': パラメータは set_deep_ocr_paramSetDeepOcrParam を用いて設定可能です。

  • 'g': パラメータは get_deep_ocr_paramGetDeepOcrParam を用いて取得可能です。

  • '-': パラメータは適用できません。

  • Model: すべてのコンポーネントを含むDeep OCRモデル。

  • Det. comp.: 検出コンポーネント。

  • Recog. comp.: 認識コンポーネント。

モデルが optimize_dl_model_for_inferenceOptimizeDlModelForInference で最適化された後、モデルアーキテクチャを変更しないパラメータのみ設定できます。 これらのパラメータのリストはoptimize_dl_model_for_inferenceOptimizeDlModelForInferenceにあります。 以下で、適用されるモデルの部分に従ってソートされたパラメータについて説明します。

  • モデル全体:

    • 'device'"device": モデルが実行されるデバイスのハンドル。 Deep OCR実行可能な全演算デバイスのハンドルを リストしたTupleを取得するにはオペレータ query_available_dl_devicesQueryAvailableDlDevices を使用します。

      デバイスは個々のコンポーネントに対してリセットできることに注意してください。 その場合、モデルの残りの部分(たとえば、残りのコンポーネント)はこのハンドルで実行できる可能性があります。

      初期値: デフォルトデバイスのハンドル。したがって、 get_systemGetSystem を使用して 'cuda_devices'"cuda_devices" を用いてリストを取得した場合は、 インデックス 00 のGPUです。 デバイスが存在しない場合、結果は空のtupleです。

  • 検出コンポーネント:

    • 'detection_device'"detection_device": Deep OCRモデルの検出コンポーネントを実行するデバイスを指定します。 詳細な説明は 'device'"device" をご参照ください。

      初期値: 'device'"device" と同じ値が適用されます。

    • 'detection_image_dimensions'"detection_image_dimensions": 検出コンポーネントが処理する入力画像の次元 ('detection_image_width'"detection_image_width" 、 'detection_image_height'"detection_image_height" 、 およびチャンネル数)を含むTupleです。

      入力画像は、元画像のアスペクト比を維持したまま 'detection_image_dimensions'"detection_image_dimensions" の値に応じてスケーリングされます。スケーリングされた画像には、必要に応じてグレイ値 00 でパディングされます。そのため、 'detection_image_height'"detection_image_height" と 'detection_image_width'"detection_image_width" を変更すると結果に影響を与えてしまう可能性があります。 チャンネル数は常に3である必要があります。

      初期値: [10241024, 10241024, 33]

    • 'detection_image_height'"detection_image_height": 検出コンポーネントが処理する画像の高さ。 これは、ネットワークは入力画像を処理する前にこの高さの最大値に スケーリングすることにより、入力画像のアスペクト比を保持することを意味します。

      したがって、このサイズは結果に影響を与える可能性があります。

      モデルアーキテクチャでは、高さが32の倍数である必要があります。 そうでない場合、高さは最も近い32の整数倍に切り上げられます。

      推奨値: 768768, 10241024, 12801280

      初期値: 10241024

    • 'detection_image_size'"detection_image_size": 検出コンポーネントが処理する画像サイズ('detection_image_width'"detection_image_width", 'detection_image_height'"detection_image_height") を含むtuple。

      初期値: [10241024, 10241024]

    • 'detection_image_width'"detection_image_width": 検出コンポーネントが処理する画像の幅。 これは、ネットワークは入力画像を処理する前にこの幅の最大値に スケーリングすることにより、入力画像のアスペクト比を保持することを意味します。

      したがって、このサイズは結果に影響を与える可能性があります。

      モデルアーキテクチャでは、幅が32の倍数である必要があります。 そうでない場合、幅は最も近い32の整数倍に切り上げられます。

      推奨値: 768768, 10241024, 12801280

      初期値: 10241024

    • 'detection_min_character_score'"detection_min_character_score": パラメータ 'detection_min_character_score'"detection_min_character_score"は、 文字の大きさを推定するために 文字スコアマップに使用される下限しきい値を指定します。 パラメータを調整することにより、抽出された文字候補を分割したり、 隣接する文字候補をマージしたりできます。

      値域: \(\in [\textit{0}, \textit{1}]\).

      初期値: 0.50.5

    • 'detection_min_link_score'"detection_min_link_score": パラメータ 'detection_min_link_score'"detection_min_link_score" は、位置決めされた 2つの文字がまとまったワードとして認識されるための最小リンクスコアを定義します。

      値域: \(\in [\textit{0}, \textit{1}]\).

      初期値: 0.30.3

    • 'detection_min_word_area'"detection_min_word_area": パラメータ 'detection_min_word_area'"detection_min_word_area" は、 位置決めされたワードが候補となるために必要な最小サイズを定義します。 このパラメータは、小さすぎる文字候補をフィルター処理するために使用できます。

      値域: \(\geq \textit{0}\).

      初期値: 1010.

    • 'detection_min_word_score'"detection_min_word_score": パラメータ 'detection_min_word_score'"detection_min_word_score" は、 位置決めされた候補が有効であると判定されるための必要な最小スコアを定義します。 このパラメータを使用すると、不確実なワードを除外できます。

      値域: \(\in [\textit{0}, \textit{1}]\).

      初期値: 0.70.7

    • 'detection_model'"detection_model": オペレーター get_deep_ocr_paramGetDeepOcrParam は、単語検出用の Deep OCR モデルコンポーネントのハンドルを返します。 set_deep_ocr_paramSetDeepOcrParam を使用することで、ハンドル、ファイル名、または特殊な文字列のいずれかを指定できます。 'default'"default" はデフォルトでは事前に学習された単語検出コンポーネントである 'pretrained_deep_ocr_detection.hdl'"pretrained_deep_ocr_detection.hdl" をロードします。 'compact'"compact" は、コンパクトな単語検出コンポーネントである 'pretrained_deep_ocr_detection_compact.hdl'"pretrained_deep_ocr_detection_compact.hdl" をロードします。これは、デフォルトコンポーネントと比較して わずかに精度が低いものの、より高速な推論を提供します。 その他の文字列はすべてモデルのファイル名として扱われ、バッチサイズが 11 に設定されて 内部でロードされます。 検出コンポーネントを変更すると、他のモデル固有のパラメーターにも 影響を与える可能性があることに注意してください。

      推奨値: 'default'"default", 'compact'"compact"

      初期値: 'default'"default"

    • 'detection_optimize_for_inference'"detection_optimize_for_inference": 検出コンポーネントが推論用に最適化されているかどうかを決定します。

      このパラメータは get_dl_model_paramGetDlModelParamで 'optimize_for_inference'"optimize_for_inference"を 検出コンポーネントに適用した際の挙動を決定します。

      初期値: 'false'"false"

    • 'detection_orientation'"detection_orientation": このパラメータは、ワード検出のために事前に定義された方向・角度を指定するために 使用します。内部的な方向予測を使用するデフォルトの挙動にするには、 'detection_orientation'"detection_orientation" を 'auto'"auto"に設定します。

      値域: \((-\pi, \pi]\).

      初期値: 'auto'"auto"

    • 'detection_sort_by_line'"detection_sort_by_line": ワードは位置決めされたワード候補の方向に基づいて行ごとに並べ替えられます。 パラメータ 'detection_sort_by_line'"detection_sort_by_line" を 'false'"false" に設定すると、結果の並べ替えは発生しません。

      初期値: 'true'"true"

    • 'detection_tiling'"detection_tiling": 入力された画像は'detection_image_size'"detection_image_size"のサイズごとに、若干のオーバーラップをもたせた状態で 自動的に分割され、検出コンポーネントによって別々に処理されます。 これにより実際の'detection_image_size'"detection_image_size"よりはるかに大きな画像を、 ズームすることなく入力画像として処理することができます。 したがって、'detection_tiling'"detection_tiling" = {‘true’}の場合、入力画像は処理前にズームされません。

      初期値: 'false'"false"

    • 'detection_tiling_overlap'"detection_tiling_overlap": このパラメータは、入力画像を分割したときに、 隣接する画像がどれだけ重なるかを定義します。( 'detection_tiling'"detection_tiling"を参照してください)。 重なり具合はピクセル単位で指定します。

      値域: \(\geq \textit{0}\).

      初期値: 6464

  • 認識コンポーネント:

    • 'recognition_alignment'"recognition_alignment": このパラメータはテキストを認識する前に単語の位置合わせを行うかを指定します。 この機能を有効にすると('true'"true")、不正確に切り取られた単語の認識精度が向上します。 よって画像内のテキストの位置がおおよそしかわかっていない場面で使用できます。

      認識コンポーネントに単語の位置合わせが含まれている場合、 パラメータ 'recognition_alignment'"recognition_alignment"は 'true'"true" にのみ設定できます。 モデルが位置合わせをサポートするかどうかについては、'recognition_alignment_available'"recognition_alignment_available"で確認できます。

      厳密に切り取られた単語の認識とは対照的に、位置合わせした認識処理では、 単語の周囲に実際の画像背景を含むサンプルを使用してトレーニングする必要があることに注意してください。 このようにして、モデルは不正確に切り取られた単語を位置合わせした後に、存在する可能性のある 背景の誤った読み取りを抑制するように学習します。

      値のリスト: 'true'"true", 'false'"false"

      初期値: 'false'"false"

    • 'recognition_alignment_available'"recognition_alignment_available": このパラメータは認識コンポーネントに単語の位置合わせ機能が含まれているかを示します。 'true'"true"が返された場合、 パラメータ'recognition_alignment'"recognition_alignment"を使用して単語の位置合わせを有効にできることを意味します。

      値のリスト: 'true'"true", 'false'"false"

    • 'recognition_alphabet'"recognition_alphabet": Deep OCRモデルで認識可能な文字セットです。

      内部アルファベットのブランク文字にマップされていないすべての文字が含まれます。 (パラメータ 'recognition_alphabet_mapping'"recognition_alphabet_mapping" と 'recognition_alphabet_internal'"recognition_alphabet_internal"を参照してください)

      必要に応じて、アルファベットを変更、拡張させることができます。 このパラメータでアルファベットを変更すると、内部アルファベットの長さを変更しないように、 内部のアルファベットとマッピングが編集されます。 アルファベットを変更した後は、アプリケーション固有のデータでモデルを再トレーニングすることが推奨されています。 (HDevelop サンプル deep_ocr_recognition_training_workflow.hdevを参照してください) 未知の文字は、より多くの学習データが必要になります。 内部アルファベットの長さが変わると、モデルの最後の層はランダムに初期化されるため、 モデルの出力はランダムの文字列になることに注意してください('recognition_alphabet_internal'"recognition_alphabet_internal"を参照してください)。 その場合は モデルを再トレーニングします。

    • 'recognition_alphabet_internal'"recognition_alphabet_internal": Deep OCR認識コンポーネントが学習された完全な文字セット。

      内部アルファベットの最初の文字は特殊文字です。 事前トレーニング済みモデルでは、 この文字はブランク(U+2800)として指定されており、スペースと混同しないように注意してください。 ブランクはワードの出力では返されませんが、報告された文字候補で発生する可能性があります。 必須であり、省略することはできません。 内部アルファベットが変更された場合、最初の文字はブランクである必要があります。 さらに、 'recognition_alphabet'"recognition_alphabet" を使用してアルファベットを変更すると、 ブランクの記号が文字セットに自動的に追加されます。

      このtupleの長さは、モデルの最後の畳み込み層の深さに対応します。 長さが変更された場合、最後の畳み込みレイヤーとそれ以降のすべてのレイヤーのサイズを変更し、 ランダムに再初期化する必要があります。 このような変更の後、モデルを再トレーニングする必要があります (HDevelop サンプル deep_ocr_recognition_training_workflow.hdevを参照してください)。

      アルファベットを変更する場合、自動的に内部アルファベットの長さを保持するため、 パラメータ 'recognition_alphabet'"recognition_alphabet" を使用することが推奨されています。

    • 'recognition_alphabet_mapping'"recognition_alphabet_mapping": 整数のインデックスのtupleです。

      これは、各単語のデコードステップでモデルによって適用されるマッピングです。 マッピングは 'recognition_alphabet_internal'"recognition_alphabet_internal" の文字を 'recognition_alphabet_internal'"recognition_alphabet_internal"の指定されたインデックスの文字で上書きします。

      デコードステップでは、各予測はこのtupleで指定されたインデックスに従いマップされます。 tupleは 'recognition_alphabet_internal'"recognition_alphabet_internal"と同じ長さである必要があります。 マッピングの各整数インデックスは、00 から |'recognition_alphabet_internal'"recognition_alphabet_internal"|-1 の範囲である必要があります。

      アプリケーションによっては、特定の文字を他の文字にマッピングすると便利な場合があります。 例えば、あるアプリケーションで数字だけの単語が出現する場合、モデルを再トレーニングすることなく、 "O" という文字を "0" という文字にマップすることが便利です。

      エントリに 00 が含まれている場合、'recognition_alphabet_internal'"recognition_alphabet_internal" の対応する文字は単語内でデコードされません。

    • 'recognition_batch_size'"recognition_batch_size": デバイスのメモリに転送されて、認識コンポーネントで並行して処理されるバッチの内の画像の数。 詳細については、パラメータ'batch_size'"batch_size"に関するapply_dl_modelApplyDlModelのリファレンスドキュメントを 参照してください。 このパラメータは、特定のdlデバイスにおけるapply_deep_ocrApplyDeepOcrの実行時間を 最適化するために使用できます。 認識コンポーネントが複数の入力(ワード)を並行して処理することで apply_deep_ocrApplyDeepOcrの処理速度が向上します。 しかしながら'recognition_batch_size'"recognition_batch_size"を大きくすると、 より多くのデバイスメモリが必要になることに注意してください。

      初期値: 11

    • 'recognition_device'"recognition_device": このパラメータは、Deep OCRモデルの認識コンポーネントが実行されるデバイスを設定します。 詳細については 'device'"device" を ご参照ください。

      初期値: The same value as for 'device'"device".

    • 'recognition_image_dimensions'"recognition_image_dimensions": 認識コンポーネントが処理する画像の大きさ('recognition_image_width'"recognition_image_width" 、 'recognition_image_height'"recognition_image_height" 、 およびチャンネル数)を含むTupleです。

      つまり、このネットワークではまず入力画像のアスペクト比を維持したまま、 'recognition_image_height'"recognition_image_height" 部分にズームします。もし結果画像の幅が 'recognition_image_width'"recognition_image_width" よりも小さい場合、足りないサイズ部分は画像右側に グレイ値 00 が埋め込まれます。大きい場合、 画像は'recognition_image_width'"recognition_image_width" の大きさにズームされます。

      チャンネル数は常に1である必要があります。

      初期値: [120120, 3232, 11]

    • 'recognition_image_height'"recognition_image_height": 認識コンポーネントが処理する画像の高さ。

      初期値: 3232

    • 'recognition_image_num_channels'"recognition_image_num_channels": 認識コンポーネントが処理する画像のチャンネル数。

      初期値: 11

    • 'recognition_image_width'"recognition_image_width": 認識コンポーネントが処理する画像の幅。

      初期値: 120120

    • 'recognition_model'"recognition_model": オペレーター get_deep_ocr_paramGetDeepOcrParamは単語認識用に使用されるDeep OCR モデルのハンドルを返します。 set_deep_ocr_paramSetDeepOcrParam を使用すると、ハンドル、ファイル名、 または特殊な文字列のいずれかを指定できます。 'default'"default" は、デフォルトの事前に学習された単語認識コンポーネントである 'compact'"compact" は、コンパクトな単語認識コンポーネント である 'pretrained_deep_ocr_recognition_compact.hdl'"pretrained_deep_ocr_recognition_compact.hdl" をロードします。これは、 デフォルトコンポーネントと比較してわずかに精度が低いものの、より高速な推論を提供します。 その他の文字列はすべてモデルのファイル名として扱われ、 バッチサイズが 11 に設定されて内部でロードされます。 認識コンポーネントを変更すると、他のモデル固有のパラメーターにも 影響を与える可能性があることに注意してください。

      推奨値: 'default'"default", 'compact'"compact"

      初期値: 'default'"default"

    • 'recognition_num_char_candidates'"recognition_num_char_candidates": apply_deep_ocrApplyDeepOcrの結果として出力される文字の候補の数を制御します。

      初期値: 33

    • 'recognition_optimize_for_inference'"recognition_optimize_for_inference": 認識コンポーネントが推論のために最適化されているかどうかを決定します。

      このパラメータは get_dl_model_paramGetDlModelParam で 'optimize_for_inference'"optimize_for_inference"を適用 認識コンポーネントに適用した際の挙動を決定します。

      初期値: 'false'"false"

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

DeepOcrHandledeepOcrHandledeep_ocr_handle (input_control) deep_ocr → (handle)HTuple (HHandle)HDlModelOcr, HTuple (IntPtr)HHandleHtuple (handle)

Deep CORモデルのハンドル

GenParamNamegenParamNamegen_param_name (input_control) attribute.name → (string)HTuple (HString)HTuple (string)strHtuple (char*)

汎用パラメータの名前

初期値: 'recognition_model'"recognition_model"
値のリスト: 'detection_device', 'detection_image_dimensions', 'detection_image_height', 'detection_image_size', 'detection_image_width', 'detection_min_character_score', 'detection_min_link_score', 'detection_min_word_area', 'detection_min_word_score', 'detection_model', 'detection_optimize_for_inference', 'detection_orientation', 'detection_sort_by_line', 'detection_tiling', 'detection_tiling_overlap', 'recognition_alignment', 'recognition_alignment_available', 'recognition_alphabet', 'recognition_alphabet_internal', 'recognition_alphabet_mapping', 'recognition_batch_size', 'recognition_device', 'recognition_image_dimensions', 'recognition_image_height', 'recognition_image_num_channels', 'recognition_image_width', 'recognition_model', 'recognition_num_char_candidates', 'recognition_optimize_for_inference'"detection_device", "detection_image_dimensions", "detection_image_height", "detection_image_size", "detection_image_width", "detection_min_character_score", "detection_min_link_score", "detection_min_word_area", "detection_min_word_score", "detection_model", "detection_optimize_for_inference", "detection_orientation", "detection_sort_by_line", "detection_tiling", "detection_tiling_overlap", "recognition_alignment", "recognition_alignment_available", "recognition_alphabet", "recognition_alphabet_internal", "recognition_alphabet_mapping", "recognition_batch_size", "recognition_device", "recognition_image_dimensions", "recognition_image_height", "recognition_image_num_channels", "recognition_image_width", "recognition_model", "recognition_num_char_candidates", "recognition_optimize_for_inference"

GenParamValuegenParamValuegen_param_value (output_control) attribute.value(-array) → (integer / handle / string / real)HTuple (Hlong / HHandle / HString / double)HTuple (int / long / HHandle / string / double)Sequence[HTupleElementType]Htuple (Hlong / handle / char* / double)

汎用パラメータの値

結果🔗

パラメータが正しい場合、オペレーター get_deep_ocr_paramGetDeepOcrParam は、値 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_deep_ocrCreateDeepOcr, set_deep_ocr_paramSetDeepOcrParam

後処理の候補

set_deep_ocr_paramSetDeepOcrParam, apply_deep_ocrApplyDeepOcr

関連項目

set_deep_ocr_paramSetDeepOcrParam

モジュール🔗

OCR/OCV