首页 > TAG信息列表 > MetrologyHandle
halcon卡尺测量
Code 直线卡尺 * 获取图像及图像尺寸 dev_close_window () read_image (Image, 'fabrik') get_image_size (Image, Width, Height) dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle) dev_set_line_width (1) dev_display (Image) * 标记测量位置 dr圆形卡尺测量后创建模板
read_image (Image, 'QQ图片20201113111404.jpg') dev_close_window () dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle) dev_display (Image) rgb1_to_gray (Image,Image) ****创建模板阶段 *大致找内圆 fast_threshold (Image, Region, 128, 255, 20) conn卡尺-线-例子
*读图read_image (Image, 'D:/Project/PC/vision_2020/视库/样图/线路.bmp')get_image_size (Image, Width, Height)rgb1_to_gray (Image, Image) dev_get_window (WindowHandle)*在我们要检的边界上画线draw_line (WindowHandle, Row1, Column1, Row2, Column2)shapeParam:= [Rowhalcon视觉卡尺测量-@龙熙视觉培训
read_image (ImageModel, 'image/dip_switch_model.png') get_image_size (ImageModel, Width, Height) dev_open_window (0, 0, Width, Height, 'black', WindowHandle) dev_display (ImageModel) dev_set_draw ('margin') dev_set_color (&