Lane detection of autonomous vehicles
sudo apt-get install python3-pip
pip3 install opencv-python
pip3 install scipy
python3 lane_detection.py --input_image <image_path>
Also one can find other command line arguments using -
python3 lane_detection.py --help
Read image -
Canny edge detection -
Image mask -
If first mask don't work then i am using 2nd mask and so on. In worst case, i will use four mask.
Find ROI using image mask -
Detecting, classifying and averaging left and right lines with the help of hough transform -
Cropping and giving final result -
I implimented lane detection using image processing techniques. Further improvement in this project may be find distance of nearest vehicle in the lane detected, so that accidents can be avoided.