Lane Finding - Python plays Grand Theft Auto 5 p.6

Channel:
Subscribers:
1,420,000
Published on ● Video Link: https://www.youtube.com/watch?v=CAr7UupSUh0



Grand Theft Auto V
Game:
Duration: 15:42
86,594 views
1,104


Now, the goal is to determine from these lines, which are likely our actual lanes.

I am just going to throw my function in. It's not the best, and I am hoping someone comes up with something better. That said, while we wait for a savior, my code works in the following way:

First, find the main lines. Next, find the groups of lines that are similar to eachother (by comparing slope and bias), and save these as "the same line." Next, take the two most common lines, and assume these must be our lanes. After we've done ROI, the next most likely "line" just simply is almost certain to be the lanes. That's the hypothesis anyway!

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-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
2017-04-03Terminal Commands and Navigation - Raspberry Pi and Python tutorials p.4



Tags:
machine learning
OpenCV
self-driving cars
Python
programming
lane finding
lane finder
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.