Skip to content

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

fix(batch): disable OCR detection batch processing by default

myhloli7c1d7dff65aa
diff --git a/magic_pdf/model/batch_analyze.py b/magic_pdf/model/batch_analyze.py
index 7642e3f0..68131b8a 100644
--- a/magic_pdf/model/batch_analyze.py
+++ b/magic_pdf/model/batch_analyze.py
@@ -18,7 +18,7 @@ MFR_BASE_BATCH_SIZE = 16
class BatchAnalyze:
- def __init__(self, model_manager, batch_ratio: int, show_log, layout_model, formula_enable, table_enable, enable_ocr_det_batch=True):
+ def __init__(self, model_manager, batch_ratio: int, show_log, layout_model, formula_enable, table_enable, enable_ocr_det_batch=False):
self.model_manager = model_manager
self.batch_ratio = batch_ratio
self.show_log = show_log