In this recipe, you will learn how to detect faces using a convolution neural network model. The ability to accurately detect faces in different conditions is used in various computer vision applications, such as face enhancement.
Face detection using Single Shot Detection (SSD) and the ResNet model
Getting ready
Before you proceed with this recipe, you need to install the OpenCV 3.x Python API package.
How to do it...
You need to complete these steps:
- Import the modules:
import cv2
import numpy as np
- Load the model and set the confidence threshold:
model = cv2.dnn...