Skip to content

Commit

Permalink
add psm
Browse files Browse the repository at this point in the history
  • Loading branch information
plutasnyy committed Jan 6, 2025
1 parent c0f2768 commit 052ae50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured/partition/utils/ocr_models/tesseract_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def image_to_data_with_character_confidence_filter(
hocr: pd.DataFrame = unstructured_pytesseract.image_to_pdf_or_hocr(
image,
lang=lang,
config="-c hocr_char_boxes=1 " + config,
config="-c hocr_char_boxes=1 psm=12" + config,
extension="hocr",
)
soup = BeautifulSoup(hocr, "html.parser")
Expand Down

0 comments on commit 052ae50

Please sign in to comment.