Skip to main content

A face recognition plugin for OVOS

Project description

FaceEmbeddingsRecognitionPlugin

The FaceEmbeddingsRecognitionPlugin is a plugin designed for recognizing and managing face embeddings.

It uses face_recognition to extract face embeddings and integrates with ovos-chromadb-embeddings-plugin for storing and retrieving voice embeddings.

Features

  • Face Embeddings Extraction: Converts images into face embeddings using the face_recognition library.
  • Face Data Storage: Stores and retrieves face embeddings using ChromaEmbeddingsDB.
  • Face Data Management: Provides methods to add, query, and delete face embeddings associated with user IDs.

Note: face_recognition also requires dlib, which may require additional setup. Please refer to the face_recognition installation instructions for detailed steps.

Usage

Here is a quick example of how to use the FaceEmbeddingsRecognitionPlugin:

from ovos_face_embeddings import FaceEmbeddingsRecognitionPlugin
from ovos_chromadb_embeddings import ChromaEmbeddingsDB

db = ChromaEmbeddingsDB("./face_db")
f = FaceEmbeddingsRecognitionPlugin(db)

a = "/home/miro/PycharmProjects/ovos-user-id/a1.jpg"
a2 = "/home/miro/PycharmProjects/ovos-user-id/a2.jpg"
b = "/home/miro/PycharmProjects/ovos-user-id/b.jpg"

import face_recognition # helper to load from file easily
e1 = face_recognition.load_image_file(a)
e2 = face_recognition.load_image_file(a2)
b = face_recognition.load_image_file(b)

f.add_face("arnold", e1)
f.add_face("silvester", b)
print(f.query(e1))
print(f.query(e2))
print(f.query(b))

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

ovos-face-embeddings-plugin-0.0.0a2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ovos-face-embeddings-plugin-0.0.0a2.tar.gz.

File metadata

File hashes

Hashes for ovos-face-embeddings-plugin-0.0.0a2.tar.gz
Algorithm Hash digest
SHA256 d57f29c7536effe88bc1870be6c27e626cda28fd0fb18ad3923161acc31fc4b4
MD5 6467d1be36944d6a5ab3d7115478e435
BLAKE2b-256 2a54cfc1ea344b9e153e9cc9eba19d83b6fcbe18c657eeb9ddf73b4c7c5557f3

See more details on using hashes here.

File details

Details for the file ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 27659fc594f1cf15e92d9eaebbef41d97158a88552521018b7643477a931cdb8
MD5 a23f970557a77253506f7700330b7df5
BLAKE2b-256 da7e918c664d554b9d206a99a3d7cf27d6f7a9e0c16c60dc8ba8348e1bdaad11

See more details on using hashes here.

Supported by

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