Automating Android Games with Python and OpenCV: Pong

  Рет қаралды 48,653

Engineer Man

Engineer Man

4 жыл бұрын

Pong becomes pretty easy when OpenCV is involved.
Hope you enjoyed the video!
Check out this code here:
github.com/engineer-man/youtu...
Join my Discord server to chat with me:
/ discord
Check out some code on my GitHub:
github.com/realtux
github.com/engineer-man/youtube
Come visit us on Reddit:
/ engineerman
Other Social:
/ _engineerman
/ engineermanyt

Пікірлер: 135
@LifelessNerd
@LifelessNerd 4 жыл бұрын
I love this series! Why stop?
@bokkenka
@bokkenka 4 жыл бұрын
Instead of if statements, use max() and min()...
@danesmith7774
@danesmith7774 4 жыл бұрын
I love opencv and it’s an awesome way to automate games. I once made a bot in an mmo using opencv for the fun of it. You should keep up the game automation series!
@daddyofalltrades
@daddyofalltrades 4 жыл бұрын
Thank you Sir so much for these inspirational videos. Your videos inspired me to pursue automation and I've completed my course in browser automation using Python.
@benthans
@benthans 4 жыл бұрын
Hi! Thank you for yet another great video.
@JO3Lzzz7948
@JO3Lzzz7948 4 жыл бұрын
Dude you're a beast man. Love your channel! 💪🏻
@rexcat180
@rexcat180 2 жыл бұрын
This a cool video, I think you could make do with the slow adb commands if you tried to predict the path that the ball traveled. You could run a linear fit on the first few screenshots and check if it would hit a wall or if it would go though the paddle area with a simple linear intersection calculation, that way you're only sending one swipe command instead of using all of the bandwidth that adb has to send a command for every y value. Collisions with the wall are pretty easy to model since they seem perfectly elastic, also even without doing that you could still use this approach but just start the fit over after a collision
@americoperez810
@americoperez810 3 жыл бұрын
Just ran across your video. Great Stuff! Really looking forward to the higher performance stuff because i'm currently battling with it myself. Specifically speed. I'm having a lot of trouble doing swipe gestures at fast speeds.
@atrumluminarium
@atrumluminarium 3 жыл бұрын
With regards to it missing the ball when it goes wild, there's probably something that can be done to improve it by leveraging the "deflections" off the walls. That way the paddle could go directly to the landing spot rather than follow the y-coord
@yerr234
@yerr234 4 жыл бұрын
omg how did i not find your channel earlier?! good stuff you just earned my sub
@husainjigar9669
@husainjigar9669 3 жыл бұрын
the man writes code like its his mother tongue lol
@ZacKoch
@ZacKoch 4 жыл бұрын
Great video! I think I know a way though you could possibly improve detection performance without rooting. KitKat and above includes a screen recording api. On my essential phone and nexus 6p i can reliably get about 60fps over USB-c.
@rappelz2011
@rappelz2011 4 жыл бұрын
i think PyVirtualDisplay would help a lot !
@ddimitrioglo
@ddimitrioglo 3 жыл бұрын
To get hands dirty and to have fun at the same time! I love your approach!
@felineentity
@felineentity 4 жыл бұрын
Ever since I saw someone using OpenCV to play the beach volleyball game in Mario Odyssey I really wanted to know how they did it, and I guess this explains the basics it pretty well. Thanks!
@keithschaub7863
@keithschaub7863 4 жыл бұрын
Excellent video. Recommend to improve performance WITHOUT rooting the phone to see how good you can get the performance. Will force best coding techniques - squeeze it as much as possible!
@alir8zana635
@alir8zana635 3 жыл бұрын
please do the high performance version
@jebstalp
@jebstalp 3 жыл бұрын
I'd love to see the next one. I'm working on a similar thing like this, but a little more complicated... Like, automating Pokemon go xD
@impossible441
@impossible441 4 жыл бұрын
That's quality content
@thearrowgamer1241
@thearrowgamer1241 4 жыл бұрын
I have learned a bunch of python things because of Engineer Man
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,9 МЛН
Automating Android Games with Python: Simon Says (Top Score)
11:31
Engineer Man
Рет қаралды 66 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 13 МЛН
Python OpenCV и цвета ▲ Как я создавал бота для Diablo 2
8:18
Чёрный Треугольник
Рет қаралды 39 М.
Engineer Breaks Down Hollywood Programming Scenes
11:02
Engineer Man
Рет қаралды 22 М.
Making Custom Resin Keycaps / RESIN ART
13:59
ResinWoodArt - jedrek29t
Рет қаралды 3,4 МЛН
Automating Android Basketball So Hard The Dunks Never Stop
8:13
Engineer Man
Рет қаралды 37 М.
AI Destroys a Mobile Game in Real-Time with OpenCV (Object Detection)
12:18
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4 МЛН
Automating Android Games with Python: Stick Hero
15:22
Engineer Man
Рет қаралды 383 М.
Dominating an Online Multiplayer Game using Python and OpenCV.
14:31
ClarityCoders
Рет қаралды 277 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН