A good approach for detecting lines in an image?

后端 未结 5 834
我在风中等你
我在风中等你 2021-01-30 10:59

I\'ve written some code that uses OpenCV libraries to detect white lines painted on grass. I need someone\'s opinion on the approach I used (as I\'m sure there\'s a much better

5条回答
  •  Happy的楠姐
    2021-01-30 11:52

    Following your last result (after the skeleton filter), you get many small segments. I think you're in a really good position at that point to implement what's been done in this article:

    http://www.cs.ubc.ca/~lowe/papers/aij87.pdf

    Basically, they provide tools to regroup different features in an image based on how likely they belong to a same object. So all you'd have to do is feed your results to their algorithm and you'd likely get a single line as a result.

提交回复
热议问题