Face Detection (in pic and using webcam) Based on Deep Learning
Using Jupyter Notebook
Face detection is very important project in deep learning. It helps us performing many tasks like to arrest criminal, and to recognize and detect facial diseases (face detection is basic step) etc. Here is a simple code to detect face based on deep learning. So, let’s start.
Firstly, we’ll import libraries.
To detect face in pic, you’ve to import cascade classifier, and image in which you want to detect face. Cascade classifier will detect face and make a rectangle there.
Here is code for face detection in pic.
Now we move towards face detection in video (using webcam), that’s known as real-time face detection. We’ll use same cascade classifier as we used earlier. The difference is that instead of pic we’ll use webcam. To stop webcam, we’ll use a letter here we’re using ‘q’. After detection, we’ll stop webcam using ‘q’. You can change it.
So, let’s have a look on code for face detection using webcam.
Run the code and enjoy results. Here code completes. You may see good results of face detection. Some are below.
Results
Here face detection ends. So, if you like my work, don’t forget to clap.
Thank You.