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

Classes

class  Doods
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 AREA_SCHEMA
 
string ATTR_MATCHES = "matches"
 
string ATTR_PROCESS_TIME = "process_time"
 
string ATTR_SUMMARY = "summary"
 
string ATTR_TOTAL_MATCHES = "total_matches"
 
string CONF_AREA = "area"
 
string CONF_AUTH_KEY = "auth_key"
 
string CONF_BOTTOM = "bottom"
 
string CONF_DETECTOR = "detector"
 
string CONF_FILE_OUT = "file_out"
 
string CONF_LABELS = "labels"
 
string CONF_LEFT = "left"
 
string CONF_RIGHT = "right"
 
string CONF_TOP = "top"
 
 LABEL_SCHEMA
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for the DOODS service.

Function Documentation

◆ setup_platform()

None homeassistant.components.doods.image_processing.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Doods client.

Definition at line 85 of file image_processing.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 34 of file image_processing.py.

◆ AREA_SCHEMA

homeassistant.components.doods.image_processing.AREA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_BOTTOM, default=1): cv.small_float,
4  vol.Optional(CONF_LEFT, default=0): cv.small_float,
5  vol.Optional(CONF_RIGHT, default=1): cv.small_float,
6  vol.Optional(CONF_TOP, default=0): cv.small_float,
7  vol.Optional(CONF_COVERS, default=True): cv.boolean,
8  }
9 )

Definition at line 51 of file image_processing.py.

◆ ATTR_MATCHES

string homeassistant.components.doods.image_processing.ATTR_MATCHES = "matches"

Definition at line 36 of file image_processing.py.

◆ ATTR_PROCESS_TIME

string homeassistant.components.doods.image_processing.ATTR_PROCESS_TIME = "process_time"

Definition at line 39 of file image_processing.py.

◆ ATTR_SUMMARY

string homeassistant.components.doods.image_processing.ATTR_SUMMARY = "summary"

Definition at line 37 of file image_processing.py.

◆ ATTR_TOTAL_MATCHES

string homeassistant.components.doods.image_processing.ATTR_TOTAL_MATCHES = "total_matches"

Definition at line 38 of file image_processing.py.

◆ CONF_AREA

string homeassistant.components.doods.image_processing.CONF_AREA = "area"

Definition at line 44 of file image_processing.py.

◆ CONF_AUTH_KEY

string homeassistant.components.doods.image_processing.CONF_AUTH_KEY = "auth_key"

Definition at line 41 of file image_processing.py.

◆ CONF_BOTTOM

string homeassistant.components.doods.image_processing.CONF_BOTTOM = "bottom"

Definition at line 46 of file image_processing.py.

◆ CONF_DETECTOR

string homeassistant.components.doods.image_processing.CONF_DETECTOR = "detector"

Definition at line 42 of file image_processing.py.

◆ CONF_FILE_OUT

string homeassistant.components.doods.image_processing.CONF_FILE_OUT = "file_out"

Definition at line 49 of file image_processing.py.

◆ CONF_LABELS

string homeassistant.components.doods.image_processing.CONF_LABELS = "labels"

Definition at line 43 of file image_processing.py.

◆ CONF_LEFT

string homeassistant.components.doods.image_processing.CONF_LEFT = "left"

Definition at line 48 of file image_processing.py.

◆ CONF_RIGHT

string homeassistant.components.doods.image_processing.CONF_RIGHT = "right"

Definition at line 47 of file image_processing.py.

◆ CONF_TOP

string homeassistant.components.doods.image_processing.CONF_TOP = "top"

Definition at line 45 of file image_processing.py.

◆ LABEL_SCHEMA

homeassistant.components.doods.image_processing.LABEL_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_NAME): cv.string,
4  vol.Optional(CONF_AREA): AREA_SCHEMA,
5  vol.Optional(CONF_CONFIDENCE): vol.Range(min=0, max=100),
6  }
7 )

Definition at line 61 of file image_processing.py.

◆ PLATFORM_SCHEMA

homeassistant.components.doods.image_processing.PLATFORM_SCHEMA
Initial value:
1 = IMAGE_PROCESSING_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_URL): cv.string,
4  vol.Required(CONF_DETECTOR): cv.string,
5  vol.Required(CONF_TIMEOUT, default=90): cv.positive_int,
6  vol.Optional(CONF_AUTH_KEY, default=""): cv.string,
7  vol.Optional(CONF_FILE_OUT, default=[]): vol.All(cv.ensure_list, [cv.template]),
8  vol.Optional(CONF_CONFIDENCE, default=0.0): vol.Range(min=0, max=100),
9  vol.Optional(CONF_LABELS, default=[]): vol.All(
10  cv.ensure_list, [vol.Any(cv.string, LABEL_SCHEMA)]
11  ),
12  vol.Optional(CONF_AREA): AREA_SCHEMA,
13  }
14 )

Definition at line 69 of file image_processing.py.