THIS IS THE BEST TUTORIAL ON IN-SCREEN OBJECT DETECTION. PERIOD. Simplified and provides a base from which more things can be explored. Thank you for your efforts. I subbed and liked it. 🍻😊😊
@moisesdepaulodias798010 ай бұрын
Hey, thank you so much for your comment! It really made my day!
@noticiasdelinframundo10 ай бұрын
@@moisesdepaulodias7980 you can help me pls
@HoeLeeFuQQ10 ай бұрын
Agreed. This is legendary
@tankaccount29909 ай бұрын
As a software developer I thank you for how well this was made, it gave me a very good baseline to work with and was overall extremely well thought out, you earned my sub!
@moisesdepaulodias79809 ай бұрын
Thank you so much for your comment!!!
@R4ZZERE Жыл бұрын
owwwwwww dude Here is the training that I have been looking for for a year and could not find, you are the only one, please do not give up on the training and I will be waiting for the continuation, I am starting now. thxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@andreistelian90588 ай бұрын
Holy moly, it works. Thank you so much my friend. I did everything you said, exactly as you did and it works for a 3D game. I'm still stoked on how it works, but it's awesome anyway. Thank you so much my friend!!!
@moisesdepaulodias79808 ай бұрын
Hi there, thank you for your comment! A few months ago I was working on a bot for Ragnarok Online, but I was having a hard time finding online content showing how to create a object detector and make the detection results available in Python. So, when I created my one, I decided to try making a video about it (this video), I didn't expect to have such a good reception. I'm very happy that it worked and was useful for you!
@andreistelian90588 ай бұрын
@@moisesdepaulodias7980 that was what I wanted to do. I started with template matching from OpenCV, but it didn't worked quite good and I started looking through using OpenCV for object detection but couldn't find something so easy as what it is in this video. The only issue that I encountered, is that the model is a bit delussional and makes detection of other objects, but I will train another model after I finish with implementing all the things for my bot. Thank you very much. Also, do you know any resources for learning OpenCV. I'm a programmer, but I haven't looked through a lot of resources, what do you recommend for starting up with OpenCV
@matheusribeiro60465 ай бұрын
Que surpresa agradável! Fiz uma pesquisa em inglês pra aprender algo e descobri um brasileiro ensinando 🇧🇷🇧🇷, orgulho irmão!
@joaoaugusto63253 ай бұрын
Tava pensando em usar a tecnologia de yodo pra fazer um aimbot pro cs2, será que da boa?
@moisesdepaulodias79803 ай бұрын
hahahaah valeu pelo comentário! tentando representar o br hahaah
@Amin042 ай бұрын
I was losing fate in image detection projects after more than two years of researching to get this video by KZbin recommendation thank you man you open new world for us
@leomarzoli34985 ай бұрын
It worked for me, i used 350 images and Diablo 3 as example. I love you so much, you just helped me a lot with a project i had in mind!!! Keep the channel up!
@moisesdepaulodias79803 ай бұрын
hey man! I am very happy to know that the video was useful to you!! thanks for your comment!!!
@gametechtutorial467010 ай бұрын
This is so clear, i have search tutorial for object detection but didnt get the clear info or maybe im stupid so that i cant understand😅, but not for your tutorial, this is really clear for me, i can digest each of information/step, you really put big effort to make this tutorial man. Thanks alot bro. Subss.....🤜🤛
@moisesdepaulodias798010 ай бұрын
Hey man, thank you so much for your comment!!! I wasn't expecting such good feedback, but I am truly happy that my video is helping you out!!!
@diexdiag1098 Жыл бұрын
Thanks for this tutorial and the video, it helped me a lot with open cv and with a lot of problems and things that I didn't understand, thanks again
@moisesdepaulodias7980 Жыл бұрын
Thank you so much for the feedback! I'm really glad the tutorial was helpful for you!
@dynodyno697010 ай бұрын
Got my sub, thanks for this video my friend. It was truly amazing and very helpful for a noob like me. If your goal was to help people learn, then you should be proud, because this genuinely helped me a lot! Thanks again
@moisesdepaulodias798010 ай бұрын
Thank you so much for your comment! It really means a lot to me!!!
@dynodyno697010 ай бұрын
@@moisesdepaulodias7980 You're welcome. I get a warning message in the last cell when I attempt to train my model, it reads: "Warning: in txt-labels class_id=-1 >= classes=1 in cfg-file. In txt-labels class_id should be [from 0 to 0] Should I Ignore this? Eventually when it is done training i'll be able to see if it worked or not anyways.
@IndioPapaxota6 ай бұрын
Está faltando um desses em português Paulo! 🚀 🔥 Parabéns pelo vídeo.
@carloshenrique-ov5nk5 ай бұрын
seria ótimo
@moisesdepaulodias79803 ай бұрын
opa muito obrigado pelo comentário!! vou colocar legenda em portugues em breve nesse vídeo, abraço!!
@blind0ne1448 ай бұрын
Great tutorial! You are awesome. Please do more projects like this :)
@moisesdepaulodias79808 ай бұрын
Hey, thanks for your comment! I'm a little busy with my job right now, but I want to make more videos (mostly about other approaches without using machine learning, that use far less computer resources and in some cases they have the same result)
@Ireitsarof Жыл бұрын
amazing tutorial, keep bringing more for us
@henrique69965 ай бұрын
Moises, cara, eu estou tentando fazer isso faz tempo e não consigo. Você é espetacular, explicou de maneira didática! Faça mais vídeos!
@moisesdepaulodias79803 ай бұрын
cara, muito obrigado mesmo pelo seu comentário!! fico muito feliz mesmo que consegui te ajudar man, abraço!!! e vou tentar fazer mais videos quando conseguir um tempo livre
@pizza886 ай бұрын
Thanks buddy, the only one video makes sense for dataset training
@moisesdepaulodias79803 ай бұрын
hey, thanks for your comment!
@RodrigoPrincipe Жыл бұрын
You chose my favorite game! 🤩
@huelerssey7 ай бұрын
Cara, que tutorial perfeito! Parabéns irmão, espero que continue trazendo mais conteúdos do tipo!
@moisesdepaulodias79807 ай бұрын
Opa, muito obrigado pelo elogio mano!! De verdade mesmo!! Vou tentar trazer mais tutoriais como esse. Abraço!!
@enryu65037 ай бұрын
Cool tutorial. I wanted to ask, the images that is being captured on the generate dataset notebook only shows black pictures. I am using it on a browser game. Already tried using different browsers, but it still has the same output of only capturing black images. Is there a fix for this? Thank you :D
@adnanqadir2917 ай бұрын
same issue
@Ppalgang7 ай бұрын
same issue, stardew valley, ark, delta force2, spotify... all of them gives black screen
@strangeshorts65847 ай бұрын
Same 😢
@moisesdepaulodias79807 ай бұрын
Hi there. I had the opportunity to try to help one person with the same problem in a Discord call, and I believe that this is related to some anti-cheat of your game. Because in this Discord call, the code worked in some games, but in others it generated black screens (I also suspect that games within Steam may generate black screens as well). I suggest you try with other games to see if that is your case. For me, it worked with the games Terraria, Ragnarok Online, Diablo 2, and Fruit Ninja using the BlueStacks emulator. I am trully sorry I can't help any further, but I didn't encounter this problem while creating the tutorial.
@hebertlima80193 ай бұрын
I encountered the same issue. It turns out it’s not related to anti-cheat mechanisms, but rather an operating system security feature when you try capture a specific window. Even using "Calculator" as an example didn’t work. However, I managed to adapt the code to take screenshots using pyautogui instead of pywin32. This adjustment doesn’t affect the performance of the code significantly, but I’m not sure how it will impact the OpenCV detector script or its performance. Below is the adapted code for taking screenshots: import pyautogui import time import os def generate_image_dataset(region=None): if not os.path.exists("images"): os.mkdir("images") count = 0 while True: img = pyautogui.screenshot(region=region) img.save(f"./images/img_{count}.png") count += 1 time.sleep(0.3) if __name__ == "__main__": region = None # Tuple specifying the left, top, width, and height of the region to capture can improve performance generate_image_dataset(region)
@NakedSageAstrology8 ай бұрын
Amazing information, thank you.
@moisesdepaulodias79808 ай бұрын
Hey, thank you so much for your comment!!
@pl98208 ай бұрын
i got results and im stoked!
@moisesdepaulodias79808 ай бұрын
Hey!! I am happy to know that it worked for you!!!
@LucasAlves-bs7pf8 ай бұрын
Ouro puro, irmão. Obrigado pelo conteúdo.
@moisesdepaulodias79808 ай бұрын
opa, muito obrigado mesmo pelo comentário mano, de verdade!! Fico muito feliz em saber que vc gostou do vídeo!!
@tranquil318 ай бұрын
Subscribed, amazing content. Would love to see further development for this stuff
@moisesdepaulodias79807 ай бұрын
Hey, thanks for your comment man!!
@hycor8 ай бұрын
You are the best bro
@GustavoHenrique-vk8nn20 күн бұрын
Opa mano, no ultimo passo quando eu rodo fica spamando uma tela branca na célula do Jupyter, abre uma tela python chamado window e não detecta nada, gerei mais de 350 imagens para ter certeza e etiquetei com apenas uma label mais de 150, oque poderia ser ? Ja te mandei convite no Discord qualquer coisa te mando um print lá
@kruding7 ай бұрын
Didn't pass the first step , but liked and subbed. your guide seem promising for me. I got only black screen or sometime the first frame with jupyter window overlapse in it. hope I might make it pass the 1st step someday.
@moisesdepaulodias79807 ай бұрын
Hi there. I had the opportunity to try to help one person with the same problem in a Discord call, and I believe that this is related to some anti-cheat of your game. Because in this Discord call, the code worked in some games, but in others it generated black screens (I also suspect that games within Steam may generate black screens as well). I suggest you try with other games to see if that is your case. For me, it worked with the games Terraria, Ragnarok Online, Diablo 2, and Fruit Ninja using the BlueStacks emulator. I am trully sorry I can't help any further, but I didn't encounter this problem while creating the tutorial.
@Howard-xs2rb5 ай бұрын
Hi, I am tying to follow up the video, and I want ask if Macos computer could run these programs and how to download dependencies for Macbook
@moisesdepaulodias79803 ай бұрын
hey there! sorry but I didnt tested on mac so I cant tell for sure if it will work :(
@srcuia8 ай бұрын
TUTORIAL MT BRABO MEU MANO. Estou a algum tempo tentando fazer um bot pra um rpg pra treinar visao computacional, comecei identificando objetos com pyautogui, e mexi um pouco com opencv mas sem mts resultados nesse ultimo. precisava de um modelo que identificasse varios objetos na tela e creio que este será um bom ponto de partida. muito obrigado.
@moisesdepaulodias79808 ай бұрын
Opa, muito obrigado pelo seu comentário man, de verdade!! Como falei em algum comentário anteriormente, eu tentei achar um conteúdo assim como nesse vídeo, mostrando a criação de ponta a ponta de um sistema de detecção de objetos disponibilizando as coordenadas em python, mas não achava nada, daí qnd fiz o meu tentei fazer esse vídeo, mas não esperava uma recpção tão boa! Fico muito feliz que vc tenha gostado man!!!
@user-mw1uf8tf7w11 ай бұрын
Thank you! This is gold!
@amateruss4 ай бұрын
good for farming gold*
@ihatechocolate66213 ай бұрын
I have a question and I would be more than overwhelming apprecieate if you would reply. Im trying to create an autobot for an android game so i would have to run that game in the stage which I want to autoplay but my pc is relatively weak. Anyway, my question is, can I record my gameplay using my mobile and then upload it on my pc using the same size video so my bot would take picture not directly from the game but rather the video that I have played before (all I need the bot to do was to follow almost exactly what I do, to avoid object and park the car at the right destination) Im sorry for bad narrative Im really looking foward to our answer, i think your video is very useful and good😊
@hidrogenodeuterio4 ай бұрын
Es genial lo que haces, te deseo mucho éxito
@moisesdepaulodias79803 ай бұрын
¡Muchas gracias por el comentario!
@fuzion54673 ай бұрын
I keep getting a "windowcapture not defined" when I run the data capture/image training app.
@okthatsfine894718 күн бұрын
i love this tutorial
@complationbonanza9 ай бұрын
amazing tutorial
@keplerfall10 ай бұрын
Parça do céu, que video maravilhoso, mto bom msm, parabéns
@forensicsman320Күн бұрын
Can you do another video explaining how to add new objects to your dataset so it will identify new creatures in your game?
@pixelmz5 ай бұрын
Really clear explaination, obrigado!
@extraordinayАй бұрын
its answesome man, thank you for explaining it makes so much sense now. Can you pelase make one for the new yolo release?
@ViniciusOliveira-gr9bm26 күн бұрын
Moises monstro!
@TTA-of7yz8 ай бұрын
Hi, I tried your tutorial, but for some reason, when I did the first step, I captured the image of a game in bluestacks. All images came in black, or just the first frame picture. I tried to test the image capture in other applications, even on a notepad, and got the same result. Try to change Windows 11 and 10. Try changing the resolution and nothing. im new on this help plis :) btw, good tutorial, I fellow through the whole process.
@moisesdepaulodias79808 ай бұрын
Hi there, I recently helped another person with the same problem, in his case the problem was the game he was trying to detect objects, but in your case you said you were using bluestacks, so I dont know what is the problem.. can you call me on discord for us to search together? my user is moises-dias
@niloxz33676 ай бұрын
@@moisesdepaulodias7980 ur discord name is not right
@ruzgarhanoglu48622 ай бұрын
@@moisesdepaulodias7980 i have the same problem dude i am trying it for league of legends
@claudiosbc6 ай бұрын
Please record a video demonstrating how to click on the identified monsters. Vlw
@moisesdepaulodias79803 ай бұрын
hey there! i suggest you watch this video, i believe that you can use the same logic on the video to do that watch?v=gdIVHdRbhOs
@virno694209 ай бұрын
Could you make similar tutorial in C++? Maybe using DirectML library? In a lot of use cases python deployment for inference is just way too slow.
@moisesdepaulodias79809 ай бұрын
Hi there! Thank you for the suggestion! I will consider it for my next videos.
@MetalComment9 ай бұрын
How would you take your finished project and take the code in for your own visual studio code or pycharm for example?
@moisesdepaulodias79809 ай бұрын
Hi there, you can use the 'Jupyter' extension in VSCode to run notebooks. I used the Jupyter notebook web interface for simplicity.
@dsbo15078 ай бұрын
Quanto vc cobra para fazer um bot para matar Isillas no Ragnarok? Estou tentando aprender a programar, mas acho que não é possível para mim. Se entre em contato comigo, por favor.
@moisesdepaulodias79808 ай бұрын
Opa, cara, sendo franco, acho que em sites de programadores freelancers vc pode encontrar gente oferecendo esse serviço, eu até poderia vender um bot pra vc mas eu estou com tempo bem limitado, começei um trabalho novo recentemente que ta tomando 101% do meu tempo :(
@dsbo15078 ай бұрын
@@moisesdepaulodias7980 Eu meio que consegui rodar em servidor que tem Gepard Shield 3.0. Porém, ele começa matando normal, mas depois de alguns teleportes ele clicka no monstro e não acontece nada. Eu acho que é por causa do shield. Se vc souber alguém que faça, algum programa bem simples. Por favor, me avisa.
@MjRmHaCKEr9 ай бұрын
this is the best one for me
@Ramiyuuu2 ай бұрын
cara adorei o video me deu um interesse do caramba na area
@Guillobus4 ай бұрын
Hi bro!! thanks for the video, I wanted to ask you, is there a problem if you take the screenshots manually and use png format?, or if something would have to be modified to use that format
@moisesdepaulodias79803 ай бұрын
hi there! thanks for the reply! i only tested taking images using win32gui and saving as jpeg, i dont know if it will work with png but its worth trying, I hope that it will work for you. worst case i would sugest you try to convert them to jpeg and using the converted images on the training step
@hliasmous2217Ай бұрын
When I run the first cell at 4th part yolo opencv detector I get the error : "ModuleNotFoundError : No module named 'cv2'
@osamozilla78983 ай бұрын
THANK YOU!
@moisesdepaulodias79803 ай бұрын
you're welcome!! I am glad you enjoyed the video!!
@oilbender6 ай бұрын
Quick question? Any particular reason for not using a newer version of yolo?
@moisesdepaulodias79803 ай бұрын
Hi there! I used yolov4 because I have already used it before, but I believe newer versions would work just fine or even better.
@lucafritz48602 ай бұрын
Which programs do I need to perform the first steps? I tried to install everything the version of yolov4 normally needs and I’m still stuck at the commandline jupyter notebook stuff
@Hauseking_2 ай бұрын
I also got stuck on the same command line. I tried reinstalling jupyter notebook in a normal command prompt you can run "pip install notebook" and then check with "jupyter notebook" to make sure that it actually runs properly. Than close and reopen the cmd of the folder you were using in the first step. For me that fixed the problem. Hope this helps.
@rulofmg8 ай бұрын
Ragnarok Online !!! feels so nostalgic lmao. its the first game where I learn the botting world and programming.
@moisesdepaulodias79808 ай бұрын
me too! I started using some simple detectors (using colors, and shapes) until I needed some more complex detectors for detecting multiple different monsters at the same time (I used diablo 2 in this video but I was actually using this bot in ragnarok!)
@joaopedrofaria80924 ай бұрын
@@moisesdepaulodias7980 eu estou tentando construir para o ragnarok também, tem o código aberto pra me passar pra eu dar uma estudada?
@성이름-e2d9c3 ай бұрын
Thank you for great video! When downloading the zip file after annotating, the version of YOLO wouldn't matter? I'm planning to use YOLO10s
@Noelnnn8 ай бұрын
wow that was an amazing video! thank you:D I am a relatively new dev, so I wanted to ask: how can you capture a browser window?, having my problems, it will find the window, but the jpgs are only a small white line, it wont capture the whole browser window.. def subbed, really good stuff:)!
@moisesdepaulodias79808 ай бұрын
Hi there! Thanks for your comment!! Sorry but I didnt understand your question, you need to detect only part of the browser window?
@Noelnnn8 ай бұрын
@@moisesdepaulodias7980 Hi! thanks for your reply:D. I already solved it. I had my problems finding the right window_title I think, but then it did work somehow! Finished the whole project, it was amazing, functions perfectly!
@moisesdepaulodias79808 ай бұрын
@@Noelnnn Great!! I am happy to know that it worked!!!
@matheuspinheiro363718 күн бұрын
Hi, I wanted to know if you would make an automatic farm program for cloud mode... I work all day and I don't have much time to play, I wanted something simple so that when I get home I can already do my things
@joonyounglee80105 ай бұрын
Nice bro perfect
@moisesdepaulodias79803 ай бұрын
thanks!
@your13027 ай бұрын
thank you for your tutorial! i wanna ask what GPU are you using?
@moisesdepaulodias79807 ай бұрын
Hi there! Thanks for your comment! I am using the integrated GPU of my laptop, it's a Radeon 520 I believe.
@InMyLifeOfficiel5 ай бұрын
I'm encountering a problem at the outset: when attempting to generate a dataset of images from my game, all I'm getting are black screen pictures. I suspect Steam might be causing this issue by blocking certain functions. As a workaround, I tried running the game through Steamless, but unfortunately, I'm still facing the same problem of black screen images.
@InMyLifeOfficiel5 ай бұрын
I updated your code and now its working
@InMyLifeOfficiel5 ай бұрын
fuck, the window capture at the last step not working :(
@kirilllas72475 ай бұрын
@@InMyLifeOfficielYou fix it?
@moisesdepaulodias79803 ай бұрын
Hi there. I had the opportunity to try to help one person with the same problem, and I believe that this is related to some anti-cheat of the game you are testing (I also suspect that games within Steam may generate black screens as well). I suggest you try with other games to see if that is your case. For me, it worked with the games Terraria, Ragnarok Online, Diablo 2, and Fruit Ninja using the BlueStacks emulator. Also, I am using Windows 10, Python 3.11.3, I didnt tested in Windows 11 and other python versions. I am trully sorry I can't help any further, but I didn't encounter this problem while creating the tutorial.
@Anonym-n5j5 ай бұрын
Duuude.... God bless openCV...
@moisesdepaulodias79803 ай бұрын
openCV does help a lot!
@piattrocks5 ай бұрын
Thank you for the tutorial. I managed to follow it successfully! Would there be a way to modify it to be able to read and return words or sequences of numbers from what is being identified as well, or is that beyond the scope of YOLO?
@moisesdepaulodias79803 ай бұрын
Hi there! If you are interested in detecting words I suggest you look for OCR (Optical character recognition), maybe it will be better for your objective than object detection (sorry I dont know if I understand correctly your question)
@piattrocks3 ай бұрын
@@moisesdepaulodias7980 Thank you!
@funktionone8219 ай бұрын
I managed to set up everything, however, when I run it on my game the window that opens to display the detections is a still image, I can see the bounding boxes around the objects I trianed my Model for. If I rerun it shows the same image. Note that I run into an error due to this line img = np.fromstring(signedIntsArray, dtype='uint8') The Notebook error message suggested to change it to 'np.frombuffer' so I changed it and is not giving error now, but not working the same way like in yours, The displaying window is still image cant not interact and go around in game like you in that Window.
@moisesdepaulodias79809 ай бұрын
Hi there! Hmm, I haven't encountered this problem, but could you call me on Discord so we can try to fix it? My username is moises_dias. I'll do my best to help you.
@funktionone8219 ай бұрын
@@moisesdepaulodias7980 thank you I will add you on Discord, and contact you.I have the same profile image on Discord
@funktionone8219 ай бұрын
@@moisesdepaulodias7980 I sent youa friend request on Discord, I have the same profile picture like here. thank you in advance
@rco4139 ай бұрын
so how do you avoid being detected, the character will immediately be hit and use an automatic skill?
@moisesdepaulodias79809 ай бұрын
Hi there! Sorry, I didn't understand your question.
@rco4139 ай бұрын
@@moisesdepaulodias7980 i mean, bot auto attack
@cheekos94789 ай бұрын
its not detecting the window that is running
@moisesdepaulodias79808 ай бұрын
Hi there! Can you call me on discord? my user is moises_dias, I can try to help you there
@D-TechSoftwareSolution4 ай бұрын
thank you bro for the link..
@moisesdepaulodias79803 ай бұрын
you're welcome!! thanks for your comment
@rodrigoesquinelato98127 ай бұрын
Vídeo incrível demais! Sério, obrigado
@moisesdepaulodias79807 ай бұрын
Muito obrigado pelo comentário Rodrigo!! De verdade!!!
@Jojifans9 ай бұрын
can you make a video showing how to utilize yolov7 or newer?
@moisesdepaulodias79809 ай бұрын
Hi there! Right now I am working on a playlist of machine learning on Google Cloud, but in the future I will make a video with a newer version of yolo, thanks for the suggestion!!
@xDarknessLorddx4 ай бұрын
woow super nice, now how I can use it to farm or kill the mobss? xd
@Real_Gamer_clips2 ай бұрын
PLEEASE HELP ME when i run the # Execute this cell to generate a dataset of images for the specified window. window_name = "entername" # Replace with the name of your game window # Create an instance of the WindowCapture class wincap = WindowCapture(window_name) # Start generating the image dataset wincap.generate_image_dataset() matter a fact i got around it but now i have a probelm with the one at the end my window is not showing the window i want and it wont move
@NotDead1000810 ай бұрын
Love this.
@Szarlus3 ай бұрын
Ragnarok Online
@alvinwee2688 ай бұрын
Hi, there are some false positives with my trained model. Maybe because I only used 80+ images. To make any amendments, do i have to train it all over again?
@moisesdepaulodias79808 ай бұрын
Hi there, well, I think so, depending on the graphics you need far more than 80 images.
@alvinwee2688 ай бұрын
@@moisesdepaulodias7980 ok will give it a shot, thanks!
@fred-em5wx10 ай бұрын
Fala mano tudo bem, cara eu vou tentar usar esse seu modelo para fazer um bot de auto-pesca em um jogo, basicamente quando aparecer uma exclamação na tela o bot tem que começar a clicar até pescar o peixe, depois ele bota a vara na agua novamente. A exclamação quase nunca muda, e só quero detectar ela mesma, com 100 imagens no dataset eu já conseguiria um resultado legal?
@moisesdepaulodias798010 ай бұрын
Opa, tudo bom? Cara, esse modelo serviria sim, mas como você só quer detectar um icone (ponto de exclamação) da pra voce usar formas bem mais simples (usar o Template Matching do OpenCV) e que seriam efetivas e usando muito menos processamento. Da uma olhada nessa playlist, sugiro vc tentar essa abordagem dela, acho que vai super resolver para você: kzbin.info/www/bejne/gZbGfp-Citqce5Y e se precisar de alguma ajuda só chamar man, valeu!!
@ccuuttww6 ай бұрын
In 3D MMORPG games I think is more complicated especially non moving object
@moisesdepaulodias79803 ай бұрын
hi there! sure, for more complex graphics such as 3D games you need a lot more images for the training step, but it will work, i tried with counter strike 1.6 and it worked just fine, you can check there result here: kzbin.info/www/bejne/kHLJn6GlfL-Ylac
@Semajjz19 күн бұрын
When u say run it does that mean just click enter on the script
@카시오페아-p3o9 ай бұрын
Can I display a labelling box like an open cv screen inside the game screen or is there a way to send keyboard/mouse movement to the game inside the open cv screen
@moisesdepaulodias79809 ай бұрын
Hello! I dont know how to put the bounding box in the game screen. About the movement automation, that is possible to do! I created a new video where I show how you can automate actions based on the detections, you can see more details on the video: kzbin.info/www/bejne/nZWsh3uah8ebhdU
@siha867818 күн бұрын
hi i like to ask when it create a separate window why it keep showing the wrong window instead of the given named window at the first step am guessing it doing the same when it try to take a screenshot at that time jupyter notebook didn't run it keep saying name not define i just skip this step and write on my own IDLE and just send the picture to the yolo folder and somehow i got to the last step where we run the code and finally here i the jupyter notebook finally work and it show that it was making a separate window to display the images and finally it back to step 1 where it just show the terminal or jupyter notebook and not show the given name window Sorry first time using python idk anything
@visitor_t-w3p9 ай бұрын
Very helpful thank u
@mohammedbaig956910 ай бұрын
Hi I did not get to run the full training because it was taking too long so I just downloaded the last weights file like you suggested. However when I attempt to run the detection cell of the detection code all that's returned is a black screen. Do you have any idea what could be causing it?
@moisesdepaulodias798010 ай бұрын
Hi there, can you send me a message on linkedin with more information about the error? my linkedin profile is in the description, I will do my best to assist where I can.
@shenglinjing73507 ай бұрын
He is probably running the game in full screen mode, where the winapi is not able to capture since the data is stored internally. If you switch to windowed mode, it probably will work.
@EstefannyEchavarriaАй бұрын
at the end the window of results dosent have any update of the screen bluestacks is only a stactic picture help
@kevilayАй бұрын
I am having an issue when generating the images it is just giving me black images (using D2:Resurrected) I tried in windowed and full screen
@eternogigante685Ай бұрын
Have you ever had problems when captruing screens? I tried to do this for an online game but kept on getting blackscreen screenshots. I've tried to use pyautpgui to get the screenshots which worked but on the last step I realized that I will need to get the game window a way or another so couldn't finish my attempt. Also, great work! Do BR pro mundo maninho
@mohannd12343 ай бұрын
Does it works with 3d games? Especially the once that runs with launcher. Also, if I want to do fully automatic system for gathering rocks, trees just like minecraft, how to do it? Thnx a lot
@moisesdepaulodias79803 ай бұрын
hi there, sure! it works in 3d games too, i tested it in counter strike 1.6 and it worked just fine. I have another video in my channel explaining how to automate actions, I used fruit ninja as an use case but you can adapt to any game.
@mohannd12343 ай бұрын
@@moisesdepaulodias7980 great! How to apply inputs to gathering and farming?
@yokingdom99364 ай бұрын
Hey i'm having an issue with the screenshots, win32 is taking pictures of a small part of my game's window (upper left) but doesn't seem to want the full window. Any solution for that? cause i'm trying to resolve that and i can't find any solution. Please and thanks a lot for your video
@yokingdom99364 ай бұрын
ok sorry i kinda resolved my problem, it was due to my sceen scaling not at 100% but at 150% so going to 100% solved this issue
@moisesdepaulodias79803 ай бұрын
@@yokingdom9936 hey, sorry for the late reply but I am happy to know that you solved the problem!!
@drejcbevk7872Ай бұрын
How can I capture window screen from a fullscreen game using DirectX graphics? Now I only see a black screen
@efocus088 ай бұрын
please help i keep getting coomand error in 'pip' is not recognised as an internal or external. we=hen trying to install the libraries
@Burgerhs8 ай бұрын
My new pc did the same thing Download Python i used 3.10.5 make sure you click add to path during the installation
@davzz9204 ай бұрын
It will create a window? When i click on the window, my char in game won't move If put the window on top of my game window, and move my char in game, i can't see the detection from the created window.
@CodingJournal-pm1tq10 ай бұрын
Hi, thank you for the amazing tutorial! I am having a problem when after running the box starts "# Run this cell to initiate detections using the trained model." I get the window opening, but it just shows the initial screenshot it has received and does not update, it then shows the same screenshot on subsequent runs.
@moisesdepaulodias798010 ай бұрын
Hello. Did you make any changes to the code in the fourth notebook other than the window name? And did you copy the weights file correctly after training in the third notebook? Also, is there any error message on the output of the cell "# Run this cell to initiate detections using the trained model." ? Please send me a message on Discord so we can investigate together. My discord is moises_dias.
@CodingJournal-pm1tq10 ай бұрын
update: I just realized the same is happening for: 1_generate_dataset - Window Capture
@CodingJournal-pm1tq10 ай бұрын
Found the problem, for anyone with the same issue: The problem was running the game through steam
@durdurulamazguc7 ай бұрын
The game is a multiplayer FPS game. It doesn't find your window. Could the game developers have blocked it? What could be causing the problem? I changed the code a little, I can take a screenshot of the game when the screen is broadcast, but I think I either wrote the window of the game wrong or the game developers blocked it, I'm not sure.
@brazorya10 ай бұрын
Can you make a fully bot for Diablo 2 and the Hammer Paladin buid ? 😆 Or a maybe a game turn by turn like Waven build with Unity
@moisesdepaulodias798010 ай бұрын
Hi there! I created a continuation for this tutorial where I use pynput to automate actions in the game Fruit Ninja. With the same approach I used in these videos, I believe you can create a bot for these two games! Here's the link to the second video: kzbin.info/www/bejne/nZWsh3uah8ebhdU If you have any questions you can contact me and I will do my best to assist where I can.
@queixo6Ай бұрын
How do you deal with google colab instace disconnection? Training can be resumed?
@Real_Gamer_clips2 ай бұрын
is their a way for me to make the robot do somthing to the screen after detecting something
@Osteoporos1s4 ай бұрын
Does anyone know if the image capturing works with web-based games?
@moisesdepaulodias79803 ай бұрын
Hi there! I didnt tested in a browser window but I believe that it will work just fine.
@rodrigoesquinelato98127 ай бұрын
Salve Moises! No meu colab roda tudo menos a parte final. A pasta training fica vazia =/
@moisesdepaulodias79807 ай бұрын
opa, no colab aparece algum erro ao executar o comando !./darknet detector train ... ? e no final do segundo notebook (rotulando imagens), vc gerou a pasta yolov4-tiny e colocou na raiz do seu google drive?
@TheRealDagothUrАй бұрын
The config is broken, only supports jpg files, also the number of classes is not the same as the number of elements in classes array. Changing it all to actually match the set fixed it for me
@chucknorrisfactfr8 ай бұрын
hello when i try i get error: CreateCompatibleDC failed at the very first step, the one that screenshot your computer screen can you help me boss
@moisesdepaulodias79808 ай бұрын
hi there, can you send me a screenshot of the error in discord? my user is moises-dias, I will try to help you there
@JhonMartins-i3d4 ай бұрын
Bro tengo un problema al hora de subir los archivos a Drive, esta tiene 8 elementos. en tu video hay 9 elementos.. Donde esta el faltante?
@ratox14654 ай бұрын
Fala mano blzera? Parabéns pelo tutorial, quando puder, faça uns conteúdos em portugues tambem! Valeu! :D
@moisesdepaulodias79803 ай бұрын
opa, obrigado pelo comentário!! vou fazer em portugues tbm sim, fiz em ingles pra tentar melhorar a fala mesmo hahah
@kristopherleslie83438 ай бұрын
why not an outline trace in modern colors? boxes is an old addage.
@moisesdepaulodias79808 ай бұрын
Hi there, for my goal (detecting the center of the monsters) using bounding boxes was enough. But for more complex applications (like detecting the head of a player in the game counter strike) I believe that an outline trace would be better
@kristopherleslie83438 ай бұрын
@@moisesdepaulodias7980 makes sense buddy
@kristopherleslie83438 ай бұрын
A good reference would be the old Halo game ODDT. One of the best I’ve ever seen.
@yamayomi7779 Жыл бұрын
Thank you very much how can I apply this tutorial on local environment and how to use CPU I get GPU limitation and it requires payment
@moisesdepaulodias7980 Жыл бұрын
Hi there, thanks for your comment! Only step 3 (Model Training) is performed in Colab, all the other steps are using a local environment. I would not recommend using CPU for training your model for two reasons: first, it will use almost 100% of your CPU while your model is training, and second, it will take far more time than using a GPU. If you are facing GPU limitations, I would suggest that you create a new Google account and access Colab using this new account. This way, you will have a new GPU usage quota. Can you try that and see if it solves your problem?
@yamayomi7779 Жыл бұрын
@@moisesdepaulodias7980 Hello, again :) well I managed to pass the model training step, but I got stumbled across the following error while running the detector --------------------------------------------------------------------------- error Traceback (most recent call last) Cell In[20], line 8 5 weights_file_name = "yolov4-tiny-custom_last.weights" 7 wincap = WindowCapture(window_name) ----> 8 improc = ImageProcessor(wincap.get_window_size(), cfg_file_name, weights_file_name) 10 while(True): 12 ss = wincap.get_screenshot() Cell In[19], line 11, in ImageProcessor.__init__(self, img_size, cfg_file, weights_file) 9 def __init__(self, img_size, cfg_file, weights_file): 10 np.random.seed(42) ---> 11 self.net = cv.dnn.readNetFromDarknet(cfg_file, weights_file) 12 self.net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV) 13 self.ln = self.net.getLayerNames() error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:217: error: (-212:Parsing error) Failed to parse NetParameter file: yolov4-tiny-custom_last.weights in function 'cv::dnn::dnn4_v20230620::readNetFromDarknet' Thanks for caring
@LOGFILEGDmegusta7 ай бұрын
is it possible make it using javascript / node?
@moisesdepaulodias79807 ай бұрын
Well, if there's a way to use a machine learning model using JS/Node, I believe it's possible. But I don't have experience with that language. I suggest you look into how to perform the actions I do using Python (like identifying a window, taking a screenshot of the window, using a YOLO model, etc.) but with Node.
@rofus-_-11019 ай бұрын
is it possible to use a .pt file instead of an weight?
@moisesdepaulodias79809 ай бұрын
Hi There! Unfortunately, I didn't tested with a .pt file.
@xenofonpsarras29865 ай бұрын
The screenshots in the Images folder are black all of them, idk why this happening, anyone knows ?
@СаняМиненов4 ай бұрын
+
@moisesdepaulodias79803 ай бұрын
Hi there. I had the opportunity to try to help one person with the same problem, and I believe that this is related to some anti-cheat of the game you are testing (I also suspect that games within Steam may generate black screens as well). I suggest you try with other games to see if that is your case. For me, it worked with the games Terraria, Ragnarok Online, Diablo 2, and Fruit Ninja using the BlueStacks emulator. Also, I am using Windows 10, Python 3.11.3, I didnt tested in Windows 11 and other python versions. I am trully sorry I can't help any further, but I didn't encounter this problem while creating the tutorial.