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: add logging for detection time in BatchAnalyze when OCR is not applied
Suvenbe0103949565
diff --git a/magic_pdf/model/batch_analyze.py b/magic_pdf/model/batch_analyze.pyindex 51adae2b..8795a382 100644--- a/magic_pdf/model/batch_analyze.py+++ b/magic_pdf/model/batch_analyze.py@@ -191,6 +191,8 @@ class BatchAnalyze:if self.model.apply_ocr:logger.info(f"ocr time: {round(ocr_time, 2)}, image num: {ocr_count}")+ else:+ logger.info(f"det time: {round(ocr_time, 2)}, image num: {ocr_count}")if self.model.apply_table:logger.info(f"table time: {round(table_time, 2)}, image num: {table_count}")