Deepface is a state-of-the-art facial recognition system that is open source and available in Python.
Here's how to get started:
main.py47 chars3 lines
DeepFace
module:main.py30 chars2 lines
verify
function, which takes two images as input and returns a JSON object with various facial recognition metrics. Here is an example:main.py131 chars7 lines
This will print a JSON object with facial recognition metrics like 'cosine similarity', 'euclidean distance', etc.
DeepFace
module like analyze
(for face analysis), detectFace
(for detecting faces in an image), and find
(for finding the closest match of an image in a database). You can find more information on how to use these functions in the official documentation.There you have it, you can now use the DeepFace facial recognition system in Python.
gistlibby LogSnag