create_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_modelT_create_deep_counting_model
説明
create_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_modelT_create_deep_counting_model — オブジェクトをカウントするためのDeep Countingモデルを生成する。
書式
create_deep_counting_model( attribute.name GenParamName, attribute.value GenParamValue, out deep_counting DeepCountingHandle )void CreateDeepCountingModel( const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* DeepCountingHandle )static void HOperatorSet.CreateDeepCountingModel( HTuple genParamName, HTuple genParamValue, out HTuple deepCountingHandle )def create_deep_counting_model( gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[float, int, str]] ) -> HHandle
Herror T_create_deep_counting_model( const Htuple GenParamName, const Htuple GenParamValue, Htuple* DeepCountingHandle )
void HDlModelCounting::HDlModelCounting( const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlModelCounting::HDlModelCounting( const HString& GenParamName, double GenParamValue )
void HDlModelCounting::HDlModelCounting( const char* GenParamName, double GenParamValue )
void HDlModelCounting::HDlModelCounting( const wchar_t* GenParamName, double GenParamValue ) (Windows only)
public HDlModelCounting( HTuple genParamName, HTuple genParamValue )
public HDlModelCounting( string genParamName, double genParamValue )
void HDlModelCounting::CreateDeepCountingModel( const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlModelCounting::CreateDeepCountingModel( const HString& GenParamName, double GenParamValue )
void HDlModelCounting::CreateDeepCountingModel( const char* GenParamName, double GenParamValue )
void HDlModelCounting::CreateDeepCountingModel( const wchar_t* GenParamName, double GenParamValue ) (Windows only)
void HDlModelCounting.CreateDeepCountingModel( HTuple genParamName, HTuple genParamValue )
void HDlModelCounting.CreateDeepCountingModel( string genParamName, double genParamValue )
説明
create_deep_counting_modelCreateDeepCountingModel はDeep Counting モデルを作成し、
そのハンドルを DeepCountingHandledeepCountingHandledeep_counting_handle に返します。
内部的には、 create_deep_counting_modelCreateDeepCountingModel は事前学習済みネットワーク
'pretrained_dl_classifier_resnet50.hdl'"pretrained_dl_classifier_resnet50.hdl" に基づいてバックボーンを構築します。
このファイルは利用可能である必要があります。
ファイルが検索される場所の詳細は、 read_dl_modelReadDlModel を参照してください。
Deep Counting モデルの追加のパラメータは、ジェネリックパラメータ GenParamNamegenParamNamegen_param_name と
GenParamValuegenParamValuegen_param_value を使用して設定できます。
パラメータのリストと設定可能な値については、 get_deep_counting_model_paramGetDeepCountingModelParam を参照してください。
パラメータは、モデル作成時に設定することができ、
後で set_deep_counting_model_paramSetDeepCountingModelParam を使用して設定することもできます。
生成されたDeep Countingモデルを apply_deep_counting_modelApplyDeepCountingModel で使用する前に、
prepare_deep_counting_modelPrepareDeepCountingModel を使用してモデルに
テンプレートを格納する必要があることに注意してください。
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
GenParamNamegenParamNamegen_param_name (input_control) attribute.name(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
パラメータ名
初期値: [][]
値のリスト: 'angle_end', 'angle_start', 'angle_step', 'device', 'max_overlap', 'min_score', 'scale_max', 'scale_min', 'scale_step'"angle_end", "angle_start", "angle_step", "device", "max_overlap", "min_score", "scale_max", "scale_min", "scale_step"
GenParamValuegenParamValuegen_param_value (input_control) attribute.value(-array) → (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)MaybeSequence[Union[float, int, str]]Htuple (double / Hlong / char*)
パラメータ値
初期値: [][]
DeepCountingHandledeepCountingHandledeep_counting_handle (output_control) deep_counting → (handle)HTuple (HHandle)HDlModelCounting, HTuple (IntPtr)HHandleHtuple (handle)
オブジェクトの数をカウントするためのDeep Countingモデル
結果
パラメータが有効であれば、オペレーター create_deep_counting_modelCreateDeepCountingModel
は 2 (H_MSG_TRUE) を返します。
必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
set_deep_counting_model_paramSetDeepCountingModelParam, get_deep_counting_model_paramGetDeepCountingModelParam, prepare_deep_counting_modelPrepareDeepCountingModel, apply_deep_counting_modelApplyDeepCountingModel
他の選択候補
read_deep_counting_modelReadDeepCountingModel
関連項目
get_deep_counting_model_paramGetDeepCountingModelParam
モジュール
Matching