4 ms·
That's really neat: https://github.com/mbafford/textract-cli/blob/master/textract_cli/textract_cli.py https://github.com/mbafford/textract-cli/blob/master/textr
by simonw 4y ago
That's really neat: https://github.com/mbafford/textract-cli/blob/master/textract_cli/textract_cli.py https://github.com/mbafford/textract-cli/blob/master/textrac... - my tool had to involve an S3 bucket too just because Textract won't let you upload a PDF directly to it without storing it in S3 first.
- ydant 4y agoBased on some testing just now, it looks like for synchronous mode single-page PDF is supported, but if you try to OCR a multi-page document, it throws: An error occurred (UnsupportedDocumentException) when calling the DetectDocumentText operation: Request has unsupported document format Normally, I just use pdfsandwich [0] for PDFs, which has been good enough generally, but I'm tempted to switch to using textract, because it's been much better at rough scans for my tests. [0] http://www.tobias-elze.de/pdfsandwich/ http://www.tobias-elze.de/pdfsandwich/