Skip to main content

pyfacerecall

ForTheBadge built-with-love

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'
    # if you already have model trained then no need to provide dataset path while initializing class like below
    # face_recognition = FaceRecognition(number_of_classes=2)
    face_recognition = FaceRecognition("./dataset/training", "./dataset/testing")
    face_recognition.training()
    face_recognition.save_model(model_path)
    # get the model and do something with that
    model = face_recognition.load_saved_model(model_path)
    # get the model prediction
    k, result = face_recognition.model_prediction(image_path, model_path, need_cropping=False)
    print(f"detected class is {k} and prediction percentage is {result}")

Metadata

Release files for pyfacerecall 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfacerecall 1.0.0
File Size Uploaded Provenance Actions
pyfacerecall-1.0.0.tar.gz 6.5 kB Without provenance Details for pyfacerecall-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyfacerecall 1.0.0
File Interpreter ABI Platform Actions
pyfacerecall-1.0.0-py3-none-any.whl Python 3 none any Details for pyfacerecall-1.0.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / pyfacerecall-1.0.0.tar.gz

Download URL pyfacerecall-1.0.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
258fef033b2804f5b5b15f9f2e297935323f35cffe527c90195b0024babbc2ed
BLAKE2b-256 checksum
How to use checksums
5ac4be188d10edf0d52447c1546bb5f1cc718e29ad8f560675c468d5f39a8576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / pyfacerecall-1.0.0-py3-none-any.whl

Download URL pyfacerecall-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffb5ae8aa0140c1529f4a8ebf8c8d687b70517fdfab8750910a9d21d0cde5b6d
BLAKE2b-256 checksum
How to use checksums
02841bc53a59381aec1e2f0cbfccda193cec82643ad172b0106fe43057d6b25b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Security for pyfacerecall 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page