OpenCV Python Tutorial #8 - Face and Eye Detection

Поделиться
HTML-код
  • Опубликовано: 22 май 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 RUclips 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

Комментарии • 165

  • @relytPC
    @relytPC 3 года назад +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 3 года назад +54

    Pls make the other video's

  • @ananthramvijayaraj4554
    @ananthramvijayaraj4554 3 года назад +74

    More openCV videos would be amazing. Thanks Tim!!

  • @infomanz28
    @infomanz28 3 года назад +79

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

    • @parthverma7089
      @parthverma7089 Год назад

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

    • @bobyau8755
      @bobyau8755 10 месяцев назад

      How about the once like hand written digets?

  • @bitacorapersonal6801
    @bitacorapersonal6801 2 года назад +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 2 года назад +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 Год назад +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 3 года назад +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 2 года назад +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 Год назад

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

  • @MrPhilipson00
    @MrPhilipson00 3 года назад +1

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

  • @jeromedelcastillo6596
    @jeromedelcastillo6596 3 года назад +4

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

  • @marktrubetskoy5074
    @marktrubetskoy5074 2 года назад +1

    Awesome tutorial series Tim! Many thanks for the effort!

  • @mendelg123
    @mendelg123 3 года назад +2

    please continue! keep up the constant uploads!

  • @fabrizzioorderique2343
    @fabrizzioorderique2343 2 года назад

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

  • @deepakpaira0123
    @deepakpaira0123 3 месяца назад

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

  • @Superdooperhero
    @Superdooperhero 2 года назад +1

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

  • @iankhoojiaern
    @iankhoojiaern Год назад +9

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

  • @siambinkhurshid544
    @siambinkhurshid544 3 года назад +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 😊.

  • @suryatamil1471
    @suryatamil1471 2 года назад +1

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

  • @karanjotsingh2939
    @karanjotsingh2939 3 года назад +2

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

  • @draytonlav
    @draytonlav 3 года назад +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!

  • @jmmatas08
    @jmmatas08 2 года назад

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

  • @scottmorgan3734
    @scottmorgan3734 3 года назад

    Thanks, Tim. Great work!

  • @hyderixe
    @hyderixe 3 года назад +6

    I would love a tutorial about creating your own classifiers!

  • @manjunathshenoy3774
    @manjunathshenoy3774 2 года назад

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

  • @theradicalramblr6504
    @theradicalramblr6504 2 года назад +1

    Thank you Tim, very cool

  • @harshitpatil3897
    @harshitpatil3897 3 года назад

    thank you tim for this great video and this series.

  • @rc705
    @rc705 3 года назад

    Keep this series going!

  • @samuellow8078
    @samuellow8078 9 месяцев назад

    We need more of this, Tim.

  • @magicmagus1459
    @magicmagus1459 3 года назад +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.

  • @mudhutonthemoon
    @mudhutonthemoon Год назад

    Very good explanation!

  • @robbie8545
    @robbie8545 2 года назад

    More please! Love the content!

  • @shadrackdarku8613
    @shadrackdarku8613 2 года назад

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

  • @gustavojuantorena
    @gustavojuantorena 3 года назад

    Awesome! Please keep doing open cv tutorials

  • @NuwaHWeil
    @NuwaHWeil 2 года назад

    Please more OpenCV, I really like this course

  • @lolzman122
    @lolzman122 3 года назад

    More videos would be amazing!

  • @drydenstewartenterprises
    @drydenstewartenterprises 3 года назад +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!

  • @alexandrezurcher1440
    @alexandrezurcher1440 Год назад

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

  • @ahmedahsam5527
    @ahmedahsam5527 7 месяцев назад

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

  • @barath.s8550
    @barath.s8550 3 года назад

    I Like the way you explain it👍

  • @Ashfaque143
    @Ashfaque143 2 года назад

    This was great!

  • @grantthompson9864
    @grantthompson9864 3 года назад +1

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

  • @reold
    @reold 3 года назад

    Cool. A lot of knowledge

  • @sergeyo.6181
    @sergeyo.6181 3 года назад +22

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

    • @marlinmixon3004
      @marlinmixon3004 2 года назад +1

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

  • @hedimak999
    @hedimak999 2 года назад

    great videos , you gained a subscriber

  • @peschebichsu
    @peschebichsu 3 года назад

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

  • @danmiller6880
    @danmiller6880 2 года назад

    Yup, please do, Tim. Thank you!

  • @erack1
    @erack1 2 года назад

    just finished the series. Need more videos lol.

  • @StaMariaRock
    @StaMariaRock Год назад

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

  • @fentonmsu
    @fentonmsu 3 года назад

    Awesome 👍

  • @ioanapalaghiei6088
    @ioanapalaghiei6088 3 года назад +2

    More opencv tutorials!

  • @kashyapsantoki4889
    @kashyapsantoki4889 3 года назад +13

    love from india

  • @vingo1998
    @vingo1998 2 года назад

    Thank you so much

  • @TauhidCodes
    @TauhidCodes 2 года назад +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 Год назад

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

  • @kamilwilk1770
    @kamilwilk1770 3 года назад +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.

  • @yuseii814
    @yuseii814 3 года назад

    Really cool video, :D

  • @mayureshagashe3799
    @mayureshagashe3799 3 года назад +2

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

  • @rahulhalder4501
    @rahulhalder4501 Год назад

    Thank you Bro :)

  • @LifOfJohn
    @LifOfJohn 2 года назад

    excellent video please do more video

  • @dapborlangmarwein8343
    @dapborlangmarwein8343 Год назад

    Thanks!

  • @millejadecabrera4544
    @millejadecabrera4544 2 года назад

    this is a great playlist👌

  • @otakuno5764
    @otakuno5764 3 года назад

    Love from Greece

  • @souravjha2146
    @souravjha2146 3 года назад +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

  • @abdul0mar
    @abdul0mar 2 года назад

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

  • @iro4201
    @iro4201 3 года назад

    Love this series! Please make more

  • @pauldaniels3176
    @pauldaniels3176 3 года назад +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 2 года назад

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

  • @fogsterded
    @fogsterded 3 года назад +1

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

  • @pythonenthusiast9292
    @pythonenthusiast9292 3 года назад

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

  • @Joker4funify
    @Joker4funify 3 года назад +2

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

  • @kashyapsantoki4889
    @kashyapsantoki4889 3 года назад +3

    TIM is on TIME😂

  • @dineshgautam7027
    @dineshgautam7027 2 года назад

    Great.....

  • @joachimikuenobe599
    @joachimikuenobe599 3 года назад

    More please :)

  • @eyal4
    @eyal4 2 года назад

    waiting for the next viodes in the series :)

  • @kuchikuchi9783
    @kuchikuchi9783 3 года назад

    It actually works😄 "here"

  • @thesks598
    @thesks598 3 года назад

    yes do the next part

  • @kasyapdharanikota8570
    @kasyapdharanikota8570 2 года назад

    more open cv tutorials please

  • @lucarampini6943
    @lucarampini6943 3 года назад

    Please add more videos about opencv 🙏

  • @jaineshranderia9344
    @jaineshranderia9344 3 года назад

    need more OpenCv videos

  • @kritikarai5106
    @kritikarai5106 3 года назад

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

  • @VinodKRamachandra
    @VinodKRamachandra 3 года назад

    Tim, more opencv content please

  • @VictorPerez-od7zh
    @VictorPerez-od7zh 3 года назад

    Nice

  • @barrotem5627
    @barrotem5627 3 года назад +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 7 месяцев назад

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

  • @mohamadkenway5140
    @mohamadkenway5140 2 года назад

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

  • @saivythik2670
    @saivythik2670 3 года назад

    can u explain about the object feature extraction using euclidean distance

  • @stephenremillard9462
    @stephenremillard9462 Год назад

    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 .

  • @jeremycooper8150
    @jeremycooper8150 Месяц назад

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

  • @prakharsrivastava5621
    @prakharsrivastava5621 2 месяца назад

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

  • @mrpancakes
    @mrpancakes 3 года назад

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

  • @artemorlovsky8277
    @artemorlovsky8277 3 года назад

    It's interesting, but can you make the same tutorial with not a pretrained classifier? Or at least with an idea how to do that?

  • @KevIn-tu4fv
    @KevIn-tu4fv 2 года назад

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

  • @samiasucre2669
    @samiasucre2669 3 года назад +1

    Plz make for us more videos

  • @noahcoleman
    @noahcoleman 3 года назад

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

  • @khangau4844
    @khangau4844 3 года назад

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

  • @jollokim1948
    @jollokim1948 3 года назад

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

  • @gabrielgirodo
    @gabrielgirodo 3 года назад +1

    Question: on line 15 you wrote "y:y+w". Shouldn't it be: "y:y+h" ?
    I really enjoyed the series. I am just entering Computer Vision now. Your way of teach is very easy to understand. Congratulations and thank you!

  • @tenten7379
    @tenten7379 Год назад

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

  • @LeadDennis
    @LeadDennis 15 дней назад

    Please make another video on this.

  • @dimitrijecabarkapa9085
    @dimitrijecabarkapa9085 3 года назад

    Can you make video on how to create text recognition program with python please?

  • @titan4431
    @titan4431 Год назад

    More Please