query_data_code_2d_paramsT_query_data_code_2d_paramsQueryDataCode2dParamsQueryDataCode2dParamsquery_data_code_2d_params (算子)
名称
query_data_code_2d_paramsT_query_data_code_2d_paramsQueryDataCode2dParamsQueryDataCode2dParamsquery_data_code_2d_params — 为给定的二维数据码模型获取可用于其他二维数据码算子的通用参数或对象的名称。
签名
描述
算子 query_data_code_2d_paramsquery_data_code_2d_paramsQueryDataCode2dParamsQueryDataCode2dParamsQueryDataCode2dParamsquery_data_code_2d_params returns the names of
the generic parameters that are supported by the 2D data code
operators set_data_code_2d_paramset_data_code_2d_paramSetDataCode2dParamSetDataCode2dParamSetDataCode2dParamset_data_code_2d_param,
get_data_code_2d_paramget_data_code_2d_paramGetDataCode2dParamGetDataCode2dParamGetDataCode2dParamget_data_code_2d_param, find_data_code_2dfind_data_code_2dFindDataCode2dFindDataCode2dFindDataCode2dfind_data_code_2d,
get_data_code_2d_resultsget_data_code_2d_resultsGetDataCode2dResultsGetDataCode2dResultsGetDataCode2dResultsget_data_code_2d_results, and
get_data_code_2d_objectsget_data_code_2d_objectsGetDataCode2dObjectsGetDataCode2dObjectsGetDataCode2dObjectsget_data_code_2d_objects。
For an explanation of the concept of the 2D data code reader
see the introduction of chapter Identification / Data Code。
The parameter QueryNameQueryNameQueryNameQueryNamequeryNamequery_name is used to select the desired
parameter group:
- 'get_model_params'"get_model_params""get_model_params""get_model_params""get_model_params""get_model_params":
-
get_data_code_2d_paramget_data_code_2d_paramGetDataCode2dParamGetDataCode2dParamGetDataCode2dParamget_data_code_2d_param - Parameters for querying
the 2D data code model.
- 'set_model_params'"set_model_params""set_model_params""set_model_params""set_model_params""set_model_params":
-
set_data_code_2d_paramset_data_code_2d_paramSetDataCode2dParamSetDataCode2dParamSetDataCode2dParamset_data_code_2d_param - Parameters for adjusting the
2D data code model.
- 'find_params'"find_params""find_params""find_params""find_params""find_params":
-
find_data_code_2dfind_data_code_2dFindDataCode2dFindDataCode2dFindDataCode2dfind_data_code_2d - Parameters used while
searching and reading the 2D data code symbols.
- 'get_result_params'"get_result_params""get_result_params""get_result_params""get_result_params""get_result_params":
-
get_data_code_2d_resultsget_data_code_2d_resultsGetDataCode2dResultsGetDataCode2dResultsGetDataCode2dResultsget_data_code_2d_results - Parameters for querying
the alphanumerical results of the symbol search.
- 'get_result_objects'"get_result_objects""get_result_objects""get_result_objects""get_result_objects""get_result_objects":
-
get_data_code_2d_objectsget_data_code_2d_objectsGetDataCode2dObjectsGetDataCode2dObjectsGetDataCode2dObjectsget_data_code_2d_objects - Parameters for accessing
the iconic objects of the symbol search.
- 'trained'"trained""trained""trained""trained""trained":
-
set_data_code_2d_paramset_data_code_2d_paramSetDataCode2dParamSetDataCode2dParamSetDataCode2dParamset_data_code_2d_param - Parameters which values were
determined by training. The next training will not reset these
parameters, but extend them.
The returned parameter list depends only on the type of the data
code and not on the current state of the model or its results.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
DataCodeHandleDataCodeHandleDataCodeHandleDataCodeHandledataCodeHandledata_code_handle (输入控制) datacode_2d → HDataCode2D, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the 2D data code model.
QueryNameQueryNameQueryNameQueryNamequeryNamequery_name (输入控制) attribute.name → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the parameter group.
默认值:
'get_result_params'
"get_result_params"
"get_result_params"
"get_result_params"
"get_result_params"
"get_result_params"
值列表:
'find_params'"find_params""find_params""find_params""find_params""find_params", 'get_model_params'"get_model_params""get_model_params""get_model_params""get_model_params""get_model_params", 'get_result_objects'"get_result_objects""get_result_objects""get_result_objects""get_result_objects""get_result_objects", 'get_result_params'"get_result_params""get_result_params""get_result_params""get_result_params""get_result_params", 'set_model_params'"set_model_params""set_model_params""set_model_params""set_model_params""set_model_params", 'trained'"trained""trained""trained""trained""trained"
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输出控制) attribute.value-array → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
List containing the names of the supported generic
parameters.
示例(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_paramsquery_data_code_2d_paramsQueryDataCode2dParamsQueryDataCode2dParamsQueryDataCode2dParamsquery_data_code_2d_params 返回值 2 (
H_MSG_TRUE)
if the given parameters are correct.否则,将抛出异常。
可能的前趋
create_data_code_2d_modelcreate_data_code_2d_modelCreateDataCode2dModelCreateDataCode2dModelCreateDataCode2dModelcreate_data_code_2d_model
可能的后继
get_data_code_2d_paramget_data_code_2d_paramGetDataCode2dParamGetDataCode2dParamGetDataCode2dParamget_data_code_2d_param,
get_data_code_2d_resultsget_data_code_2d_resultsGetDataCode2dResultsGetDataCode2dResultsGetDataCode2dResultsget_data_code_2d_results,
get_data_code_2d_objectsget_data_code_2d_objectsGetDataCode2dObjectsGetDataCode2dObjectsGetDataCode2dObjectsget_data_code_2d_objects
模块
数据码