Skip to content

npav5057/Lane-detection-for-autonomous-vehicles

Repository files navigation

Lane detection for autonomous vehicles

Lane detection of autonomous vehicles

Installation required -

sudo apt-get install python3-pip
pip3 install opencv-python
pip3 install scipy

How to run -

python3 lane_detection.py --input_image <image_path>

Also one can find other command line arguments using -

python3 lane_detection.py --help

Steps involved -

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 -

Some other Results -

Conclusion -

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.

References used -

Lane Detection for Autonomous Vehicles using OpenCV Library

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages