Build an Object Detector for Any Game Using YOLO

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025

ความคิดเห็น • 386

  • @alpha-dq5nh
    @alpha-dq5nh ปีที่แล้ว +70

    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. 🍻😊😊

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +6

      Hey, thank you so much for your comment! It really made my day!

    • @noticiasdelinframundo
      @noticiasdelinframundo ปีที่แล้ว

      @@moisesdepaulodias7980 you can help me pls

    • @HoeLeeFuQQ
      @HoeLeeFuQQ ปีที่แล้ว +3

      Agreed. This is legendary

  • @tankaccount2990
    @tankaccount2990 ปีที่แล้ว +36

    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!

  • @andreistelian9058
    @andreistelian9058 10 หลายเดือนก่อน +13

    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!!!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน +5

      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!

    • @andreistelian9058
      @andreistelian9058 10 หลายเดือนก่อน

      @@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

  • @stranostrani9212
    @stranostrani9212 11 วันที่ผ่านมา +1

    I followed the tutorial step by step until the end, and I must say it was incredibly simple. You explained everything so clearly, basically you did all the job I only had to label the dataset. Thank you so much for the great work! This makes me want to dive deeper into the AI/Bots/Automation topics.

  • @R4ZZERE
    @R4ZZERE ปีที่แล้ว +13

    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

  • @Amin04
    @Amin04 4 หลายเดือนก่อน +2

    I was losing fate in image detection projects after more than two years of researching to get this video by TH-cam recommendation thank you man you open new world for us

  • @matheusribeiro6046
    @matheusribeiro6046 7 หลายเดือนก่อน +14

    Que surpresa agradável! Fiz uma pesquisa em inglês pra aprender algo e descobri um brasileiro ensinando 🇧🇷🇧🇷, orgulho irmão!

    • @joaoaugusto6325
      @joaoaugusto6325 6 หลายเดือนก่อน

      Tava pensando em usar a tecnologia de yodo pra fazer um aimbot pro cs2, será que da boa?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน +2

      hahahaah valeu pelo comentário! tentando representar o br hahaah

    • @viniciuslolk
      @viniciuslolk 22 วันที่ผ่านมา

      @@joaoaugusto6325 dar até da, porem esbarra num problema de fps, sua placa de video tem que ser muito boa pra gravar a tela, rodar o modelo de ia, e o codigo para mecher o mouse, caso o fps da gravacao da tela seja ruim, o modelo da as coordenadas x e y atrasadas, dai o aimbot nao funciona bem, precisa de um hardware bem potente, ou usar os modelos de menor precisao do yolo, mas ai o aim fica pior.

  • @leomarzoli3498
    @leomarzoli3498 7 หลายเดือนก่อน +6

    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!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      hey man! I am very happy to know that the video was useful to you!! thanks for your comment!!!

  • @gametechtutorial4670
    @gametechtutorial4670 ปีที่แล้ว +5

    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.....🤜🤛

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว

      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!!!

  • @blind0ne144
    @blind0ne144 10 หลายเดือนก่อน +1

    Great tutorial! You are awesome. Please do more projects like this :)

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      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)

  • @miku
    @miku 9 วันที่ผ่านมา

    I wonder how usable that is for the Valorant crowd.

  • @enryu6503
    @enryu6503 10 หลายเดือนก่อน +11

    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

    • @adnanqadir291
      @adnanqadir291 9 หลายเดือนก่อน

      same issue

    • @Ppalgang
      @Ppalgang 9 หลายเดือนก่อน

      same issue, stardew valley, ark, delta force2, spotify... all of them gives black screen

    • @strangeshorts6584
      @strangeshorts6584 9 หลายเดือนก่อน

      Same 😢

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน +2

      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.

    • @hebertlima8019
      @hebertlima8019 5 หลายเดือนก่อน +3

      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)

  • @dynodyno6970
    @dynodyno6970 ปีที่แล้ว +3

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +1

      Thank you so much for your comment! It really means a lot to me!!!

    • @dynodyno6970
      @dynodyno6970 ปีที่แล้ว

      @@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.

  • @josevinicius5883
    @josevinicius5883 22 วันที่ผ่านมา

    VAI BRASIL
    Moro no Reino Unido, seu ingles ta bem bom cara. Tem o sotaque, mas da pra entender perfeitamente voce. Parabens mesmo, primeiro pelo tutorial claro e segundo por ter peito e colocar o brabo em ingles.
    Bahhh piazao entrei no teu linkedin tu ainda e curitibano kkkkk

  • @IndioPapaxota
    @IndioPapaxota 8 หลายเดือนก่อน +6

    Está faltando um desses em português Paulo! 🚀 🔥 Parabéns pelo vídeo.

    • @carloshenrique-ov5nk
      @carloshenrique-ov5nk 7 หลายเดือนก่อน +1

      seria ótimo

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน +2

      opa muito obrigado pelo comentário!! vou colocar legenda em portugues em breve nesse vídeo, abraço!!

  • @huelerssey
    @huelerssey 10 หลายเดือนก่อน

    Cara, que tutorial perfeito! Parabéns irmão, espero que continue trazendo mais conteúdos do tipo!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน

      Opa, muito obrigado pelo elogio mano!! De verdade mesmo!! Vou tentar trazer mais tutoriais como esse. Abraço!!

  • @Ireitsarof
    @Ireitsarof ปีที่แล้ว +5

    amazing tutorial, keep bringing more for us

  • @NakedSageAstrology
    @NakedSageAstrology 10 หลายเดือนก่อน +3

    Amazing information, thank you.

  • @henrique6996
    @henrique6996 7 หลายเดือนก่อน +1

    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!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      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

  • @tranquil31
    @tranquil31 10 หลายเดือนก่อน

    Subscribed, amazing content. Would love to see further development for this stuff

  • @pizza88
    @pizza88 9 หลายเดือนก่อน +1

    Thanks buddy, the only one video makes sense for dataset training

  • @pl9820
    @pl9820 10 หลายเดือนก่อน +1

    i got results and im stoked!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน +1

      Hey!! I am happy to know that it worked for you!!!

  • @fuzion5467
    @fuzion5467 5 หลายเดือนก่อน +3

    I keep getting a "windowcapture not defined" when I run the data capture/image training app.

  • @RodrigoPrincipe
    @RodrigoPrincipe ปีที่แล้ว +3

    You chose my favorite game! 🤩

  • @LucasAlves-bs7pf
    @LucasAlves-bs7pf 10 หลายเดือนก่อน

    Ouro puro, irmão. Obrigado pelo conteúdo.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      opa, muito obrigado mesmo pelo comentário mano, de verdade!! Fico muito feliz em saber que vc gostou do vídeo!!

  • @ihatechocolate6621
    @ihatechocolate6621 5 หลายเดือนก่อน +2

    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😊

  • @Spy45242
    @Spy45242 13 วันที่ผ่านมา

    Thank you for tutorial!

  • @Howard-xs2rb
    @Howard-xs2rb 8 หลายเดือนก่อน +3

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      hey there! sorry but I didnt tested on mac so I cant tell for sure if it will work :(

  • @GustavoHenrique-vk8nn
    @GustavoHenrique-vk8nn 3 หลายเดือนก่อน +1

    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á

  • @hycor
    @hycor 11 หลายเดือนก่อน +1

    You are the best bro

  • @Hydrabr2
    @Hydrabr2 หลายเดือนก่อน

    I wanted to know more about image quality and what types of images I should use if trying this on a 3D game

  • @TTA-of7yz
    @TTA-of7yz 10 หลายเดือนก่อน +4

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน +1

      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

    • @niloxz3367
      @niloxz3367 8 หลายเดือนก่อน

      @@moisesdepaulodias7980 ur discord name is not right

    • @Babas2er-o3r
      @Babas2er-o3r 4 หลายเดือนก่อน

      @@moisesdepaulodias7980 i have the same problem dude i am trying it for league of legends

    • @cristianplescan7068
      @cristianplescan7068 21 วันที่ผ่านมา

      @@moisesdepaulodias7980 I have the same issue, did you found the solution ?

  • @kruding
    @kruding 9 หลายเดือนก่อน +1

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน

      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.

  • @kristofbarthalos84
    @kristofbarthalos84 23 วันที่ผ่านมา

    Hello, when I run the last step, no error message comes up but nothing happens; the image recognition does not work. Could you please help? I'm a newbie when it comes to coding but I'm very interested in it. Thank you in advance.

  • @srcuia
    @srcuia 10 หลายเดือนก่อน

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      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!!!

  • @CodeifyDev
    @CodeifyDev หลายเดือนก่อน

    Do you have a Video on Transfere Learning too ? You explained that very well it was easy to understand but i now want to fine tune my weight and continue to train it for better results.
    Also if i only want to capture Buttons as an object are there other better learning methodes ? i saw the lableing website had "Image Detection" too would that be better for my usage ?

  • @sidanton3496
    @sidanton3496 22 วันที่ผ่านมา

    Hello sir, have a problem with “error: CreateCompatibleDC failed”. How i can fix it?

  • @NewGenerationSh0rts
    @NewGenerationSh0rts หลายเดือนก่อน +1

    Can you plsss make a tutorial on the same thing but all local? I really need one!!!

  • @WisseWester
    @WisseWester 23 วันที่ผ่านมา

    can you add gameplay videos for the bot to learn from? so you can just add a massive library instead of having to train it yourself?

  • @Ak2q
    @Ak2q หลายเดือนก่อน

    Ive made a model using yolov11 but cannot import to unity?
    does baracuda not support v11 of yolo?
    Can you provide more details on what to do after training this model please???
    I want to use this to detect objects and display the 3d models of the corresponding object

  • @MetalComment
    @MetalComment ปีที่แล้ว +1

    How would you take your finished project and take the code in for your own visual studio code or pycharm for example?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว

      Hi there, you can use the 'Jupyter' extension in VSCode to run notebooks. I used the Jupyter notebook web interface for simplicity.

  • @funktionone821
    @funktionone821 ปีที่แล้ว +1

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน

      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.

    • @funktionone821
      @funktionone821 11 หลายเดือนก่อน

      @@moisesdepaulodias7980 thank you I will add you on Discord, and contact you.I have the same profile image on Discord

    • @funktionone821
      @funktionone821 11 หลายเดือนก่อน

      @@moisesdepaulodias7980 I sent youa friend request on Discord, I have the same profile picture like here. thank you in advance

  • @Semajjz
    @Semajjz 2 หลายเดือนก่อน

    When u say run it does that mean just click enter on the script

  • @user-mw1uf8tf7w
    @user-mw1uf8tf7w ปีที่แล้ว +1

    Thank you! This is gold!

    • @amateruss
      @amateruss 6 หลายเดือนก่อน

      good for farming gold*

  • @okthatsfine8947
    @okthatsfine8947 2 หลายเดือนก่อน

    i love this tutorial

  • @rco413
    @rco413 ปีที่แล้ว +1

    so how do you avoid being detected, the character will immediately be hit and use an automatic skill?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน

      Hi there! Sorry, I didn't understand your question.

    • @rco413
      @rco413 11 หลายเดือนก่อน

      @@moisesdepaulodias7980 i mean, bot auto attack

  • @EstefannyEchavarria
    @EstefannyEchavarria 4 หลายเดือนก่อน

    at the end the window of results dosent have any update of the screen bluestacks is only a stactic picture help

  • @oilbender
    @oilbender 8 หลายเดือนก่อน +2

    Quick question? Any particular reason for not using a newer version of yolo?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      Hi there! I used yolov4 because I have already used it before, but I believe newer versions would work just fine or even better.

  • @siha8678
    @siha8678 2 หลายเดือนก่อน

    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

  • @kristopherleslie8343
    @kristopherleslie8343 10 หลายเดือนก่อน +2

    why not an outline trace in modern colors? boxes is an old addage.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน +1

      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

    • @kristopherleslie8343
      @kristopherleslie8343 10 หลายเดือนก่อน +2

      @@moisesdepaulodias7980 makes sense buddy

    • @kristopherleslie8343
      @kristopherleslie8343 10 หลายเดือนก่อน +2

      A good reference would be the old Halo game ODDT. One of the best I’ve ever seen.

  • @ViniciusOliveira-gr9bm
    @ViniciusOliveira-gr9bm 3 หลายเดือนก่อน

    Moises monstro!

  • @extraordinay
    @extraordinay 3 หลายเดือนก่อน

    its answesome man, thank you for explaining it makes so much sense now. Can you pelase make one for the new yolo release?

  • @dsbo1507
    @dsbo1507 10 หลายเดือนก่อน +2

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน +1

      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 :(

    • @dsbo1507
      @dsbo1507 10 หลายเดือนก่อน

      @@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.

  • @LucasAlves-bs7pf
    @LucasAlves-bs7pf 2 หลายเดือนก่อน

    Moises, como eu faço pra gerar clicks na tela do ragnarok? Aqui o pyautogui não funciona.

  • @complationbonanza
    @complationbonanza ปีที่แล้ว +1

    amazing tutorial

  • @카시오페아-p3o
    @카시오페아-p3o 11 หลายเดือนก่อน +1

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน

      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: th-cam.com/video/gdIVHdRbhOs/w-d-xo.html

  • @MajinVegeto89
    @MajinVegeto89 หลายเดือนก่อน

    Would it be possible to follow this but in the end, instead of using the weights file in a Python script, to use them in Nodejs? For instance with tensorflow-nodejs?

  • @kevilay
    @kevilay 3 หลายเดือนก่อน

    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

  • @davzz920
    @davzz920 6 หลายเดือนก่อน

    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.

  • @TheAssmile
    @TheAssmile หลายเดือนก่อน

    jupyter note books doesn't work for me, idea why ?

  • @matheuspinheiro3637
    @matheuspinheiro3637 2 หลายเดือนก่อน

    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

  • @lucafritz4860
    @lucafritz4860 5 หลายเดือนก่อน +1

    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_
      @Hauseking_ 4 หลายเดือนก่อน

      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.

  • @성이름-e2d9c
    @성이름-e2d9c 5 หลายเดือนก่อน

    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

  • @Noelnnn
    @Noelnnn 10 หลายเดือนก่อน +1

    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:)!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      Hi there! Thanks for your comment!! Sorry but I didnt understand your question, you need to detect only part of the browser window?

    • @Noelnnn
      @Noelnnn 10 หลายเดือนก่อน

      @@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!

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      @@Noelnnn Great!! I am happy to know that it worked!!!

  • @KabLah
    @KabLah 9 หลายเดือนก่อน +1

    Why use an old version of yolo instead of v8 or so?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน

      Hi there, I only used YOLOv4 because I had experience with it in college 😅

  • @forensicsman320
    @forensicsman320 2 หลายเดือนก่อน

    Can you do another video explaining how to add new objects to your dataset so it will identify new creatures in your game?

  • @drejcbevk7872
    @drejcbevk7872 3 หลายเดือนก่อน

    How can I capture window screen from a fullscreen game using DirectX graphics? Now I only see a black screen

  • @virno69420
    @virno69420 ปีที่แล้ว +1

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +1

      Hi there! Thank you for the suggestion! I will consider it for my next videos.

  • @Guillobus
    @Guillobus 6 หลายเดือนก่อน +1

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      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

  • @Fdon_Quixote
    @Fdon_Quixote หลายเดือนก่อน

    Hey! I'm having a problem when it comes to capturing a game thats hardware accelerated. I don't really have any experience with programming or coding and would love to know if you've got some kind of way to make it able to capture those kinds of programs. I knwo for sure it's because of the hardware acceleration since I tried capturing discord with and without it enabled and got a black screen while on and no problem while off.

  • @Real_Gamer_clips
    @Real_Gamer_clips 5 หลายเดือนก่อน

    is their a way for me to make the robot do somthing to the screen after detecting something

  • @strangeshorts6584
    @strangeshorts6584 9 หลายเดือนก่อน

    The width of detected windows is small how can I adjust that so I can view full area.

  • @Jojifans
    @Jojifans 11 หลายเดือนก่อน +1

    can you make a video showing how to utilize yolov7 or newer?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน +1

      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!!

  • @CodingJournal-pm1tq
    @CodingJournal-pm1tq ปีที่แล้ว +1

    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.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว

      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-pm1tq
      @CodingJournal-pm1tq ปีที่แล้ว

      update: I just realized the same is happening for:
      1_generate_dataset - Window Capture

    • @CodingJournal-pm1tq
      @CodingJournal-pm1tq ปีที่แล้ว +2

      Found the problem, for anyone with the same issue:
      The problem was running the game through steam

  • @claudiosbc
    @claudiosbc 9 หลายเดือนก่อน +1

    Please record a video demonstrating how to click on the identified monsters. Vlw

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน +2

      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

  • @pixelmz
    @pixelmz 8 หลายเดือนก่อน

    Really clear explaination, obrigado!

  • @dominicmora2559
    @dominicmora2559 9 หลายเดือนก่อน +1

    On training part the number 7 says no such file or directory

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน

      Hi there! Did you add the "yolov4-tiny" folder (created on the file 2_label_dataset.ipynb) to the root directory of your Google Drive?

    • @dominicmora2559
      @dominicmora2559 9 หลายเดือนก่อน

      @@moisesdepaulodias7980 i put yolo 3 in colab then yolo4 in google drive
      and says no such file, i tried a lot is the same

  • @alvinwee268
    @alvinwee268 11 หลายเดือนก่อน +1

    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?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน +1

      Hi there, well, I think so, depending on the graphics you need far more than 80 images.

    • @alvinwee268
      @alvinwee268 11 หลายเดือนก่อน

      @@moisesdepaulodias7980 ok will give it a shot, thanks!

  • @queixo6
    @queixo6 3 หลายเดือนก่อน

    How do you deal with google colab instace disconnection? Training can be resumed?

  • @strangeshorts6584
    @strangeshorts6584 9 หลายเดือนก่อน +1

    Hlo sir the images generated in the image folder are full black why .😢 Title bar pixels and border pixels values are correct.how can i fix it.

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน

      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.

    • @strangeshorts6584
      @strangeshorts6584 9 หลายเดือนก่อน +1

      Thanks for your reply I also tried BlueStacks but faced the same problem in my windows 11

  • @efocus08
    @efocus08 11 หลายเดือนก่อน +1

    please help i keep getting coomand error in 'pip' is not recognised as an internal or external. we=hen trying to install the libraries

    • @Burgerhs
      @Burgerhs 11 หลายเดือนก่อน

      My new pc did the same thing
      Download Python i used 3.10.5 make sure you click add to path during the installation

  • @thebuilder3902
    @thebuilder3902 หลายเดือนก่อน

    does this work with yoloV5

  • @yokingdom9936
    @yokingdom9936 7 หลายเดือนก่อน +1

    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

    • @yokingdom9936
      @yokingdom9936 7 หลายเดือนก่อน

      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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      @@yokingdom9936 hey, sorry for the late reply but I am happy to know that you solved the problem!!

  • @SigpoPopi-wn3ss
    @SigpoPopi-wn3ss 11 หลายเดือนก่อน +1

    How to make the bot automatically walk towards that item?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  11 หลายเดือนก่อน

      Hello! I created another video where I show how to automate actions based on detections, one of the actions can be clicking on the screen to walk toward a detected item, you can see that in more detail in the video: th-cam.com/video/gdIVHdRbhOs/w-d-xo.html

  • @JhonMartins-i3d
    @JhonMartins-i3d 7 หลายเดือนก่อน

    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?

  • @Osteoporos1s
    @Osteoporos1s 6 หลายเดือนก่อน +1

    Does anyone know if the image capturing works with web-based games?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      Hi there! I didnt tested in a browser window but I believe that it will work just fine.

  • @eternogigante685
    @eternogigante685 3 หลายเดือนก่อน

    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

  • @xenofonpsarras2986
    @xenofonpsarras2986 7 หลายเดือนก่อน +1

    The screenshots in the Images folder are black all of them, idk why this happening, anyone knows ?

    • @СаняМиненов
      @СаняМиненов 6 หลายเดือนก่อน +1

      +

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      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.

  • @Real_Gamer_clips
    @Real_Gamer_clips 4 หลายเดือนก่อน

    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

  • @chucknorrisfactfr
    @chucknorrisfactfr 10 หลายเดือนก่อน +1

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  10 หลายเดือนก่อน

      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

  • @hliasmous2217
    @hliasmous2217 3 หลายเดือนก่อน

    When I run the first cell at 4th part yolo opencv detector I get the error : "ModuleNotFoundError : No module named 'cv2'

  • @piattrocks
    @piattrocks 8 หลายเดือนก่อน

    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?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน

      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)

    • @piattrocks
      @piattrocks 5 หลายเดือนก่อน

      @@moisesdepaulodias7980 Thank you!

  • @Hcma_
    @Hcma_ ปีที่แล้ว +1

    Capture with win32gui doesn't work on all games such as League of Legends, any ideas to fix the problem?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +1

      Hello! Some games have software to prevent the use of external programs that interfere with the game (anti-cheats). In the game Ragnarok Online, I couldn't use Pynput, so I had to connect an Arduino to control the mouse and keyboard. I haven't tested it in League of Legends, but in your case, I would suggest you look for another way to capture images that the game doesn't block (using OpenCV instead of win32gui, maybe).

    • @brazorya
      @brazorya ปีที่แล้ว

      @@moisesdepaulodias7980 can you make an example on a game like Waven on steam ? ta show us the game window gestion 😁
      you try all my favorite game continue ! 🤟

    • @Hcma_
      @Hcma_ ปีที่แล้ว

      @@moisesdepaulodias7980 Thank you for your reply. While doing some research, I found a workaround that involves using the following line for the blackscreen debug "windll.user32.PrintWindow(self.hwnd, cDC.GetSafeHdc(), 3)" instead of "cDC.BitBlt((0, 0), (self.w, self.h), dcObj, (self.cropped_x, self.cropped_y), win32con.SRCCOPY)" in your code.

    • @indieworld462
      @indieworld462 10 หลายเดือนก่อน

      Use pygetwindow instead of win32gui

  • @nekomi8412
    @nekomi8412 ปีที่แล้ว +1

    Hello when i'm doing the command jupyter notebook .
    it said 'jupyter' is not recognized as an internal or external command,
    operable program or batch file.
    can it be like that because i'm on widows 11 i try to contact you on linkedin

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +1

      Hello!
      If you've executed "pip install -r requirements.txt" without any errors, I imagine the issue might be that the Jupyter executable's path is not included in the system's PATH variable. You can copy this exact error text and search it on Google, and you'll find how to resolve this problem. If the issue persists, please let me know in the comments or send me a message.

    • @nekomi8412
      @nekomi8412 ปีที่แล้ว

      @@moisesdepaulodias7980 i found the issue ! thanks for help i was have like two python the one i installed with web site and the one with the widows store soo i deleted both and just take the one on web site i was forgeting to make the path variable directly at the installation of python (case that you need to cross)

  • @mohannd1234
    @mohannd1234 5 หลายเดือนก่อน +1

    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

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  5 หลายเดือนก่อน +1

      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.

    • @mohannd1234
      @mohannd1234 5 หลายเดือนก่อน

      @@moisesdepaulodias7980 great! How to apply inputs to gathering and farming?

  • @durdurulamazguc
    @durdurulamazguc 10 หลายเดือนก่อน

    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.

  • @hidrogenodeuterio
    @hidrogenodeuterio 6 หลายเดือนก่อน

    Es genial lo que haces, te deseo mucho éxito

  • @kingcobal6460
    @kingcobal6460 2 หลายเดือนก่อน

    it says for me window not found

  • @pedroamaral8583
    @pedroamaral8583 9 หลายเดือนก่อน +1

    the first code only gets black screenshots any ideas?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  9 หลายเดือนก่อน +1

      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.

  • @mohammedbaig9569
    @mohammedbaig9569 ปีที่แล้ว +1

    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?

    • @moisesdepaulodias7980
      @moisesdepaulodias7980  ปีที่แล้ว +1

      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.

    • @shenglinjing7350
      @shenglinjing7350 9 หลายเดือนก่อน +1

      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.