例程
基于相关性
find_ncc_model_exposure.hdev
find_ncc_model_defocused_precision.hdev
基于形状
find_scaled_shape_model.hdev
create_model_green_dot.hdev
create_roi_via_vision.hdev
create_shape_model_xld.hdev
find_aniso_shape_model.hdev
find_cocoa_packages_max_deformation.hdev
find_mirror_dies.hdev
find_shape_model_max_deformation.hdev
inspect_shampoo_label.hdev
matching_coins.hdev
reuse_model.hdev
synthetic_circle.hdev
matching_defocused_pcb.hdev
pm_measure_board.hdev
pm_multiple_models.hdev
基于灰度
抗干扰能力不强,
* Image Acquisition 01: Code generated by Image Acquisition 01
open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', 8, 'rgb', -1, 'false', 'default', '[0] ', 0, -1, AcqHandle)
dev_close_window ()
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
grab_image_start (AcqHandle, -1)
*抓取图片
grab_image_async (Image, AcqHandle, -1)
*助手画识别区域 不规则blob分析
gen_circle (ROI_0, 185.594, 330.125, 22.0882)
*裁剪区域
reduce_domain (Image, ROI_0, ImageReduced)
pi := acos(0.0)*2
*创建模板
create_template_rot (ImageReduced, 4, -pi, 2*pi, pi/45, 'sort', 'original', TemplateID)
*定义区域的填充模式, DrawMode 有'fill', 'margin'前者是填充全部区域,后者是显示边缘
dev_set_draw ('margin')
*设置边缘颜色
dev_set_color ('red')
while (tru