mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update seven_segments image_processing component configuration (#7542)
This commit is contained in:
parent
fb13b0ddfc
commit
329a7f7f48
@ -44,21 +44,65 @@ image_processing:
|
|||||||
- entity_id: camera.seven_segments
|
- entity_id: camera.seven_segments
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
ssocr_bin:
|
||||||
- **ssocr_bin** (*Optional*): The command line tool `ssocr`. Set it if you use a different name for the executable. Defaults to `ssocr`.
|
description: The command line tool `ssocr`. Set it if you use a different name for the executable.
|
||||||
- **x_position** (*Optional*): X coordinate of the upper left corner of the area to crop. Defaults to `0`.
|
required: false
|
||||||
- **y_position** (*Optional*): Y coordinate of the upper left corner of the area to crop. Defaults to `0`.
|
default: ssocr
|
||||||
- **height** (*Optional*): Height of the area to crop. Defaults to `0`.
|
type: string
|
||||||
- **width** (*Optional*): Width of the area to crop. Defaults to `0`.
|
x_position:
|
||||||
- **rotate** (*Optional*): Rotation of the image. Defaults to `0`.
|
description: X coordinate of the upper left corner of the area to crop.
|
||||||
- **threshold** (*Optional*): Threshold for the difference between the digits and the background. Defaults to `0`.
|
required: false
|
||||||
- **digits** (*Optional*): Number of digits in the display. Defaults to `-1`.
|
default: 0
|
||||||
- **extra_arguments** (*Optional*): Other arguments to use. Like `-D`, `dilation`, `erosion`, `greyscale`, `make_mono`, etc.
|
type: integer
|
||||||
- **source** array (*Required*): List of image sources.
|
y_position:
|
||||||
- **entity_id** (*Required*): A camera entity id to get picture from.
|
description: Y coordinate of the upper left corner of the area to crop.
|
||||||
- **name** (*Optional*): This parameter allows you to override the name of your `image_processing` entity.
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
|
height:
|
||||||
|
description: Height of the area to crop.
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
|
width:
|
||||||
|
description: Width of the area to crop.
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
|
rotate:
|
||||||
|
description: Rotation of the image.
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
|
threshold:
|
||||||
|
description: Threshold for the difference between the digits and the background.
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: integer
|
||||||
|
digits:
|
||||||
|
description: Number of digits in the display.
|
||||||
|
required: false
|
||||||
|
default: -1
|
||||||
|
type: integer
|
||||||
|
extra_arguments:
|
||||||
|
description: Other arguments to use. Like `-D`, `dilation`, `erosion`, `greyscale`, `make_mono`, etc.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
source:
|
||||||
|
description: List of image sources.
|
||||||
|
required: true
|
||||||
|
type: list
|
||||||
|
keys:
|
||||||
|
entity_id:
|
||||||
|
description: A camera entity id to get picture from.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description: This parameter allows you to override the name of your `image_processing` entity.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
### {% linkable_title Setup process %}
|
### {% linkable_title Setup process %}
|
||||||
|
|
||||||
@ -94,6 +138,7 @@ image_processing:
|
|||||||
With the help of a [template sensor](/components/sensor.template/), the value can be shown as badge.
|
With the help of a [template sensor](/components/sensor.template/), the value can be shown as badge.
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
@ -103,4 +148,5 @@ sensor:
|
|||||||
friendly_name: 'Ampere'
|
friendly_name: 'Ampere'
|
||||||
unit_of_measurement: 'A'
|
unit_of_measurement: 'A'
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user