mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
OMP_THREAD_LIMIT
This commit is contained in:
parent
a03315102a
commit
a60a4babf6
@ -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