Face Detection models:
- SSD-Mobilenet
- MTCNN
- SSD-Inception
Face Embedding models:
- Inception Resnet v1
- Inception Resnet v2
$ pip3 install -r requirements.txt
$ python test.py
$ python multicam.py
$ python evaluate.py --path path/to/folder
There are 2 ways:
-
Register from webcam: $
python register.py --source webcam --path 0
-
Register from folder: $
python register.py --source folder --path path/to/folder
The folder structure should be:
.
├── person1
│ ├── img1.jpg
│ ├── img2.jpg
│ └── ...
├── person2
│ ├── img1.jpg
│ ├── img2.jpg
│ └── ...
└── ...
You can find the parameters in the config.py
file.
$ python registration_api.py
$ python recognition_api.py
Note: This code is compatible with Python >= 3.6.0. Although it might work with other Python versions with some minor changes