An open API service indexing awesome lists of open source software.

https://github.com/sheikhharis50/facer

Facer is a face recognition system built on face_recognition package and opencv
https://github.com/sheikhharis50/facer

ai dlib face-detection face-recognition numpy opencv poetry real-time real-time-face-detection

Last synced: about 9 hours ago
JSON representation

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

Awesome Lists containing this project

README

          

# Facer

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

## Prerequisites

1. Poetry
2. Python >= 3.10
3. [Dataset](https://www.kaggle.com/datasets/adg1822/7-celebrity-images)
4. Webcam

## QuickStart

1. Create virtual env

```bash
poetry shell
```

2. Install dependencies

```bash
poetry install
```

3. Run encoder

```bash
python main.py --encode --model [MODEL_NAME='hog|cnn']
```

4. Run `facer` with specific image

```bash
python main.py --model [MODEL_NAME='hog|cnn'] --image [IMAGE_PATH]
```

_eg:_

```bash
python main.py --model hog --image 'dataset/val/elon_musk/161856.jpg'
```

4. Run `facer` with real time face detection using webcam

```bash
python main.py --model [MODEL_NAME='hog|cnn']
```

_eg:_

```bash
python main.py --model hog
```

## References

- [face-recognition-with-python](https://realpython.com/face-recognition-with-python/#demo)
- [real-time-object-detection-with-yolo](https://dipankarmedh1.medium.com/real-time-object-detection-with-yolo-and-webcam-enhancing-your-computer-vision-skills-861b97c78993)

## Author

- [Sheikh Haris Zahid](https://github.com/sheikhharis50)