Skip to content

Commit

Permalink
Update hocr_pdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Dec 30, 2023
1 parent 448f595 commit 1e3c5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hocr_tools_lib/tools/hocr_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def add_text_layer(pdf: Canvas, image: str, height: float, dpi: int) -> None:
box_match = p1.search(word.attrib['title'])
assert box_match is not None
box_str = box_match.group(1).split()
box: list[float] = [float(i) for i in box]
box: list[float] = [float(i) for i in box_str]
b = polyval(
baseline,
(box[0] + box[2]) / 2 - line_box[0]
Expand Down

0 comments on commit 1e3c5ae

Please sign in to comment.