halcon工件圆孔检测
下面展示一些 码片。
* This program gets the deviation between
* circular contours and their best fitting circles
*
dev_update_var ('off') //开启或关闭程序运行过程中变量窗口的更新。
dev_update_off () //关闭窗口更新
*
* step: acquire image and initialize the visualization
* 获取图片
*
read_image (Image, 'pumpe') //获取图
get_image_size (Image, Width, Height) //得到图片尺寸
dev_close_window () //关闭窗口
dev_open_window (0, 0, Width, Height, 'light gray', WindowID)//打开一个尺寸和图片一样的窗口
dev_set_part (0, 0, Height - 1, Width - 1)//
dev_set_line_width (1)
dev_set_color ('red')
dev_set_draw ('margin')
dev_display (Image)
set_display_font (WindowID, 16, 'mono', 'true', 'false')
disp_continue_message (WindowID, 'black', 'true')//显示那个按F5继续
stop ()
*
* * step: create ROI
*
fast_threshold

最低0.47元/天 解锁文章
1514

被折叠的 条评论
为什么被折叠?



