Update 51-ocr

This commit is contained in:
Alexandre
2021-09-22 20:56:02 +02:00
committed by GitHub
parent 48ef5d5a83
commit e767682572

View File

@@ -4,7 +4,7 @@
if bashio::config.has_value 'OCR'; then
if $(bashio::config 'OCR') = true; then
bashio::log.info 'Installing OCR'
apk add --no-cache leptonica-dev tesseract-ocr-dev
#apk add --no-cache leptonica-dev tesseract-ocr-dev
# Install additional language if requested
if bashio::config.has_value 'OCRLANG'; then
bashio::log.info 'Installing OCR language'
@@ -12,7 +12,7 @@ if bashio::config.has_value 'OCR'; then
fi
elif $(bashio::config 'OCR') = false; then
bashio::log.info 'Removing OCR'
apk del tesseract-ocr.*
apk del tesseract-ocr.* || true
fi
fi