Skip to content

Conversation

@badGarnet
Copy link
Collaborator

@badGarnet badGarnet commented Mar 4, 2025

This PR adds the ability to pass extra config items like generating hocr boxes when using multiple output function.

testing

  • a unit test is added
  • one can also locally run something like
from unstructured_pytesseract import run_and_get_multiple_output

hocr_result, text_result = run_and_get_multiple_output(images[0], extensions=["hocr", "txt"], extra_config="hocr_char_boxes=1")

then hocr_result should contain information about bounding boxes with fields \bbox

Copy link

@christinestraub christinestraub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@badGarnet badGarnet merged commit ea597d4 into master Mar 4, 2025
5 checks passed
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.

4 participants