- 2024-08-28卡尺找边
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_
- 2024-06-20[机器视觉]halcon应用实例 边缘检测
一个学习找边的实例边缘检测的步骤图解步骤1.通过Blob方法获取需要测量的Region1.1主要运用图像形态学、二值化2.创建测量句柄2.1create_metrology_model(MetrologyHandle)3.设置目标图像大小
- 2023-08-11找圆
dev_close_window()read_image(Image,'测量/0.bmp')get_image_size(Image,Width,Height)dev_open_window(0,0,Width,Height,'black',WindowHandle)dev_display(Image)*画圆draw_circle(WindowHandle,Row,Column,Radius)*创建测量句柄
- 2023-08-11找直线
1dev_close_window()2read_image(Image,'测量/0.bmp')3get_image_size(Image,Width,Height)4dev_open_window(0,0,Width,Height,'black',WindowHandle)56dev_display(Image)78*绘制直线9draw_line(Window
- 2023-08-11两条直线轮廓的距离
1dev_close_window()2read_image(Image,'测量/0.bmp')3get_image_size(Image,Width,Height)4dev_open_window(0,0,Width,Height,'black',WindowHandle)56dev_display(Image)78*绘制直线9draw_line(WindowHan