mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -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
|
||||
#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
|
||||
# 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
|
||||
OCR_THREADS = os.getenv("PAPERLESS_OCR_THREADS")
|
||||
|
Loading…
x
Reference in New Issue
Block a user