draw_rectangle1

draw_rectangle1

鼠标左键拉出一个矩形,右键结束,可以和用户交互

read_image(Image, 'D:\\2.png')
* 获取图片的大小
get_image_size(Image, Width, Height)

dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
*显示图片
dev_display (Image)
dev_set_color('red')
draw_rectangle1 (WindowHandle, Row1, Column1, Row2, Column2)
gen_rectangle1 (Rectangle,Row1, Column1, Row2, Column2)
 
dev_display (Image)

你可能感兴趣的:(【halcon】,计算机视觉,视觉检测)