Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

Merge branch 'cxz-dev' into dev

Sidney233c8ff2f277830
diff --cc mineru/backend/pipeline/batch_analyze.py
index e2c8e3bd,208a1ef8..23dc6507
--- a/mineru/backend/pipeline/batch_analyze.py
+++ b/mineru/backend/pipeline/batch_analyze.py
@@@ -10,14 -8,8 +10,11 @@@ from .model_init import AtomModelSingle
from .model_list import AtomicModel
from ...utils.config_reader import get_formula_enable, get_table_enable
from ...utils.model_utils import crop_img, get_res_list_from_layout_res
- from ...utils.ocr_utils import (
- get_adjusted_mfdetrec_res,
- get_ocr_result_list,
- OcrConfidence,
- get_rotate_crop_image,
- )
++from ...utils.ocr_utils import get_adjusted_mfdetrec_res, get_ocr_result_list, OcrConfidence, get_rotate_crop_image
+from ...utils.pdf_image_tools import get_crop_img
+from ...utils.ocr_utils import merge_det_boxes, update_det_boxes, sorted_boxes
+ from ...utils.ocr_utils import get_adjusted_mfdetrec_res, get_ocr_result_list, OcrConfidence
+ from ...utils.pdf_image_tools import get_crop_np_img
YOLO_LAYOUT_BASE_BATCH_SIZE = 1
MFD_BASE_BATCH_SIZE = 1