Halcon求角度
*读取图像
read_image (Image, 'D:/image/bilibili/photo/示例轮廓.bmp')
binary_threshold (Image, Region, 'max_separability', 'dark', UsedThreshold)
*找到最外围大圆
connection (Region, ConnectedRegions)
fill_up (ConnectedRegions, RegionFillUp)
opening_circle (RegionFillUp, RegionOpening, 13.5)
select_shape (RegionOpening, SelectedRegions1, ['area','circularity'], 'and', [145872

本文详细介绍了使用Halcon库进行图像处理,包括读取图像、边缘检测、寻找最外围和内部圆、区域减影、形状选择、角度测量等步骤,最终实现对图像中特定圆环区域的分析并计算角度。
最低0.47元/天 解锁文章
2043

被折叠的 条评论
为什么被折叠?



