-
Notifications
You must be signed in to change notification settings - Fork 52
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
Feature: Azure PDF scan #282
Conversation
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.
Haven't fully tested this out yet but code looks good. Left a few minor comments
@dkotter Thanks for the head up, I fixed those typo issues. |
@jeffpaul @dinhtungdu Confirming that this feature is working as expected. I followed the steps and the PDF file was scanned successfully. See screenshot below: |
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.
Nice, it's working! We probably need to get smarter with the scan button in a future release, because you can do something like request a scan, switch items, come back, and request another scan. It should probably check the status any time that button is loaded up, or load the button with AJAX entirely.
Description of the Change
This PR utilizes the Azure Computer Vision Read API to extract text from multi-page PDF files. It supports both textbase and text-heavy image base pdf files.
Because of the Read API design, this feature uses WP Cron to periodically check and grab the result.
Verification Process
Enable Scanning PDF
.Classifai Read PDF
field with a disabledIn progress!
button.Classifai PDF Processing
with rescan checkbox.Checklist:
Applicable Issues
Changelog Entry