feat(draw_bbox): add model bbox drawing functionality

Implement the feature to draw bounding boxes for model elements in the PDF. This includes
adding new drawing functions and modifying existing ones to accommodate the new feature.
Also, updates are made to CLI tools and common utilities to support the model bbox drawing.
This commit is contained in:
myhloli
2024-08-09 20:09:53 +08:00
parent 445a397f6a
commit c90ee891d6
4 changed files with 86 additions and 2 deletions
+2
View File
@@ -94,6 +94,7 @@ def jsonl(jsonl, method, output_dir):
jso["doc_layout_result"],
method,
f_dump_content_list=True,
f_draw_model_bbox=True,
)
@@ -146,6 +147,7 @@ def pdf(pdf, json_data, output_dir, method):
model_json_list,
method,
f_dump_content_list=True,
f_draw_model_bbox=True,
)