Skip to main content

A simple, kid-friendly face recognition library for Python.

Project description

ctu_face

A professional, easy-to-use, and lightweight Python library for face recognition. Designed to be simple enough for kids and beginners, yet robust enough for production!

Features

  • Plug and Play: Pre-bundled with lightweight ONNX face models. No complex setup or manual model downloads required.
  • Smart "Unknown" Handling: Automatically loads bundled random faces to prevent false positives and distinguish the user from strangers.
  • Versatile: Supports live webcams, recorded videos, and single image scans out of the box.

Installation

pip install ctu_face

Usage Examples

1. Live Webcam Recognition

from ctu_face import FaceAI

# Initialize the AI. It automatically loads unknown faces for accuracy!
ai = FaceAI()

# Add people you want to recognize
ai.add_person("Alice", "alice.jpg")
ai.add_person("Bob", "bob.jpg")

# Start the webcam! (Use camera_id=1 for secondary cameras)
ai.start_webcam(camera_id=0)

2. Check a Single Image

from ctu_face import FaceAI

ai = FaceAI()
ai.add_person("Alice", "alice.jpg")

# Scan a single image and show the result
ai.check_image("group_photo.jpg")

3. Check a Video File

from ctu_face import FaceAI

ai = FaceAI()
ai.add_person("Alice", "alice.jpg")

# Scan a recorded video
ai.check_video("party_video.mp4")

Requirements

  • opencv-contrib-python
  • numpy
  • tqdm (for progress bars)

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctu_face-0.1.1.tar.gz (79.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctu_face-0.1.1-py3-none-any.whl (79.2 MB view details)

Uploaded Python 3

File details

Details for the file ctu_face-0.1.1.tar.gz.

File metadata

  • Download URL: ctu_face-0.1.1.tar.gz
  • Upload date:
  • Size: 79.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ctu_face-0.1.1.tar.gz
Algorithm Hash digest
SHA256 88a431fcc7f51008039b0442a964e39941cb5f3d1f788f3b65c482982e30d2da
MD5 dc8096b2b3c7d5b385e66e058d36d734
BLAKE2b-256 7ad4a4c256716bf2443d9d5dfee6420f33ad7401da6b2e30ecfe867eedba4ed3

See more details on using hashes here.

File details

Details for the file ctu_face-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ctu_face-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 79.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ctu_face-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55502288193c6bcba8ef3ff456bbadb21f11e136c89e6a8d7781e99b979298f1
MD5 60fc3c0f34516bc8d2cf133fb2eda697
BLAKE2b-256 71fc6461bfb8c5b8706fa6498f6c9093dab76c7051fd93c84709d68f8a43c544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page