Skip to content

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

feat: update PPTX_XYCUT_BETA for improved picture handling

myhloli125922ea8be6
diff --git a/mineru/model/pptx/pptx_converter.py b/mineru/model/pptx/pptx_converter.py
index caaf5990..a4bd1367 100644
--- a/mineru/model/pptx/pptx_converter.py
+++ b/mineru/model/pptx/pptx_converter.py
@@ -27,7 +27,8 @@ IGNORED_NOTES_PLACEHOLDER_TYPES: Final = {
MIN_PICTURE_DIMENSION_RATIO: Final = 0.1
MIN_PICTURE_AREA_RATIO: Final = 0.01
BACKGROUND_PICTURE_TEXT_COVERAGE_RATIO: Final = 0.1
-PPTX_XYCUT_BETA: Final = 0.7
+# PPTX_XYCUT_BETA: Final = 0.7
+PPTX_XYCUT_BETA: Final = 2.0
PPTX_XYCUT_DENSITY_THRESHOLD: Final = 0.9
DRAWINGML_NS: Final = "http://schemas.openxmlformats.org/drawingml/2006/main"
RELATIONSHIP_NS: Final = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"