Removed apt command and made the build instructions more inclusive (#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
This commit is contained in:
Ioan Loosley 2017-08-24 10:37:44 +01:00 committed by Fabian Affolter
parent f77ddca248
commit 83f8d0702b
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -15,18 +15,23 @@ og_image: /images/screenshots/ssocr.png
ha_iot_class: "Local Polling"
---
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:
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/).
<p class='note'>
If you are using [Hass.io](/hassio/) then just move forward to the configuration as all requirements are already fullfilled.
</p>
`ssocr` needs to be available on your system. Check the installation instruction below:
```bash
$ sudo dnf -y install imlib2-devel
$ sudo dnf -y install imlib2-devel # Fedora
$ sudo apt install libimlib2-dev # Ubuntu
$ brew install imlib2 # macOS
$ git clone https://github.com/auerswal/ssocr.git
$ cd ssocr
$ make
$ sudo make PREFIX=/usr install
$ sudo make PREFIX=/usr install # On most systems
$ make deb # (Optional) This allows you to make a deb so that you apt is aware of ssocr
```
To enable the OCR of a seven segement display in your installation, add the following to your `configuration.yaml` file: