tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code15:42

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

sentdex ↗

From the creator

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

Published 2017-04-10 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code