OpenCV Python Tutorial #8 - Face and Eye Detection

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Welcome to this OpenCV Python tutorial! In this video, I'll be showing you how to do a live face and eye detection and tracking in Python using OpenCV. The code for the face/eye detection is very straightforward, and we'll be using Haar Cascade.
    💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" algoexpert.io/techwithtim
    📄 Relevant Documentation: opencv-python-tutroals.readth...
    📄 StackOverflow Post: stackoverflow.com/questions/2...
    📝 Code For This Series: github.com/techwithtim/OpenCV...
    🔍 Playlist: • OpenCV Python Tutorials
    ⭐️ Timestamps ⭐️
    00:00 | Introduction & Overview
    00:53 | Haar Cascade explanation
    02:43 | Loading Haar Cascade Classifiers
    03:52 | Face Detection
    11:43 | Eye Detection
    15:12 | Finished Code/Demo
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    💰 Courses & Merch 💰
    💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
    👕 Merchandise: teespring.com/stores/tech-wit...
    🔗 Social Medias 🔗
    📸 Instagram: / tech_with_tim
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-ruscica-82631b179
    🌎 Website: techwithtim.net
    📂 GitHub: github.com/techwithtim
    🔊 Podcast: anchor.fm/tech-with-tim
    🎬 My CZcams Gear 🎬
    🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
    🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
    📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
    🕹 Tripod: amzn.to/3hpSprv
    🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
    🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
    🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
    ☀️ Lights: amzn.to/2ApeiXr
    ⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
    🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
    📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
    📢 Speaker (Beats Pill): amzn.to/2XYc5ef
    🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
    🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
    🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
    💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
    💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
    🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
    🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
    💸 Donations 💸
    💵 One-Time Donations: www.paypal.com/donate?hosted_...
    💰 Patreon: / techwithtim
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    ⭐️ Tags ⭐️
    - Face detection in OpenCV
    - Haar Cascade OpenCV
    - Python
    - Computer vision
    - Cameras and video capture
    - Eye detection
    ⭐️ Hashtags ⭐️
    #OpenCV #Python #FaceDetection

