Number of elements:DictHandle == 1 Key(input_control)string→(string /integer) Key string. Number of elements:Key == 1 Restriction:length(Key) > 0 Example (HDevelop) Result If the operation succeeds,get_dict_objectreturns2(H_MSG_TRUE). Otherwise an exception is raised. Possible error condi...
Number of elements:DictHandle == 1 Key(input_control)string→(string /integer) Key string. Number of elements:Key == 1 Restriction:length(Key) > 0 Example (HDevelop) If the operation succeeds,get_dict_objectreturns 2 (H_MSG_TRUE). Otherwise an exception is raised. Possible error conditions...
get_dict_tuple (DLDataset, 'class_ids', ClassIDs) get_dict_tuple (DLDataset, 'class_names', ClassNames) set_dict_tuple (DLDataset, 'image_dir', ImageDir) set_dict_tuple (DLDataset, 'segmentation_dir', LabelDir) split_dl_dataset (DLDataset, 85, 15, []) create_dl_preprocess_param ...
create_dict (DLModelDetectionParam) set_dict_tuple (DLModelDetectionParam, 'image_width', ImageWidth) set_dict_tuple (DLModelDetectionParam, 'image_height', ImageHeight) set_dict_tuple (DLModelDetectionParam, 'image_num_channels', ImageNumChannels) set_dict_tuple (DLModelDetectionParam, 'min_...
可以通过 get_dict_object 和get_dict_tuple 函数来查询字典里面的数据,这两个函数的第一个变量是字典的句柄,第二个变量是键值,第三个变量是访问的值。可以通过 remove_dict_key 函数来删除字典中的数据,这个函数的第一个变量是字典的句柄,第二个变量是数据的键。 可以通过 copy_dict 来复制字典,所有字典数据...
create_dict (DLSample) set_dict_object (ImagePreprocessed, DLSample, 'image') apply_dl_model (DLModelHandle, DLSample, [], DLResult) get_dict_tuple (DLResult, 'classification_confidences', Confidences) get_dict_tuple (DLResult, 'classification_class_names', PredictClasses) ...
private void button2_Click(object sender, EventArgs e){ HOperatorSet.ReadDict(hv_DictFile, new ...
不同于常规编程语言的函数调用,Halcon通过特有的数据容器和算子组合机制实现跨函数通信。开发人员需要理解其底层图像对象(HObject)和控制参数(HTuple)的传递特性,特别是针对大尺寸图像数据的高效内存管理策略。典型的应用场景包括多工位检测系统中不同检测模块的协同工作,其中各功能模块既保持独立性又需要共享预处理结果。
get_dict_object (ImagePreprocessed, DLSampleBatch[ResultIndex], 'image')输⼊和输出都要⽤循环来实现、3、(halcon 18.11)要求输⼊的数量和BatchSize要相等,否则会报错规格不对 (halcon 19.11)没有这个要求,可以⼤于,也可以⼩于。set_dl_model_param (DLModelHandle, 'batch_size', Batch...
halcon深度学习部分自带的例程,使用的数据集都是COCO文件。查了一圈没弄懂怎么建数据集,后来在halcon官网发现有一个深度学习工具(MVTec Deep Learning Tool)是用来生成数据集的,为hdict格式,应该是halcon特有的一种字典存放格式。 下面主要介绍一下这个工具的使用 下载地址:https://www.mvte... 查看原文 Halcon...