copy_obj— Copy an iconic object in the HALCON database. Signature copy_obj(Objects:ObjectsSelected:Index,NumObj: ) copy_objcopiesNumObjiconic objects beginning with indexIndex(starting with 1) from the iconic input object tupleObjectsto the output objectObjectsSelected. If -1 is passed forNum...
copy_objreturns 2 (H_MSG_TRUE) if all objects are contained in the HALCON database and all parameters are correct. If the input is empty the behavior can be set viaset_system(::'no_object_result',<Result>:). If necessary, an exception is raised. ...
8、Object count_obj统计一个元组中的对象。相关的算子还有concat_obj、copy_obj、gen_empty_obj、select_obj。 9、Region inner_circle一个区域内部最大的圆周。类似的算子有inner_rectangle1、smallest_circle等。 orientation_region一个区域的朝向。类似的算子有line_orientation、text_line_orientation、orientation_x...
1. clear_obj 功能:将一个对象的图标从HALCON数据库中删除。 2. concat_obj 功能:连接两个目标元组的图标。 3. copy_obj 功能:复制一个HALCON数据库中对象的图标。 4. gen_empty_obj 功能:创建一个空的目标元组。 5.integer_to_obj 功能:将一个整型数转换为一个图标。 6. obj_to_integer 功能:将一个...
copy_obj (Image, MotionImages, 1, 1) else append_channel (MotionImages, Image, MotionImages) endif endfor * * Compute the mean of the 27 images to show the ghost images of the moving objects. mean_n (MotionImages, ImageMean)
因为一个XLD可能包含多个轮廓,所以不能简单的使用select_obj,可以使用操作符copy_obj选择属于模型的轮廓,指定连接元组中的模型的起始索引和轮廓的数量作为参数。copy_obj不复制轮廓,只复制相应的HALCON对象,这些对象可以看作是对轮廓的引用。 4.3.4、 对齐其他的区域 ...
4060:在copy_obj操作中访问了已删除的区域。这表示尝试复制的图像区域已被删除或释放。 其他错误 8421:通常与相机参数文件无法打开有关。这可能是因为使用了相对路径,而hdev文件当前目录下没有相应的models目录层级和对应文件。 二、解决方案或建议 对于控制参数错误: 仔细检查HALCON算子的控制参数,确保它们的类型和...
1. clear_obj 功能:将一个对象的图标从HALCON数据库中删除。 2. concat_obj 功能:连接两个目标元组的图标。 3. copy_obj 功能:复制一个HALCON数据库中对象的图标。 4. gen_empty_obj 功能:创建一个空的目标元组。 5.integer_to_obj 功能:将一个整型数转换为一个图标。 6. obj_to_integer ...
1. clear_ obj 功能:将一个对象的图标从HALCON数据库中删除。 2. concat_ obj 功能:连接两个目标元组的图标。 3. copy_ obj 功能:复制一个HALCON数据库中对象的图标 。 4. gen_ empty_ obj 功能:创建一个空的目标元组。 5.integer_ to_ obj 功能:将一个整型数转换为一个图标。 6. obj_ to_ integ...
(Cross, Row, Column, 15, 0.785398) count_obj (RegionIntersection, Number) *设置字体颜色 dev_set_color ('green') *设置文字大小 set_display_font (WindowHandle, 30, 'mono', 'true', 'false') *设置文字位置 set_tposition (WindowHandle, 15, 220) write_string(WindowHandle, 'count=' + ...