At first I thought that I just wanted to cheat on the game. Then I saw your video. Then I saw the future. And now I know that game will be only the first step for me in this story.
It has been two years already, where is the continuation? Why did you abandon your channel? You explain better than all my teachers! You're the best! It has been 2 years already, perhaps you have improved object detection, bot performance, and their movement between points, or maybe there's something else interesting to see!
great explanation of zip(*location[::-1]). Being some what familiar with opencv, I have never come across such a clear explanation of that line before.
I am learning opencv because I love to automate tasks and I love to play online games and I have to say your channel blows my mind. I watch and re-watch all of your videos. It have been AWESOME learn with you, thank you very much spending time teaching us all.
Just discovered your channel and am enjoying it very much. I really like your presentation style, the fact that you show manual pages, and that you know what you are going to say with no fumbling.
I have been waiting for this part very eagery, and it was worth the wait. My test script was able to identify objects I show on an image. There is a sense of great satisfaction when you see something you made work. Figuring out just the right threshold where the program can find out things quite right was the part which took a bit of time & lots of trial and error (understandable). Really glad that it worked out. Thank you! Looking forward to learning from the next videos in the series as well as from the old ones on the channel.
super excited for this style of tutorial. Project centered learning is definitely the way to go, and there isn't enough.. I don't want to say "hand-holdy" content, but after you get to a certain point programming kind of takes a leap off the diving board into dense documentation.
Ты делаешь очень крутые вещи для очень привычных, для многих, занятий. Большое тебе спасибо! You do very cool things for very familiar, for many, activities. Thank you very much!
Just came across your videos recently and I have to say you are amazing! I have been trying to learn programming for nearly a decade but it never really grabbed my attention, and totally lost by the time i got to object oriented programming. First time ever I am actually enjoying the lessons. Subbed and crunching through all your videos!
Man this is funny I actually came to your channel with the pyautogui video hoping to code a fishing bot for Albion online, and look what I see! A tutorial for harvesting cabbages
Really interesting and nice explanation. I find that using games to learn how to program is a really neat way to learn the basics of a program. Mainly because you are already familiar with the game, but also because there's 1000 different things to "program" for in a game. I started with programing a rocket guidance system in KSP by using KOs, but also it made me learn more about Bash and SSH since I was running KSP over the network and I used SSH to connect to the game "telnet console". I'm going to hell for this one but: One eye on the code, one eye on the console :)
Yeah the project ideas with games are endless, which is great for beginners because it helps you get a lot more time writing code. Kerbal Space Program is fun, haven't played it in years!
Всех приветствую! Бен большое спасибо тебе за твой труд! В русском сегменте ютубу, к сожалению довольно мало именно прикладного использования Opencv, информация подается в виде поверхностного ознакомления. Еще раз тебе спасибо!
Greetings to all! Ben thank you so much for your hard work! In the Russian segment of TH-cam, unfortunately, there is quite a little application use of Opencv, the information is provided in the form of a superficial acquaintance. Thank you again!
Thanks! Part 3: Grouping rectangles and calculating mid/click points. Part 4: Fast real-time image capture. Part 5: Real-time object detection. Part 6: Image processing for better match results. Part 7: Integrating automated clicks and bringing it all together. Might be a few parts past that, too.
Amazing, thanks for your tuts! Can you show us an example on how to use opencv to let the bot detect when the bot reaches the edge of a zone? I'm trying to let my bot gather resources by walking randomly and with an unstuck feature. Only challenge is that he keeps getting stuck at the edge of the map.
@@LearnCodeByGaming using the other technique of for looping through each pixel and seeing if it matches a color on a list. It works pretty well but can be slow at times
thanks alot for these tutorials. I am also learning as I follow along slowly. I have a question, for your for loop, would it be possible (or easier) to compact into a list comprehension? if so, how would that work?
You can search for multiple images, but it starts getting slow pretty fast in my experience. I filmed the next video earlier today, so I should be done editing and have it uploaded in 2-3 days.
Hey, Great tutorial! Is it possible for you to make some tutorial on how to walk your character in in a defined square? I am trying to make a bot for pokemon game farming in grass and I am not sure how to move my character in the same area without it going to the wrong way. Thanks!
I ran into a problem with the code example at 10:23. When running that in VS Code my CPU usage spiked, the program took 5-10 minutes to finish, and the image result was different from the one in the video. For anyone having this example freeze up on them, the issue for me seemed to be calling "cv.waitKey()" with no argument (line 35). After changing "cv.waitKey()" to "cv.waitKey(0)" the code ran in a fraction of the time and produced the expected image result.
Thanks for pointing that out! From video 4 I started using cv.waitKey(1) myself. I don't recall why I made the switch, but I probably ran into problems, too.
@@LearnCodeByGaming Weird, I just went to double check and can't recreate the bug anymore. waitKey now works even without an argument. Some "magic smoke" stuff going on in my computer...
ok, i do have the problem, that a result, which is false, has a higher confidence value, than what i am looking for, so i cant set the threshold higher, cause then i dont get what i want. however, my object im looking for isnt static, its kinda a moving gif xD still very nice videos so far, learned a lot
I have Pycharm so can't run and debug i tried to get visual code but can't make it to install opencv on it don't know why I am new to coding i try a lot of site codeacadamy, pirple but i just can't still learn you somehow manage to explain a little better then others i hope i manage to learn something from you
it opens for me like 4 windows and in the last it only shows all the images im searching tho after i close same image with same marked sports appear.. any fix ? or its suppose to be like that ?
For some reason, sometimes it will return a full black image when calling the WinCap.get_screenshot() method. I have to keep restarting the game and visual studio until it works again. Someone figured out this?
I use your code: threshold = 0.85 locations = np.where(result >= threshold) print(locations) # the np.where() return value will look like this: # (array([1, 5], dtype=int32), array([1, 15], dtype=int32)) and this is my result: (array([483], dtype=int32), array([514], dtype=int32)) please help me.
At first I thought that I just wanted to cheat on the game. Then I saw your video. Then I saw the future. And now I know that game will be only the first step for me in this story.
Watch out, the coding might be more fun than the games themselves 😄
And how it's going now?
It has been two years already, where is the continuation? Why did you abandon your channel? You explain better than all my teachers! You're the best! It has been 2 years already, perhaps you have improved object detection, bot performance, and their movement between points, or maybe there's something else interesting to see!
Got hired by DoD
great explanation of zip(*location[::-1]). Being some what familiar with opencv, I have never come across such a clear explanation of that line before.
I am learning opencv because I love to automate tasks and I love to play online games and I have to say your channel blows my mind. I watch and re-watch all of your videos. It have been AWESOME learn with you, thank you very much spending time teaching us all.
Just discovered your channel and am enjoying it very much. I really like your presentation style, the fact that you show manual pages, and that you know what you are going to say with no fumbling.
That's the style I'm going for. Glad you like it!
I have been waiting for this part very eagery, and it was worth the wait. My test script was able to identify objects I show on an image. There is a sense of great satisfaction when you see something you made work.
Figuring out just the right threshold where the program can find out things quite right was the part which took a bit of time & lots of trial and error (understandable). Really glad that it worked out.
Thank you! Looking forward to learning from the next videos in the series as well as from the old ones on the channel.
Thanks, glad to hear you're following along!
i've waited for the next tutorial since the first one and here it is! thank you so much for valuable contents
Thanks, glad you look forward to these!
I love you style of teaching so much, hands down one of my best programming channels.
Glad to have found this channel! Keep up the good work Ben! Stay safe amidst of the pandemic
Thanks, you too! Thanks for checking out my videos.
super excited for this style of tutorial. Project centered learning is definitely the way to go, and there isn't enough.. I don't want to say "hand-holdy" content, but after you get to a certain point programming kind of takes a leap off the diving board into dense documentation.
Yeah for sure. I try to lead people to the fun stuff so they're more excited to explore on their own from there.
Ты делаешь очень крутые вещи для очень привычных, для многих, занятий. Большое тебе спасибо!
You do very cool things for very familiar, for many, activities. Thank you very much!
First time I've seen unpacking with *, really cool. Good video thanks :)
Trying for Path of exile, its hard but your lessons helps a lot.
Perfect tutorial. This gentleman explains everything crearly.
You're an EXCELLENT teacher. Thank you!
Спасибо за прекрасные уроки дружище!
lovely ! trying to build a bot for a mobile RPG game emulated on Bluestacks, this has been a great help !
@Xarius01 what do you wanna know
Just came across your videos recently and I have to say you are amazing!
I have been trying to learn programming for nearly a decade but it never really grabbed my attention, and totally lost by the time i got to object oriented programming. First time ever I am actually enjoying the lessons.
Subbed and crunching through all your videos!
Never stop making videos. Your videos are amazing!!!
great video, thank you buddy. Looking forward to running through some of your other videos.
Amazing that you try that on an Albion screenshot and what a coincidence that I’m using template matching for an Albion project too :D
some of the best python tutorials out there. Much appreciated and good luck to you!
Thanks, glad you like them!
Dude your channel is amazing, your presentation is really clear, Keep up with the good work!
you are the man! thank you for your content and channel!
Thanks, glad you like it!
Man this is funny I actually came to your channel with the pyautogui video hoping to code a fishing bot for Albion online, and look what I see! A tutorial for harvesting cabbages
Haha, nice coincidence!
[spanish]
2023 y me ayudas un monton con todo esto. lo usare para programar bots >:D . I♥U so much
Great video! I look forward to seeing this kind of object detection into a real time video. Keep it up!
Excellent series so far. Thanks, Ben!
you saved me so many work hours with openCV
Really interesting and nice explanation.
I find that using games to learn how to program is a really neat way to learn the basics of a program.
Mainly because you are already familiar with the game, but also because there's 1000 different things to "program" for in a game.
I started with programing a rocket guidance system in KSP by using KOs, but also it made me learn more about Bash and SSH since I was running KSP over the network and I used SSH to connect to the game "telnet console".
I'm going to hell for this one but:
One eye on the code, one eye on the console :)
Yeah the project ideas with games are endless, which is great for beginners because it helps you get a lot more time writing code. Kerbal Space Program is fun, haven't played it in years!
Всех приветствую! Бен большое спасибо тебе за твой труд! В русском сегменте ютубу, к сожалению довольно мало именно прикладного использования Opencv, информация подается в виде поверхностного ознакомления. Еще раз тебе спасибо!
Greetings to all! Ben thank you so much for your hard work! In the Russian segment of TH-cam, unfortunately, there is quite a little application use of Opencv, the information is provided in the form of a superficial acquaintance. Thank you again!
Полностью согласен с тобой!
Would love to see a breakdown of diablo 2's pixel bot, which is coded in python & uses this library.
Hope there are more of these!!
Cant wait for the next episode :D
Next video is up!
Hey, really enjoy your style in this videos! Keep it up and thanks a lot!
thanks for the content. It was everything I was looking for. You even got the game right that I would like to make a bot.
incredible !! super!!! great work!!!
Hello Ben! Thank you for this video! I think the explanations were clear.
I love these videos. thanks so much these are great!
Thanks man, really clear and easy to follow!
Great Tutorial, Thanks
awesome good! very nicee lesson, bro, keep it up, very well explained
Great video! Thank you for this great tutorial I. I am hoping to use this for detecting what round I am on in nazi zombies.
Amazing series ! Can you give some spoiler for the next episodes? xD
Thanks! Part 3: Grouping rectangles and calculating mid/click points. Part 4: Fast real-time image capture. Part 5: Real-time object detection. Part 6: Image processing for better match results. Part 7: Integrating automated clicks and bringing it all together. Might be a few parts past that, too.
you are amazing!! thanks for sharing so much knowlodge (:
Waiting for the next one
Next one is up!
keep doing this! ive learned alot
Have you considered making a comparison using YOLO?
Awesome !
Amazing, thanks for your tuts! Can you show us an example on how to use opencv to let the bot detect when the bot reaches the edge of a zone? I'm trying to let my bot gather resources by walking randomly and with an unstuck feature. Only challenge is that he keeps getting stuck at the edge of the map.
What game?
@@LearnCodeByGaming Albion
@@TravisJMedia Cool, I'll see if I can find a solution for that and include it in a future video.
@@LearnCodeByGaming Thanks a lot man! You're the best.
Thank you so much for these, i was wondering if you can go into some better object detection that can handle camera angle changes in game?
Yeah that does get tricky when the camera angles change. I'm going to be covering more and more advanced topics as this series continues.
@@LearnCodeByGaming using the other technique of for looping through each pixel and seeing if it matches a color on a list. It works pretty well but can be slow at times
thanks alot for these tutorials. I am also learning as I follow along slowly. I have a question, for your for loop, would it be possible (or easier) to compact into a list comprehension? if so, how would that work?
Thank you for the videos!
Can you use multiple images or is that more tensorflow? Whens the next vid btw?
You can search for multiple images, but it starts getting slow pretty fast in my experience. I filmed the next video earlier today, so I should be done editing and have it uploaded in 2-3 days.
Hey,
Great tutorial!
Is it possible for you to make some tutorial on how to walk your character in in a defined square? I am trying to make a bot for pokemon game farming in grass and I am not sure how to move my character in the same area without it going to the wrong way.
Thanks!
Спасибо за видео!
Thank you!
Awesome tutorial bro!!!
KOOOOOOOOOOOL!!!!!!!! THANKS!!!!!!!!!!!!!!!!!!
very cool thank you
I ran into a problem with the code example at 10:23. When running that in VS Code my CPU usage spiked, the program took 5-10 minutes to finish, and the image result was different from the one in the video. For anyone having this example freeze up on them, the issue for me seemed to be calling "cv.waitKey()" with no argument (line 35). After changing "cv.waitKey()" to "cv.waitKey(0)" the code ran in a fraction of the time and produced the expected image result.
Thanks for pointing that out! From video 4 I started using cv.waitKey(1) myself. I don't recall why I made the switch, but I probably ran into problems, too.
@@LearnCodeByGaming Weird, I just went to double check and can't recreate the bug anymore. waitKey now works even without an argument. Some "magic smoke" stuff going on in my computer...
@@nburn8306 Oh man that'll drive you crazy. Glad it works I guess?
Thanks 👍👍👍
Your are a boss!!!!!
thanks a lot
ok, i do have the problem, that a result, which is false, has a higher confidence value, than what i am looking for, so i cant set the threshold higher, cause then i dont get what i want.
however, my object im looking for isnt static, its kinda a moving gif xD
still very nice videos so far, learned a lot
I wonder why does it have to reverse the locations, does it mean that np.where() returns the array of ys first then xs?
nice project dude
I have Pycharm so can't run and debug i tried to get visual code but can't make it to install opencv on it don't know why
I am new to coding i try a lot of site codeacadamy, pirple but i just can't still learn you somehow manage to explain a little better then others i hope i manage to learn something from you
Can we able to detect multiple objects of by giving two different sample templates
Yes, absolutely!
@@LearnCodeByGaming Could you please tell me how to give input to it.Thanks in advance
Conteúdo muito bom
Why do you have a black left eye, did you have any blows?
what settings do you use in vs code?
Hello, I,m using openCV to play game Mir4 automate by detect quests in game, please help me some idea!
Thank you very much
commenting for the algorithm
Emm bro. I love you
Using python 3.12 and opencv python 4.8.1 and the result format look different in my debugger, I can't scroll through results
it opens for me like 4 windows and in the last it only shows all the images im searching tho after i close same image with same marked sports appear.. any fix ? or its suppose to be like that ?
9:20 I think theres a thing called "Transpose" Which is much more intuitive and readable
For some reason, sometimes it will return a full black image when calling the WinCap.get_screenshot() method. I have to keep restarting the game and visual studio until it works again. Someone figured out this?
try out the python plugin and use the '# %%' code block to run python interactive cell
Matchtemplate thing does not work comes up with this (-215:Assertion failed) _img.size().height
Does anybody know a scale-invariant Template Matching method ?
And peoples think Diablo Resurrected will not have bots :X
its way more easier with cascade files
My code draws 5-10 lines for every object for some reason
I use your code:
threshold = 0.85
locations = np.where(result >= threshold)
print(locations)
# the np.where() return value will look like this:
# (array([1, 5], dtype=int32), array([1, 15], dtype=int32))
and this is my result:
(array([483], dtype=int32), array([514], dtype=int32))
please help me.
it couldn't even select all the required objects without garbage
trying to make a BOT for a game :D