In this recipe, we are going to learn how to use a trained deep learning model for a face detection algorithm in OpenCV. To do this, we are going to download pre-trained face detection models and use OpenCV methods to import the model and also see how to convert an input image or frame into the required deep learning structure.
Face detection using deep learning
How to do it...
Using deep learning in OpenCV is very easy, and the only files that we require are the pre-trained models and know the basic configuration of it. We can download tested, pre-trained OpenCV models from https://github.com/opencv/open_model_zoo.
To create the face detector algorithm, follow these steps:
- Download and save the model of the face detector...