Ask Your Question

How to find curved line in Lane Detect

asked 2016-12-06 15:46:49 -0500

kandenian gravatar image

Hello, there!

I am currently making a program that detects the lane from the image for studying. I succeeded in finding a straight line using the huff translation function(using openCV Lib). But, There was no processing for images with curved lanes. I searched for searching for the Curve in everywhere, but could not find any suitable data or samples.

If you have any sample code or data I can refer to, please let me know. Thx!

edit retag flag offensive close merge delete



Basically HoughLines, in whatever form, will never give you a curve, because it is looking for straight lines ... you will need to change your approach!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-12-07 03:15:58 -0500 )edit

Thank you for answer. If so, how would I like to approach it ... I do not know what keywords to search for. Have you ever had a good idea about it?

kandenian gravatar imagekandenian ( 2016-12-09 08:40:28 -0500 )edit

You should look into generalized hough transforms.. but it will be challenging!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-12-20 07:01:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-06 19:30:19 -0500

Tetragramm gravatar image

Well, you can try the HoughLinesP function as shown in THIS tutorial.

Please check out the FAQ. We help when you have specific questions about OpenCV, this is too close to the "homework help" that we don't do.

edit flag offensive delete link more


Thank you for answer. But I am not doing homework now, I do not need a huff translation for the straight line, and because the part is already done by myself, your answer did not help. Sorry.

kandenian gravatar imagekandenian ( 2016-12-09 08:38:01 -0500 )edit

You do realize there's more than one HoughLines function. The second one can be used to find curved lines, in some situations. It finds segments, so if you find several line segments following a curve...

Tetragramm gravatar imageTetragramm ( 2016-12-09 13:35:13 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-12-06 15:43:11 -0500

Seen: 4,705 times

Last updated: Dec 06 '16