Skip to content

Commit

Permalink
Merge pull request #504 from madmaze/fix_default_boxing_config
Browse files Browse the repository at this point in the history
Fix default boxing config
  • Loading branch information
int3l committed Aug 25, 2023
2 parents e0b8104 + 88e41e0 commit d33f02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytesseract/pytesseract.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ def image_to_boxes(
"""
Returns string containing recognized characters and their box boundaries
"""
config = f'{config.strip()} batch.nochop makebox'
config = (
f'{config.strip()} -c tessedit_create_boxfile=1 batch.nochop makebox'
)
args = [image, 'box', lang, config, nice, timeout]

return {
Expand Down

0 comments on commit d33f02d

Please sign in to comment.