Skip to content

Commit

Permalink
feat: modify foot note bbox tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
许瑞 authored and 许瑞 committed Mar 23, 2024
1 parent 05161c6 commit efed5fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magic_pdf/train_utils/convert_to_train_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def convert_to_train_format(jso: dict) -> []:
n_bbox = {"category_id": 10, "bbox": inter_equation["bbox"]}
bboxes.append(n_bbox)

for footnote in v['bak_footer_note_bboxes']:
n_bbox = {"category_id": 5, "bbox": footnote["bbox"]}
for footnote_bbox in v["bak_footer_note_bboxes"]:
n_bbox = {"category_id": 5, "bbox": list(footnote_bbox)}
bboxes.append(n_bbox)

info["bboxes"] = bboxes
Expand Down

0 comments on commit efed5fa

Please sign in to comment.