set_deep_ocr_paramSetDeepOcrParamSetDeepOcrParamset_deep_ocr_paramT_set_deep_ocr_param
説明
set_deep_ocr_paramSetDeepOcrParamSetDeepOcrParamset_deep_ocr_paramT_set_deep_ocr_param — Deep OCRモデルのパラメータを設定する。
書式
set_deep_ocr_param( deep_ocr DeepOcrHandle, attribute.name GenParamName, attribute.value GenParamValue )void SetDeepOcrParam( const HTuple& DeepOcrHandle, const HTuple& GenParamName, const HTuple& GenParamValue )static void HOperatorSet.SetDeepOcrParam( HTuple deepOcrHandle, HTuple genParamName, HTuple genParamValue )def set_deep_ocr_param( deep_ocr_handle: HHandle, gen_param_name: str, gen_param_value: HTupleType ) -> None
Herror T_set_deep_ocr_param( const Htuple DeepOcrHandle, const Htuple GenParamName, const Htuple GenParamValue )
void HDlModelOcr::SetDeepOcrParam( const HString& GenParamName, const HTuple& GenParamValue ) const
void HDlModelOcr::SetDeepOcrParam( const HString& GenParamName, double GenParamValue ) const
void HDlModelOcr::SetDeepOcrParam( const char* GenParamName, double GenParamValue ) const
void HDlModelOcr::SetDeepOcrParam( const wchar_t* GenParamName, double GenParamValue ) const (Windows only)
void HDlModelOcr.SetDeepOcrParam( string genParamName, HTuple genParamValue )
void HDlModelOcr.SetDeepOcrParam( string genParamName, double genParamValue )
説明
set_deep_ocr_paramSetDeepOcrParam はDeep OCRモデルDeepOcrHandledeepOcrHandledeep_ocr_handleのパラメータGenParamNamegenParamNamegen_param_name
を値GenParamValuegenParamValuegen_param_valueに設定します。
利用可能なパラメータの説明についてはオペレータ
get_deep_ocr_paramGetDeepOcrParam をご参照ください。
Deep OCRのワークフローの概要は、OCR / Deep OCR に記載されています。
注意
システム要件:
'gpu'"gpu" のパラメータを正常に設定するには、cuDNNとcuBLASが必要です。
つまり、パラメータGenParamNamegenParamNamegen_param_nameの 'device'"device"をGPUに設定します。
より詳細な情報は、“Installation Guide”, 段落
“Requirements for Deep Learning and Deep-Learning-Based Methods”をご参照ください。
実行情報
実行情報
パラメーター
DeepOcrHandledeepOcrHandledeep_ocr_handle (input_control) deep_ocr → (handle)HTuple (HHandle)HDlModelOcr, HTuple (IntPtr)HHandleHtuple (handle)
Deep OCRモデルのハンドル
GenParamNamegenParamNamegen_param_name (input_control) attribute.name → (string)HTuple (HString)HTuple (string)strHtuple (char*)
汎用パラメータの名前
初期値: 'detection_image_width'"detection_image_width"
値のリスト: 'detection_device', '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', 'device', 'recognition_alignment', 'recognition_alphabet', 'recognition_alphabet_internal', 'recognition_alphabet_mapping', 'recognition_batch_size', 'recognition_device', 'recognition_image_width', 'recognition_model', 'recognition_num_char_candidates', 'recognition_optimize_for_inference'"detection_device", "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", "device", "recognition_alignment", "recognition_alphabet", "recognition_alphabet_internal", "recognition_alphabet_mapping", "recognition_batch_size", "recognition_device", "recognition_image_width", "recognition_model", "recognition_num_char_candidates", "recognition_optimize_for_inference"
GenParamValuegenParamValuegen_param_value (input_control) attribute.value(-array) → (real / string / integer / handle)HTuple (double / HString / Hlong / HHandle)HTuple (double / string / int / long / HHandle)HTupleTypeHtuple (double / char* / Hlong / handle)
汎用パラメータの値
初期値: 10241024
推奨値: 0, 10, 50, 100, 200, 512, 768, 1024, 1280, 0.3, 0.4, 0.5, 0.6, 0.7, 'true', 'false', 'auto', 'compact', 'default', 'pretrained_deep_ocr_detection.hdl', 'pretrained_deep_ocr_detection_compact.hdl', 'pretrained_deep_ocr_recognition.hdl', 'pretrained_deep_ocr_recognition_compact.hdl'0, 10, 50, 100, 200, 512, 768, 1024, 1280, 0.3, 0.4, 0.5, 0.6, 0.7, "true", "false", "auto", "compact", "default", "pretrained_deep_ocr_detection.hdl", "pretrained_deep_ocr_detection_compact.hdl", "pretrained_deep_ocr_recognition.hdl", "pretrained_deep_ocr_recognition_compact.hdl"
結果
パラメータが正しい場合、オペレーター set_deep_ocr_paramSetDeepOcrParam
は、値 2 (H_MSG_TRUE) を返します.
必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
create_deep_ocrCreateDeepOcr, get_deep_ocr_paramGetDeepOcrParam
後処理の候補
get_deep_ocr_paramGetDeepOcrParam, apply_deep_ocrApplyDeepOcr
関連項目
get_deep_ocr_paramGetDeepOcrParam
モジュール
OCR/OCV