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
fix: extend OCR text conditions for category assignment in batch analysis
myhloli2b17dee136cb
diff --git a/mineru/backend/pipeline/batch_analyze.py b/mineru/backend/pipeline/batch_analyze.pyindex eefdf83c..ce68da45 100644--- a/mineru/backend/pipeline/batch_analyze.py+++ b/mineru/backend/pipeline/batch_analyze.py@@ -323,7 +323,7 @@ class BatchAnalyze:layout_res_item['poly'][4], layout_res_item['poly'][5]]layout_res_width = layout_res_bbox[2] - layout_res_bbox[0]layout_res_height = layout_res_bbox[3] - layout_res_bbox[1]- if ocr_text in ['(204号', '(20', '(2', '(2号'] and ocr_score < 0.8 and layout_res_width < layout_res_height:+ if ocr_text in ['(204号', '(20', '(2', '(2号', '(20号'] and ocr_score < 0.8 and layout_res_width < layout_res_height:layout_res_item['category_id'] = 16total_processed += len(img_crop_list)