开启左侧

如何识别图像中的裂缝,求大神指教

[复制链接]
wxj8369@126.com 发表于 2017-6-20 16:08:48 | 显示全部楼层 |阅读模式
如何识别图像中的裂缝,求大神指教
image.png
chinajoan0 发表于 2017-8-11 14:28:51 | 显示全部楼层

这个打光很有难度分晰
阿凡阿凡么么么 发表于 2018-6-27 16:25:33 | 显示全部楼层
不知道是不是你想要的效果


1.png
1.png
goodguychung 发表于 2018-9-12 13:19:24 | 显示全部楼层
阿凡阿凡么么么 发表于 2018-6-27 16:25
不知道是不是你想要的效果

大神,好奇您這是怎麼算出來的,能否提供一下算法供參考
阿凡阿凡么么么 发表于 2018-9-13 11:15:04 | 显示全部楼层

  1. dev_update_off ()
  2. dev_close_window ()
  3. read_image (Image, 'F:/Halcon练习/图片库/154602f0cycvx5zbe6p0bx.png')
  4. invert_image (Image, ImageInverted)
  5. get_image_size (Image, Width, Height)
  6. dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
  7. set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
  8. dev_display (Image)


  9. gen_sin_bandpass (ImageBandpass, 0.4, 'none', 'rft', Width, Height)
  10. rft_generic (ImageInverted, ImageFFT, 'to_freq', 'none', 'complex', Width)
  11. convol_fft (ImageFFT, ImageBandpass, ImageConvol)
  12. rft_generic (ImageConvol, Lines, 'from_freq', 'n', 'byte', Width)

  13. threshold (Lines, Region, 5, 255)
  14. connection (Region, ConnectedRegions)
  15. stop()
  16. select_shape (ConnectedRegions, SelectedRegions, 'width','and', 500, 99999)
  17. dilation_circle (SelectedRegions, RegionDilation, 5.5)
  18. union1 (RegionDilation, RegionUnion)

  19. dev_set_draw ('margin')
  20. dev_set_line_width (3)
  21. dev_set_colored (12)
  22. dev_display (Image)
  23. dev_display (RegionUnion)
  24. dump_window_image(Image1, WindowHandle)
  25. write_image(Image1, 'bmp', 0, 'F:\\Halcon练习\\1.bmp')
复制代码





我是在一个例程中看到的,试着用你的图片测了一下,看着差不多。
YnioBa 发表于 2019-5-10 05:48:10 | 显示全部楼层
阿凡阿凡么么么 发表于 2018-9-13 11:15
我是在一个例程中看到的,试着用你的图片测了一下,看着差不多。

这个站点貌似就一个裂缝检测的帖子
xushiqiang 发表于 2020-5-6 09:12:00 | 显示全部楼层
你好,看你路面裂缝识别的很好了,能跟你学习一下吗,QQ522457645
薛定谔的胃 发表于 2020-6-22 21:41:58 | 显示全部楼层
阿凡阿凡么么么 发表于 2018-9-13 11:15
我是在一个例程中看到的,试着用你的图片测了一下,看着差不多。

请问这个例子在哪里,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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