mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	OMP_THREAD_LIMIT
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler