New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Decoding of user arguments for OCR #5307
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #5307 +/- ##
=======================================
Coverage 96.40% 96.40%
=======================================
Files 394 394
Lines 15420 15423 +3
Branches 1179 1179
=======================================
+ Hits 14866 14869 +3
Misses 550 550
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, glad I let you do this one, I was over-complicating it in my head. Thanks!
[2024-01-07 14:02:10,802] [DEBUG] [paperless.parsing.tesseract] Calling OCRmyPDF with args: {'input_file': PosixPath('/private/var/folders/1_/rlrvyw7x5b53z9ndk9_mlcvh0000gn/T/paperless/paperless-ngxwngus9yl/bug-test-workflows.pdf'), 'output_file': PosixPath('/private/var/folders/1_/rlrvyw7x5b53z9ndk9_mlcvh0000gn/T/paperless/paperless-oii7mus0/archive.pdf'), 'use_threads': True, 'jobs': 12, 'language': 'eng', 'output_type': 'pdfa', 'progress_bar': False, 'color_conversion_strategy': 'RGB', 'skip_text': True, 'clean': True, 'deskew': True, 'rotate_pages': True, 'rotate_pages_threshold': 12.0, 'sidecar': PosixPath('/private/var/folders/1_/rlrvyw7x5b53z9ndk9_mlcvh0000gn/T/paperless/paperless-oii7mus0/sidecar.txt'), 'invalidate_digital_signatures': True}
42ba581
to
8d1ef6e
Compare
I'm not really sure why, but if the binary flag isn't set, the field just .. doesn't decode anything. Not really helpful there, DRF |
Haha. Yea pretty sure it would’ve taken me ages to figure that out |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
Proposed change
Closes #5303
Type of change
Checklist:
pre-commit
hooks, see documentation.