Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 921 Bytes

README.md

File metadata and controls

15 lines (15 loc) · 921 Bytes

lane-detection

cv project for detecting lanes while driving

  1. Extracting a frame’s data from the video
  2. Converting a frame from the video to RGB from BGR
  3. Getting the frame shape (height and width)
  4. Defining a region of interest to run the algorithm on, we chose an ROI in a shape of a small triangle so that it will cover the width of the driving lane and will converge ahead of the car
  5. Defined two functions, one that is covering everything else that it is not in our region of interest, and the other one is a function for drawing the lines of the lanes.
  6. Starting a while loop for the code to run on each frame at a time
  7. Converted the image to gray scales and applied canny mask on it, after that we used the function that covers everything else part for our ROI, on the canny image we created
  8. Applied the lanes function to draw the lanes on the frame