* 图片文件路径
list_files ('D:/DeskTop/******', ['files','follow_links'], ImageFiles)
* 筛选图片文件(bmp/jpg)
tuple_regexp_select (ImageFiles, ['\\.(bmp|jpg)$','ignore_case'], ImageFiles)
* 遍历文件
for Index := 0 to |ImageFiles| - 1 by 2
read_image(image, ImageFiles[Index])
* 图像处理代码段 ******
********************
*********
endfor
Halcon批量读取图片或TXT文件
于 2023-03-27 14:44:28 首次发布