Metadata-Version: 2.1
Name: pyfacerecall
Version: 0.0.1
Summary: A Machine Learning Python library for face recognition.
Home-page: https://github.com/iamatulsingh/pyfacerecall
Author: Atul Singh
Author-email: atulsingh0401@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pyfacerecall

[![ForTheBadge built-with-love](https://forthebadge.com//images/badges/built-with-love.svg)](https://github.com/iamatulsingh/)

## Installation
```bash
pip install pyfacerecall
```

## Generate own face dataset using camera
You can use cli built-in cli tool to generate dataset of your own face using your camera. 
```bash
python -m pyfacerecall --output person --source 0
```

## How to use?
```python
from pyfacerecall import FaceRecognition


if __name__ == '__main__':
    model_path = "model"
    image_path = 'test.jpeg'
    face_recognition = FaceRecognition("./dataset/training", "./dataset/testing")
    face_recognition.training()
    face_recognition.save_model(model_path)
    model = FaceRecognition.load_saved_model(model_path)
    k, result = FaceRecognition.model_prediction(image_path, model_path)
    print(f"detected class is {k} and prediction percentage is {result}")
```


