From 41e9e87bae50322971c5d07d810dbd2d9d82a5b1 Mon Sep 17 00:00:00 2001 From: Ioan Loosley Date: Thu, 24 Aug 2017 10:37:44 +0100 Subject: [PATCH] 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 --- .../image_processing.seven_segments.markdown | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/_components/image_processing.seven_segments.markdown b/source/_components/image_processing.seven_segments.markdown index 35b286e0e12..4385b2e9993 100644 --- a/source/_components/image_processing.seven_segments.markdown +++ b/source/_components/image_processing.seven_segments.markdown @@ -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/).

If you are using [Hass.io](/hassio/) then just move forward to the configuration as all requirements are already fullfilled.

+`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: