Face Detection with Python

petercour

petercour

Posted on May 28, 2019

Face Detection with Python

face detection

You can detect faces using Python. These faces can be in a still image, video or web cam feed.

All of this can be done with only a few lines of code!

The method used here uses Machine Learning. Machine Learning is a part of Artificial Intelligence, that uses data to make new predictions.

In this case you want to predict if there's a face in the image.

Getting started

You will need Python 3.x and OpenCV 2 installed. You'll also need a cascade file, which OpenCV uses to detect faces.

OpenCV can be installed with the Python package manager:

pip3 install opencv-python

You'll also need the runtime opencv package.

Face detection uses the machine learning approach: given statistical examples, predict if there is a face in the image.

Read more: https://pythonbasics.org/face-detection/

💖 💪 🙅 🚩
petercour
petercour

Posted on May 28, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Face Detection in Python
python Face Detection in Python

July 17, 2019

Face Detection with Python
python Face Detection with Python

May 28, 2019