我正在使用HoughTransformP在OpenCV C ++中进行通道检测。
我检测线路的步骤顺序是基本的,如下所示:
1. Bird Eye View of image
2. Grayscale image
3. Guassian Blur image
4. Canny Edge detection
5. HoughTransformP canny image
6. Filter out horizontal lines based on the slope
canny边缘检测后的输出为:
这里的问题是HougLinesP给出了多行,而不仅仅是通道。输出看起来类似于:
我想获得这样的东西:
如何过滤杂乱的线条并仅绘制线条线?