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 details)
Built Distribution
File details
Details for the file pyfacerecall-0.0.1.tar.gz
.
File metadata
- Download URL: pyfacerecall-0.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48ea838d74e9916b0240f4a4febe1d006d1a32fd601502540258ec4de949a00d |
|
MD5 | 4f8ef12cc354203936dcebc0674ab28b |
|
BLAKE2b-256 | de79fc95c5a0beda21af286cfb2c15a32323cb361c112b07d35800d324bc7536 |
File details
Details for the file pyfacerecall-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyfacerecall-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c26abcf5753666695f4c464000c5a5a94cffc76e5ea531f505cf069b4b05927 |
|
MD5 | 73079e35a199744ac3e6f7c24a1c9dac |
|
BLAKE2b-256 | 2ab2022b3feb7f59db2ffb502805665ef07c106e48530798ab3ff782ec76b6b9 |