How often have you been impressed with your phone or digital camera when faces on the photo have been detected? There's no doubt you want to implement something similar on your own, or incorporate a face detection feature in your algorithms. This recipe shows how you can easily repeat this using OpenCV. Let's get started.
Detecting faces using Haar/LBP cascades
Getting ready
Before you proceed with this recipe, you need to install the OpenCV 3.x Python API package.
How to do it...
The steps for this recipe are:
- Import the modules we need:
import cv2
import numpy...