This project can be divided into two steps:
- Get static training model.
- Use training model to recognize names in videos.
- The
Dockerfile.gpu
contains one Dockerfile which can run thedlib
library to detect and recognize faces.
- Use Ransac to train the face model.
python3 train_cli.py train-with-video <your-video-location> <username>
- Detect and encode faces in the frames and save result videos.
python3 recognize_cli.py recognize-faces-in-video <your-video-location>
- There is one detail report in
doc
folder.
test_experiment_cli.sh
: Detect faces in the video and save as imagestest_recognize_cli.sh
: Recognize faces in the video and output result videotest_recognize_faces_in_images.sh
: Recognize faces in the imagetest_train_cli.sh
: Train with video