Its a face recognition system to detect faces using trained model.
- Poetry
- Python >= 3.10
- Dataset
- Webcam
- Create virtual env
poetry shell- Install dependencies
poetry install- Run encoder
python main.py --encode --model [MODEL_NAME='hog|cnn']- Run
facerwith 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'- Run
facerwith real time face detection using webcam
python main.py --model [MODEL_NAME='hog|cnn']eg:
python main.py --model hog