mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06: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