When we drive, we use our eyes to decide where to go. The lines on the road that show us where the lanes are act as our constant reference for where to steer the vehicle. Naturally, one of the first things we would like to do in developing a self-driving car is to automatically detect lane lines using an algorithm.
- Describe your pipeline. As part of the description, explain how you modified the draw_lines() function.
My pipeline consisted of some steps.
In order to draw lines on the left and right lanes, I converted the lines from Hoff to a slope greater than 0.4 and less than 0.8. Divide these lines into positive and negative (left and right), and find the average slope, and the average BIAS, find <code>y=mx+b</code>, find the points at the bottom and bottom of MASK, and draw them.
At present, I use the weight method to balance the offset and noise, but there will still be some slight errors. I think I can enhance the image pre-processing.