How to make advanced image recognition bots using python

  Рет қаралды 1,428,142

Kian Brose

Kian Brose

Күн бұрын

Пікірлер: 5 500
@KianBrose
@KianBrose 4 жыл бұрын
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 pyautogui.locateOnScreen('image.png') is not None: print("Yes") time.sleep(0.5) except pyautogui.ImageNotFoundException: 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
@sumbo8452
@sumbo8452 4 жыл бұрын
When I start the program, the mouse doesn't move, but the debug says, that it has moved. When I move my cursor, the cursor jumps to the place, where it is supposed to be. So I have to constantly wiggle my mouse back and forward for it to go where it is supposed to. What should I do?
@KianBrose
@KianBrose 4 жыл бұрын
I'm not sure what you mean by "doesn't move", does it move but not click or literally not do anything? Do you have python 3.7 64 bit? Are you running it FROM IDLE?
@sumbo8452
@sumbo8452 4 жыл бұрын
@@KianBrose Does not move or click or do anything until I touch my mouse. Then it jumps to the correct spot.
@KianBrose
@KianBrose 4 жыл бұрын
@@sumbo8452 Can you show the code through pastebin?
@KianBrose
@KianBrose 4 жыл бұрын
@@sumbo8452 Ah i see, the issue in your script is that in the while loop you have a TON of unnecessary delays. remove all of the time.sleep's from the while loop and try again
@turtle8558
@turtle8558 3 жыл бұрын
Bruh, I don't even need to put this on 1.5× speed, it's already on it, 10/10 tutorial
@KianBrose
@KianBrose 3 жыл бұрын
You might even have to slow it down lmao
@Walking_W
@Walking_W 3 жыл бұрын
@@KianBrose already have lmao
@KianBrose
@KianBrose 3 жыл бұрын
@The Clutcher the alt tab mastermind
@turtle8558
@turtle8558 3 жыл бұрын
@@SquidBeats I don't think this has anything to do anything here
@yashank_singh
@yashank_singh 3 жыл бұрын
@@turtle8558 its a bot on a bot making tutorial. THE AI IS GETTING SMARTER!
@Fhezzz
@Fhezzz 3 жыл бұрын
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
@KianBrose
@KianBrose 3 жыл бұрын
Pretty much
@thehoodshooter1985
@thehoodshooter1985 3 жыл бұрын
What library can I download?
@JojonathanOliveira
@JojonathanOliveira 3 жыл бұрын
"Tutorial"
@okonkwo.ify18
@okonkwo.ify18 3 жыл бұрын
😂
@blackenedistheend
@blackenedistheend 2 жыл бұрын
@@thehoodshooter1985 Please tell me if have found the the answer
@user-qk2lp2ls6q
@user-qk2lp2ls6q 4 жыл бұрын
PLEASE make more videos like this. Everything is easily understandable and the topic here is exactly what im interested in.
@KianBrose
@KianBrose 4 жыл бұрын
working on one
@ygate4546
@ygate4546 4 жыл бұрын
@@KianBrose Nice work do you have a discord server ?
@shayaankabir7302
@shayaankabir7302 4 жыл бұрын
@@ygate4546 see the description.
@redship7532
@redship7532 4 жыл бұрын
@@KianBrose you're freaking insane, even if it's "basic" things and even if i already knew how to do that, i learnt a lot of thing. you explain fucking well, do more videos bro good job !!
@spidernh
@spidernh 4 жыл бұрын
Yeah, I understood everything and I don't use python. It's perfectly at the intermediate level for people who know programming but don't know this specific thing (making a bot)
@monkieassasin
@monkieassasin 2 жыл бұрын
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.
@KianBrose
@KianBrose 2 жыл бұрын
Great to hear!
@ShortMouse1503
@ShortMouse1503 Жыл бұрын
@@KianBrosesup
@jjb8951
@jjb8951 4 жыл бұрын
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
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! will do
@p_roduct9211
@p_roduct9211 2 жыл бұрын
Hi! I'm a new learner too (like really new, I can only relate to some generic SQL queries and excel combinations). Any projects you suggest to show off or attempt on your own for fun?
@trebelojaques458
@trebelojaques458 4 жыл бұрын
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👍🔥❤️
@KianBrose
@KianBrose 4 жыл бұрын
Thanks! Glad you stuck around and didnt click off xD
@imaginaoYouTubesoquecomarrobas
@imaginaoYouTubesoquecomarrobas 4 жыл бұрын
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! :)
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! Glad you enjoyed it
@imaginaoYouTubesoquecomarrobas
@imaginaoYouTubesoquecomarrobas 4 жыл бұрын
@@KianBrose And the fact that you try to reply to everyone's comment makes you even cooler tbh
@KianBrose
@KianBrose 4 жыл бұрын
@@imaginaoKZbinsoquecomarrobas thanks
@lgbtqiahangout
@lgbtqiahangout 3 жыл бұрын
@Potato Tornado libraries...
@EpicVideoGamer7771
@EpicVideoGamer7771 2 жыл бұрын
@Potato Tornado They are just libraries tho
@goldanboy4507
@goldanboy4507 3 жыл бұрын
This is the alpha chad of tutorials. Good speed, good info and good explanations. Keep up the hard work!
@KianBrose
@KianBrose 3 жыл бұрын
Ty!
@alida6004
@alida6004 4 жыл бұрын
Thanks, this is exactly what i was looking for! These beginner oriented videos are very useful to someone like me
@maycolagg
@maycolagg 2 жыл бұрын
principiante
@krisk1560
@krisk1560 4 жыл бұрын
I’m here before this channel blows up
@aligamiles
@aligamiles 4 жыл бұрын
Same
@beelz1042
@beelz1042 4 жыл бұрын
Same
@volkovolko
@volkovolko 4 жыл бұрын
#metoo
@Kid420
@Kid420 4 жыл бұрын
ikr.
@AG45.
@AG45. 4 жыл бұрын
same
@MarcusVey
@MarcusVey 4 жыл бұрын
This tutorial is very fast paced, short and concise yet covers all the information you need even as a beginner. Perfect.
@KianBrose
@KianBrose 4 жыл бұрын
Thank you
@toshitsingh7270
@toshitsingh7270 3 жыл бұрын
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!!
@KianBrose
@KianBrose 3 жыл бұрын
Thanks! Yeah i tried to make it understandable for everyone
@Vaxom
@Vaxom 4 жыл бұрын
that's a pretty good looking stickman, not gonna lie.
@KianBrose
@KianBrose 4 жыл бұрын
Ty! It took a whole 20 seconds and a mouse
@ayushbansal7061
@ayushbansal7061 4 жыл бұрын
Wow he still replying
@KianBrose
@KianBrose 4 жыл бұрын
@@ayushbansal7061 yes
@leksmar
@leksmar 4 жыл бұрын
@@KianBrose Can u make stickman for me? Please
@KianBrose
@KianBrose 4 жыл бұрын
@@leksmar xd
@smokeyjam1405
@smokeyjam1405 4 жыл бұрын
a simple, straightforward, and relatively beginner-friendly guide for something that many people would consider out of their depth. good stuff man, keep up the great vids
@KianBrose
@KianBrose 4 жыл бұрын
r e l a t i v e l y begginer friendly Glad you enjoyed it! Ty for watching
@TheBrunoRM
@TheBrunoRM 3 жыл бұрын
I wanted to learn python for a long time, and I just learned the basics in 15 minutes! Thank you very much sir
@KianBrose
@KianBrose 3 жыл бұрын
Np, glad you enjoyed it
@Void-yl9om
@Void-yl9om 2 жыл бұрын
I've been a python dev for a little over 5 years at this point and I specialize at automation and "Advanced Image recognition" and This video is the bare basics of image recognition, though very intuitive for beginners
@KianBrose
@KianBrose 2 жыл бұрын
Although it is very basic for people that already have experience within the field, this would be considered “advanced” for people that either have no experience in python or have never done anything other than a macro script Apologies for the disappointment
@Void-yl9om
@Void-yl9om 2 жыл бұрын
@@KianBrose wow that was a quick reply, you got me all wrong. I'm not dissapointed at all, I bet 99% of devs more experienced than you in this field couldn't explain the concept and the basics better. You probably encouraged and motivated hundreds of people to start further pursuing python. This video was very nostalgic as I remember my teacher giving a very simillar lecture back in high school and what came out her mouth seemed incomprehensible to me but very elegant and something that I genuinely admired and still do to this day. You've done a great job making this video and I'll love to see you rise in the platform because I genuinely appreciate the effort you put into this video. Cheers
@liquidglo2678
@liquidglo2678 4 жыл бұрын
i love this video its fast paced and no bs... im so tired of people trying to add in stuff that doesnt nee to be there... thanks.
@KianBrose
@KianBrose 4 жыл бұрын
same, glad you enjoyed it!
@HonorOfKingsKong
@HonorOfKingsKong 3 жыл бұрын
KZbin recommendation made something great today, a new subscriber here. Love the simplicity, you teach me something new in less than an hour. Thumbs up!
@KianBrose
@KianBrose 3 жыл бұрын
Glad you got something out of it!
@FoX84tac022
@FoX84tac022 4 жыл бұрын
Kian, if you use Shift + Right Click on a file, you will see 'Copy as Path'. This will save you some steps getting file paths for assets. This way you don't have to copy the asset's parent directory path, and then add the name of said asset to the end. Plus, it copies with quotation marks by default.
@KianBrose
@KianBrose 4 жыл бұрын
true
@Borneliuss
@Borneliuss Ай бұрын
Thought i would have to speed up, but no. I had to pause for entire minutes on end because you were so incredibly efficient with your video. Subscribing rn
@KianBrose
@KianBrose Ай бұрын
Nice, this is what digital media is made for Efficiency and replayability
@sak.4001
@sak.4001 Жыл бұрын
wow man, straight to the point and very educational for beginners like me. This is my first time I'm here, u are underrated!!
@KianBrose
@KianBrose Жыл бұрын
Ty!
@rasdek55
@rasdek55 3 жыл бұрын
Goddamn that's one of the best beginner friendly tutorials I've seen in a while. Gj!
@KianBrose
@KianBrose 3 жыл бұрын
Glad you liked it!
@hailong6314
@hailong6314 2 жыл бұрын
A ton of knowledge in 15:01, i rewatched this videos 10-15 times and everytime i can seek some explanation from the vid. I first watched this in june 2020, now i create a bot which play click game. Thank you!
@KianBrose
@KianBrose 2 жыл бұрын
Np!
@guy6567
@guy6567 2 жыл бұрын
For your r,g,b for loops, it saved me a lot of time to do if b>0 and b < 25 and g > 25 and g
@KianBrose
@KianBrose 2 жыл бұрын
Glad it worked out!
@gavinmaloney2794
@gavinmaloney2794 3 жыл бұрын
this is perfect for people who are already fairly proficient in python/programming and wanna figure out how to make a bot but its also detailed enough for a noob to just copy what you did and modify it a little. MORE LIKE THIS!!!!!
@KianBrose
@KianBrose 3 жыл бұрын
Glad you liked it!
@TheShalestorm
@TheShalestorm 4 жыл бұрын
Such a refreshing breath of life for the Tech tutorial platform. At no fault to those within this field, many of us are far too a timid person to come out and make content such as yourself. Love the editing, love the personality, and very easy to follow. Though simple, its all the info i needed to get working on my own source for my own applications. Loved the vid. ;) got my sub friend. Keep it up!
@KianBrose
@KianBrose 4 жыл бұрын
tyvm! Working on the second one, I feel a bit bad for having such a broad upload gap but my school just decided to put all assignments at the end of the year... Unfortunate but oh well, I'll work on the second one soon
@kurulusosmanmusic2563
@kurulusosmanmusic2563 4 жыл бұрын
@@KianBrose when i try and install the pip files it says... 'pip' is not recognized as an internal or external command, operable program or batch file.
@KianBrose
@KianBrose 4 жыл бұрын
Kuruluş Osman Music then you didn’t check the add to path checkbox when installing python
@kurulusosmanmusic2563
@kurulusosmanmusic2563 4 жыл бұрын
@@KianBrose ok thanks
@tomatocat
@tomatocat 3 жыл бұрын
I started to learn python mostly by myself, and despite the video being a little fast for me it was really understandable and helpful.
@KianBrose
@KianBrose 3 жыл бұрын
Practice makes perfect!
@BriamGzz
@BriamGzz 3 жыл бұрын
This video is so underrated!!! You're explaining advanced techiniques but also explaining what a FOR loop is
@KianBrose
@KianBrose 3 жыл бұрын
I tried making it comprehensively understandable to even first-time programmers
@philipmrz6038
@philipmrz6038 4 жыл бұрын
I came over from code bullet to understand how he works when training AI. I wanted to understand how pyautogui works to use it on my own. Now I know it. Thanks for this amazing pretty solid video. The speed of you telling to content was chosen very well.
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! I'm glad you enjoyed the pace
@random-shorty6092
@random-shorty6092 4 жыл бұрын
Hi sir is it possible to make automation for online game
@random-shorty6092
@random-shorty6092 4 жыл бұрын
Sir please reply
@philipmrz6038
@philipmrz6038 4 жыл бұрын
@@random-shorty6092 yes it is i would personally say
@lookeper2
@lookeper2 4 жыл бұрын
Love the fast pace as everything that needs to be read can be found in the description, and the way you explain makes it super easy to follow. I'm subbed and gonna binge your videos. Thanks for the info! :)
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! Glad you enjoyed the fast pace
@lookeper2
@lookeper2 4 жыл бұрын
@@KianBrose Framförallt "inhalera" 😂
@KianBrose
@KianBrose 4 жыл бұрын
Hahaha
@alan8270
@alan8270 3 жыл бұрын
This tutorial is better than 90% of the programming tutorials online (fast and accurate)
@KianBrose
@KianBrose 3 жыл бұрын
Ty!
@alan8270
@alan8270 3 жыл бұрын
@@KianBrose I currently try to create a bot. Let say I start a timer, and I want to stop the timer when autogui catch a "9" in second. So, when I stop timer, it shows 9:40 millisecond, which means 400 Ms delay. I wonder if there are any better modules that image recognizes target image on screen quicker 🤔 Big thanks!!
@tomfiszelson1485
@tomfiszelson1485 Жыл бұрын
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
@KianBrose
@KianBrose Жыл бұрын
Glad to hear that!
@DerMberger
@DerMberger 4 жыл бұрын
Man, this is bomb. Great quality and very easy to follow along and understand. Thank you Kian!
@KianBrose
@KianBrose 4 жыл бұрын
No problem! Glad you found it easy to follow
@julianstoller5883
@julianstoller5883 3 жыл бұрын
This is one of the best programming tutorials I've ever seen.
@KianBrose
@KianBrose 3 жыл бұрын
Ty!
@codingwithflavio8534
@codingwithflavio8534 2 жыл бұрын
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.
@KianBrose
@KianBrose 2 жыл бұрын
Thank you!
@JohnCena-ib4cq
@JohnCena-ib4cq 2 жыл бұрын
Fast pace is good! I can always pause at look at it if I am having trouble catching anything, but I can't stand slow videos, it's such a waste of time and much harder to adjust to my liking. This is concise and straight to the point which should be the aim of all programming videos. 0 useless information. No intro, no chatting, just straight-up information through both audio and visual (fantastic editing as well!) Just perfect. Please keep it like this :)
@KianBrose
@KianBrose 2 жыл бұрын
Will do!
@sarangrawat7152
@sarangrawat7152 4 жыл бұрын
Everyone's a gangsta until Kian writes a bot on IDLE
@KianBrose
@KianBrose 4 жыл бұрын
Then the economy of games starts crashing xd
@mornelouw1266
@mornelouw1266 4 жыл бұрын
@@KianBrose i press f5 but nothing happens in aimbooster
@Azurade
@Azurade 4 жыл бұрын
@@mornelouw1266 you probably need to press f5 in IDLE and switch to the aim booster window
@ApexArtistX
@ApexArtistX 3 жыл бұрын
@@Azurade aimbooster ?
@Walking_W
@Walking_W 3 жыл бұрын
lol
@grogges
@grogges 4 жыл бұрын
one of the best coding tutorials i have ever watched
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! Glad you enjoyed it
@archardor3392
@archardor3392 4 жыл бұрын
Bro, how come you have only 1.8 thousand subs? Insane, I thought you had a 1.8 million when i checked, the content is that good.
@KianBrose
@KianBrose 4 жыл бұрын
Thank you! Hopefully I made it to 10k by the end of next year
@basirabbas524
@basirabbas524 4 жыл бұрын
@@KianBrose nah mate, you've blown up ig. You'll have 10k or probably even more by the end of this year. Cheers to that! 🥂 Jbtw a new sub here!
@thechosen1164
@thechosen1164 4 жыл бұрын
@@KianBrose Print("You predicted that! I know! You're on a nice 8k and it's kinds like the end of the year! Keep up the good work. Dw, you'll get to 12K + in no time. :) Regards, ~another subscriber")
@davorm1430
@davorm1430 3 жыл бұрын
this is what i wanted! 15 min tutorial , which would usually last 2 hours. You told me what to keep in mind when making a bot, you showed some scripts and im ready to start and learn further on the way
@KianBrose
@KianBrose 3 жыл бұрын
As tutorials should be made, straight to the point
@abhinav1299
@abhinav1299 3 жыл бұрын
Omg he explaned it in such an easy language. 🤩
@KianBrose
@KianBrose 3 жыл бұрын
English! Yes!
@abbes8517
@abbes8517 3 жыл бұрын
The pacing was perfect, I learned a lot in those 15 minutes. Keep up the good content:)
@KianBrose
@KianBrose 3 жыл бұрын
Thanks, will do!
@matthiaskontsevitch4553
@matthiaskontsevitch4553 4 жыл бұрын
Great content! A quick tip: try replacing " if a in range(160,220)" (range is in iterable, so you're testing for each value in the range in the "in" test) by "if 160
@KianBrose
@KianBrose 4 жыл бұрын
I know I know, I didn't think about it at the time
@dziubo1
@dziubo1 Жыл бұрын
This is an EXTREAMALLY BASIC approach... and that is why i love it!
@KianBrose
@KianBrose Жыл бұрын
glad to hear that!
@Kyle_Hacks
@Kyle_Hacks 3 жыл бұрын
The video is really well done and informative, I might have to steal this video style! 🤖
@KianBrose
@KianBrose 3 жыл бұрын
Dewit
@Kyle_Hacks
@Kyle_Hacks 3 жыл бұрын
@@KianBrose Wow did not expect you to respond! :D I'll try!
@KWAKZ5
@KWAKZ5 4 жыл бұрын
Me: Makes a Calculator in pyton Friend that i dont have: Ohh so your a hacker.
@KianBrose
@KianBrose 4 жыл бұрын
Lol
@KaiXuanYT
@KaiXuanYT 4 жыл бұрын
LMAO
@horseoperamarker
@horseoperamarker 4 жыл бұрын
so true
@piyushchaudhary7269
@piyushchaudhary7269 4 жыл бұрын
Rolf
@ayushshaw3681
@ayushshaw3681 3 жыл бұрын
I work with console for coding purposes and my family thinks I am doing illegal hacking. So reltable
@aravinddeshikh
@aravinddeshikh 4 жыл бұрын
That’s the perfect speed! Make more videos! Loved it thoroughly!
@KianBrose
@KianBrose 4 жыл бұрын
Working on one rn xD
@merotx_6418
@merotx_6418 Жыл бұрын
The pace in the video is perfect for everyone im a beginner in python and this seems clear and helps so much even with other projects i come back to this video thank you!
@KianBrose
@KianBrose Жыл бұрын
Glad it helped!
@i0o201
@i0o201 4 жыл бұрын
Great video,right down to buisness just how it should be.Hope your channel grows.Would love to see more of your videos.
@KianBrose
@KianBrose 4 жыл бұрын
Thanks!
@TechVlogger00
@TechVlogger00 4 жыл бұрын
Hello Kian, thanks for making these videos. Its really cool to watch and to follow. Request: in case you are interested, please also make videos on some productivity boosting automations that you think could be useful for pc/mac.
@KianBrose
@KianBrose 4 жыл бұрын
hmm other than shortcuts bound to specific keys I don't really see a lot of uses. This could be very useful for repetitive workflows though
@skylark0534
@skylark0534 4 жыл бұрын
Great vid dude!! This is exactly what I was looking for! Thanks!!
@KianBrose
@KianBrose 4 жыл бұрын
Happy you found what you were looking for! Now go automate those games xD
@skylark0534
@skylark0534 4 жыл бұрын
I already begon! ^^ I don't have any problems for now!
@vfx-re-edit4146
@vfx-re-edit4146 2 жыл бұрын
I been hacking for years , with c++ wanted to switch to python This is one of the best tutorials I have ever watched. not 2 slow but also very informative.
@KianBrose
@KianBrose 2 жыл бұрын
Nice
@wilcosec
@wilcosec 4 жыл бұрын
Great pace! Would enjoy more python botting vids.
@burkhard1256
@burkhard1256 4 жыл бұрын
This is quality content right here. Subbed.
@KianBrose
@KianBrose 4 жыл бұрын
Thanks for the sub!
@tuttifrutti1029
@tuttifrutti1029 4 жыл бұрын
Wow was really expecting for u to have loads of subs but dont. honestly u deserve sum more
@KianBrose
@KianBrose 4 жыл бұрын
Tuttifrutti10 thanks! Hopefully someday I’ll make it to 100
@KianBrose
@KianBrose 4 жыл бұрын
Little did I know
@less7786
@less7786 4 жыл бұрын
@@KianBrose come back to this comment in a year
@Walking_W
@Walking_W 3 жыл бұрын
@@KianBrose u look more like a sub with 1M
@abrarmulla1196
@abrarmulla1196 3 жыл бұрын
Probably 1 of the best tutorials I have found on KZbin for Programing.
@KianBrose
@KianBrose 3 жыл бұрын
ikr
@sa_ad
@sa_ad 4 жыл бұрын
Underrated you will get 1M soon for this type of amazing content
@KianBrose
@KianBrose 4 жыл бұрын
Hopefully someday
@Walking_W
@Walking_W 3 жыл бұрын
@@KianBrose I belive
@chicougouilla
@chicougouilla 4 жыл бұрын
Well, i guess i'll be learning python then I didn't know the librairies where so straight forward. I'm really interested in automation. I know c++ and js but the only bot i ever done was quite shitty. I think i will try it again thanks to you ^^
@KianBrose
@KianBrose 4 жыл бұрын
Np! Glad I was able to help you discover something new. Hope you benefit from it in the future!
@Fifiszu
@Fifiszu 4 жыл бұрын
If anyone gets this error while executing: "pip install pyautogui" Preparing wheel metadata ... error ERROR: Command errored out with exit status 1: I got this error fixed by executing "pip install wheel" first. Apparently you have to discover wheel first in order to advance :D
@sumir
@sumir 4 жыл бұрын
@Steve U seem really new, pip comes pre installed. Pip is package manager for python.
@KianBrose
@KianBrose 4 жыл бұрын
Oh wow, really sorry but youtube didnt show me this comment, If you get this issue uninstall python 3.8+ and install python 3.7 64 bit instead and then try again
@abddulrahmanas
@abddulrahmanas 4 жыл бұрын
I though there are hair on my screen
@ultraslayer9255
@ultraslayer9255 3 жыл бұрын
I just got back into coding cause I didn’t feel like I was progressing the way I wanted, but I realised that I should go do some projects and pick up new skills, this video helped out a lot, it was clear snd concise thank you a lot, you got a new sub
@KianBrose
@KianBrose 3 жыл бұрын
Thanks!
@ultraslayer9255
@ultraslayer9255 3 жыл бұрын
@@KianBrose no problem keep up the good work
@unusedTV
@unusedTV 4 жыл бұрын
"if (b in range(180,210))" is a pretty poor idea, as it will check every value one by one until a match is hit. The parentheses are also not necessary. Instead, use "if 180
@KianBrose
@KianBrose 4 жыл бұрын
Ooooooooh I didn't know that was possible, thank you!
@farhadulislamfuad
@farhadulislamfuad 4 жыл бұрын
Amazing, do make more videos like this! Especially something beginner oriented.
@sheez-5486
@sheez-5486 3 жыл бұрын
4:03 Kian Brose: allow flash if you want me in 2021: now that's a name i've not heard in a long time
@KianBrose
@KianBrose 3 жыл бұрын
That part didn't age well xDDDDDDD
@thomasmontoya302
@thomasmontoya302 2 ай бұрын
Phenomenal. Instantly earned a subscription, watch to the end, and like.
@ethanmcdermott8738
@ethanmcdermott8738 4 жыл бұрын
This was a really good tutorial! It was really easy to follow
@KianBrose
@KianBrose 4 жыл бұрын
Happy to hear that!
@TheRealKitWalker
@TheRealKitWalker 2 жыл бұрын
Highly motivating!! 🙏🤓👏👏👏
@KianBrose
@KianBrose 2 жыл бұрын
thanks!
@alexplaysgames4219
@alexplaysgames4219 4 жыл бұрын
Great video! Pretty easy to follow and understand and covered some topics I wasn't familiar with in Python. The only suggestion I'd give is making some of the variables less "hard-coded". I think the region you're displaying should be set as a global variable to make changing the code significantly easier in the future. Otherwise, great video!
@KianBrose
@KianBrose 4 жыл бұрын
True, but for this kind of script where the region only has to be declared once I don't think it's necessary to declare it as a global variable since it may confuse some people. Glad you enjoyed it!
@gomango99
@gomango99 2 жыл бұрын
Probably the most fun python tutorial out there
@KianBrose
@KianBrose 2 жыл бұрын
Thanks!
@0xPanda1
@0xPanda1 4 жыл бұрын
Thanks, this is exactly what i was looking for!
@KianBrose
@KianBrose 4 жыл бұрын
Glad it helped
@rohinpithwa5772
@rohinpithwa5772 4 жыл бұрын
Holy crap, didn't know image recognition was so ez
@KianBrose
@KianBrose 4 жыл бұрын
Yeah to some degree it is
@richardszalai1419
@richardszalai1419 4 жыл бұрын
Yeah, with well built and optimized libraries it is easy, tho I wouldnt really call checking 4 pixels image recognition
@KianBrose
@KianBrose 4 жыл бұрын
@@richardszalai1419 I mean technically it is
@aleksandarpuhar7571
@aleksandarpuhar7571 4 жыл бұрын
Will you make more tutorials ? This stuff is fun to watch plus we can learn so much. As a foreign who doesnt know english that good its amazing i can understand everything.
@KianBrose
@KianBrose 4 жыл бұрын
Yep, I will
@Arktic_
@Arktic_ 2 жыл бұрын
Best python tutorial I've ever seen, quick and explains everything unlike other torturials that just tells you to past this code and run it, also this can be used in many other thing
@KianBrose
@KianBrose 2 жыл бұрын
Ikr!
@uwuster
@uwuster 4 жыл бұрын
Wow, I never knew that python terminal thingy was actually useful! :O
@xfire3778
@xfire3778 4 жыл бұрын
RandomCommentor777 it’s not specific to python. The terminal is used for a lot more and wasn’t even made for python
@storyofbo
@storyofbo 4 жыл бұрын
@@xfire3778 I think he was talking about the python shell not the windows terminal
@xfire3778
@xfire3778 4 жыл бұрын
Story Of Bo oh my bad
@Hanyamanusiabiasa
@Hanyamanusiabiasa 3 жыл бұрын
"You're cheating!" "No, I'm not cheating. I'm just playing this game smartly"
@KianBrose
@KianBrose 3 жыл бұрын
Correct!
@kibo__4267
@kibo__4267 Жыл бұрын
Somehow your fast paced talking was more understandable than any other coding tutorial I saw, you explained everything very good didn't say stuff like "I'll explain that later" and so on, it was simple to follow...just perfection of a video. We really need more people like you to make tutorials on youtube, not just for coding but for everything. I wanted to start learning python before because I fell in love with programing in school even though we did C but you might me the reason why I get back into programing keep at it bro :)
@KianBrose
@KianBrose Жыл бұрын
Thanks! Yeah I try to keep it as simple as possible to respect people's time
@Leo-io4bq
@Leo-io4bq 3 ай бұрын
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
@KianBrose
@KianBrose 3 ай бұрын
you overestimate the intelligence of some individuals
@leevi6552
@leevi6552 4 жыл бұрын
If you have issues using command: "pyautogui.displayMousePosition()" might be because you are missing a Pillow package. This problem ockured with me and to fix it you have to open up cmd again and type in this: pip install Pillow
@KianBrose
@KianBrose 4 жыл бұрын
Yeah, python versions above 3.7 have issues with Pillow which is necessary for pyautogui, so installing Pillow is an option but I always tell people to download the 3.7 version of python instead as it's more stable than 3.8+
@leevi6552
@leevi6552 4 жыл бұрын
@@KianBrose well do you know why i cant download opencv-python? The error says that i have to have C+ visual studio installed but it came whit my visual studio code
@KianBrose
@KianBrose 4 жыл бұрын
@@leevi6552 use idle editor and it should work
@sammirow7089
@sammirow7089 4 жыл бұрын
just do pip install Pillow on your cmd
@an-wq6ey
@an-wq6ey 10 ай бұрын
Library missing (pip install Pillow PyScreeze) I was stuck at 1:16, getting an error instead of x,y,z coordinates, ran (pip install Pillow PyScreeze) in cmd and it fixed the problem.
@TABZ_TBEN
@TABZ_TBEN 10 ай бұрын
Thanks for solution 👍
@malillone7213
@malillone7213 8 ай бұрын
tysm I was stuck here too
@MxCrompli
@MxCrompli 3 жыл бұрын
Kian Brose: "Use the win32 api because it clicks faster" Me: * using Linux *
@KianBrose
@KianBrose 3 жыл бұрын
use pyautogui.click, will work but if u want it to run faster ull need a pyautogui.PAUSE = 0 at the start of the script
@annakowalska4323
@annakowalska4323 3 жыл бұрын
@@KianBrose Thank you, you helped me too.
@Shrek_Has_Covid19
@Shrek_Has_Covid19 3 жыл бұрын
@@KianBrose thanks
@ihtasham9237
@ihtasham9237 2 жыл бұрын
Thanks to your video I’ve automated some of my work and now make several hundred dollars a day semi-passively. You’re an absolute life saver.
@KianBrose
@KianBrose 2 жыл бұрын
More than me lmao, glad to hear it's working out
@Assault_Butter_Knife
@Assault_Butter_Knife 4 жыл бұрын
Now just to modify it a bit and you'll never have to solve captchas again!
@KianBrose
@KianBrose 4 жыл бұрын
lol
@piyushchaudhary7269
@piyushchaudhary7269 4 жыл бұрын
U have to How will u direct the ages of cars fire hydrant But we can try let's c hmmm
@thegamehouse4245
@thegamehouse4245 4 жыл бұрын
@@piyushchaudhary7269 just calculate the total RGB value of the image, give it average colour values for all pixels, make a range for wriggle room. If the no. is in the range of the object given, there should be a good chance it works. If not, see the colour of retry button, say in the code, if the retry button is the colour of ####, then click retry button, and run first part of code again. Yes, I code in python, but am a actual noob.
@Walking_W
@Walking_W 3 жыл бұрын
@@thegamehouse4245 Can you show me the code
@dingleberry10
@dingleberry10 4 жыл бұрын
Your still liking comments? Wow! Great video btw!
@KianBrose
@KianBrose 4 жыл бұрын
Yep, thanks!
@ElmoPlayss
@ElmoPlayss 2 жыл бұрын
This tutorial helped me alot!! The only thing that kind of "annoyed" me was that you were going pretty fast. I had to watch sertain parts 3 times to understand what you were saying/doing
@KianBrose
@KianBrose 2 жыл бұрын
That's one of the things that a lot of people quite liked interestingly enough
@ElmoPlayss
@ElmoPlayss 2 жыл бұрын
@@KianBrose i can understand haha if you somewhat know what your doing it's nice if it's fast 😀
@peterkrogh1863
@peterkrogh1863 11 ай бұрын
Fast forward 3 years... and this tutorial still holds. I've made a imagine recognition bot using .png, which I use for loading Steam, enter my account, find a specific game in my library and load it, then enter my favorite server. Then I've made a bot for a ingame choir which saves me from clicking excatly 495 times to plant seeds - absolutly recommendable tutorial :)
@KianBrose
@KianBrose 11 ай бұрын
good job! Glad to hear automation is working out ^^
@iftikharomar5513
@iftikharomar5513 4 жыл бұрын
For those who came here after 1 million subs: I followed this channel from only 6.3k subs
@KianBrose
@KianBrose 4 жыл бұрын
XD
@m5s10
@m5s10 3 жыл бұрын
This is a great video! I really enjoyed watching it. Although I do have to point out one mistake you made: you're not checking every 5th pixel, you're checking every 5th pixel in every 5th row, so it's only every 25th pixel that you check :)
@KianBrose
@KianBrose 3 жыл бұрын
ah this is true, each for loop is checking each 5th pixel per 5th row if you could both for loops
@jakubgorka1165
@jakubgorka1165 4 жыл бұрын
13:24 - checking if i is in range is kinda costly, since it creates a list of all integers between two values and then compares the pixel value to each of them, so instead of "if b in range(180, 210):" I'd write "if b < 210 and b >= 180:" Cheers ^^
@KianBrose
@KianBrose 4 жыл бұрын
Yeah I've been told this recently as well, I didn't know this existed xD but ty for the suggestion!
@sasha3230
@sasha3230 4 жыл бұрын
That's not true. Range doesn't creates list of all integers. So check in video was as efficent as your's if-check. Range is a special builtin class which overrides "__contains__" magic-method for doing efficent "in" checks, like you did with "if", but more precise, for all possible cases. If you are interested, you could check that in cython sources in file "Objects/rangeobject.c" at line 383
@TeshanShanukaJ
@TeshanShanukaJ 4 жыл бұрын
Range does not create a list; it is a generator. However, @Саша is correct about the __contains__. But it is still slower than >/< comparisons (nearly 4 times in a test I just did). By the way, instead of` b < 210 and b >= 180` you can do `180
@sasha3230
@sasha3230 4 жыл бұрын
@@TeshanShanukaJ range isn't a generator, check the article "Python: range is not an iterator!" from Trey Hunner and check cpython's code I mentioned above. Also in this simple case I would prefer readability over "performance", not sure if your test is correct.
@TeshanShanukaJ
@TeshanShanukaJ 4 жыл бұрын
I didn't know range wasn't a generator until now. Thanks. Anyway for me 0
@guy6567
@guy6567 2 жыл бұрын
Thanks! Is so helpful :) subbing now I solved the double click issue and removed any pauses by checking if last click x was within 10 pixels of the previous clicks x value
@KianBrose
@KianBrose 2 жыл бұрын
Glad you found a use for it!
@zeck9544
@zeck9544 3 жыл бұрын
"we'll be covering how to make a SIMPLE" me: really dude...
@KianBrose
@KianBrose 3 жыл бұрын
it is simple lmao
@carlosmspk
@carlosmspk 3 жыл бұрын
This is as simple as you can hope to get
@tombkings6279
@tombkings6279 3 жыл бұрын
Programming goes BRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
@عضني
@عضني 4 жыл бұрын
actual intresting content, broken down easily, digestible information. The least you can do is subscribe and like the video
@KianBrose
@KianBrose 4 жыл бұрын
Thank you 😊
@mahto9329
@mahto9329 2 жыл бұрын
It was so fast for me 10 days ago when I first watched this tutorial: I had no idea about python and had to pause the video so many times, but not anymore now! You helped me notice that I am evolving haha. Great vids btw. 👌
@KianBrose
@KianBrose 2 жыл бұрын
Ty!
@slayerofe9567
@slayerofe9567 4 жыл бұрын
When I try executing the piano tiles script I get this error: OSError: windll.user32.ReleaseDC failed : return 0
@KianBrose
@KianBrose 4 жыл бұрын
Uninstall python 3.8+ and install python 3.7.0 , restart your PC and try again
@slayerofe9567
@slayerofe9567 4 жыл бұрын
@@KianBrose well now it says theres no module named win32api edit: fixed it
@jethrosiloecruzcastillo42
@jethrosiloecruzcastillo42 4 жыл бұрын
​@@slayerofe9567 How did you fix it?
@hillarymapondera4122
@hillarymapondera4122 4 жыл бұрын
@@slayerofe9567 I still Have this issue "no module named win32api" how can I fix it
@Karma-fo2wn
@Karma-fo2wn 4 жыл бұрын
@@hillarymapondera4122 you have to install again win32 api with related pip version (it better runs on python 3.7 so I installed python3.7 then pip3.7 install win32api)
@what6690
@what6690 4 жыл бұрын
me sees his channel* also me- "we will see you career grow"
@KianBrose
@KianBrose 4 жыл бұрын
Tyvm xD
@jeremiahn4more253
@jeremiahn4more253 3 жыл бұрын
im haveing a error saying 'ImportError: numpy.core.multiarray failed to import' what should i do
@KianBrose
@KianBrose 3 жыл бұрын
Pip uninstall numpy Pip install numpy==1.19.3
@Corianas_
@Corianas_ 3 жыл бұрын
.... I just understood how a python program actually works... and will be recommending this video to people. Perfect speed, Perfect clarity, I loved it. 10/10, Will watch again.
@KianBrose
@KianBrose 3 жыл бұрын
Yep, any subject should be understandable as long as the one teaching it understands it well enough to understand it in a simple way, unlike most shit tutorials that are just "copy paste walkthroughs"
@Corianas_
@Corianas_ 3 жыл бұрын
@@KianBrose it is also when they don't copy and paste, but just rush through it all. you stopped, identified the what you were speaking about, and as speaking about it, showed us what it does. Most 'tutorials' are, and we put in x+y+z and then do the next part. making it very hard to identify... what exactly is the thing doing what they are talking about??? so, thank you. Sunday i was literally in despair at python and everything to do with it. you have given me new hope.
@yesthatsright1735
@yesthatsright1735 4 жыл бұрын
*confusion* ImportError: DLL load failed while importing win32api: %1 is not a valid Win32 application.
@KianBrose
@KianBrose 4 жыл бұрын
Are you using python 3.7? if not try to uninstall your current version and get 3.7 instead
@viniciusbarbosa1901
@viniciusbarbosa1901 4 жыл бұрын
Mate, install pycharm instead of uninstall, with the pycharm u can select the python version you want to use. Bonus tip: study about venv(virtual library), this will help u a lot with those compatibilits problens
@anonamoose3797
@anonamoose3797 4 жыл бұрын
I had a slight issue with all versions of python it seems like windows does not like the 0.01 delay I raised it to 0.05 and stopped getting the errors
@viniciusbarbosa1901
@viniciusbarbosa1901 4 жыл бұрын
@@anonamoose3797 that's the reason I use Linux
@daddyofalltrades
@daddyofalltrades 4 жыл бұрын
@@viniciusbarbosa1901 I second your opinion mate. I'm in love with pycharm. I use the community version (free) and it absolutely rips.
@belleeun
@belleeun 4 жыл бұрын
Hey, It does not let me import win32api and win32con even though I installed pywin32. How can I fix it? Edit: It worked, thanks!
@KianBrose
@KianBrose 4 жыл бұрын
uninstall python 3.8+, install 3.7.0 64 bit, restart pc, make sure to use idle editor
@LordDarkWay
@LordDarkWay Жыл бұрын
well time to create this for valorant
@BrickyBoi
@BrickyBoi 6 ай бұрын
Good luck
@LordDarkWay
@LordDarkWay 6 ай бұрын
@@BrickyBoi already done
@BrickyBoi
@BrickyBoi 6 ай бұрын
@@LordDarkWay what does it do
@LordDarkWay
@LordDarkWay 6 ай бұрын
​@@BrickyBoi Aimbot but got patch ( use Arduino to spoof mouse but still got ban ) so to old
@BrickyBoi
@BrickyBoi 6 ай бұрын
@@LordDarkWay How would image detection be beneficial in a game as complex as valorant?
Using Image Recognition to DESTROY Fruit Ninja
10:08
CodeNoodles
Рет қаралды 613 М.
How I make bots using python (educational)
17:12
Kian Brose
Рет қаралды 561 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 16 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН
I beat rigged giveaways with a bot
3:43
Kian Brose
Рет қаралды 2,2 МЛН
Beating a Pay to Win game with a bot
5:09
Kian Brose
Рет қаралды 2,2 МЛН
Using Image Recognition to find Mario
8:47
CodeNoodles
Рет қаралды 1,9 МЛН
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 951 М.
Cheat Engine for Idiots
10:48
Kian Brose
Рет қаралды 1,3 МЛН
I Locked this AI Dog in an Escape Chamber for 1000 Years
21:29
AI Destroys a Mobile Game in Real-Time with OpenCV (Object Detection)
12:18
What is the i really doing in Schrödinger's equation?
25:06
Welch Labs
Рет қаралды 46 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2 МЛН