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 = face_recognition.load_saved_model(model_path)
k, result = face_recognition.model_prediction(image_path, model_path, need_cropping=False)
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.2.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file pyfacerecall-0.0.2.tar.gz
.
File metadata
- Download URL: pyfacerecall-0.0.2.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 | 2eb7cb92ef5d2cf7c6ca61c34940387f304d47119bf7a57318ecb5107da172ca |
|
MD5 | 078d0c3217c1eea4adb7e34c96a56ec6 |
|
BLAKE2b-256 | 535310b3fbf4ba605fc1108283d351547082f1fb0f940034eecc2a60bc7f618d |
File details
Details for the file pyfacerecall-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyfacerecall-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 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 | 067210b7123f1b9618fc47a261901989bf318283fe52455952ee730a9be40a7e |
|
MD5 | d6c02410b00fac1f74e421db14d18aaa |
|
BLAKE2b-256 | c404d2d79cf6ae1e414f4cf1d2bae718c8c26ecc0ff67506ad07ed86e8544d81 |