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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ovos-face-embeddings-plugin-0.0.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb58787ccff69ee69a45de6ccf7b98f147018fb9d10837b2f2f028ba13ca73f |
|
MD5 | 747231e3e3d6268c7a948fc6d5b6b6bf |
|
BLAKE2b-256 | 236db0253a324813d0b3f9abd98f5e716bd2342b035b9b090e801a11275adc7f |
Close
Hashes for ovos_face_embeddings_plugin-0.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba62f9a8c7c396ce1477b0892505887e3fb238ddbf3a019beec35b3f1d119f7c |
|
MD5 | b51a9faf86d6201f92f33f5976c9872a |
|
BLAKE2b-256 | 387fdc74c9598e3ac55fd2ca825bc9c3732ed5d8c5461ffac24c0072db95da15 |