Skip to content

read_deep_counting_modelReadDeepCountingModelReadDeepCountingModelread_deep_counting_modelT_read_deep_counting_model🔗

説明🔗

read_deep_counting_modelReadDeepCountingModelReadDeepCountingModelread_deep_counting_modelT_read_deep_counting_model — Deep Countingモデルをファイルから読み込む

書式🔗

read_deep_counting_model( filename.read FileName, out deep_counting DeepCountingHandle )void ReadDeepCountingModel( const HTuple& FileName, HTuple* DeepCountingHandle )static void HOperatorSet.ReadDeepCountingModel( HTuple fileName, out HTuple deepCountingHandle )def read_deep_counting_model( file_name: str ) -> HHandle

Herror T_read_deep_counting_model( const Htuple FileName, Htuple* DeepCountingHandle )

void HDlModelCounting::HDlModelCounting( const HString& FileName )

void HDlModelCounting::HDlModelCounting( const char* FileName )

void HDlModelCounting::HDlModelCounting( const wchar_t* FileName ) (Windows only)

public HDlModelCounting( string fileName )

void HDlModelCounting::ReadDeepCountingModel( const HString& FileName )

void HDlModelCounting::ReadDeepCountingModel( const char* FileName )

void HDlModelCounting::ReadDeepCountingModel( const wchar_t* FileName ) (Windows only)

void HDlModelCounting.ReadDeepCountingModel( string fileName )

説明🔗

read_deep_counting_modelReadDeepCountingModel は、Deep Countingモデルを読み込むオペレーターです。 このモデルは、 HALCON 形式である必要があります。 結果として、ハンドル DeepCountingHandledeepCountingHandledeep_counting_handle が返されます。

モデルは、ファイル FileNamefileNamefile_name から読み込まれます。 このファイルは、現在使用されているディレクトリとともに、 ディレクトリ $HALCONROOT/dl/ 内で検索されます。 Deep Countingモデルにおける HALCON のデフォルトのファイル拡張子は '.hdc'です。

ランタイム固有パラメータの値はファイルに書き込まれません。 詳細は write_deep_counting_modelWriteDeepCountingModel を参照してください。 そのため、モデルを読み込む際にこれらのパラメータの値は、デフォルトの値に初期化されます。 詳細は get_deep_counting_model_paramGetDeepCountingModelParam を参照してください。

実行情報🔗

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

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

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

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

パラメーター🔗

FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)

ファイル名

ファイル拡張子: .hdc

DeepCountingHandledeepCountingHandledeep_counting_handle (output_control) deep_counting → (handle)HTuple (HHandle)HDlModelCounting, HTuple (IntPtr)HHandleHtuple (handle)

Deep Countingモデルのハンドル

結果🔗

パラメータが有効であれば、オペレーター read_deep_counting_modelReadDeepCountingModel は 2 (H_MSG_TRUE) を返します。 必要に応じて、例外が発生します。

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

組み合わせ

前処理の候補

create_deep_counting_modelCreateDeepCountingModel

後処理の候補

set_deep_counting_model_paramSetDeepCountingModelParam, get_deep_counting_model_paramGetDeepCountingModelParam, prepare_deep_counting_modelPrepareDeepCountingModel, apply_deep_counting_modelApplyDeepCountingModel

他の選択候補

create_deep_counting_modelCreateDeepCountingModel

モジュール🔗

Matching