Training a Cascade Classifier - OpenCV Object Detection in Games #8

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

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

  • @aivaki-
    @aivaki- 4 ปีที่แล้ว +54

    Bro, you are the best

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

      Thanks man

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

      @wise guy Check out the rest of this tutorial playlist! You probably just need to watch #1, #4, #5 and then you can dive into the machine learning stuff talked about in this video.

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

    Absolutely fantastic man. I never thought I'd be casually setting up machine learning, debugging, scrapping it and coming up with better results..all testing on my favorite games. Cheers mate.

  • @austingulotta9817
    @austingulotta9817 4 ปีที่แล้ว +7

    I've struggled with looking through and understanding the OpenCV docs for Haar Classifiers. Thank you so much.

  • @emperorpenguinv7193
    @emperorpenguinv7193 4 ปีที่แล้ว +41

    This is the first series I am actually following on TH-cam, where I am not 3 years too late. Great content! I enjoyed every video so far, even though I know alot of the stuff in this one as I am currently writing my bachelor thesis in the field of machine learning.

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 ปีที่แล้ว

      Cool glad you like it! Good luck with your thesis.

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

      I’m 2 years late

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

      and I'm 3 years late now, how ironic@@0zero560

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

      3 years late here

  • @ravenebonscale9687
    @ravenebonscale9687 4 ปีที่แล้ว +4

    You have helped me a lot when it comes to learning to program. Your channel alone has taught me from a single video then playlist from other channels

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

    I watched tutorials in my own language but I didn't understand it as well as I do now. Thank you very much

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

    thank you for this. doing this series making easier for people like me to learn these. thankss

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

    Super underrated. Thanks a lot for all of the information

  • @doctorglock1691
    @doctorglock1691 4 ปีที่แล้ว +9

    Thank you so much! This is a wonderful series. This is my foundation for my opencv projects. I like the way you code and document. It's always complete and easy to understand.

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

      Glad you like it! Complete and easy to understand is what I'm going for.

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

    You are simply awesome. your interest to teach along with the strain that you took to collect the training data shows it all. Please keep on doing this good work. God bless you.

  • @Lincoln_Poh
    @Lincoln_Poh วันที่ผ่านมา

    This video is way too awesome. I rarely provide any comments in the web, but this video is so educational and well worth it to pass by. This is my very first machine learning video that I've watched and learned. You should really become a lecturer in some institute to pass on your knowledge. This video alone deserve a million thumbs up. Keep up the great work! I'll be looking through your channel for more videis :)
    EDIT: By the way, do you have plans to create a video like this, but covering CNN? I recently did lots of reserach and found out CNN is more capable as compared to Haar cascade.

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

    I don't always give a comment, but when I do it's to the epic series! Damn good bro. Keep up the good job. I'm watching you.

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

    This is literally the best programming channel
    I’ve ever seen

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

    I really love and enjou your concent.
    I haven't meet much youtuber who make programming and ai video like you did.
    I hope this channel grow more and become great.

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

      Thank you, I enjoy making these. Hope I can do it full-time someday!

  • @JayJay-ki4mi
    @JayJay-ki4mi 2 ปีที่แล้ว

    This opened my eyes as to what opencv can do. I am learning this stuff for gaming too.

  • @davidgladwell6283
    @davidgladwell6283 4 ปีที่แล้ว +2

    Hey great videos, it's helped me out a bunch for my university project where I have to detect car wheels in a video feed!

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

    This was AWESOME!!! Much more comprehensive than the docs!

  • @KadaSkola
    @KadaSkola 2 ปีที่แล้ว

    Helped me to add a new feature on my self driving car project! Cows gonna thank you!

  • @SpacebarWarrior
    @SpacebarWarrior 4 ปีที่แล้ว +2

    Really appreciate all the effort you've invested in your videos. I am learning a lot from watching your videos and you've somewhat boosted my motivation to better myself with python. Thanks a lot, hope to see more of your videos!

  • @SoulEaterZika
    @SoulEaterZika 3 ปีที่แล้ว

    Guy, this video help me too much. Congratulations for the clarity in the explanation. Was very hard to discover that i need to download the 3.4 version to use this features of cascade classifier. The info in the opencv site and forum are very disconnected. Your video sintetize all with clarity. Thank you so mutch!

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

    Great video! Exactly what I needed for a project I'm working on. It's great to get a walkthrough to "grandfather" us through the process.

  • @mohammadsaleh1117
    @mohammadsaleh1117 2 ปีที่แล้ว

    I've been looking for a tutorial and I didn't got anything from them. and thankfully I found your channel you are describing things easily and I understood everything I need to.
    thank you so much Ben.
    keep going building great tutorial

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

    bro u made me pro from noob u are god!!! luv from India brother.

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

    more machine learning content will be greatly appreciated, this is awesome!

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

    This series is really awesome!

  • @Penguin-kr9do
    @Penguin-kr9do 3 ปีที่แล้ว

    Thank you for explaining everything! I looked at a lot of other tutorials that skipped over so much about how to install the commands, how to get everything set up, etc. Yours is a nice up-to-date tutorial from start-to-finish!

  • @thewekendd
    @thewekendd 4 ปีที่แล้ว +2

    you are doing really good job, you get my attencion and i want to learn more about machine learning, i appreciated that you are making videos about programing :>>

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

    Thanks for the new video!

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

    You should really be bigger your content is better than most

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

    Thank you for your Videos, I'm excited for the next one! Great work what will help me on my project :-)

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

    Ben i like that hand wave, "confuse no more". :)

  • @xTurqoise
    @xTurqoise 2 ปีที่แล้ว

    Thank you very much! It worked and im very proud of doing this project. You're a very good teacher :-)

  • @sswang9815
    @sswang9815 3 ปีที่แล้ว

    That really helps a lot! Thank you dude! That's the best tutorial of Cascade Classifier in youtube!

  • @footdle
    @footdle 3 ปีที่แล้ว

    This is the video with most likes that doesn't have a dislike that i've ever seen! Good job :p

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

    Great video! seen countless others that were hard to follow. This made it make perfect sense!

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

    Great content! Thank you for sharing.

  • @andreivladescu7178
    @andreivladescu7178 2 ปีที่แล้ว

    Best haar cascade tutorial i've watched! Keep up the good work!

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

    I will definitly try this :) I really like the videos

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

    Best of best, thank you so much!

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

    Thanks a lot Ben ! This is very exciting ,we really want to see more machine learning content from you !

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

    Another awesome video. No one on TH-cam i have seen teaching the def. You should start teaching python basic courses. Loved ur work..keep it up

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 ปีที่แล้ว

      Thanks man. Yeah I've thought about doing some more formal courses eventually.

  • @hackercop
    @hackercop 3 ปีที่แล้ว

    This and the resources you provided in the description was extremely helpful thanks. Liked and subscribed!

  • @saint-jiub
    @saint-jiub 4 ปีที่แล้ว +3

    Looking forward to this

  • @dhruvagrawal3856
    @dhruvagrawal3856 3 ปีที่แล้ว

    Thanks man , For this whole series I had an experience making bots with pyautogui but it was very slow and weakk also inaccurate a bit, I found about opencv but I never ever thought I could do cool stufff but by watching your vids and reading blogs I learnt everything about opencv I made 5 bots with opencv , all very nice, game were :-
    1 - Burrito Bison Launcha Libre
    2 - stickman fight game
    3 - archery game
    4 - fruit ninja
    5 - Air wars 3
    Note : - You may also need to know a little bit of pyautogui for these for option like for clicking,
    double press, pressing key, etc, detection with opencv and of course basic python and also math

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

    Please do more bot stuff in python, automating stuff with it etc etc, found your channel a week back been checkng out game botting luved it...SUbbed!!

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 ปีที่แล้ว

      Thanks! I've got more Python automation stuff planned for the near future.

  • @FedericoCipriani27
    @FedericoCipriani27 3 ปีที่แล้ว

    This video series has been one of the most concise I've seen so far... If it were possible to upload subtitles, I would like to upload subtitles in Spanish.
    Also it would be nice to see a comparison or review of YOLO algorithm.

  • @michael4353
    @michael4353 3 ปีที่แล้ว

    Great series! I enjoyed each video and walked away with a tool belt filled with new tools. Take care and best of luck in your future endeavors.

  • @sanyamkarnavat9745
    @sanyamkarnavat9745 3 ปีที่แล้ว

    Man I am in love with this channel plz keep uploading vids❤👌

  • @Spasmomen
    @Spasmomen 3 ปีที่แล้ว

    This was a great tutorial! Impossible to find all this online. Thanks for the pointer towards the compiled apps you need to train the model.

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

    I find your voice very soothing.

  • @akibkhan4822
    @akibkhan4822 3 ปีที่แล้ว

    Thank you so much for this in depth tutorial. This is really helpful, cheers mate.

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

    I want to see more machine learning content thanks!!

  • @joelweber3473
    @joelweber3473 3 ปีที่แล้ว

    Bro this was such and awesome tutorial that helped me get started on my own project.

  • @Гусьэкономит
    @Гусьэкономит ปีที่แล้ว +1

    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!

  • @lbproductions6215
    @lbproductions6215 4 ปีที่แล้ว +4

    Very cool!!!!!!!

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

    You are creating monsters dude....

  • @BillEngwall
    @BillEngwall 3 ปีที่แล้ว

    Hey Ben! Thanks for doing this, much appreciated :)

  • @giovannicriscwcc4249
    @giovannicriscwcc4249 2 ปีที่แล้ว

    Compliments ! this is very clear and well done , thanks for your job !

  • @zeroAGI
    @zeroAGI 3 ปีที่แล้ว

    Wonderful work Ben! Keep inspiring people with your work!

  • @jctelo24
    @jctelo24 2 ปีที่แล้ว

    Amazing tutorial! Thank you for sharing the knowledge.

  • @manojtiwari7754
    @manojtiwari7754 3 ปีที่แล้ว

    You're awesome brother.. keep the good work!! Love your videos

  • @ronanleviennesse3752
    @ronanleviennesse3752 3 ปีที่แล้ว

    Thanks for this super useful and quality video !

  • @ashaytelang
    @ashaytelang 3 ปีที่แล้ว

    Man, you are awesome! love from India

  • @turner7777
    @turner7777 2 ปีที่แล้ว

    Wow i really like your video format, you explain well! Subbed!

  • @rabbitfeet6740
    @rabbitfeet6740 4 ปีที่แล้ว

    this is best tutorial ever !

  • @syzygy8060
    @syzygy8060 3 ปีที่แล้ว

    Thank you man. You are an excellent teacher. :)

  • @gmnvh
    @gmnvh 3 ปีที่แล้ว

    Good job! Really helpful!!! Thanks for sharing!

  • @hammadharoon9557
    @hammadharoon9557 3 ปีที่แล้ว

    Such a great tutorial!!! Thank you!!

  • @anonymoustree2182
    @anonymoustree2182 2 ปีที่แล้ว

    This was really nice, thank you!

  • @IdeeFixeGamer
    @IdeeFixeGamer 4 ปีที่แล้ว

    your so good at these

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

    good data good data thanks man

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

    Finally, a great and straight-forward tutorial on training haar cascades. Thank you. A couple of questions for you. I have the google imageset with all the annotations. Can I convert those and combine them into one file for use here? And secondly, I am assuming none of the negative images are marked. Is that correct.

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

    Nice video and a great explanation.

  • @marsparera
    @marsparera 3 ปีที่แล้ว

    Bro, you're the best!

  • @ssembeds522
    @ssembeds522 2 ปีที่แล้ว

    That was superb !

  • @MasterYoda-e2q
    @MasterYoda-e2q 5 หลายเดือนก่อน

    this is amazing!

  • @SohanSharad
    @SohanSharad 4 ปีที่แล้ว +8

    Been waiting for this video for a long time
    And as for moving towards those limestones, do we use pathfinding Ai?

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

      Thanks for sticking with me!

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

      Learn Code By Gaming Do the youtube app has a new black white design?

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

      @@dieweltentdecker5878 Does it? I just got a new phone and I can't remember what it looked like on my old one already. I've got the dark theme enabled on desktop.

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

      Learn Code By Gaming Just for 1h it comes.

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

      I plan on just clicking the detected objects, but some sort of path finding would be much slicker. I've been getting a lot of questions about paths and routing a lot lately, but it's a pretty big topic so I'll have to make a separate video about it.

  • @anasali5202
    @anasali5202 4 ปีที่แล้ว

    Thank you bhaiya! This helped me a lot

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

    Great video it would have been great if you added CUDA support for detection I have already added it with OpenCV Cuda Support

  • @fabioprudencio
    @fabioprudencio 3 ปีที่แล้ว

    thank you, helped me a lot

  • @ThyCrowing
    @ThyCrowing 2 ปีที่แล้ว

    A shame you are making no more of these. I really like them.

  • @dinukadilshan5877
    @dinukadilshan5877 2 ปีที่แล้ว

    Superb Bro..

  • @froozynoobfan
    @froozynoobfan 3 ปีที่แล้ว

    if you can get a confidence score for each rectangle then you could extend your training data semi automatically

  • @cristianmerono
    @cristianmerono 3 ปีที่แล้ว

    Thanks a lot, really !! Nice content

  • @tahirdevlog2047
    @tahirdevlog2047 2 ปีที่แล้ว

    GREAT CONTENT

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

    This is so cool

  • @Alex_Aly
    @Alex_Aly 3 ปีที่แล้ว

    if you apply affine transformations to all of the images you could expand the dataset significantly

  • @mrsDjame
    @mrsDjame 3 ปีที่แล้ว

    very great content thank you so much

  • @giraffe1877
    @giraffe1877 4 ปีที่แล้ว +2

    good vid

  • @matthewhoey3058
    @matthewhoey3058 2 ปีที่แล้ว

    i have followed the series so far, as i am extremely new to python and barely have no experience, but ill learn what i need to to get what i want done, but this is the bit im unsure of, because idk how to execute it.
    >How would i get it so whenever the 'object' is detected on the screen it executes some commands for me, more specifically when the object is detected, it sends a signal to an Arduino that then powers some LED's or something?? - so far this has been great help, and thank you for your series!

  • @davidgladwell6283
    @davidgladwell6283 4 ปีที่แล้ว +9

    "Error: Assertion failed (!ssize.empty()) in cv::resize" incase someone gets this error during opencv_createsamples.exe the reason I had it was because in the pos.txt file, one of my images has created a fake bounding box 0 0 0 0. Also the opencv_createsamples.exe will hang (never finish) if the last file in pos.txt is an image with no bounding boxes.

    • @LearnCodeByGaming
      @LearnCodeByGaming  4 ปีที่แล้ว

      Good info, thanks for letting us know!

    • @Gragoon
      @Gragoon 3 ปีที่แล้ว

      Thank you bro. I was stuck

  • @hamzah8186
    @hamzah8186 4 ปีที่แล้ว +2

    Thank you so much for all these videos, can you please make a tutorial about how to make an AI for moba games? Or AI in general

    • @hamzah8186
      @hamzah8186 4 ปีที่แล้ว

      Wait nvm I just realised I didnt finish the rocket league tutorial and now I'm feeling silly. Thanks for all your efforts

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

      @@hamzah8186 You're welcome. I do want to do MOBA and also RTS AI's at some point.

    • @hamzah8186
      @hamzah8186 4 ปีที่แล้ว

      @@LearnCodeByGaming I am glad to hear that, I'll be waiting for it!

  • @HuHu3169-s7o
    @HuHu3169-s7o 3 ปีที่แล้ว

    Hi, finally it comes to ML method. But could you make a new video on how to use YOLOv4 weights to detect object in the screen? I have followed some other tutorials and learned how to train a custom object detection model, but still have no idea how to deploy it into a real-time scenario.
    That would be very nice of you and thanks a ton!

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

    Subscribed!

  • @tylergandee4986
    @tylergandee4986 2 ปีที่แล้ว +2

    As of 9-23-2022: There is a new OpenCV annotation tool by intel called CVAT (opencv.org/opencv-and-cvat-computer-vision-annotation-tool-intel/) so you no longer need to download OpenCV 3.4 as CVAT runs within a docker container.
    Link to Introduction to CVAT: th-cam.com/video/yZ9vdQptVBU/w-d-xo.html

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

      I use Mac and had trouble using the OpenCV annotation tool. This really helps! Also for anyone trying to use CVAT, I found exporting images into WiderFace 1.0 format gives the closest representation to the tex file needed here.

  • @muhammadayyub5943
    @muhammadayyub5943 2 ปีที่แล้ว

    great bro!!!

  • @shivaannaidoo2527
    @shivaannaidoo2527 2 ปีที่แล้ว +2

    I having a problem when running C:\Users\Jonah\Desktop\115\Ai\opencv\build\x64\vc15\bin\opencv_annotation.exe --annotations = C:\Users\Jonah\Pictures\pos\pos.txt --images = C:\Users\Jonah\Pictures\Ai-pics in command prompt it runs but nothing happens, I'm using the version from the video of open cv.

    • @tylerleitzke
      @tylerleitzke 2 ปีที่แล้ว

      I'm facing a similar problem. The terminal shows the annotation tool run without any errors, it prints a list of the functions and what they do (for each image) in the directory and then the script ends but the window doesn't actually open to create the rectangles.
      Edit: My problem was there were spaces in the paths and it stopped at the first space so it couldn't find any images there. I just added double quotes around the path.

  • @amirhosein.najafy9913
    @amirhosein.najafy9913 3 ปีที่แล้ว

    amazing thank you

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

    Crazy tutorial and thank you for sharing. Just a thought, manually marking the rectangles for positive images seems a very consuming proccess - especially if you have a big data set or multiple elements that you would like to create a cascade classifier. Is there an alternative such as: if we just had limestone(or related element) cropped image(s) in the positives folder and not a whole screenshot/specific coords that must be given manually.

  • @ProficusLets
    @ProficusLets 3 ปีที่แล้ว

    MORE MACHINE LEARNING!