Closed robmarkcole closed 5 years ago
Thanks for pointing out. using the face_recognition.face_locations should do the trick indeed. When I have some time I will get that squeezed in.
Hi, now included the bounding box and included a dummy id to get it work. Hopefully this works now. I am currently having some problems to test is with HA myself
Works, nice!
I'm afraid that compatibility with the HA facebox component is broken in https://github.com/robmarkcole/HASS-Machinebox-Facebox/releases/tag/v0.4 as the
bounding_box
and imageid
of a face are now explicitly parsed byparse_faces()
. I see thatface_recognition.face_locations
does return bounding boxes so this could be implemented.id
could be anything.Note that a workaround is to comment out
face[ATTR_BOUNDING_BOX] = entry['rect']
andface[ATTR_IMAGE_ID] = entry['id']