Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
add annotation
赵小蒙8db33db4e536
diff --git a/magic_pdf/model/magic_model.py b/magic_pdf/model/magic_model.pyindex f3ca4fe1..88846e75 100644--- a/magic_pdf/model/magic_model.py+++ b/magic_pdf/model/magic_model.py@@ -90,8 +90,11 @@ class MagicModel:def __init__(self, model_list: list, docs: fitz.Document):self.__model_list = model_listself.__docs = docs+ '''为所有模型数据添加bbox信息(缩放,poly->bbox)'''self.__fix_axis()+ '''删除置信度特别低的模型数据(<0.05),提高质量'''self.__fix_by_remove_low_confidence()+ '''删除高iou(>0.9)数据中置信度较低的那个'''self.__fix_by_remove_high_iou_and_low_confidence()def __reduct_overlap(self, bboxes):