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
feat: update rich image labels and enhance block type mappings in document processing
myhloli723b5a0248de
diff --git a/mineru/backend/pipeline/batch_analyze.py b/mineru/backend/pipeline/batch_analyze.pyindex cce3759a..c8a82090 100644--- a/mineru/backend/pipeline/batch_analyze.py+++ b/mineru/backend/pipeline/batch_analyze.py@@ -31,7 +31,7 @@ MFR_BASE_BATCH_SIZE = 16OCR_DET_BASE_BATCH_SIZE = 16TABLE_ORI_CLS_BATCH_SIZE = 16TABLE_Wired_Wireless_CLS_BATCH_SIZE = 16-TABLE_RICH_IMAGE_LABELS = {"image", "chart", "seal"}+TABLE_RICH_IMAGE_LABELS = {"image", "chart"}PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))TABLE_OCR_DET_DEBUG_DIR = os.path.join(PROJECT_ROOT, "output_images", "table_ocr_det_debug")diff --git a/mineru/backend/pipeline/pipeline_magic_model.py b/mineru/backend/pipeline/pipeline_magic_model.pyindex 3f215fa5..ada75106 100644--- a/mineru/backend/pipeline/pipeline_magic_model.py+++ b/mineru/backend/pipeline/pipeline_magic_model.py@@ -10,16 +10,14 @@ class MagicModel:"algorithm": BlockType.ALGORITHM,"aside_text": BlockType.ASIDE_TEXT,"chart": BlockType.CHART,- "content": BlockType.TEXT,+ "content": BlockType.INDEX,"display_formula": BlockType.INTERLINE_EQUATION,"doc_title": BlockType.DOC_TITLE,"figure_title": BlockType.CAPTION,"footer": BlockType.FOOTER,- "footer_image": BlockType.FOOTER_IMAGE,"footnote": BlockType.PAGE_FOOTNOTE,"formula_number": BlockType.FORMULA_NUMBER,"header": BlockType.HEADER,- "header_image": BlockType.HEADER_IMAGE,"image": BlockType.IMAGE,"number": BlockType.PAGE_NUMBER,"paragraph_title": BlockType.PARAGRAPH_TITLE,diff --git a/mineru/utils/model_utils.py b/mineru/utils/model_utils.pyindex 876acadc..0b0b6508 100644--- a/mineru/utils/model_utils.py+++ b/mineru/utils/model_utils.py@@ -20,9 +20,11 @@ TEXT_REGION_LABELS = {"doc_title","figure_title","footer",+ "footer_image","footnote","formula_number","header",+ "header_image","number","paragraph_title","reference_content",