记录下平时用halcon时出现的错误
1.read_image读取图片错误
*drawMode:=0绘制模式/drawMode:=1读取模式
drawMode:=1
dev_close_window ()
dev_set_draw ('margin')
dev_open_window (0, 0, 640, 480, 'black', WindowHandle)
list_image_files ('pic12', 'bmp', [], ImageFiles)read_image (Image, ImageFiles[0])
发现是路径错误了,改为下面的就好了
list_image_files ('D:/GS_VISION/环氧胶检测/测试图片/pic12', 'bmp', [], ImageFiles)