Just playing around with deep learning with the folks in the office. It was retrieved 7785 face encodings from the user’s database, performed face detection, encoding and calculating the least Euclidean distance between face encodings, then returning the username of the detected face.
That script was developed with Python 3.6, OpenCV, and the face_recognition wrapper.
The code is available
The TODO list includes receive the URL of photos via API and improves the affinity of detection.