mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	bugfix
This commit is contained in:
		| @@ -245,7 +245,7 @@ def strip_excess_whitespace(text): | |||||||
| def image_to_string(args): | def image_to_string(args): | ||||||
|     img, lang = args |     img, lang = args | ||||||
|     ocr = pyocr.get_available_tools()[0] |     ocr = pyocr.get_available_tools()[0] | ||||||
|     with Image.open(os.path.join(RasterisedDocumentParser.SCRATCH, img)) as f: |     with Image.open(os.path.join(settings.SCRATCH_DIR, img)) as f: | ||||||
|         if ocr.can_detect_orientation(): |         if ocr.can_detect_orientation(): | ||||||
|             try: |             try: | ||||||
|                 orientation = ocr.detect_orientation(f, lang=lang) |                 orientation = ocr.detect_orientation(f, lang=lang) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler