Face recognize api (#17233)

* Add api to run face recognition on image

* Rework save attempts option

* Cleanup mobile object pane buttons

* Adjust api signature

* Remove param

* Cleanup
This commit is contained in:
Nicolas Mowen
2025-03-19 09:02:25 -06:00
committed by GitHub
parent 7f966df5a4
commit e33fa96599
6 changed files with 53 additions and 5 deletions
+8
View File
@@ -197,6 +197,14 @@ class EmbeddingsContext:
},
)
def recognize_face(self, image_data: bytes) -> dict[str, any]:
return self.requestor.send_data(
EmbeddingsRequestEnum.recognize_face.value,
{
"image": base64.b64encode(image_data).decode("ASCII"),
},
)
def get_face_ids(self, name: str) -> list[str]:
sql_query = f"""
SELECT