Halcon例子说明 联系客服

发布时间 : 星期六 文章Halcon例子说明更新完毕开始阅读9882bf12a200a6c30c22590102020740be1ecda8

Halcon实例说明

1、inspect_bottle_mouth.hdev:易拉管缺陷检测。用到了极坐标变换

2、circular_barcode.hdev:一维条码检测,用到坐标变换。弧形拉直。用到了极坐标变换 3、surface_scratch.hdev:表面划伤检测。

4、ball.hdev:PCB板焊锡点检测。用到常用算子及开运算opening。 5、best_match_rot_mg_clip1.hdev:带方向的基本模版匹配 6、bin_threshold.hdev:计算图片中的灰度直方图

7、bin_threshold2.hdev:程序说明怎样bin_threshold与threshold之间的相等转换计算。 8、bottle.hdev:OCR字符的检测 9、bottlet.hdev:OCR字符的检测

10、check_blister.hdev:药品颗粒检测。用一些常用算子及坐标变换,图片旋转。

11、check_bottle_crate.hdev:圆孔检测。用到opening_circle、select_shape等常用处理算子。

12、check_hazelnut_wafers.hdev:检测物体表面缺陷。很好的用到了开运算算子opening_circle和闭运算算子closing_circle

13、check_smd_tilt.hdev:检测SMD用到算子sobel_amp边缘检测,measure_projection 14、check_soft_cheese.hdev:用到算子有彩色图转换为灰度图(rgb1_to_gray),模版匹配 15、create_shape_model、find_shape_models,图像坐标变转vector_angle_to_rigid 、 affine_trans_contour_xld等算子。

16、circles.hdev:圆拟合算子(fit_circle_contour_xld),边缘检测(edges_sub_pix)。 17、circular_barcode.hdev:求圆环区域及图像坐标变转vector_angle_to_rigid。 18、clip.hdev;clip_contours_xld.hdev;clip_region.hdev:裁剪函数运用。 19、close_contour_xld.hdev:主要用到close_contours_xld算子。

20、codabar.hdev;code128.hdev;code39.hdev:一维条码的读取,find_bar_code。 21、color_fuses.hdev:RGB图像的处理,主要用到算子: decompose3, trans_from_rgb。 22、color_segmentation_pizza.hdev::RGB彩色物体图像处理。主要用到算子: decompose3, trans_from_rgb。

23、contlength.hdev:计算region的长度,主要用到算子: contlength。

24、count_fish_sticks:计算鱼条,用到遍历全文件下图片,很好的运用closing_circle、difference算子提取所需孔洞,measure_projection、create_funct_1d_array、local_min_max_funct_1d、get_y_value_funct_1d等利用灰度值差分离相连物体间的边缘。还不是很明白

count_pellets.hdev:很好的运用了erosion_circle,dilation_circle来分离相连的物体,很精典的例子。形态学算法。

25、cbm_sbm.hdev: 对基于形状和组件(或成分、元素)的模版匹配做了对比;运用了算子有:inspect_shape_model、create_shape_model、find_shape_models、create_component_model、

find_component_model。在多个形状做匹配时用基于形状需要一个个匹配,而用基于组件就可一次性到位,大大缩减了匹配时间。

26、check_blister.hdev:药丸检测用到坐标变换算子。orientation_region、vector_angle_to_rigid 、affine_trans_image及多个region合并处理。

27、check_bottle_crate.hdev:很好的运用了形态学,主要算子有select_shape、opening_circle、difference。

28、check_hazelnut_wafers.hdev:检查饼干的完整性,很好的运用了形态学的开、闭运算opening_circle 、closing_circle 、opening_circle 、area_holes、rectangularity 。 circles.hdev:拟合圆,算子有:fit_circle_contour_xld、get_contour_global_attrib_xld、segment_contours_xld、gen_circle_contour_xld。

29、circular_barcode.hdev:工件圆弧的二维码检测,用到极坐标变换,圆弧拉伸成水平检测。polar_trans_image_ext、polar_trans_region_inv圆弧拉伸算子。

30、codabar.hdev:很经典的1 维条码的读取,主要算子create_bar_code_model 、set_bar_code_param、find_bar_code。

31、count_fish_sticks.hdev:鱼条个数计算。create_funct_1d_array、local_min_max_funct_1d、get_y_value_funct_1d、measure_projection算子没整明白???

32、create_average_shape_model.hdev:很典型的带比例的模版匹配。create_scaled_shape_model、find_scaled_shape_model、get_shape_model_params、get_shape_model_contours。 33、create_model_grenn_dot.hdev:创建模版及保存模版。inspect_shape_model、create_scaled_shape_model、write_shape_model。

34、create_calib_deformable_model_xld.hdev:坐标标定,用到了读CAD图的算子read_contour_xld_dxf、count_obj、select_obj 、get_contour_xld create_planar_uncalib_deformable_model_xld.hdev

说明:33、34例子是从外部读出CAD图来做模版进行模版标定。read_contour_xld_dxf、create_planar_uncalib_deformable_model_xld、get_deformable_model_contours、find_planar_uncalib_deformable_model。

35、create_roi_via_vision.hdev:基于形状的模版匹配,模版匹配主要算子:create_shape_model、find_shape_model,模版轮廓提取算子:inspect_shape_model、select_obj、get_shape_model_contours、模版轮廓映射算子:vector_angle_to_rigid、affine_trans_contour_xld。

36、create_shape_model_3d_ignore_part_polarity.hdev: 基于形状的3D模版匹配. 37、create_shape_model_xld.hdev:基于XLD形状的模版匹配。

38、crystal.hdev:检测表面空孔,mean_image 、dyn_threshold、shape_trans、select_shape、select_gray