mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Ensure OCR_THREADS is integer, add documentation
This commit is contained in:
parent
88acf50fe0
commit
20b2408dbb
2 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class Consumer(Renderable):
|
|||
SCRATCH = settings.SCRATCH_DIR
|
||||
CONVERT = settings.CONVERT_BINARY
|
||||
CONSUME = settings.CONSUMPTION_DIR
|
||||
THREADS = settings.OCR_THREADS
|
||||
THREADS = int(settings.OCR_THREADS) if settings.OCR_THREADS else None
|
||||
|
||||
OCR = pyocr.get_available_tools()[0]
|
||||
DEFAULT_OCR_LANGUAGE = settings.OCR_LANGUAGE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue