Skip to content

Commit

Permalink
bbox float to int
Browse files Browse the repository at this point in the history
  • Loading branch information
gulixin0922 committed Oct 13, 2023
1 parent bf77b0b commit b307ac4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def merge_partitions(partitions):
doc_content.append(text_elem_sep + text)

last_label = label
metadata['bboxes'].extend(extra_data['bboxes'])
metadata['bboxes'].extend(
list(map(lambda x: list(map(int, x)), extra_data['bboxes'])))
metadata['pages'].extend(extra_data['pages'])
metadata['types'].extend(extra_data['types'])

Expand Down

0 comments on commit b307ac4

Please sign in to comment.