mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Make OCR_LANGUAGE configurable (Fix #176)
This commit is contained in:
parent
3c08fa9b33
commit
a32625ca04
@ -108,3 +108,7 @@ PAPERLESS_SHARED_SECRET=""
|
|||||||
# Customize number of list items to show per page
|
# Customize number of list items to show per page
|
||||||
#PAPERLESS_LIST_PER_PAGE=50
|
#PAPERLESS_LIST_PER_PAGE=50
|
||||||
|
|
||||||
|
# Customize the default language that tesseract will attempt to use when parsing
|
||||||
|
# documents. It should be a 3-letter language code consistent with ISO 639.
|
||||||
|
#PAPERLESS_OCR_LANGUAGE=eng
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ LOGGING = {
|
|||||||
|
|
||||||
# The default language that tesseract will attempt to use when parsing
|
# The default language that tesseract will attempt to use when parsing
|
||||||
# documents. It should be a 3-letter language code consistent with ISO 639.
|
# documents. It should be a 3-letter language code consistent with ISO 639.
|
||||||
OCR_LANGUAGE = "eng"
|
OCR_LANGUAGE = os.getenv("PAPERLESS_OCR_LANGUAGE", "eng")
|
||||||
|
|
||||||
# The amount of threads to use for OCR
|
# The amount of threads to use for OCR
|
||||||
OCR_THREADS = os.getenv("PAPERLESS_OCR_THREADS")
|
OCR_THREADS = os.getenv("PAPERLESS_OCR_THREADS")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user