-
Notifications
You must be signed in to change notification settings - Fork 99
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
it'd be nice if this could produce text-overlaid PDFs #10
Comments
Definitely. I think it would relatively straightforward to integrate. Would suggest building the text insertion into the |
Would you be interested in contributing @jbothma ? |
Yup - would love to. Won't get to it before next week but will start a PR when I can :) It's part of the ocr command as an optional output format so not sure what the right place would be to integrate it with doc2text. |
Awesome, thank you! The method's location in the code would be conditional on the way tesseract embeds that data. Does tesseract insert the data into a PDF, or it in a separate state that contains the text and placement information? In the first case, we would need the method you mentioned that produces a nicely optimized pdf from the images first, then the embedding second. We need this method regardless, I think. In the second case, we could run the tesseract embed method at any time after we produce the fixed image crop. Thoughts? |
So this is basically what I was talking about.
|
Tesseract produces the PDF already, so you'd select that as the output format of the OCR step. There's no intermediate hOCR or anything. |
tesseract seems to be able to produce PDFs these days with text overlaid on the image. This is useful for searching int he PDF when viewing that way.
It'd be nice if this could produce nice de-skewed PDFs
The text was updated successfully, but these errors were encountered: