Skip to content

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

feat: add seal_PP-OCRv4 model configuration to arch_config and models_config

myhloli78481ec0e54d
diff --git a/mineru/model/utils/pytorchocr/utils/resources/arch_config.yaml b/mineru/model/utils/pytorchocr/utils/resources/arch_config.yaml
index 679cd07c..6131ade5 100644
--- a/mineru/model/utils/pytorchocr/utils/resources/arch_config.yaml
+++ b/mineru/model/utils/pytorchocr/utils/resources/arch_config.yaml
@@ -28,6 +28,22 @@ Multilingual_PP-OCRv3_det_infer:
name: DBHead
k: 50
+seal_PP-OCRv4_det_infer:
+ model_type: det
+ algorithm: DB
+ Transform: null
+ Backbone:
+ name: PPLCNetV3
+ scale: 0.75
+ det: True
+ Neck:
+ name: RSEFPN
+ out_channels: 96
+ shortcut: True
+ Head:
+ name: DBHead
+ k: 50
+
ch_PP-OCRv5_det_infer:
model_type: det
algorithm: DB
diff --git a/mineru/model/utils/pytorchocr/utils/resources/models_config.yml b/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
index 82db9e87..960e7d18 100644
--- a/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
+++ b/mineru/model/utils/pytorchocr/utils/resources/models_config.yml
@@ -66,4 +66,8 @@ lang:
en:
det: ch_PP-OCRv5_det_infer.pth
rec: en_PP-OCRv5_rec_infer.pth
- dict: ppocrv5_en_dict.txt
\ No newline at end of file
+ dict: ppocrv5_en_dict.txt
+ seal:
+ det: seal_PP-OCRv4_det_infer.pth
+ rec: ch_PP-OCRv5_rec_infer.pth
+ dict: ppocrv5_dict.txt
\ No newline at end of file