mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
OMP_THREAD_LIMIT
This commit is contained in:
parent
3b655c95d9
commit
e55d1ff9cc
@ -118,6 +118,9 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
f"no DPI information is present in this image and "
|
f"no DPI information is present in this image and "
|
||||||
f"OCR_IMAGE_DPI is not set.")
|
f"OCR_IMAGE_DPI is not set.")
|
||||||
|
|
||||||
|
# This forces tesseract to use one core per page.
|
||||||
|
os.environ['OMP_THREAD_LIMIT'] = "1"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ocrmypdf.ocr(**ocr_args)
|
ocrmypdf.ocr(**ocr_args)
|
||||||
# success! announce results
|
# success! announce results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user