How to make advanced image recognition bots using python

preview_player
Показать описание
This video will show you how to make image recognition bots as fast as possible using Python. I will cover the basics of Pyautogui, Python, win32api and by the end, you should be able to make a bot for pretty much any game.

If this video helped you please consider subscribing and leaving a like, it helps a ton!

If you have any errors/suggestions please let me know!

Рекомендации по теме
Комментарии
Автор

IMPORTANT NOTE!!!!
Newer versions of pyautogui make the == None solution give an error. To solve that you can write it like this:

while 1:
try:

if is not None:
print("Yes")
time.sleep(0.5)
except
print("No")
time.sleep(0.5)


IMPORTANT NOTE!!!!


1. DO NOT USE PYCHARM OR VISUAL STUDIO WHEN RUNNING THE CODE.
These programs require additional setup which I did not include in the video. Please use the idle editor to RUN the code. Feel free to edit or write the code in any editor, but run it with idle.

2. ImportError: numpy.core.multiarray failed to import
This is due to the numpy 1.19.4 package which is required for opencv being broken. To fix it uninstall numpy with "pip uninstall numpy" and install the non-bugged version with "pip intall numpy==1.19.3"

3. Pillow package missing
For any of you that get "Pillow" package missing problems install it with "pip install Pillow" in the cmd

4. The script moves the mouse but doesn’t click:
This is due to the delay between the LEFT DOWN and LEFT UP in the click function being too low. This means that the click is happening too fast and that either your computer is too slow to register it or the computer or whatever program you are using detects it as a “fake click”. To fix it just add more delay, I recommend a time.sleep(0.5)

5. I am on Mac/Linux and can't install pywin32
You can use pyautogui.click(x, y) instead, a few comments mentioned that you can edit the click duration by setting pyautogui.PAUSE(0.1) to make the click last for 0.1 seconds for example

6. I can't rename a file to .py (Windows)
Open file explorer, click on the "view" tab and check the "View file name extensions" checkbox and then try again

7. I get permission errors / Don't see the "Edit with idle" button
Open windows search, search for IDLE, right click it, run as admin, press File-> Open (Or file->New if you want to create a new file) and go from there

8. Pip is not recognized as an internal or external command
You forgot to check the "add to path" checkbox when installing python
Uninstall python and reinstall it while making sure to check the checkbox or follow this stackoverflow post that explains how to add pip to path manually

9. while I: invalid syntax error
It's not the letter i, it's the number 1

KianBrose
Автор

Bruh, I don't even need to put this on 1.5× speed, it's already on it, 10/10 tutorial

turtle
Автор

PLEASE make more videos like this. Everything is easily understandable and the topic here is exactly what im interested in.

qklplsq
Автор

Tutorial "How to make advanced image recognition bots using python
" :
- Step 1 : Import a library that will do the advanced image recognition for you.
- Step 2 : press run

Fhezzz
Автор

This is the alpha chad of tutorials. Good speed, good info and good explanations.

Keep up the hard work!

goldanboy
Автор

I'm a beginner in python and the pace was perfect. I learned a bunch of new cool functions and how to use them. If anything I can always pause and go back. I really enjoyed the straight to the point style, very concise and informative!

Keep up the good work

jjb
Автор

that's a pretty good looking stickman, not gonna lie.

Vaxom
Автор

Im fairly new to python and this was perfect. The pacing was great, and you made sure to cover any question I might have had, for example what exactly certain commands do. I loved it. Great teacher.

monkieassasin
Автор

wow man, straight to the point and very educational for beginners like me. This is my first time I'm here, u are underrated!!

sak.
Автор

This tutorial is great. You didn't say something like "ignore this for now, I'll explain that later", at the same time you managed to explain everything pretty, and at the same time you kept your tutorial as short as you could, unlike lots of tutorial makers do. Subscribed at first sight! :)

imaginaoYouTubesoquecomarrobas
Автор

This guy literally explained what FOR loop is in image recognition video, it would really help beginners to understand what's happening in the video, Keep up the good work!!

toshitsingh
Автор

Goddamn that's one of the best beginner friendly tutorials I've seen in a while. Gj!

rasdek
Автор

Dude I thought this was one of those joke parody videos as you were going so fast,
I actually understood everything, and you taught a program in 4 minutes.
It's actually a great skill, much love dude👍🔥❤️

trebelojaques
Автор

Thanks, this is exactly what i was looking for! These beginner oriented videos are very useful to someone like me

alida
Автор

Not only good programming, fun, and a good sense of humor.
I like your editing, and how the text is put, like jokes like inhale.

codingwithflavio
Автор

I think it's so funny how you actually explain what a foor loop is, as if anyone not knowing how to code would still be able understand anything at that point

Leo-iobq
Автор

Me: Makes a Calculator in pyton

Friend that i dont have: Ohh so your a hacker.

KWAKZ
Автор

This tutorial is very fast paced, short and concise yet covers all the information you need even as a beginner.

Perfect.

MarcusVey
Автор

This video really saved me because i am doing a minecraft mining bot and the lava detection was way to slow and this method of checking the rgb values of the pixels really helped me

tomfiszelson
Автор

Youtube recommendation made something great today, a new subscriber here. Love the simplicity, you teach me something new in less than an hour. Thumbs up!

HonorOfKingsKong