Halcon在执行threshold_sub_pix算子的时候,有几率抛出异常“Not enough memory available”。
查询手册,异常代码为:H_ERR_MEM 6001 Not enough memory available
解决方法:使用threshold算子替代即可。
异常代码:
threshold_sub_pix (ImageReduced, Border, threshold)
改善后
threshold(ImageReduced, Region1, threshold, 255)
gen_contour_region_xld(Region1, Border, 'border_holes')
版权声明:本文为oShouQianShou原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。