Recognizes a face from an encoded list of faces stored in mongodb.
- face-recognition 1.3.0
- pymongo 3.11.1
- dnspython 2.0.0
- python3 -m venv ./venv
- source venv/bin/activate
- pip3 install -r requirements.txt
- install driver nvidia
or
source install.sh
Used to add a new person in mongodb.
Used to compare an image of an unknown person with stored records.
Parameters to edit before using the commands, contains the connection to the mongo server, database, the collection and the maximum tolerance value to recognize a person.
URL_MONGO
URL connection for connect recognition system with it respective storage .
DATABASE_NAME
Name of database that container lots of collections to process the different tasks of system.
COLLECTION_NAME
Name of collection used to storing the matrix encoders faces with it respective identification.
TOLERANCE
It's the tolerance accepted to evaluate encoders matrix saved in database.
python loadPerson.py john ../johnProfile.png
python recognize.py ../unknownPerson.png
[{'name':'john', 'distance': '0.334556'}]
Create with ❤️ by Carlos Mata