mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-21 20:16:28 +01:00
Update 51-ocr
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user