If you're having trouble with a black screen when you try to do the window capture, continue on to video #5 for a fix.
@surf78633 жыл бұрын
I have been trying to capture a game to make a notification system to notify a player on discord via a bot when they find a match. i am able to do it when the game is open in windowed or borderless windowed, when using fullscreen it returns a blackscreen.
@trevorsatori3 жыл бұрын
search skill increased to 70
@tavi73 жыл бұрын
Nice video but I don't get the point, it's not faster than pyautogui at all, same 20 fps so why even bother?
@trevorsatori3 жыл бұрын
@@tavi7 Try MSS for screen capture. You should see noticeable fps increase. Also If you watch his last video in the series where he implements threading, fps increases to over 100+ and no longer is an issue
@deckard60523 жыл бұрын
Which VScode color theme are you using in this video, I love it! Awsome video btw helped me a lot.
@navidchaichi714 жыл бұрын
The most honest programmer I have seen in KZbin, keep continuing what you are doing. I rarely put comment for someone... Thanks!
@LearnCodeByGaming4 жыл бұрын
Thanks appreciate it!
@PainfulDeath4 жыл бұрын
Man, I seriously enjoy your style of explaining things. It's the small stuff like that remark at 6:10 for example. Kudos and keep up the good work! :)
@LearnCodeByGaming4 жыл бұрын
Thanks!
@andykim16144 жыл бұрын
I can't stress enough how your style of explanation helps us understand both the concept and the practicality of OpenCV. Huge huge thanks!!
@LearnCodeByGaming4 жыл бұрын
Glad to help!
@psiborger72744 жыл бұрын
You are quite possibly the best instructor I have ever had...in any subject. Fantastic!
@CrazyFanaticMan2 жыл бұрын
I would honestly put you in the top 1% of coders on KZbin who are actually good teachers as well. Wow.. just wow.. I'm amazed at how clear and concise you made everything I'm subscribing for sure
@ilia98722 жыл бұрын
Top 0.1% I would say
@CrazyFanaticMan2 жыл бұрын
@@ilia9872 Tbh yeah haha he's just that good
@PureForloko4 жыл бұрын
I’ve only seen one of your videos so far, and skimmed through this one but I can definitely say that your unique content has gotten me very motivated to dedicate even more time for programming.
@LearnCodeByGaming4 жыл бұрын
Awesome man, keep at it.
@Newton-vi4vs4 жыл бұрын
this is by far the best episode of the series. I always love the idea of the author walking through the mental process on how solve the problem. Appreciate your effort Ben. Take care
@KKimo-y3i Жыл бұрын
Man, thank you so much this really helped a lot. I liked that instead of just saying the answer and keep going, you search Google in front of us about each problem you encounter and then analyze the written code and try to make us understand more. This is the best openCV tutorial I ever saw on KZbin❤
@s1ack3r074 жыл бұрын
This is the first playlist on KZbin I've been waiting on the next episode, learning tons thanks for this resource!
@TWBIG656623 жыл бұрын
This is one of the finest tutorial I've searched. It goes step by step and everything was explained. I'm glad I didn't miss this one.
@Al_Gonzo2 жыл бұрын
Underrated channel. I'd be happy to see even more videos from you, no pressure.
@andrewgreen26264 жыл бұрын
Thank you for your calm style of teaching; you alone have helped me learn more than anybody else on KZbin.
@LearnCodeByGaming4 жыл бұрын
Awesome! I wasn't sure when I started, but hoped my style would resonate with some people.
@kitsab84154 жыл бұрын
Forever grateful for your videos. I haven't started diving into Python but watching you explain a lot of stuff that are not often explained to beginners is sooo helpful. Keep it up!
@LearnCodeByGaming4 жыл бұрын
Thanks for your comment. Good to know I'm on the right track!
@TabishTabby4 жыл бұрын
I have no words to describe how much I like your tutorials. All I can think of is Thank you.
@methodiconion85233 жыл бұрын
I appreciate your emphasis on problem-solving and research. It's almost like the specific purpose of your video is second to the more general process of research/coding/bug-fixing.
@knightUmbra Жыл бұрын
"This video is getting kind of long" What are you talking about? We had been here for 5 min... whoa, time does fly when you are enjoying something! Absolutely fantastic, thank you for your work!
@y.m.69884 жыл бұрын
It’s quite nice you included your thought process when you were googling stuff, for beginners like me that could be quite inspiring and i haven’t seen any other tutorial videos which have done this
@zanesimmons14822 жыл бұрын
I've been smacking my head into a keyboard all day trying to understand Classes. I've had it explained to me 4 times (usually with a Class Person analogy), but your explanation was the first time it clicked. Thank you!
@doctorglock16914 жыл бұрын
I really like the way you teach. You are not a "know-it-all" guy. I appreciate that you showed how real programmers work. Sometimes the most basic concepts are forgotten and just a simple google search for an example function is what needed. You got a subscriber here, keep it up! :)
@LearnCodeByGaming4 жыл бұрын
Thanks!
@Nathan29042 жыл бұрын
i was about to say how good teacher you are but ppl actually just did. Wow, in seconds you were able to explain concepts that ppl take hours to doo. so simple and easy to understand. GRATS
@ramborambo56774 жыл бұрын
The way you teach is awesome. Very precise and to the point. Mark my words. You will easily be one of the most followed teachers for programming in the future. Looking forward to your videos. Please do consider integrating ML into game automation for your next series.
@LearnCodeByGaming4 жыл бұрын
Thanks for the kind words. Yeah I definitely want to get to machine learning stuff before too long.
@VonchkynProduction4 жыл бұрын
Thank you for making this video. It's really helpful to see the full process of not just building the code, but also researching reference codes.
@lucasfontesgaspareto2 жыл бұрын
Woow, thank you so much, i saw this video more than one year ago and today i was with an issue related with shape of screenshots in cv2 and i remembered that you used in the tutorial
@mischavandenburg3 жыл бұрын
I got to hand it to you, you are an amazing teacher. I have worked through a couple of Python Fundamentals books / courses which all included a chapter or two on OOP. But it wasn't until I listened to your game character class analogy that things finally clicked for me! I still have a lot to learn, but I finally understand why the code I am trying to grasp contains all of these "self" references, haha! Thank you very much for these great tutorials and I look forward to watching the rest of the series.
@riskant8263 Жыл бұрын
that class explanation was a very creative and gave me a new, more fun perspective regarding classes. Thank you
@abdelali64043 жыл бұрын
thank you alot for this video , i like the way you explain things especially learning how to search instead of giving us the solution directly
@Ehxx4 жыл бұрын
I'm hoping the next video is out today/tmrw, loving these! Surprised they don't have 100x more views.
@PierreLR3 жыл бұрын
The penny has finally dropped after the way you explained classes and the self variable. I can't believe I've never understood classes before. Thanks!
@LearnCodeByGaming3 жыл бұрын
That's awesome to hear!
@n1guild4 жыл бұрын
Capturing just the window is a game changer, looking forward to your next video. Cheers
@LearnCodeByGaming4 жыл бұрын
Yeah it definitely is!
@ngoantranthanh54923 жыл бұрын
you are great. I don't speak English so I have to use google translate to comment. Very detailed instructions easy to understand. For those who don't know anything about programming like me, but also understand. Thank you very much.
@thedeveloper6434 жыл бұрын
this series keeps getting more interesting!!! aw man thank you so much
@LearnCodeByGaming4 жыл бұрын
Glad you like it!
@davidjmstewart4 жыл бұрын
Great content, great channel idea. I'm not new to programming but I am new to OpenCV, this is a really engaging way for me to get into the content. Hope you continue on with it. Subscribed with notifications, can't wait for the next one!
@LearnCodeByGaming4 жыл бұрын
Thanks David!
@FromIVtoV2 жыл бұрын
It’s awesome that you go into how you research. This probably helped so many people with just research generally - great work! Awesome post
@thanhhaphan51834 жыл бұрын
Thanks a lots for the great video! The way you demonstrate the research to get the solutions is really helpful. Looking forward to your next video!
@akanuwolf8 ай бұрын
I have never been so motivated to learn, I love this video
@shadikhalil70304 жыл бұрын
I learn lots of new things in every single video from you. Although I'm not a beginner Tank you very much ❤️❤️❤️
@LearnCodeByGaming4 жыл бұрын
Thanks for watching!
@justink47344 жыл бұрын
I'm learning a ton from this. I'm building a bot that will do object recognition, log the object and the player inserted title of the object, take action upon the object, and move on to the next. I'm really interested in learning how to use a folder of images to detect each object in the frame. Maybe some kind of ML / AI tool. Awesome!
@LearnCodeByGaming4 жыл бұрын
Awesome, sounds fun! I'll definitely be making videos down that path of using multiple images for detection, and eventually machine learning things too.
@devilsprideyt18194 жыл бұрын
I have a working script for a Image Search using an array of images from a folder using a screencapture from a WindowHandle. But it's in Autoit. I will posted a video of my Bot in some time. I am working on an Android game and capturing it via an Emulator and further sending mouse and keyboard commands via a window handle.
@garic42 жыл бұрын
I had to stop by and personally thank you for this amazing tutorial video. This is top quality material. I have just subscribed and hope to see more of your content. Ty so much for sharing
@Yes.Im.Mr.Anderson4 жыл бұрын
This is the first time im gonna turn on the notifications on youtube.
@devilsprideyt18194 жыл бұрын
Truly brilliant and neatly arranged video series. I was looking to shift my code to Python (from AutoIt), expecting Python to be significantly faster. But calling out WinCapture is same in both cases.i prefer Autoit code to Python as it's easier for me. I will wait for your final video to see the performance before i start shifting my code to Python. Thanks for the information and details on the methodology.
@LearnCodeByGaming4 жыл бұрын
Thanks for watching! I haven't used AutoIt before, I'll have to check it out.
@logiclogical43454 жыл бұрын
Yes, AutoIt is easier for automation and hacking. Trying to shift to Python too.
@JoshCA20094 жыл бұрын
Love your videos, very helpful and easy to understand.
@LearnCodeByGaming4 жыл бұрын
Thanks!
@qwerty-wt5dr3 жыл бұрын
You move like Richard from Silicon Valley when you talk. Great video btw
@luddesson4 жыл бұрын
This was exactly what i needed for my project, great timing
@OFadigas4 жыл бұрын
MAN YOU ARE AWESOME! FROM BRAZIL. This help me a lot in my project. Keep the good work. Your think process is so good, and help so much! Thx
@LearnCodeByGaming4 жыл бұрын
Glad to help!
@OFadigas4 жыл бұрын
@@LearnCodeByGaming Looking forward to the next video.
@johnathangomes37504 жыл бұрын
O cara é muito bom, melhor coisa q o youtube fez foi me jogar nos videos dele kkkk
@OFadigas4 жыл бұрын
@@johnathangomes3750 Sim! To fazendo um projeto aqui e isso me deu um norte muito bom, desenvolvi mil vezes mais rápido com alguns conceitos dele
@kieudung3 жыл бұрын
Not only got what I need, but also more lesson about googling. Very good tutorial :)
@jairtontf4 жыл бұрын
Dude! This is perfect! I'm doing a bot using opencv and your video help me a lot!!! Thank you so much!!!
@LearnCodeByGaming4 жыл бұрын
Nice!
@sa-hq8jk2 жыл бұрын
thanks for showing me some useful tips for google searching solutions to my problems but looks like i didn’t need to! this video was so helpful! thanks so much
@preethamdbz20234 жыл бұрын
Cool tuts man. I'm currently developing minimilitia game bot using adb_shell, pynput,numpy. I never thought of using opencv to detects it's characters location - x, y axis. Thanks man.
@leonardobarros98004 жыл бұрын
The best videos I have ever seen, I look forward to the next part
@LearnCodeByGaming4 жыл бұрын
Thanks!
@muhammadasyraf18302 жыл бұрын
This is the best free software Ive seen. Respect.
@scoringdigitsson.51944 жыл бұрын
This is crazy man, thanks for sharing. Now i have some ideas for my project.
@Proprogrammer0013 жыл бұрын
How do you have just 10k subscribers? I wish I found this content when I started my university four years ago, these are gold explanations and tips
@rebe1Yell2 жыл бұрын
Instead of removing alpha by looping through the image array you can run cv.cvtColor(screenshot, cv.COLOR_RGBA2RGB) before cv.imshow('Computer Vision', screenshot). That gives back ~10 FPS.
@ariyudopertama2371 Жыл бұрын
noted (by me 😊)
@brunotatagiba6588 Жыл бұрын
did you mean this drop inside get_screenshot function? -> img = img[...,:3] the cvtColor can be inputed in the window capture return in get_screenshot function -> return cv.cvtColor(img, cv.COLOR_RGBA2RGB), doesn't necesseraly need to be inputed in main, but i get your point, gonna test it, thanks
@NateSpring2 жыл бұрын
Wow, I learned a bit about Python classes. You present very well and to the point. Nice work!
@S1lenc319913 жыл бұрын
If i ever would have to teach someone basics about classes, i definately use your explanation. That was awesome, which i would have learned it that way :D
@kalopseeia16173 жыл бұрын
This is the best explaining while coding, Thanks
@topeque69932 жыл бұрын
DUDEEE I UNDERSTOOD CLASSES NOW SO MUCH MORE THNX TO YOUUUUUUUUUUUU THANK YOU SO MUCHHHHHHHHHHH IVE BEEN STRUGGLING PYTHON OOP AND WHEN I WATCED THIS VIDEO IT MADE IT SOOO CLEAR
@thiagobrazileiro66903 жыл бұрын
Amazing, thank you so much for this video. I'm from Brazil and I dont have a really good english level, but I achieved to understand what you said. Thank you again, see you um next videos
@ascenderx3 жыл бұрын
I'm playing Albion Online and learning to work with open CV How perfect is this!!
@daddyofalltrades4 жыл бұрын
You are probably one of the most underrated channels on KZbin for this type of content. You deserve more subs.
@joshcummins39164 жыл бұрын
Being a pro googler makes sense. I find that I run into issues all the time but one simple google search and everything is good.
@farzadrahmani10462 жыл бұрын
no sNice tutorialt. Always watched soft-soft beginner guides and understood notNice tutorialng. But now I am feeling the first ti like I can start making
@jt_mmxx4 жыл бұрын
I love the comment at the beginning "Talking about the importance of good googling skills" Hahaha
@saint-jiub4 жыл бұрын
Epic video Ben! I've been enjoying the series. This is better than paid udemy courses btw. Thanks!
@Zeeye4 жыл бұрын
These videos are fantastic. There's a reason why nobody pressed the dislike link. I can't wait for the next video and I hope the notification bell sends me a message. Do you have twitter?
@LearnCodeByGaming4 жыл бұрын
Thanks! I do have a twitter: twitter.com/BenLearnCode
@Zeeye4 жыл бұрын
Learn Code By Gaming great! You have a new follower.
@rodpadev2 жыл бұрын
This is a very good tutorial. Subscirbed! I'm learning this so I can build a tool that waits for a specific S class ships to land in No Man's Sky and pause the game. Proably not going to be easy but this already putting me in the right path
@vitordeoliveira61393 жыл бұрын
Great Video, congrats from Brazil. (Sharing knowledge to all world) :D
@0xf1724 жыл бұрын
Nice work ! :) next episodes detect object from those frames of game :) problems : multi objects detect === more slower multi image template for each object ===== more slower draw those rectangle ... Good luck !
@LearnCodeByGaming4 жыл бұрын
Thanks! Yep, that's what's coming up.
@0xf1724 жыл бұрын
@@LearnCodeByGaming i made a community of "bot building" in facebook , if you are interested to join :) us facebook.com/groups/botbuilding greetings.
@fmarenotmyinitials4 жыл бұрын
Great videos! Easy to understand and follow. Thank you
@notu483 Жыл бұрын
Thank you for helping us beginners out.
@adfinemrising2 жыл бұрын
it's so cool seeing someone code that doesn't hide anything
@enriquepereira59184 жыл бұрын
In Linux there is the python mss() module, by which in my modest 1366x768 px screen, it reaches 130~140 fps. A gt1030 graphic, and a FX6300 processor with 8GB ram, so I suppose that if someone has something better than that, the result should be even better. Anyway I want to thank you for the fact that you teach python. I don't speak English, so I use automatic subtitling and translation to understand you. I have learned several things, thank you very much. You teach in a very pleasant way, and I even relax hahaha
@LearnCodeByGaming4 жыл бұрын
Thanks for sharing that info! And cool to hear that the subtitles work well.
@emiliomota24594 жыл бұрын
Dude You rock bro, also could you make a tutorial to how to read and understand documentation of python modules in general?
@LearnCodeByGaming4 жыл бұрын
Thanks Emilio! Yeah I've thought about doing videos like that. I'll add it to my list of ideas.
@emiliomota24594 жыл бұрын
@@LearnCodeByGaming thanks man, also what is a good project for a newbie to do for learning yo aplying the theory?
@ceefarbs5602 жыл бұрын
Thanks man this was really helpful and I learnt a ton, appreciate the effort, really great tutorial
@peacepeople102 жыл бұрын
Hey did you get a black screen?
@1kamikaze14 жыл бұрын
Aside from the importance of good googling skills, it's wise to also give back to the community, a single upvote could greatly help. I feel sad for the StackOverflow link who deserves an upvote whom you got the useful info from, so I gave both of them one :) Great content along with humor!
@Гусьэкономит Жыл бұрын
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!
@teidenzero7 ай бұрын
Thank you so much, Richard Hendrix!
@calmius24 Жыл бұрын
Bruh it's very sad you stopped making videos, this was a great material.
@paulobras44732 жыл бұрын
brother you are insane in a very good way! genius thanks for sharing knowledge
@MRSMITHENTOP9 ай бұрын
You are a true master at opencv xD bravo 👏
@Themusicbiz3 жыл бұрын
Dude I'm so glad I found this channel!
@СкрипачНенужен-х6э Жыл бұрын
Ben, you are my personal Jesus Christ! Thank you for your work, which causes incredible admiration! Hello from Russia.
@cinoaz12432 жыл бұрын
First, great videos. Learning python and this really helped. Huge kudos. Unfortunately, the screencapture would not work for me with a game based on Unreal Engine. I think it has to do with how 3D graphics are rendered on screen, not sure, but I kept getting that "Black Screen" capture and nothing fixed it, checked Video #5, still, black screen. I ended up having to use my Steam Overlay Screenshot feature to capture the screenshots then read them into Python and used CV to manipulate the shots. That has downsides as well. Would love to hear from someone that solved the "Black Screen" capture with CV on 3D accelerated games (like Unreal Engine). BTW, I was using Sea of Thieves as my game reference.
@michael43533 жыл бұрын
Thanks for the videos. I am really enjoying them. Little bit slower progress because I have to translate everything into C++. :) So far so good though!
@WilliamFaf2 жыл бұрын
i would love more python old school runescape projects from you
@about10824 жыл бұрын
Your Videos Helped Me SO MUCH
@puripattphanpao24954 жыл бұрын
Thanks, this is help me a lot. I'm still waiting for 5# and so on.
@LearnCodeByGaming4 жыл бұрын
Just posted video 5! kzbin.info/www/bejne/bZyXm2CrgZ2KibM
@aarjey52363 жыл бұрын
brooo u are the best your videos are just what i wanted to learn thanks man
@mariusschubert48824 жыл бұрын
Exactly what i was looking for, well explained, thanks A LOT :)
@henrisky49984 жыл бұрын
I am working on a project to practice object detection and obtaining screen positions by locating the object and complete automated tasks on the game client. This video was extremely helpful. thank you for this! When will the next part come out?
@LearnCodeByGaming4 жыл бұрын
Glad it helped! Next OpenCV video I'm planning on having done sometime next week.
@steubens72 жыл бұрын
the area inside the frame is called the client area and GetClientRect will get the adjusted rectangle
@Kanjas192 жыл бұрын
Thank you so much. I finally got to learn how to write classes. The albion capture doesn't work, I'm assuming as they have the anti-cheat system enabled.
@47670392 жыл бұрын
Easy to follow as you explain.
@mindofpaul9543 Жыл бұрын
This video was super helpful. The only downside is that you clearly main hunter in WoW.
@GabrielAraujo-xy2qc Жыл бұрын
🤣🤣🤣
@RecursiveRealm4 жыл бұрын
I love this guy's video
@AverageTV3 жыл бұрын
the step at 12:12 I dont get an error when running the code but there is also no screenshot saved. It prints out the done thats it What could be wrong ?
@0day3863 жыл бұрын
Good instructor. Enjoyed the video.
@pouya86382 жыл бұрын
Amazing video. It has been helping me out alot!
@Smbrine Жыл бұрын
16:25 or something around it. you might go with this line: img = cv.cvtColor(img, cv.COLOR_RGBA2RGB) as a result, almost no performance drop, no alfa, no errors.