This program is developed in Juypter Notebook, using two different algorithms; Haar Cascade and Deep Neural Network. Both of the programs have the feature to capture the faces upon clicking the button 'X' on the keyboard. The clicked picture will be saved as a PNG file in the program folder.
The image above is taken from upon clicking the button 'X'. This one is a product of the Haar Cascade Classifier algorithm. The Haar Cascade algorithm has its limitations as it is sensitive to angles.
This is the sample of detection using the DNN algorithm. The DNN algorithm is more efficient compared to Haar Cascade as it can detect faces at any angle or size.
Haar Cascade Classifier: https://docs.opencv.org/3.4/db/d28/tutorial_cascade_classifier.html
YOLO Deep Neural Network: https://docs.opencv.org/4.x/da/d9d/tutorial_dnn_yolo.html