Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to detect curved lines with openCV

Hello, I am trying to detect curved lines with openCV. I have an image, I apply blur to enhance the contrast and make the lines more visible, then I convert it to gray, and then I apply Canny edge detection. And Until here it works good

image description

From here, i need to identify the three lines. I use HoughTransformP for these purposes.

image description

And I use these parameters: threshold 20, rho 1.7, min Line length 0, max line gap 0

I I use an higher max line gap value, some lines are connected, but also artifacts appears when lines are close.

image description

Does anyone have suggestion about how to proceed?