Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Traditional Face Detection With Python: Conclusion

Good work! You are now able to find faces in images. In this course, you learned how to represent regions in an image with Haar-like features. These features can be calculated very quickly using integral images.

You learned how AdaBoost finds the best performing Haar-like features from thousands of available features and turns them into a series of weak classifiers. Finally, you learned how to create a cascade of weak classifiers that can quickly and reliably distinguish faces from non-faces.

These steps illustrate many important elements of computer vision:

  • Finding useful features
  • Combining them to solve complex problems
  • Balancing between performance and managing computational resources

These ideas apply to object detection in general and will help you solve many real-world challenges. Good luck!

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Avatar image for elvisamoako

elvisamoako on April 15, 2020

Its demonstrates the power of python and quality teaching

Avatar image for balbutire

balbutire on April 15, 2020

Excellent clarification of the image classification process which doesn’t dip into advanced math for explanations. thx.

Avatar image for sdr54519

sdr54519 on April 17, 2020

Blown away! Very informative tutorial. I’m a newbie but learned a lot this short tutorial. More free tutorials like this will help me in getting my foot into the world of ML. Thanks!

Avatar image for Tomas Menito

Tomas Menito on April 23, 2020

Great tutorial, thanks!

Avatar image for sneha588

sneha588 on April 28, 2020

Thank you so much sir. Very well explained !

Avatar image for hassanbutt2019

hassanbutt2019 on April 30, 2020

it was good experience

Avatar image for sroux53

sroux53 on May 21, 2020

Excellent!

Avatar image for Marcelo Garbarino

Marcelo Garbarino on June 8, 2020

Great course for introducing these concepts. Thanks!

Now, instead of using conda, I’d use Python3 virtualenv. In my case, I created one, installed the pip packages, and the resulting requirements.txt is like this, for today’s versions:

joblib==0.15.1
numpy==1.18.5
opencv-python==4.2.0.34
scikit-learn==0.23.1
scipy==1.4.1
threadpoolctl==2.1.0
Avatar image for ehernandezvilla

ehernandezvilla on July 31, 2020

Excellent!

Avatar image for msm1089

msm1089 on June 22, 2021

I found this a useful and concise tutorial. I understood everything, except perhaps one thing.

When using cascades, a region must ‘pass’ the feature test of all weak classifiers. So the technique relies on having a full, frontal facing face in view. It seems the whole photo is ‘swept’ by the haar feature detectors. But since the size of this filter is fixed at quite a small size (~20-28 pixel square), does it mean it can only detect a face that is around the same size?

If a face covered say a 60 pixel square area, no subsection is going to be pass for ALL haar feature detectors (e.g. it will never see 2 eyes in the same 20 pixel square). I must be missing something here…the only thing I can think of is that each haar feature is checked at different sizes, but this seems to contradict what the tutorial said, that a size of 28x28 (i.e. fixed size) has been found to be good.

Become a Member to join the conversation.