line detection [closed]
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
In this post, the Otsu method is used to get the min and max threshold for Canny.
if you want to extract the horizontal lines you might want to try this approach. it might work in your case as well