Skip to content

Commit 35199dd

Browse files
authored
Add new configuration variables (#2802)
1 parent 4eef332 commit 35199dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/_components/image_processing.seven_segments.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ Configuration variables:
4141
- **y_position** (*Optional*): Y coordinate of the upper left corner of the area to crop. Defaults to `0`.
4242
- **height** (*Optional*): Height of the area to crop. Defaults to `0`.
4343
- **width** (*Optional*): Width of the area to crop. Defaults to `0`.
44+
- **rotate** (*Optional*): Rotation of the image. Defaults to `0`.
4445
- **threshold** (*Optional*): Threshold for the difference between the digits and the background. Defaults to `0`.
4546
- **digits** (*Optional*): Number of digits in the display. Defaults to `-1`.
47+
- **extra_arguments** (*Optional*): Other arguments to use. Like `-D`, `dilation`, `erosion`, `greyscale`, `make_mono`, etc.
4648
- **source** array (*Required*): List of image sources.
4749
- **entity_id** (*Required*): A camera entity id to get picture from.
4850
- **name** (*Optional*): This parameter allows you to override the name of your `image_processing` entity.
@@ -53,15 +55,15 @@ Configuration variables:
5355
It's suggested that the first attempt to determine the needed parameters is using `ssocr` directly. This may require a couple of iterations to get the result
5456

5557
```bash
56-
$ ssocr -D erosion crop 390 250 490 280 -t 20 -d 4 ss-test.jpg
58+
$ ssocr -D erosion crop 390 250 490 280 -t 20 -d 4 seven-seg.png
5759
```
5860

5961
This would lead to the following entry for the `configuration.yaml` file:
6062

6163
```yaml
6264
camera:
6365
- platform: local_file
64-
file_path: /home/fab/.homeassistant/seven-seg.png
66+
file_path: /home/homeassistant/.homeassistant/seven-seg.png
6567
name: seven_segments
6668
image_processing:
6769
- platform: seven_segments

0 commit comments

Comments
 (0)