Komentáře • 164

  • @relytPC
    @relytPC Před 3 lety +17

    I’m a simple man. I see a TechWithTim video, I click it AND like it.
    Am I gonna need to rewatch it again to use it properly? Probably. Am I interested in just learning more and listening anyways to expand my tech knowledge? Absolutely.

  • @srikarkandula5313
    @srikarkandula5313 Před 3 lety +55

    Pls make the other video's

  • @ananthramvijayaraj4554
    @ananthramvijayaraj4554 Před 3 lety +76

    More openCV videos would be amazing. Thanks Tim!!

  • @infomanz28
    @infomanz28 Před 3 lety +80

    Yes Tim more please. Training our own classifier would be extremely helpful

    • @parthverma7089
      @parthverma7089 Před rokem

      can u plz tell me what is the name haar cascade XML file for noses??

    • @bobyau8755
      @bobyau8755 Před rokem

      How about the once like hand written digets?

  • @bitacorapersonal6801
    @bitacorapersonal6801 Před 2 lety +2

    I have finished all video tutorials you have done until now and they're awesome. The way you explain is great and precise. I wish you can continue with this topic in future videos. Thanks a lot.

  • @amnaalhosani7980
    @amnaalhosani7980 Před 2 lety +2

    I HAVE BEEN SEARCH ALL DAY FOR SOMEONE TO EXPLAIN THIS CODE AND YOU'R THE ONLY ONE WHO REALLY EXPLAIN IT , THANK YOU SO MUCH FOR SHARING THIS VIDEO WITH US!!!

  • @cleetus133
    @cleetus133 Před rokem +4

    Yes Tim, I would like more of face tracking. Even hand tracking or possibly body movement tracking. I will be using it for my blender animations. You Have a very clear way of explaining these things. Hopefully all is well with you, and I hope to see more of this soon. Have a great one!

  • @phamminhhung3219
    @phamminhhung3219 Před 3 lety +2

    Tim , you make my day, your videos always bring me so many things helpful to me, and PLEASE keep doing this opencv series, i would love to spend time i have to dive into your lessons. :))))

  • @EvaJNeve
    @EvaJNeve Před 2 lety +1

    Thank you so much for your tutorials Tim! I'm doing a school project using openCV and this has been very helpful

  • @neel8508
    @neel8508 Před rokem

    legit first time i stuch through a coding tutorial cuz he explains it so naturally and makes it rlly easy to understand. thx!

  • @jeromedelcastillo6596
    @jeromedelcastillo6596 Před 3 lety +4

    The playlist has good content, can't wait for the training of your Haar cascade classifier

  • @marktrubetskoy5074
    @marktrubetskoy5074 Před 2 lety +1

    Awesome tutorial series Tim! Many thanks for the effort!

  • @MrPhilipson00
    @MrPhilipson00 Před 3 lety +1

    Hi TIm-Well Done!! Yes please on the Haar-cascade training tutorial. Excellent summary. Thanks Tim!

  • @siambinkhurshid544
    @siambinkhurshid544 Před 3 lety +8

    Dear Tim bro,
    I live in Bangladesh 🇧🇩. I am an electrical engineer. And I make transformers at our factory.
    Take love from Bangladesh 🇧🇩 bro. You are really awesome. You are our inspiration. I always eagerly wait everyday for your new videos.
    Pls make thousands of videos 😊.

  • @mendelg123
    @mendelg123 Před 3 lety +2

    please continue! keep up the constant uploads!

  • @fabrizzioorderique2343

    Would love to see the next video! Great series Tim!

  • @suryatamil1471
    @suryatamil1471 Před 2 lety +1

    Hi Tim, you have did a great job, you have explained it very clear.. Good job and ThanksTim!

  • @Superdooperhero
    @Superdooperhero Před 3 lety +1

    Would love to train my own Haar classifier. Especially for license plate recognition. Thanks for the awesome training.

  • @jmmatas08
    @jmmatas08 Před 3 lety

    Tim , thanks a lot for your opencv vídeos . Great Job!!.

  • @deepakpaira0123
    @deepakpaira0123 Před 5 měsíci

    Please continue this series. This was superb for beginners in CV with basic knowledge of python. Thank You.

  • @karanjotsingh2939
    @karanjotsingh2939 Před 3 lety +2

    Great video 👌 as all of your videos are and WE NEED MORE VIDEOS like training for faces and may be objects

  • @scottmorgan3734
    @scottmorgan3734 Před 3 lety

    Thanks, Tim. Great work!

  • @manjunathshenoy3774
    @manjunathshenoy3774 Před 3 lety

    That's Amazing Tim, waiting for next video!!

  • @draytonlav
    @draytonlav Před 3 lety +1

    Yes please do the haar cascade creation video! So we can apply what you taught more easily to our own applications! Or maybe use some tensorflow? Btw love what you’re doing!

  • @iankhoojiaern
    @iankhoojiaern Před rokem +9

    Hi Tim, your OpenCV tutorials are really interesting! Please make videos 9 and 10! :)

  • @harshitpatil3897
    @harshitpatil3897 Před 3 lety

    thank you tim for this great video and this series.

  • @shadrackdarku8613
    @shadrackdarku8613 Před 2 lety

    we love you bro. we need to learn how to create our own classifiers. waiting for that video aggressively

  • @rc705
    @rc705 Před 3 lety

    Keep this series going!

  • @magicmagus1459
    @magicmagus1459 Před 3 lety +15

    Hi Tim. 2 suggestions for opencv:
    1. code for multiple object detection in a live video
    2. code for distance between 2 object in a live video
    Please consider doing a tutorial for this.

  • @theradicalramblr6504
    @theradicalramblr6504 Před 3 lety +1

    Thank you Tim, very cool

  • @robbie8545
    @robbie8545 Před 2 lety

    More please! Love the content!

  • @mudhutonthemoon
    @mudhutonthemoon Před rokem

    Very good explanation!

  • @samuellow8078
    @samuellow8078 Před 11 měsíci

    We need more of this, Tim.

  • @hyderixe
    @hyderixe Před 3 lety +6

    I would love a tutorial about creating your own classifiers!

  • @NuwaHWeil
    @NuwaHWeil Před 2 lety

    Please more OpenCV, I really like this course

  • @gustavojuantorena
    @gustavojuantorena Před 3 lety

    Awesome! Please keep doing open cv tutorials

  • @Ashfaque143
    @Ashfaque143 Před 2 lety

    This was great!

  • @alexandrezurcher1440
    @alexandrezurcher1440 Před rokem

    verey good videos man! please go ahead and do more!

  • @lolzman122
    @lolzman122 Před 3 lety

    More videos would be amazing!

  • @ahmedahsam5527
    @ahmedahsam5527 Před 9 měsíci

    great tutorial... hope there would be more videos for training our own model

  • @barath.s8550
    @barath.s8550 Před 3 lety

    I Like the way you explain it👍

  • @hedimak999
    @hedimak999 Před 2 lety

    great videos , you gained a subscriber

  • @sergeyo.6181
    @sergeyo.6181 Před 3 lety +22

    I think you misspelled at line 15, y+w -> y+h.

    • @marlinmixon3004
      @marlinmixon3004 Před 3 lety +1

      Yep, the reason why it seemed to work ok is a face is kind of close to a square.

  • @drydenstewartenterprises
    @drydenstewartenterprises Před 3 lety +1

    Great video!!! I've followed along on both of your chatbot/voice assistant tutorials, I'm wondering how to build a chatbot with image recognition. That would be great if you would make a tutorial on it!

  • @kashyapsantoki4889
    @kashyapsantoki4889 Před 3 lety +13

    love from india

  • @reold
    @reold Před 3 lety

    Cool. A lot of knowledge

  • @dapborlangmarwein8343

    Thanks!

  • @danmiller6880
    @danmiller6880 Před 2 lety

    Yup, please do, Tim. Thank you!

  • @StaMariaRock
    @StaMariaRock Před rokem

    NOOOO!!! where is the video to train our own Cascade Classifier!? You have to make it! you explained everything so well

  • @vingo1998
    @vingo1998 Před 3 lety

    Thank you so much

  • @TauhidCodes
    @TauhidCodes Před 3 lety +3

    Thanks for this video series. A ninth or tenth video would be nice. One about computer vision using convolutional neural network would be nicer still. Got to learn a lot from these tutorials and reading about the algorithms that are used.

    • @parthverma7089
      @parthverma7089 Před rokem

      can u plz tell me what is the name haar cascade XML file for noses??

  • @rahulhalder4501
    @rahulhalder4501 Před 2 lety

    Thank you Bro :)

  • @fentonmsu
    @fentonmsu Před 3 lety

    Awesome 👍

  • @erack1
    @erack1 Před 3 lety

    just finished the series. Need more videos lol.

  • @peschebichsu
    @peschebichsu Před 3 lety

    Would love to see the 9th and 10th video of this series!

  • @grantthompson9864
    @grantthompson9864 Před 3 lety +1

    Hi Tim, really enjoy your videos. Would you consider a tutorial on facial recognition?

  • @yuseii814
    @yuseii814 Před 3 lety

    Really cool video, :D

  • @LifOfJohn
    @LifOfJohn Před 2 lety

    excellent video please do more video

  • @ioanapalaghiei6088
    @ioanapalaghiei6088 Před 3 lety +2

    More opencv tutorials!

  • @otakuno5764
    @otakuno5764 Před 3 lety

    Love from Greece

  • @mayureshagashe3799
    @mayureshagashe3799 Před 3 lety +2

    More on Haar Cascade Classifier from Scratch please!! Thanks.

  • @kamilwilk1770
    @kamilwilk1770 Před 3 lety +3

    Hi Tim. Thanks for that video. Could you make video how to actually train the classifier. And maybe how to make it working with Raspberry Pi.

  • @abdul0mar
    @abdul0mar Před 2 lety

    Can you make more openCV videos please?
    I really love ur explaination!

  • @dineshgautam7027
    @dineshgautam7027 Před 2 lety

    Great.....

  • @millejadecabrera4544
    @millejadecabrera4544 Před 2 lety

    this is a great playlist👌

  • @fogsterded
    @fogsterded Před 3 lety +1

    Yes it would like to know how to train my own classifier !

  • @souravjha2146
    @souravjha2146 Před 3 lety +1

    Tim please make some more vidoes with this module along with some advanced project ideas using open cv..........please that would be helpful a lot

  • @kuchikuchi9783
    @kuchikuchi9783 Před 3 lety

    It actually works😄 "here"

  • @pythonenthusiast9292
    @pythonenthusiast9292 Před 3 lety

    i do want to see more on Haar Cascade Classifier and more videos in this series

  • @thesks598
    @thesks598 Před 3 lety

    yes do the next part

  • @eyal4
    @eyal4 Před 3 lety

    waiting for the next viodes in the series :)

  • @kasyapdharanikota8570
    @kasyapdharanikota8570 Před 2 lety

    more open cv tutorials please

  • @kashyapsantoki4889
    @kashyapsantoki4889 Před 3 lety +3

    TIM is on TIME😂

  • @pauldaniels3176
    @pauldaniels3176 Před 3 lety +2

    Great video series!
    Where you've used x+w, y+h, ex+ew and ey+eh to use width and height to calculate the rectangle corners opposite the location coordinates x, y, ex and ey, shouldn't you have used x+w-1, y+h-1, ex+ew-1 and ey+eh-1 to draw rectangles _on_ the edge of the matched area? Alternatively, use x-1, y-1, ex-1 and ey-1 to draw _around_ the matched area.
    They're small differences that aren't important for a quick demonstration but might be important for more critical work.

    • @Matt-hy7dy
      @Matt-hy7dy Před 3 lety

      Hey could you explain why this is better than x+w and y+h?

  • @joachimikuenobe599
    @joachimikuenobe599 Před 3 lety

    More please :)

  • @jaineshranderia9344
    @jaineshranderia9344 Před 3 lety

    need more OpenCv videos

  • @VictorPerez-od7zh
    @VictorPerez-od7zh Před 3 lety

    Nice

  • @lucarampini6943
    @lucarampini6943 Před 3 lety

    Please add more videos about opencv 🙏

  • @mohamadkenway5140
    @mohamadkenway5140 Před 2 lety

    Hi Tim
    We are waiting for next video that u said about it

  • @stephenremillard9462
    @stephenremillard9462 Před rokem

    I am a year late to the party, but I sure would like more videos in this series. Anything realy. Computer vision is so in demands .

  • @kritikarai5106
    @kritikarai5106 Před 3 lety

    please make a video on how to train the classifier:)...thanku so much for teaching me opencv

  • @VinodKRamachandra
    @VinodKRamachandra Před 3 lety

    Tim, more opencv content please

  • @Joker4funify
    @Joker4funify Před 3 lety +2

    Would you try other things for detection?
    For example take the pool game, where you need to find more of the same ball

  • @jollokim1948
    @jollokim1948 Před 3 lety

    uuhh I would like to see how to train our own classifiers!

  • @saivythik2670
    @saivythik2670 Před 3 lety

    can u explain about the object feature extraction using euclidean distance

  • @KevIn-tu4fv
    @KevIn-tu4fv Před 2 lety

    Please make a video about training our own classifier !!!

  • @mrpancakes
    @mrpancakes Před 3 lety

    please make a tutorial on how to train your own haar cascade classifier

  • @samiasucre2669
    @samiasucre2669 Před 3 lety +1

    Plz make for us more videos

  • @giovannitshibangu1444

    We need more 😢😢😢😢😢

  • @hamed7071
    @hamed7071 Před 3 lety

    More pleassseeeee

  • @khangau4844
    @khangau4844 Před 3 lety

    Could you please do more videos on OpenCV:))?

  • @jeremycooper8150
    @jeremycooper8150 Před 3 měsíci

    I know this is an old series but would love to see a follow up on training a model.

  • @noahcoleman
    @noahcoleman Před 3 lety

    I'd like to see how to train a haar classifier!

  • @prakharsrivastava5621
    @prakharsrivastava5621 Před 4 měsíci

    Please make the video on Haar Cascade Training.
    Hoping a positive response from your side.
    Thank you❤

  • @titan4431
    @titan4431 Před rokem

    More Please

  • @mohammadaarizmahfooz6037

    please make the next video of this series please

  • @barrotem5627
    @barrotem5627 Před 3 lety +4

    I don't know if this was mentioned, but you need to install
    *OpenCV-contrib-python module*
    For me, regular OpenCV didn't come with the algorithms described in the video

    • @andzhurt4827
      @andzhurt4827 Před 9 měsíci

      Thank youu! I was wondering why i didn't see any suggestions when I was writing my code

  • @LeadDennis
    @LeadDennis Před 2 měsíci

    Please make another video on this.

  • @amineziad5099
    @amineziad5099 Před 3 lety +1

    Plz we want more open cv vidéos

  • @tenten7379
    @tenten7379 Před rokem

    Hi can you also tackle about PPE detection aws rekog using a video file