Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.56 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.56 KB

Perception: Lane Detection

Lane detection and turn prediction.

Dependencies

The following packages must be installed to run this code:

  1. cv2
  2. sys (std lib)
  3. numpy (std lib)
  4. os (std lib)
  5. sklearn

Histogram Equalization Run Instructions

To run histogram equalization script, run

python histogram_equalization.py

Lane Detection Run Instructions

The lane_detection.py script handles multiple functions. Firstly, it runs the computer vision and detection algorithms for the two sample videos. Second, the script has functionality for enabling the user to choose custom corners for each video. These corners will be used in the homography steps. Lastly, the script also has a function for generating the data1 video from the given images. See how to run these scripts below.

Please follow the terminal instructions once a program is run.

To run the lane detection script, run

lane_detection.py

with the following command line arguments:

  1. Run lane detection on the non-challenge video:
python lane_detection.py
  1. Run lane detection on challenge video:
python lane_detection.py challenge
  1. Execute manual corner finder on non-challenge video:
python lane_detection.py def_lane_corners
  1. Execute manual corner finder on challenge video:
python lane_detection.py challenge def_lane_corners
  1. Generate non-challenge video from its images:
python lane_detection.py gen_video

Google drive link: https://drive.google.com/file/d/1PzHiNrufgPPxtGy0a7LFq5cR81-JrZWi/view?usp=sharing