In this tutorial, we will try to create a face detection application based on OpenCV. We will create a dataset of photos with various expressions so that our facial recognition system is more accurate. Input images directly from our Raspberry Pi camera, so we can make face recognition in realtime.
We will install additional libraries for Python3 namely, dlib, face_recognition, and imutils.
For programming, we will use Python by utilizing libraries that were previously installed. There are 3 main python programs to be made. Namely face-encoding.py to encode all faces in the dataset. The second file is face-recognition-img.py to recognize faces with image input. And the 3rd file face-recognition-video.py to recognize faces in realtime with video input.full tutorial at https://www.pyimagesearch.com/2018/06/18/face-recognition-with-opencv-python-and-deep-learning/