query_data_code_2d_params🔗
説明🔗
query_data_code_2d_params — 与えられた 二次元コードモデルに対して、他の二次元コードのオ
ペレーターで使用することのできるパラメーターあるいはオブジェクトの
名前を取得する。
書式🔗
query_data_code_2d_params( datacode_2d DataCodeHandle, attribute.name QueryName, out attribute.value GenParamName )
説明🔗
オペレーター query_data_code_2d_params は、二次元コード
のオペレーター set_data_code_2d_param、
get_data_code_2d_param、 find_data_code_2d、
get_data_code_2d_results、および
get_data_code_2d_objects によってサポートされている
パラメーター名を返します。
2D二次元コードリーダのコンセプトの説明については、 Identification / Data CodeチャプターのIntroductionを参照ください。
パラメーター QueryName は必要な
パラメーターグループを選択するために使用されます。
-
'get_model_params':
get_data_code_2d_param- 二次元コード モデルを確認するためのパラメーター -
'set_model_params':
set_data_code_2d_param- 二次元コード モデルを調整するためのパラメーター -
'find_params':
find_data_code_2d- 二次元コード の探索、読み込みの際に使われるパラメーター -
'get_result_params':
get_data_code_2d_results- シンボル探索の結果 を要求するためのパラメーター -
'get_result_objects':
get_data_code_2d_objects- シンボル探索の アイコンオブジェクトにアクセスするためのパラメーター -
'trained':
set_data_code_2d_param- トレーニングに よって値が決定されたパラメーター。 次回のトレーニングではこれらのパラメーターはリセットされず、 必要に応じてパラメーター空間が拡張されます。
返されるパラメーターリストは、二次元コードの種類にのみ依存して おり、現在のモデルの状態、またはその結果には依存しません。
実行情報🔗
実行情報
-
マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)
-
マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)
-
並列演算処理には未対応
パラメーター🔗
DataCodeHandle (input_control) datacode_2d → (handle)
二次元コードモデルのハンドル
QueryName (input_control) attribute.name → (string)
パラメーターグループ名
初期値: 'get_result_params'
値のリスト: 'find_params', 'get_model_params', 'get_result_objects', 'get_result_params', 'set_model_params', 'trained'
GenParamName (output_control) attribute.value-array → (string)
サポートするパラメーター名のリスト
例🔗
(HDevelop)
* This example demonstrates how the names of all available model parameters
* can be queried. This is used to request first the settings of the
* untrained and then the settings of the trained model.
* Create a model for reading Data Matrix ECC 200 codes
create_data_code_2d_model ('Data Matrix ECC 200', [], [], DataCodeHandle)
* Query all the names of the generic parameters that can be passed to the
* operator get_data_code_2d_param to request the model
query_data_code_2d_params (DataCodeHandle, 'get_model_params', GenParamName)
* Request the current settings of the (untrained) model
get_data_code_2d_param(DataCodeHandle, GenParamName, ModelParams)
* Read a training image
read_image (Image, 'datacode/ecc200/ecc200_cpu_007')
* train the model with the symbol in the image
find_data_code_2d (Image, SymbolXLDs, DataCodeHandle, 'train', 'all', \
ResultHandles, DecodedDataStrings)
* Request the current settings of the (now trained) model
get_data_code_2d_param(DataCodeHandle, GenParamName, TrainedModelParams)
* Create a tuple that demonstrates the changings
ModelAdaption := GenParamName + ': ' + ModelParams + ' -> ' + \
TrainedModelParams
* Clear the model
clear_data_code_2d_model (DataCodeHandle)
結果🔗
パラメーターが正しければ、オペレーター
query_data_code_2d_params は値 2 (H_MSG_TRUE) を返します。
そうでない場合は、例外が発生します。
他のオペレーターとの組み合わせ🔗
モジュール🔗
Data Code