mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-10-29 18:56:35 +08:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user