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_recognitionlibrary. - 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos-face-embeddings-plugin-0.0.0a2.tar.gz.
File metadata
- Download URL: ovos-face-embeddings-plugin-0.0.0a2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57f29c7536effe88bc1870be6c27e626cda28fd0fb18ad3923161acc31fc4b4
|
|
| MD5 |
6467d1be36944d6a5ab3d7115478e435
|
|
| BLAKE2b-256 |
2a54cfc1ea344b9e153e9cc9eba19d83b6fcbe18c657eeb9ddf73b4c7c5557f3
|
File details
Details for the file ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl.
File metadata
- Download URL: ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27659fc594f1cf15e92d9eaebbef41d97158a88552521018b7643477a931cdb8
|
|
| MD5 |
a23f970557a77253506f7700330b7df5
|
|
| BLAKE2b-256 |
da7e918c664d554b9d206a99a3d7cf27d6f7a9e0c16c60dc8ba8348e1bdaad11
|