OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Thu, 02 Jun 2016 02:42:11 -0500geometric models for lane detection and trackinghttp://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/Hi,
I have searched geometric models (e.g.: straight line, circular arc, polinomals, splines etc.) to make some assumptions about the road’s structure. After I define model, I will fit the extracted features with the geometric model by using different methods like Least Squares Method, Least Median Squares, RANSAC etc.
As a start, I will use straight line for highway scenario and then continue with others (e.g.: spline models for curves). I understand the general idea. I am looking for a clue about how to implement geometric lane models in OpenCV or C++. Any suggestions?
Regards,
SuleymanWed, 07 May 2014 15:26:40 -0500http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/Comment by StevenPuttemans for <p>Hi,</p>
<p>I have searched geometric models (e.g.: straight line, circular arc, polinomals, splines etc.) to make some assumptions about the road’s structure. After I define model, I will fit the extracted features with the geometric model by using different methods like Least Squares Method, Least Median Squares, RANSAC etc.</p>
<p>As a start, I will use straight line for highway scenario and then continue with others (e.g.: spline models for curves). I understand the general idea. I am looking for a clue about how to implement geometric lane models in OpenCV or C++. Any suggestions? </p>
<p>Regards,</p>
<p>Suleyman</p>
http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=32999#post-id-32999I don't really think you should model a lane besides storing some way of straightness and lines combined. If you for example do a Hough approach, it could lead you to lines resulting in lanes. Calculating distance in between results in amount of lanes, resulting in stating if your are on a certain lane yes or no. Getting what I suggest?Thu, 08 May 2014 06:37:23 -0500http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=32999#post-id-32999Comment by StevenPuttemans for <p>Hi,</p>
<p>I have searched geometric models (e.g.: straight line, circular arc, polinomals, splines etc.) to make some assumptions about the road’s structure. After I define model, I will fit the extracted features with the geometric model by using different methods like Least Squares Method, Least Median Squares, RANSAC etc.</p>
<p>As a start, I will use straight line for highway scenario and then continue with others (e.g.: spline models for curves). I understand the general idea. I am looking for a clue about how to implement geometric lane models in OpenCV or C++. Any suggestions? </p>
<p>Regards,</p>
<p>Suleyman</p>
http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=33029#post-id-33029Start by detecting line and calculate relations between them.Fri, 09 May 2014 01:46:51 -0500http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=33029#post-id-33029Comment by sy456 for <p>Hi,</p>
<p>I have searched geometric models (e.g.: straight line, circular arc, polinomals, splines etc.) to make some assumptions about the road’s structure. After I define model, I will fit the extracted features with the geometric model by using different methods like Least Squares Method, Least Median Squares, RANSAC etc.</p>
<p>As a start, I will use straight line for highway scenario and then continue with others (e.g.: spline models for curves). I understand the general idea. I am looking for a clue about how to implement geometric lane models in OpenCV or C++. Any suggestions? </p>
<p>Regards,</p>
<p>Suleyman</p>
http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=33019#post-id-33019I didn't get it, can you specify little bit? Thu, 08 May 2014 11:46:46 -0500http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?comment=33019#post-id-33019Answer by Siegfried for <p>Hi,</p>
<p>I have searched geometric models (e.g.: straight line, circular arc, polinomals, splines etc.) to make some assumptions about the road’s structure. After I define model, I will fit the extracted features with the geometric model by using different methods like Least Squares Method, Least Median Squares, RANSAC etc.</p>
<p>As a start, I will use straight line for highway scenario and then continue with others (e.g.: spline models for curves). I understand the general idea. I am looking for a clue about how to implement geometric lane models in OpenCV or C++. Any suggestions? </p>
<p>Regards,</p>
<p>Suleyman</p>
http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?answer=95417#post-id-95417 Hi,
I agree with the comment from StevenPuttemans. You should not use different models and try to combine them. To detected the lane markers use a model which approximates the lane markers good enough and which can be easily calculated (e.g. BSplines). Then after detecting the lane markers you can use this information to get the drive lane.
At DARPA Urban Challenge the Team Caltech developed an approach which works very good and runs in real-time.
See website from Mohamed Aly [here](http://vision.caltech.edu/malaa/research/lane-detection/).There he also presents pictures and videos of the results.
He also published a paper
> Mohamed Aly, Real time Detection of Lane Markers in Urban Streets, IEEE Intelligent Vehicles Symposium, Eindhoven, The Netherlands, June 2008.
The paper is available [here](http://vision.caltech.edu/malaa/publications/aly07sensing.pdf) and the source code [here](https://code.google.com/archive/p/caltech-lane-detection/).
Thu, 02 Jun 2016 02:42:11 -0500http://answers.opencv.org/question/32957/geometric-models-for-lane-detection-and-tracking/?answer=95417#post-id-95417