当前位置:网站首页>Halcon shape_ trans

Halcon shape_ trans

2022-07-05 08:40:00 Aii parson

 read_image (Image, 'C:/Users/Administrator/Desktop/ Convexity .png')
rgb1_to_gray (Image, GrayImage)
binary_threshold (GrayImage, Region, 'max_separability', 'dark', UsedThreshold)# Fast binarization code with black and white background only

shape_trans (Region, RegionTrans, 'convex')

shape_trans (Region, RegionTrans, 'rectangle1')# The smallest circumscribed rectangle parallel to the coordinate axis

shape_trans (Region, RegionTrans, 'rectangle2')# Smallest circumscribed rectangle with angle

原网站

版权声明
本文为[Aii parson]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140541151422.html