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
pyfacerecall-1.0.0.tar.gz 6.5 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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