/facer

Facer is a face recognition system built on face_recognition package and opencv

Primary LanguagePython

Facer

Its a face recognition system to detect faces using trained model.

Prerequisites

  1. Poetry
  2. Python >= 3.10
  3. Dataset
  4. Webcam

QuickStart

  1. Create virtual env
poetry shell
  1. Install dependencies
poetry install
  1. Run encoder
python main.py --encode --model [MODEL_NAME='hog|cnn']
  1. Run facer with specific image
python main.py --model [MODEL_NAME='hog|cnn'] --image [IMAGE_PATH]

eg:

python main.py --model hog --image 'dataset/val/elon_musk/161856.jpg'
  1. Run facer with real time face detection using webcam
python main.py --model [MODEL_NAME='hog|cnn']

eg:

python main.py --model hog

References

Author