Update 51-ocr

This commit is contained in:
Alexandre
2021-09-22 21:12:35 +02:00
committed by GitHub
parent e767682572
commit 6e97962624

View File

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