I am applying the approach by Naoki Shibuya, which uses moviepy for splitting a video file into sequential images, and then applying the lane detection algorithm. This draws red markers over detected lanes in dashcam footage.
Overall, the Canny Edge Detection algorithm worked well once I cropped out the yellow text my dashcam overlays on the footage from the area of interest. However, it’s not perfect as you see in this sample clip where:
- I change lanes and the right line detector goes wonky.
- I pass a turn off and the left lane marker vanishes.
- I pass a police officer writing a ticket to a fool in a jacked-up pickup truck.
Overall, this algorithm does a pretty good job of detecting lanes in dashcam footage, however taking 30 minutes or more to process 3 minutes of dashcam footage isn’t a reasonable approach. I would not want to drive in that vehicle!
So, in future, I will consider ways to improve this processing rate, ideally through smarter algorithms for lane detection.