A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
OMP_THREAD_LIMIT
Jonas Winklera60a4babf6e0
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.pyindex 7e10de5c5..b181364aa 100644--- a/src/paperless_tesseract/parsers.py+++ b/src/paperless_tesseract/parsers.py@@ -118,6 +118,9 @@ class RasterisedDocumentParser(DocumentParser):f"no DPI information is present in this image and "f"OCR_IMAGE_DPI is not set.")+ # This forces tesseract to use one core per page.+ os.environ['OMP_THREAD_LIMIT'] = "1"+try:ocrmypdf.ocr(**ocr_args)# success! announce results