Skip to content

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

feat: update OCR language configuration from 'seal_lite' to 'seal' for improved model accuracy

myhlolif8135e3563f4
diff --git a/mineru/backend/local_model_runtime.py b/mineru/backend/local_model_runtime.py
index ae8572ea..804bd60f 100644
--- a/mineru/backend/local_model_runtime.py
+++ b/mineru/backend/local_model_runtime.py
@@ -417,5 +417,5 @@ class HybridLocalModelContext:
"""获取印章识别 OCR 原子模型"""
return self.atom_model_manager.get_atom_model(
atom_model_name=AtomicModel.OCR,
- lang="seal_lite",
+ lang="seal",
)
diff --git a/mineru/model/utils/pytorchocr/utils/resources/models_config.yml b/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
index be9f09ad..7c765eab 100644
--- a/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
+++ b/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
@@ -47,11 +47,11 @@ lang:
det: ch_PP-OCRv6_small_det_infer.safetensors
rec: th_PP-OCRv5_rec_infer.pth
dict: ppocrv5_th_dict.txt
+# seal:
+# det: seal_PP-OCRv4_det_server_infer.pth
+# rec: ch_PP-OCRv6_medium_rec_infer.safetensors
+# dict: ppocrv6_dict.txt
seal:
- det: seal_PP-OCRv4_det_server_infer.pth
- rec: ch_PP-OCRv6_medium_rec_infer.safetensors
- dict: ppocrv6_dict.txt
- seal_lite:
det: seal_PP-OCRv4_det_infer.pth
rec: ch_PP-OCRv6_small_rec_infer.safetensors
dict: ppocrv6_dict.txt