设置首页收藏本站
12
返回列表 发新帖
开启左侧

焊缝检测,求大佬帮助

[复制链接]
hankchang 发表于 2025-3-19 12:36:36 | 显示全部楼层
本帖最后由 hankchang 于 2025-3-19 12:43 编辑

read_image (Image, 'C:/Users/genel/OneDrive/桌面/173106mh3g5kvfl7p3wg57.png')
get_image_size(Image, Width, Height)
binary_threshold(Image, Region, 'max_separability', 'dark', UsedThreshold)
reduce_domain(Image, Region, ImageReduced)
scale_image_max(ImageReduced, ImageScaleMax)
pow_image(ImageReduced, PowImage, 2)
scale_image_max(PowImage, ImageScaleMax1)
emphasize (ImageScaleMax1, ImageEmphasize, 17, 17, 2)
gray_opening_rect (ImageEmphasize, ImageOpening, 121, 7)
var_threshold(ImageOpening, Region1, 25, 25, 0.05, 2, 'light')
opening_rectangle1(Region1, RegionOpening, 5, 30)
connection(RegionOpening, ConnectedRegions)
select_shape(ConnectedRegions, SelectedRegions, ['height','column'], 'and', [400,Width/2.0-70], [700,Width/2.0+70])

2025-03-19 12 35 09.jpg
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
大凡光学,专注标定板提供
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表