2020-02-15 13:33:01 -0600 | received badge | ● Notable Question (source) |
2019-06-17 07:15:01 -0600 | received badge | ● Popular Question (source) |
2016-06-27 11:45:29 -0600 | received badge | ● Scholar (source) |
2016-06-27 11:45:25 -0600 | answered a question | HoughLinesP line gap parameter eliminating lines Alright, it turns out the HoughLinesP function was interpreting my parameters incorrectly. To solve this, I added the names of the parameters, and everything works fine! |
2016-06-24 14:09:51 -0600 | asked a question | HoughLinesP line gap parameter eliminating lines Hi, very new to OpenCV (and image processing), been working to get line detection up and running using HoughLinesP. My code is below, with my input image following, which is drawn in paint (although eventually I'll be moving on to images captured using mobile cameras). The code is mostly from the tutorial on HoughLines Before running the Hough transform, I skeletonize the image to get it down to 1 px (this isn't a perfect skeletonization as the lines get broken near the intersections) Finally, the output from HoughLines gives this. Overall this image does the job pretty well, but I wanted to eliminate the gap between some of the line segments. Turning up the maxLineGap to 1, however, makes some of the lines disappear. Based on what I read my assumption is that any line that is within maxLineGap to another is joined with it--is this incorrect? Also, is there a good method to go about tuning the parameters of HoughLinesP? My input image is fairly trivial, so I'm not sure what is causing the small breaks that occur in some of the larger line segments. Thanks for any help. |