line detection [closed]

asked 2015-09-29 21:06:48 -0500

Bloc123 gravatar image

image description

Hello, I was wondering if there was a better, more accurate way for detecting that line in my image above? It can detect it fine there, but sometimes, depending on the threshold value of both he canny and the HoughLines, the line does not come up consistently, I was going to make a loop to test it over several threshold values, but though I would turn to you guys to see if there is a better more accurate way of doing this? Thank you

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-06 04:49:12.121490


In this post, the Otsu method is used to get the min and max threshold for Canny.

Eduardo gravatar imageEduardo ( 2015-09-30 03:28:52 -0500 )edit

if you want to extract the horizontal lines you might want to try this approach. it might work in your case as well

theodore gravatar imagetheodore ( 2015-09-30 04:37:56 -0500 )edit