Skip to content

Commit 83f8d07

Browse files
miawgogofabaff
authored andcommitted
Removed apt command and made the build instructions more inclusive (home-assistant#3232)
* Removed apt command and made the build instructions more inclusive Removed the apt command and added it for other platforms in the main compile sections
1 parent f77ddca commit 83f8d07

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

source/_components/image_processing.seven_segments.markdown

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,23 @@ og_image: /images/screenshots/ssocr.png
1515
ha_iot_class: "Local Polling"
1616
---
1717

18-
The `seven_segments` image processing platform allows you to read physical seven segments displays through Home Assistant. [`ssocr`](https://www.unix-ag.uni-kl.de/~auerswal/ssocr/) is used to extract the value shown on the display which is observed by a [camera](/components/camera/). `ssocr` need to be available on your system. Check the installation instruction for Fedora below or use `$ sudo apt-get install ssocr` on a Debian-based system:
18+
The `seven_segments` image processing platform allows you to read physical seven segments displays through Home Assistant. [`ssocr`](https://www.unix-ag.uni-kl.de/~auerswal/ssocr/) is used to extract the value shown on the display which is observed by a [camera](/components/camera/).
1919

2020
<p class='note'>
2121
If you are using [Hass.io](/hassio/) then just move forward to the configuration as all requirements are already fullfilled.
2222
</p>
2323

24+
`ssocr` needs to be available on your system. Check the installation instruction below:
25+
2426
```bash
25-
$ sudo dnf -y install imlib2-devel
27+
$ sudo dnf -y install imlib2-devel # Fedora
28+
$ sudo apt install libimlib2-dev # Ubuntu
29+
$ brew install imlib2 # macOS
2630
$ git clone https://github.com/auerswal/ssocr.git
2731
$ cd ssocr
2832
$ make
29-
$ sudo make PREFIX=/usr install
33+
$ sudo make PREFIX=/usr install # On most systems
34+
$ make deb # (Optional) This allows you to make a deb so that you apt is aware of ssocr
3035
```
3136

3237
To enable the OCR of a seven segement display in your installation, add the following to your `configuration.yaml` file:

0 commit comments

Comments
 (0)