设为首页收藏本站
授权版本:2024_07
开启左侧

求助 谁能帮我扣出这个鸡蛋轮廓

[复制链接]
256214 发表于 2024-3-16 23:21:18 | 显示全部楼层 |阅读模式
有那个大神可以帮忙看看轮廓怎么扣吗 搞了好几天上面和下面解决不了
20240316174349.jpg

奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
hanlin9523 发表于 2024-3-17 22:55:53 | 显示全部楼层
  1. read_image (Egg, 'C:/Users/86131/Desktop/egg.jpg')
  2. scale_image_max (Egg, ImageScaleMax)
  3. threshold (ImageScaleMax, Region, 70, 255)
  4. opening_circle (Region, RegionOpening, 100)
  5. opening_circle (Region, RegionOpening1, 30)
  6. get_image_size (ImageScaleMax, Width, Height)
  7. gen_rectangle1 (Rectangle, Height/2, 0, Height, Width)
  8. intersection (Rectangle, RegionOpening1, RegionIntersection)
  9. union2 (RegionIntersection, RegionOpening, RegionUnion)
  10. reduce_domain (ImageScaleMax, RegionUnion, ImageReduced)
  11. edges_sub_pix (ImageReduced, Edges, 'canny', 1, 20, 40)
  12. select_shape_xld (Edges, SelectedXLD, 'contlength', 'and', 150, 99999)
  13. union_adjacent_contours_xld (SelectedXLD, UnionContours, 500, 1, 'attr_keep')
  14. gen_region_contour_xld (UnionContours, Region1, 'filled')
  15. difference (RegionUnion, Region1, RegionDifference)
  16. connection (RegionDifference, ConnectedRegions)
  17. select_shape_std (ConnectedRegions, SelectedRegions, 'max_area', 70)
  18. union2 (SelectedRegions, Region1, RegionUnion1)
  19. gen_contour_region_xld (RegionUnion1, Contours, 'border')
复制代码
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
wjjun 发表于 2024-3-18 08:55:33 | 显示全部楼层
腻害呀!!!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon2016 发表于 2024-3-18 10:39:12 | 显示全部楼层
2024-03-18_103807.png

  1. read_image (Image232016tmencxqfj5xsjmqd, 'C:/Users/Administrator/Desktop/232016tmencxqfj5xsjmqd.jpg')
  2. mean_image (Image232016tmencxqfj5xsjmqd, ImageMean, 350, 450)
  3. dyn_threshold (Image232016tmencxqfj5xsjmqd, ImageMean, RegionDynThresh, 5, 'light')
  4. fill_up (RegionDynThresh, RegionFillUp)
  5. opening_circle (RegionFillUp, RegionOpening, 63.5)
  6. opening_circle (RegionFillUp, RegionOpening1, 163.5)
  7. complement (RegionOpening, RegionComplement1)
  8. expand_gray (RegionOpening1, Image232016tmencxqfj5xsjmqd, RegionComplement1, RegionExpand, 'maximal', 'image', 3)
  9. opening_circle (RegionExpand, RegionOpening2, 17.5)
复制代码


奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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