Public Attributes | |
| faces | |
| total_faces | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Private Attributes | |
| _attr_device_class = ImageProcessingDeviceClass.FACE | |
Additional Inherited Members | |
Static Public Attributes inherited from homeassistant.components.image_processing.ImageProcessingEntity | |
| timeout = DEFAULT_TIMEOUT | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Base entity class for face image processing.
Definition at line 197 of file __init__.py.
| None homeassistant.components.image_processing.ImageProcessingFaceEntity.__init__ | ( | self | ) |
Initialize base face identify/verify entity.
Definition at line 202 of file __init__.py.
| None homeassistant.components.image_processing.ImageProcessingFaceEntity.async_process_faces | ( | self, | |
| list[FaceInformation] | faces, | ||
| int | total | ||
| ) |
Send event with detected faces and store data.
known are a dict in follow format:
[
{
ATTR_CONFIDENCE: 80,
ATTR_NAME: 'Name',
ATTR_AGE: 12.0,
ATTR_GENDER: 'man',
ATTR_MOTION: 'smile',
ATTR_GLASSES: 'sunglasses'
},
]
This method must be run in the event loop.
Definition at line 242 of file __init__.py.
| None homeassistant.components.image_processing.ImageProcessingFaceEntity.process_faces | ( | self, | |
| list[FaceInformation] | faces, | ||
| int | total | ||
| ) |
Send event with detected faces and store data.
Definition at line 237 of file __init__.py.
Return the state of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 208 of file __init__.py.
| dict[str, Any] homeassistant.components.image_processing.ImageProcessingFaceEntity.state_attributes | ( | self | ) |
Return device specific state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 233 of file __init__.py.
|
staticprivate |
Definition at line 200 of file __init__.py.
| homeassistant.components.image_processing.ImageProcessingFaceEntity.faces |
Definition at line 272 of file __init__.py.
| homeassistant.components.image_processing.ImageProcessingFaceEntity.total_faces |
Definition at line 205 of file __init__.py.