A Machine Learning Python library for face recognition.
Project description
pyfacerecall
Installation
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.
python -m pyfacerecall --output person --source 0
How to use?
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}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfacerecall-0.0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pyfacerecall-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c26abcf5753666695f4c464000c5a5a94cffc76e5ea531f505cf069b4b05927 |
|
MD5 | 73079e35a199744ac3e6f7c24a1c9dac |
|
BLAKE2b-256 | 2ab2022b3feb7f59db2ffb502805665ef07c106e48530798ab3ff782ec76b6b9 |