Skip to main content

A face recognition and embedding extraction library

Project description

NexFace

NexFace is a modular face recognition library built on top of modern deep learning models. It supports face detection, embedding extraction, clustering, and identification using ONNX, FaceNet, and Scikit-learn-compatible algorithms.


🚀 Features

  • Face Detection (YuNet with OpenCV & ONNX)
  • Face Embedding Extraction (FaceNet .h5)
  • Clustering (DBSCAN & HDBSCAN)
  • Recognition via Prototypes
  • ✅ Clean and extensible object-oriented design

🧠 How It Works

  1. Face Detection:
    Uses YuNet ONNX model via cv2.FaceDetectorYN.

  2. Embedding Extraction:
    FaceNet model (Keras .h5) extracts 128-D facial embeddings.

  3. Clustering & Prototypes:
    Cluster face embeddings via DBSCAN or HDBSCAN.
    Compute cluster centers (prototypes) for recognition.

  4. Recognition:
    New face embeddings are compared against cluster prototypes using cosine or Euclidean similarity.


You can also install using pip install -r requirements.txt.


📌 To Do

  • Add ArcFace / InsightFace support
  • Improve alignment and augmentation
  • Evaluation metrics (precision, recall, etc.)

🧑‍💻 Author

Fatih Dağdeviren
fatihdagdeviren21@gmail.com

GitHub: github.com/fatihdagdeviren

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

nexface-0.0.9.tar.gz (85.1 MB view details)

Uploaded Source

Built Distribution

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

nexface-0.0.9-py3-none-any.whl (85.1 MB view details)

Uploaded Python 3

File details

Details for the file nexface-0.0.9.tar.gz.

File metadata

  • Download URL: nexface-0.0.9.tar.gz
  • Upload date:
  • Size: 85.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for nexface-0.0.9.tar.gz
Algorithm Hash digest
SHA256 28c4277fbe8b520043427a0b841eda7e28cab91b61b0914b53a0a90befe2e56d
MD5 6032b388daee498064c9eb383975394f
BLAKE2b-256 beaf7110ea060f550cf87fbb358e647b9d01bf8c4d45f45706ab8a38f68072e8

See more details on using hashes here.

File details

Details for the file nexface-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: nexface-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 85.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for nexface-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 aa374afd9c5fe02a8f460ec1c36946be4afbd5b724ac10fc939ba182a029b99d
MD5 4558818d06c5b250bbc384ccb1effbc2
BLAKE2b-256 1cfb8d4d530f8103d0e0579727fff199ed4e65fb836365ce390342718eb94dae

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