OpenCV 3.2.0 HoughLinesP returns out of bounds lines (C++)
问题 I've been trying to detect some lines (on edges) in live webcam images, so I tried to do canny edge detection followed by hough transform using C++ version of OpenCV 3.2.0. There shouldn't be any issues since using HoughLinesP looks straightforward, but it seems that I can't make it work. The problem is that the vector output that is supposed to contain detected lines, is filled with a couple million of garbage results ! This is how I call HoughLinesP: vector<Vec4i> lines; HoughLinesP(cannyd,