OpenCV Python Tutorial #8 - Face and Eye Detection

  Рет қаралды 84,099

Tech With Tim

Tech With Tim

Күн бұрын

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 KZfaq 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 жыл бұрын
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 жыл бұрын
Pls make the other video's
@ananthramvijayaraj4554
@ananthramvijayaraj4554 3 жыл бұрын
More openCV videos would be amazing. Thanks Tim!!
@pythonenthusiast9292
@pythonenthusiast9292 3 жыл бұрын
+100
@ath0rus
@ath0rus 2 жыл бұрын
we do need more
@parthverma7089
@parthverma7089 Жыл бұрын
can u plz tell me what is the name haar cascade XML file for noses??
@infomanz28
@infomanz28 3 жыл бұрын
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 11 ай бұрын
How about the once like hand written digets?
@amnaalhosani7980
@amnaalhosani7980 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!!!
@bitacorapersonal6801
@bitacorapersonal6801 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.
@phamminhhung3219
@phamminhhung3219 3 жыл бұрын
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 жыл бұрын
Thank you so much for your tutorials Tim! I'm doing a school project using openCV and this has been very helpful
@cleetus133
@cleetus133 Жыл бұрын
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!
@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!
@deepakpaira0123
@deepakpaira0123 3 ай бұрын
Please continue this series. This was superb for beginners in CV with basic knowledge of python. Thank You.
@marktrubetskoy5074
@marktrubetskoy5074 2 жыл бұрын
Awesome tutorial series Tim! Many thanks for the effort!
@MrPhilipson00
@MrPhilipson00 3 жыл бұрын
Hi TIm-Well Done!! Yes please on the Haar-cascade training tutorial. Excellent summary. Thanks Tim!
@jeromedelcastillo6596
@jeromedelcastillo6596 3 жыл бұрын
The playlist has good content, can't wait for the training of your Haar cascade classifier
@iankhoojiaern
@iankhoojiaern Жыл бұрын
Hi Tim, your OpenCV tutorials are really interesting! Please make videos 9 and 10! :)
@suryatamil1471
@suryatamil1471 2 жыл бұрын
Hi Tim, you have did a great job, you have explained it very clear.. Good job and ThanksTim!
@mendelg123
@mendelg123 3 жыл бұрын
please continue! keep up the constant uploads!
@fabrizzioorderique2343
@fabrizzioorderique2343 3 жыл бұрын
Would love to see the next video! Great series Tim!
@jmmatas08
@jmmatas08 2 жыл бұрын
Tim , thanks a lot for your opencv vídeos . Great Job!!.
@Superdooperhero
@Superdooperhero 3 жыл бұрын
Would love to train my own Haar classifier. Especially for license plate recognition. Thanks for the awesome training.
@kashyapsantoki4889
@kashyapsantoki4889 3 жыл бұрын
love from india
@karanjotsingh2939
@karanjotsingh2939 3 жыл бұрын
Great video 👌 as all of your videos are and WE NEED MORE VIDEOS like training for faces and may be objects
@scottmorgan3734
@scottmorgan3734 3 жыл бұрын
Thanks, Tim. Great work!
@harshitpatil3897
@harshitpatil3897 3 жыл бұрын
thank you tim for this great video and this series.
@siambinkhurshid544
@siambinkhurshid544 3 жыл бұрын
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 😊.
@rc705
@rc705 3 жыл бұрын
Keep this series going!
@NuwaHWeil
@NuwaHWeil 2 жыл бұрын
Please more OpenCV, I really like this course
@hyderixe
@hyderixe 3 жыл бұрын
I would love a tutorial about creating your own classifiers!
@sergeyo.6181
@sergeyo.6181 3 жыл бұрын
I think you misspelled at line 15, y+w -> y+h.
@marlinmixon3004
@marlinmixon3004 2 жыл бұрын
Yep, the reason why it seemed to work ok is a face is kind of close to a square.
@mudhutonthemoon
@mudhutonthemoon Жыл бұрын
Very good explanation!
@samuellow8078
@samuellow8078 9 ай бұрын
We need more of this, Tim.
@manjunathshenoy3774
@manjunathshenoy3774 3 жыл бұрын
That's Amazing Tim, waiting for next video!!
@magicmagus1459
@magicmagus1459 3 жыл бұрын
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.
@danmiller6880
@danmiller6880 2 жыл бұрын
Yup, please do, Tim. Thank you!
@theradicalramblr6504
@theradicalramblr6504 3 жыл бұрын
Thank you Tim, very cool
@shadrackdarku8613
@shadrackdarku8613 2 жыл бұрын
we love you bro. we need to learn how to create our own classifiers. waiting for that video aggressively
@draytonlav
@draytonlav 3 жыл бұрын
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!
@robbie8545
@robbie8545 2 жыл бұрын
More please! Love the content!
@gustavojuantorena
@gustavojuantorena 3 жыл бұрын
Awesome! Please keep doing open cv tutorials
@lolzman122
@lolzman122 3 жыл бұрын
More videos would be amazing!
@barath.s8550
@barath.s8550 3 жыл бұрын
I Like the way you explain it👍
@ahmedahsam5527
@ahmedahsam5527 8 ай бұрын
great tutorial... hope there would be more videos for training our own model
@drydenstewartenterprises
@drydenstewartenterprises 3 жыл бұрын
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!
@Ashfaque143
@Ashfaque143 2 жыл бұрын
This was great!
@hedimak999
@hedimak999 2 жыл бұрын
great videos , you gained a subscriber
@peschebichsu
@peschebichsu 3 жыл бұрын
Would love to see the 9th and 10th video of this series!
@grantthompson9864
@grantthompson9864 3 жыл бұрын
Hi Tim, really enjoy your videos. Would you consider a tutorial on facial recognition?
@erack1
@erack1 2 жыл бұрын
just finished the series. Need more videos lol.
@TauhidCodes
@TauhidCodes 2 жыл бұрын
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??
@reold
@reold 3 жыл бұрын
Cool. A lot of knowledge
@StaMariaRock
@StaMariaRock Жыл бұрын
NOOOO!!! where is the video to train our own Cascade Classifier!? You have to make it! you explained everything so well
@LifOfJohn
@LifOfJohn 2 жыл бұрын
excellent video please do more video
@ioanapalaghiei6088
@ioanapalaghiei6088 3 жыл бұрын
More opencv tutorials!
@mayureshagashe3799
@mayureshagashe3799 3 жыл бұрын
More on Haar Cascade Classifier from Scratch please!! Thanks.
@vingo1998
@vingo1998 2 жыл бұрын
Thank you so much
@rahulhalder4501
@rahulhalder4501 2 жыл бұрын
Thank you Bro :)
@abdul0mar
@abdul0mar 2 жыл бұрын
Can you make more openCV videos please? I really love ur explaination!
@dapborlangmarwein8343
@dapborlangmarwein8343 Жыл бұрын
Thanks!
@kamilwilk1770
@kamilwilk1770 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.
@fogsterded
@fogsterded 3 жыл бұрын
Yes it would like to know how to train my own classifier !
@kasyapdharanikota8570
@kasyapdharanikota8570 2 жыл бұрын
more open cv tutorials please
@otakuno5764
@otakuno5764 3 жыл бұрын
Love from Greece
@kuchikuchi9783
@kuchikuchi9783 3 жыл бұрын
It actually works😄 "here"
@fentonmsu
@fentonmsu 3 жыл бұрын
Awesome 👍
@yuseii814
@yuseii814 3 жыл бұрын
Really cool video, :D
@millejadecabrera4544
@millejadecabrera4544 2 жыл бұрын
this is a great playlist👌
@TechWithTim
@TechWithTim 2 жыл бұрын
Glad you think so!
@millejadecabrera4544
@millejadecabrera4544 2 жыл бұрын
@@TechWithTim looking forward to your future playlist
@souravjha2146
@souravjha2146 3 жыл бұрын
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
@thesks598
@thesks598 3 жыл бұрын
yes do the next part
@pythonenthusiast9292
@pythonenthusiast9292 3 жыл бұрын
i do want to see more on Haar Cascade Classifier and more videos in this series
@iro4201
@iro4201 3 жыл бұрын
Love this series! Please make more
@lucarampini6943
@lucarampini6943 3 жыл бұрын
Please add more videos about opencv 🙏
@dineshgautam7027
@dineshgautam7027 2 жыл бұрын
Great.....
@eyal4
@eyal4 2 жыл бұрын
waiting for the next viodes in the series :)
@kashyapsantoki4889
@kashyapsantoki4889 3 жыл бұрын
TIM is on TIME😂
@jaineshranderia9344
@jaineshranderia9344 3 жыл бұрын
need more OpenCv videos
@pauldaniels3176
@pauldaniels3176 3 жыл бұрын
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 3 жыл бұрын
Hey could you explain why this is better than x+w and y+h?
@VinodKRamachandra
@VinodKRamachandra 3 жыл бұрын
Tim, more opencv content please
@mohamadkenway5140
@mohamadkenway5140 2 жыл бұрын
Hi Tim We are waiting for next video that u said about it
@joachimikuenobe599
@joachimikuenobe599 3 жыл бұрын
More please :)
@Joker4funify
@Joker4funify 3 жыл бұрын
Would you try other things for detection? For example take the pool game, where you need to find more of the same ball
@kritikarai5106
@kritikarai5106 3 жыл бұрын
please make a video on how to train the classifier:)...thanku so much for teaching me opencv
@barrotem5627
@barrotem5627 3 жыл бұрын
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
@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 .
@VictorPerez-od7zh
@VictorPerez-od7zh 3 жыл бұрын
Nice
@KevIn-tu4fv
@KevIn-tu4fv 2 жыл бұрын
Please make a video about training our own classifier !!!
@jeremycooper8150
@jeremycooper8150 2 ай бұрын
I know this is an old series but would love to see a follow up on training a model.
@samiasucre2669
@samiasucre2669 3 жыл бұрын
Plz make for us more videos
@prakharsrivastava5621
@prakharsrivastava5621 3 ай бұрын
Please make the video on Haar Cascade Training. Hoping a positive response from your side. Thank you❤
@titan4431
@titan4431 Жыл бұрын
More Please
@khangau4844
@khangau4844 3 жыл бұрын
Could you please do more videos on OpenCV:))?
@giovannitshibangu1444
@giovannitshibangu1444 Жыл бұрын
We need more 😢😢😢😢😢
@jollokim1948
@jollokim1948 3 жыл бұрын
uuhh I would like to see how to train our own classifiers!
@noahcoleman
@noahcoleman 3 жыл бұрын
I'd like to see how to train a haar classifier!
@LeadDennis
@LeadDennis Ай бұрын
Please make another video on this.
@mrpancakes
@mrpancakes 3 жыл бұрын
please make a tutorial on how to train your own haar cascade classifier
@hamed7071
@hamed7071 3 жыл бұрын
More pleassseeeee
@amineziad5099
@amineziad5099 3 жыл бұрын
Plz we want more open cv vidéos
@am1rtech926
@am1rtech926 3 жыл бұрын
Please make another video!!!
@saivythik2670
@saivythik2670 3 жыл бұрын
can u explain about the object feature extraction using euclidean distance
OpenCV Python Tutorial #1 - Introduction & Images
14:52
Tech With Tim
Рет қаралды 329 М.
OpenCV Python Tutorial #7 - Template Matching (Object Detection)
22:22
He tried to save his parking spot, instant karma
00:28
Zach King
Рет қаралды 22 МЛН
Final increíble 😱
00:39
Juan De Dios Pantoja 2
Рет қаралды 45 МЛН
What Backend Language is Right For You?
6:55
Tech With Tim
Рет қаралды 22 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 40 М.
5 Uncommon Python Features I Love
15:09
Indently
Рет қаралды 129 М.
Introduction to PyTorch
23:33
PyTorch
Рет қаралды 212 М.
Object Tracking with Opencv and Python
30:03
Pysource
Рет қаралды 592 М.
Why Neural Networks can learn (almost) anything
10:30
Emergent Garden
Рет қаралды 1,2 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 790 М.
But what are Hamming codes? The origin of error correction
20:05
3Blue1Brown
Рет қаралды 2,3 МЛН