Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.microsoft_face_detect.image_processing Namespace Reference

Classes

class  MicrosoftFaceDetectEntity
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 
def validate_attributes (list_attributes)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_ATTRIBUTES = "attributes"
 
list DEFAULT_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER]
 
 PLATFORM_SCHEMA
 
list SUPPORTED_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER, ATTR_GLASSES]
 

Detailed Description

Component that will help set the Microsoft face detect processing.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.microsoft_face_detect.image_processing.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Microsoft Face detection platform.

Definition at line 49 of file image_processing.py.

◆ validate_attributes()

def homeassistant.components.microsoft_face_detect.image_processing.validate_attributes (   list_attributes)
Validate face attributes.

Definition at line 32 of file image_processing.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.microsoft_face_detect.image_processing._LOGGER = logging.getLogger(__name__)
private

Definition at line 24 of file image_processing.py.

◆ CONF_ATTRIBUTES

string homeassistant.components.microsoft_face_detect.image_processing.CONF_ATTRIBUTES = "attributes"

Definition at line 28 of file image_processing.py.

◆ DEFAULT_ATTRIBUTES

list homeassistant.components.microsoft_face_detect.image_processing.DEFAULT_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER]

Definition at line 29 of file image_processing.py.

◆ PLATFORM_SCHEMA

homeassistant.components.microsoft_face_detect.image_processing.PLATFORM_SCHEMA
Initial value:
1 = IMAGE_PROCESSING_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_ATTRIBUTES, default=DEFAULT_ATTRIBUTES): vol.All(
4  cv.ensure_list, validate_attributes
5  )
6  }
7 )

Definition at line 40 of file image_processing.py.

◆ SUPPORTED_ATTRIBUTES

list homeassistant.components.microsoft_face_detect.image_processing.SUPPORTED_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER, ATTR_GLASSES]

Definition at line 26 of file image_processing.py.