Skip to content
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

Feat/call tesseract only once #3942

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

badGarnet
Copy link
Collaborator

Previously we make separated calls with TesseractOCRAgent to get bounding boxes and text information. This PR:

  • utilizes the multiple output interface for unstructured.pytesseract and reduces the number of inference calls to tesseract by half
  • ensures the scaling applied to get layout is also applied to get text. This was not the case before this refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant