Skip to main content

Ultimate Fast Face Recognition System with ungyoseries Integration

Project description

Markdown

ungyoface

Ultimate Fast Face Recognition System powered by DeepFace and optimized with ungyoseries Core Framework.

🚀 Features

  • Zero Box Delay: Real-time face tracking using OpenCV Haar Cascades aligned perfectly with the camera FPS.
  • Asynchronous Processing: Background DeepFace embedding and emotion recognition to eliminate main thread freezing.
  • RAM Caching: Pre-computed VGG-Face embeddings for lightning-fast matching.

🛠️ Installation

  1. Create a directory to store reference images (Default path: ./my_faces/) and add your face photos.

    • The filename will be used as the recognition identity (e.g., ungyo.jpg -> displayed as ungyo on screen).
  2. Install the package in editable (development) mode from the root directory:

    pip install -e .
    

💻 Usage

  1. Run Directly via Terminal Command Once installed, you can launch the real-time face acceleration radar system from anywhere in your terminal using a single command:

Bash ungyoface 2. Import as a Module in Python Scripts You can import and control the core pipeline of the ungyoface package directly within other Python projects:

from ungyoface import main_pipeline

if __name__ == "__main__":
    # Start the main pipeline integrated with hardware booster and real-time detection stream
    main_pipeline()

⚙️ Core API Reference Below is the specification of the core functions operating inside the ungyoface package. Refer to this when custom extensions are required.

pre_compute_db_embeddings()
Description: Extracts VGG-Face feature vectors from all image files inside the specified directory (./my_faces) at startup and caches them into RAM.

Key Detail: Minimizes initial file injection overhead by warming up the DeepFace model structure in memory exactly once.

detect_faces_cv2(frame)
Description: Swiftly extracts face bounding box coordinates from the input frame using the OpenCV Haar Cascade algorithm.

Returns: A list of dictionaries in the format of [{'box': (x, y, w, h)}, ...].

async_analysis_worker(face_crops_with_id)
Description: A background worker thread completely isolated from the main rendering thread. It receives cropped face images, processes heavy deep learning computations (DeepFace.analyze for emotion and scipy.spatial.distance.cosine for verification) asynchronously, and updates the global tracking table in real time.

main_pipeline()

Description: The top-level main loop of the system running under the @ungyoseries.boost() hardware acceleration. It opens an ultra-fast video stream and outputs the final frame by seamlessly combining the synchronous real-time tracking box rendering with the asynchronous feature identification layer.

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

ungyoface-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

ungyoface-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file ungyoface-0.1.0.tar.gz.

File metadata

  • Download URL: ungyoface-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ungyoface-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a496681d781fe473fbaeb388a3b12b8af91d64ec700a7a5006bcb188ba36fb7b
MD5 6cb6260b244735007175dd7991edc8fa
BLAKE2b-256 79c2145882c944c2dd478e1250503972c53e99c6b86bc79f18220dc402436efc

See more details on using hashes here.

File details

Details for the file ungyoface-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ungyoface-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ungyoface-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 016cd8cb783214178ce97b07c427cfecae2993064820e51ddf38aab2ed09ee9c
MD5 1668e3181f498ff0f73af86805cc5338
BLAKE2b-256 2a803e8a6c4cbed75259c7e9ab58a9c4dcda59c289f62eb89f75b7cfd0faa615

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