mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Update 99-ocr.sh
This commit is contained in:
@@ -28,7 +28,7 @@ if bashio::config.has_value 'OCR'; then
|
|||||||
OCRLANG=$(bashio::config 'OCRLANG')
|
OCRLANG=$(bashio::config 'OCRLANG')
|
||||||
for LANG in $(echo "$OCRLANG" | tr "," " "); do
|
for LANG in $(echo "$OCRLANG" | tr "," " "); do
|
||||||
if [ $LANG != "eng" ]; then
|
if [ $LANG != "eng" ]; then
|
||||||
apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community && \
|
apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community
|
||||||
fi
|
fi
|
||||||
bashio::log.info "OCR Language installed : $LANG" || bashio::log.fatal "Couldn't install OCR lang $LANG. Please check its format is conform"
|
bashio::log.info "OCR Language installed : $LANG" || bashio::log.fatal "Couldn't install OCR lang $LANG. Please check its format is conform"
|
||||||
# Downloading trainer data
|
# Downloading trainer data
|
||||||
|
|||||||
Reference in New Issue
Block a user