Ensure OCR_THREADS is integer, add documentation

This commit is contained in:
Pit Kleyersburg
2016-02-14 16:37:38 +01:00
parent 88acf50fe0
commit 20b2408dbb
2 changed files with 6 additions and 1 deletions

View File

@@ -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