get_dict_param (Dict, 'keys', [], AllKeys) get_dict_param (Dict, 'key_data_type', AllKeys, KeysType) ResultIf all the operator parameters, and the specified keys are valid, get_dict_param returns 2 (H_MSG_TRUE). Otherwise an exception is raised....
使用set_dict_tuple或set_dict_object,可以向字典添加键值对: set_dict_tuple (DictHandle, Key, Value) 1. 要从字典中获取值,可以使用 get_dict_tuple 或者get_dict_object: get_dict_tuple (DictHandle, Key, Value) get_dict_param (DictHandle, 'keys', Keys)//获取所有的建Keys返回一个数组 1. 2...
HOperatorSet.GetDictParam(HDict, "keys", new HTuple(), out AllKeys);if (AllKeys.Length != 0...
get_dict_tuple (DLDataset, 'preprocess_param', DLPreprocessParam) get_dict_tuple (DLDataset, 'class_ids', ClassIDs) set_dl_model_param_based_on_preprocessing (DLModelHandle, DLPreprocessParam, ClassIDs) set_dl_model_param (DLModelHandle, 'learning_rate', lr) set_dl_model_param (DLModel...
If the givenKeyis not present in the dictionary or if the data associated with the key is not a tuple,get_dict_tuplefails. Presence of keys and information about the data associated with the key can be verified usingget_dict_param. ...
我们以二维码识别为例,在旧版软件中如果我们想获得训练参数则需要使用get_data_code_2d_param这一函数进行读取。该函数的输入参数为二维码句柄以及参数名称,执行后可以返回相应参数的值。如果我们想了解所有参数的值,则要先通过query_data_2d_params获取所有参数名称,而后再调参数获取函数。
preprocess_dl_dataset (DLDataset, OutputDir, DLPreprocessParam, PreprocessSettings, DLDatasetFileName)* *获取样本集DLDataset中的样本 get_dict_tuple (DLDataset,'samples', DatasetSamples)if(ExampleSpecificPreprocessing) read_dl_samples (DLDataset, [0:|DatasetSamples| -1], DLSampleBatch) ...
get_dl_model_param(DLModelHandle, 'class_names', ClassNames) get_dl_model_param(DLModelHandle, 'class_ids', ClassIds) set_dl_model_param (DLModelHandle, 'runtime_init', 'immediately') dev_open_window(0, 0, 600, 400, 'black', WindowHandle) ...
SetDlModelParam(hv_DLModelHandle, "device", hv_DLDeviceCPU); GetDlDeviceParam(hv_DLDeviceTrt03, "optimize_for_inference_params", &hv_OptimizeForInferenceParams); OptimizeDlModelForInference(hv_DLModelHandle, hv_DLDeviceTrt03, hv_Precision,HTuple(), hv_OptimizeForInferenceParams, &m_hv_DL...
get_dict_object (ImagePreprocessed, DLSampleBatch[ResultIndex], 'image')输⼊和输出都要⽤循环来实现、3、(halcon 18.11)要求输⼊的数量和BatchSize要相等,否则会报错规格不对 (halcon 19.11)没有这个要求,可以⼤于,也可以⼩于。set_dl_model_param (DLModelHandle, 'batch_size', Batch...