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(model): update Chinese OCR detection model to PP-OCRv3
myhloliddfeea94987a
diff --git a/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yaml b/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yamlindex b620a7a4..598b7598 100644--- a/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yaml+++ b/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yaml@@ -45,6 +45,23 @@ en_PP-OCRv3_det_infer:name: DBHeadk: 50+ch_PP-OCRv3_det_infer:+ model_type: det+ algorithm: DB+ Transform:+ Backbone:+ name: MobileNetV3+ scale: 0.5+ model_name: large+ disable_se: True+ Neck:+ name: RSEFPN+ out_channels: 96+ shortcut: True+ Head:+ name: DBHead+ k: 50+en_PP-OCRv4_rec_infer:model_type: recalgorithm: SVTR_LCNetdiff --git a/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.yml b/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.ymlindex 81960a8f..49fa2ddb 100644--- a/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.yml+++ b/magic_pdf/model/sub_modules/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.yml@@ -1,6 +1,6 @@lang:ch:- det: ch_PP-OCRv4_det_infer.pth+ det: ch_PP-OCRv3_det_infer.pthrec: ch_PP-OCRv4_rec_infer.pthdict: ppocr_keys_v1.txten: