This release is a pre-release and may not be stable for production use.
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))
Metadata
Release files for ovos-face-embeddings-plugin 0.0.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos-face-embeddings-plugin-0.0.0a2.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / ovos-face-embeddings-plugin-0.0.0a2.tar.gz
| Download URL | ovos-face-embeddings-plugin-0.0.0a2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d57f29c7536effe88bc1870be6c27e626cda28fd0fb18ad3923161acc31fc4b4
|
|
BLAKE2b-256 checksum How to use checksums |
2a54cfc1ea344b9e153e9cc9eba19d83b6fcbe18c657eeb9ddf73b4c7c5557f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl
| Download URL | ovos_face_embeddings_plugin-0.0.0a2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27659fc594f1cf15e92d9eaebbef41d97158a88552521018b7643477a931cdb8
|
|
BLAKE2b-256 checksum How to use checksums |
da7e918c664d554b9d206a99a3d7cf27d6f7a9e0c16c60dc8ba8348e1bdaad11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|