Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
duckduckgrayduck authored Sep 26, 2023
1 parent efb63ee commit a95b771
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ def main(self):
y1 = word_bounding_box[0][1]
x2 = word_bounding_box[1][0]
y2 = word_bounding_box[1][1]
position_info = {
"text": word_value,
"x1": float(x1),
"x2": float(x2),
"y1": float(y1),
"y2": float(y2),
}
dc_page["positions"].append(position_info)
if word['value']:
position_info = {
"text": word_value,
"x1": float(x1),
"x2": float(x2),
"y1": float(y1),
"y2": float(y2),
}
dc_page["positions"].append(position_info)
text += line_text.strip() + '\n'
text += '\n'
dc_page['text'] = text
Expand Down

0 comments on commit a95b771

Please sign in to comment.