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

Classes

class  ImageProcessingSsocr
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_DIGITS = "digits"
 
string CONF_EXTRA_ARGUMENTS = "extra_arguments"
 
string CONF_HEIGHT = "height"
 
string CONF_ROTATE = "rotate"
 
string CONF_SSOCR_BIN = "ssocr_bin"
 
string CONF_THRESHOLD = "threshold"
 
string CONF_WIDTH = "width"
 
string CONF_X_POS = "x_position"
 
string CONF_Y_POS = "y_position"
 
string DEFAULT_BINARY = "ssocr"
 
 PLATFORM_SCHEMA
 

Detailed Description

Optical character recognition processing of seven segments displays.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.seven_segments.image_processing.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Seven segments OCR platform.

Definition at line 53 of file image_processing.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 24 of file image_processing.py.

◆ CONF_DIGITS

string homeassistant.components.seven_segments.image_processing.CONF_DIGITS = "digits"

Definition at line 26 of file image_processing.py.

◆ CONF_EXTRA_ARGUMENTS

string homeassistant.components.seven_segments.image_processing.CONF_EXTRA_ARGUMENTS = "extra_arguments"

Definition at line 27 of file image_processing.py.

◆ CONF_HEIGHT

string homeassistant.components.seven_segments.image_processing.CONF_HEIGHT = "height"

Definition at line 28 of file image_processing.py.

◆ CONF_ROTATE

string homeassistant.components.seven_segments.image_processing.CONF_ROTATE = "rotate"

Definition at line 29 of file image_processing.py.

◆ CONF_SSOCR_BIN

string homeassistant.components.seven_segments.image_processing.CONF_SSOCR_BIN = "ssocr_bin"

Definition at line 30 of file image_processing.py.

◆ CONF_THRESHOLD

string homeassistant.components.seven_segments.image_processing.CONF_THRESHOLD = "threshold"

Definition at line 31 of file image_processing.py.

◆ CONF_WIDTH

string homeassistant.components.seven_segments.image_processing.CONF_WIDTH = "width"

Definition at line 32 of file image_processing.py.

◆ CONF_X_POS

string homeassistant.components.seven_segments.image_processing.CONF_X_POS = "x_position"

Definition at line 33 of file image_processing.py.

◆ CONF_Y_POS

string homeassistant.components.seven_segments.image_processing.CONF_Y_POS = "y_position"

Definition at line 34 of file image_processing.py.

◆ DEFAULT_BINARY

string homeassistant.components.seven_segments.image_processing.DEFAULT_BINARY = "ssocr"

Definition at line 36 of file image_processing.py.

◆ PLATFORM_SCHEMA

homeassistant.components.seven_segments.image_processing.PLATFORM_SCHEMA
Initial value:
1 = IMAGE_PROCESSING_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_EXTRA_ARGUMENTS, default=""): cv.string,
4  vol.Optional(CONF_DIGITS): cv.positive_int,
5  vol.Optional(CONF_HEIGHT, default=0): cv.positive_int,
6  vol.Optional(CONF_SSOCR_BIN, default=DEFAULT_BINARY): cv.string,
7  vol.Optional(CONF_THRESHOLD, default=0): cv.positive_int,
8  vol.Optional(CONF_ROTATE, default=0): cv.positive_int,
9  vol.Optional(CONF_WIDTH, default=0): cv.positive_int,
10  vol.Optional(CONF_X_POS, default=0): cv.string,
11  vol.Optional(CONF_Y_POS, default=0): cv.positive_int,
12  }
13 )

Definition at line 38 of file image_processing.py.