Self-driving Car - Python plays Grand Theft Auto 5 p.7

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=CLFp9D9-0Eo



Grand Theft Auto V
Game:
Duration: 15:10
246,567 views
4,517


As I was contemplating the next steps, I was curious about a couple of choices for Artificially Intelligent driving. One thought I had was that we could detect both lanes, and then attempt to orient the car in between the two lanes, so long as those two lanes had different slopes.

...then I began to think about it, and wondered if the problem coudl be even more simple than that. I noticed that the times when the lanes would "both" be on one side or the other was when we were getting to close to one of the edges.

So next I wondered, hmm, what if we just work with the following logic:

If one lane's slope is positive, and the other is negative, then we're fine, continue straight.

If both lane's slopes are negative, then we're too far left, and we should turn right.

If both lane's slopes are posotive, then we're too far right, and we should turn left.

...surely it can't be that simple right?

Project Github: https://github.com/sentdex/pygta5
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex




Other Videos By sentdex


2017-06-20Self-driving cars with Python and TensorFlow update v0.03
2017-06-01AI Agent Changes 0.01-0.03 - Python plays GTA p.16
2017-05-08Stream, FPV, and more data - Python plays GTA p.15
2017-04-21Self driving car neural network in the city - Python plays GTA with Tensor Flow p.14
2017-04-18A more interesting self-driving neural network model - Python plays GTA p.13
2017-04-18Testing self driving neural network model - Python plays GTA p.12
2017-04-18Training convolutional neural network for self-driving - Python plays GTA p.11
2017-04-18Balancing self-driving training data - Python plays GTA p.10
2017-04-18Next steps for self-driving vehicles - Python plays GTA p.8
2017-04-18Neural Network Training Data for self-driving - Python plays GTA p.9
2017-04-10Self-driving Car - Python plays Grand Theft Auto 5 p.7
2017-04-10Lane Finding - Python plays Grand Theft Auto 5 p.6
2017-04-10Line Finding with Hough Lines - Python plays Grand Theft Auto 5 p.5
2017-04-10ROI - Python plays Grand Theft Auto 5 p.4
2017-04-10Direct Input - Python plays Grand Theft Auto 5 p.3
2017-04-10OpenCV - Python plays Grand Theft Auto 5 p.2
2017-04-10Intro and Screen reading - Python plays Grand Theft Auto V p.1
2017-04-04Garage Stop Light GPIO project - Raspberry Pi and Python tutorials p.8
2017-04-04Distance Sensor GPIO cont'd - Raspberry Pi and Python tutorials p.7
2017-04-03GPIO Basics with LED light - Raspberry Pi and Python tutorials p.6
2017-04-03Camera Module - Raspberry Pi and Python tutorials p.5



Tags:
machine learning
OpenCV
self-driving cars
Python
programming
TensorFlow Grand Theft Auto V
artificial intelligence
AI
Grand Theft Auto 5
GTA V
GTAV
GTA5
GTA 5



Other Statistics

Grand Theft Auto V Statistics For sentdex

At this time, sentdex has 1,697,670 views for Grand Theft Auto V spread across 10 videos. There's close to 2 hours worth of content for Grand Theft Auto V published on his channel, less than 0.88% of the total video content that sentdex has uploaded to YouTube.