Thick horizontal line detection

淺唱寂寞╮ 提交于 2019-12-13 04:09:24

问题


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


回答1:


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.




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/3146196/thick-horizontal-line-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!