Chapter 3: Lane Detection
This chapter will show one of the incredible things possible using computer vision in general and OpenCV in particular: lane detection. You will learn how to analyze an image and build more and more visual knowledge about it, one step after another, applying several filtering techniques, replacing noise and approximation with a better understanding of the image, until you will be able to detect where the lanes are on a straight road or on a turn, and we will apply this pipeline to a video to highlight the road.
You will see that this method relies on several assumptions that might not be true in the real world, though it can be adjusted to correct for that. Hopefully, you will find this chapter quite interesting.
We will cover the following topics:
- Detecting lanes in a road
- Color spaces
- Perspective correction
- Edge detection
- Thresholding
- Histograms
- The sliding window algorithm
- Polynomial fitting
- Video filtering ...