Thick horizontal line detection

2019-09-11 02:04发布

Please suggest me some methods on thick horizontal line detection in images. Any papers, libraries etc please.

3条回答
Evening l夕情丶
2楼-- · 2019-09-11 02:22

OpenCV is a good library. You may use a Hough transform to detect lines.

Note that the answer may depend on the quality of your images, some methods can be more effective that other ones.

查看更多
\"骚年 ilove
3楼-- · 2019-09-11 02:24

If the line images are really easy to detect (say you can find the line from ten yards away), just scale the image from (width, height) to (1, height) and find the y-coordinate of the darkest pixel. Use CV_INTER_AREA when resizing.

查看更多
祖国的老花朵
4楼-- · 2019-09-11 02:30

Binary threshold the image, then use a combination of morphological operations to detect "borders that are thicker then N1 but thinner than N2" to produce several images and combine (logically AND) them to selectively detect borders of a certain expected thickness.

查看更多
登录 后发表回答