mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
bugfix
This commit is contained in:
parent
323e0fa348
commit
06ad212320
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ def strip_excess_whitespace(text):
|
|||
def image_to_string(args):
|
||||
img, lang = args
|
||||
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():
|
||||
try:
|
||||
orientation = ocr.detect_orientation(f, lang=lang)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue