read_image (Image, '1.bmp')
count_obj (Image, Number)
if(Number<=0)
return()
endif
min_max_gray (Image, Image, 0, Min, Max, Range)
if(Min<1)
*图像过暗
endif
if(Max>254)
*图像过曝
endif
halcon测试一张图片是否过曝或过暗
最新推荐文章于 2024-06-28 14:25:17 发布