Sitemap

Writing is for everyone.Register for Medium Day

TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

DeepPiCar Series

DeepPiCar — Part 5: Autonomous Lane Navigation via Deep Learning

Use Nvidia’s End-to-End Deep Learning approach to teach our PiCar to navigate lanes autonomously.

13 min readMay 3, 2019

Executive Summary

Welcome back! If you have read through DeepPiCar Part 4, you should have a self-driving car that can navigate itself pretty smoothly within a lane. In this article, we will use a deep-learning approach to teach our PiCar to do the same, turning it into a DeepPiCar. This is analogous to how you and I learned to drive, by observing how good drivers (such as our parents or driving school coaches) drive and then start to drive by ourselves and learn from our own mistakes along the way. Note that for most of this article, you don’t need to have the DeepPiCar to follow along, as we will do the deep-learning on Google’s Colab, which is free.

Press enter or click to view image in full size

Introduction

Recall in Part 4, we hand engineered all the steps required to navigate the car, i.e. color isolation, edge detection, line segment detection, steering angle computation, and steering stabilization. Moreover, there were quite a few parameters to hand tune, such as upper and lower bounds of the color blue, many parameters to detect line segments via Hough Transform…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web
Already have an account? Sign in
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

David Tian
David Tian

Written by David Tian

Hacker, tinkerer, and engineer. I am passionate about machine learning, AI, and anything technology related. DeepPiCar GitHub: https://github.com/dctian

Responses (10)

Write a response

Hi David,
There’s a error code(‘DeepPiCar.py’) of saving lane following video.
No video is saved due to the ‘none exist folder’.
Error Code :
self.video_orig =self.create_video_recorder(‘../data/tmp/car_video%s.avi’…
Corrected Code :
self.video_orig…

8

Hi David, great job!
Would you make this chapter's video available to check? YouTube reports it as private.

1

Hi!
I have got the OpenCV lane tracking to work, collected the data and trained the network but when I run the network on the car it doesn't seem to be able to follow the lane very well and keeps turning to the left out of the lane.
Everything else…