ESC
开源 3 分钟阅读

MiniCPM-OCR:快速、准确的OCR,具备正确性评估

MiniCPM-OCR 1.0 发布,基于 1.3B 模型,在真实文档解析基准上取得 SOTA 93.68 分,端到端效率提升 55%,支持中英文文档、表格公式等,并支持知识库提取;Jev 模型用于 OCR 结果正确性评估。

来源:GitHub Trending

MiniCPM-OCR 是一个用于高效文档解析和文本识别的模型家族。

MiniCPM-OCR 1.0 解析中英文文档和 PDF,在扫描、照片、弯曲页面、重新扫描文档等具有挑战性的输入上平衡质量和效率。MiniCPM-OCR Jev 在区域级评估 OCR 结果,区分问题区域和可信区域。它与不同的解析模型协同工作,帮助用户定位需要审查的内容。

MiniCPM-OCR 1.0

MiniCPM-OCR 1.0(1.3B)是 MiniCPM-V/o 家族中第一个面向 OCR 的特定模型。它聚焦于以文本为中心的文档理解,涵盖文本、表格、公式、图表、印章和结构化信息提取。其关键特性包括:

  • 🏆 SOTA 文档解析:MiniCPM-OCR 1.0 在真实世界文档解析基准 Real5-OmniDocBench 上取得 93.68 的 SOTA 分数,并在 OmniDocBench v1.6、Wild-OmniDocBench 和 olmOCR-Bench 上展示领先解析能力。它支持中文和英文文档和 PDF,处理标准文档和具有挑战性的捕获条件,包括扫描、弯曲页面、照片、倾斜页面和重新扫描文档。
  • ⚡ 高效推理。 通过 DSpark 解码加速(DSpark-BF16、DSpark-GGUF),MiniCPM-OCR 1.0 将端到端处理效率提升 55%。其吞吐量约为 PaddleOCR-VL-1.6 的 1.49 倍,和 MinerU2.5 Pro 的 3.62 倍,减少大规模文档解析所需时间。
  • 🔍 通用识别和信息提取:MiniCPM-OCR 1.0 在 OCRBench v2 上取得 54.7 的 SOTA 分数,展示强通用 OCR 能力。它还支持关键信息提取(KIE),提取相关文档内容用于下游信息管理和自动化处理。
  • 🛠️ 易部署和开发:MiniCPM-OCR 1.0 支持 vLLM、SGLang、llama.cpp 和 Ollama,从第一天开始,发布时提供多个芯片平台和量化版本。它支持进一步微调,并提供 pip SDK 和功能全的 API 用于应用集成和定制。你也可以快速使用 SKILL.md 开始。通过官方 Demo 或 Basic Demo 探索解析结果。

SOTA 性能,更高的吞吐量

在下表中,MiniCPM-OCR 1.0 以 1.2 页/秒和 OmniDocBench v1.6、Real5-OmniDocBench、Wild-OmniDocBench 和 olmOCR-Bench 上最高的整体性能位居榜首。

Benchmark Comparisons

Examples

MiniCPM-OCR Jev

MiniCPM-OCR Jev 是一个用于文本、公式和表格的 OCR 正确性决策模型。给定图像及其对应的 OCR 结果,它返回一个 0 到 1 的质量分数,帮助选择可靠结果和定位需要审查的内容。

  • 🛡️ 小型模型中的强表现:MiniCPM-OCR Jev 仅有 2B 参数,在 JevOCRBench 上取得 AUROC(×100)93.6,超过 JEV-35B-A3B(90.1),接近 Qwen3.5-397B-A17B(93.8)。
  • 🧩 一致的泛化:MiniCPM-OCR 1.0、GLM-OCR、PaddleOCR-VL-1.6 和 Xiaomi-OCR-0 的解析结果上,其 AUROC(×100)在 91.9 到 93.4 之间。

Evaluation Results

Review-Free Accuracy

Accuracy at different review-free rates across three

document types.

Accuracy versus review-free rate for legal documents, financial receipts, and complex documents.

Set the threshold only after checking it on a small batch from the real application.

Decision Examples

Jev scores for text, formula, and table recognition.

Original images, two OCR candidates, and their Jev scores for text, formulas, and tables.

See the MiniCPM-OCR Jev model guide for more on usage, technical specifications, evaluation results, and efficiency results.

Using MiniCPM-OCR

Choose how to integrate MiniCPM-OCR 1.0 and MiniCPM-OCR Jev:

Skill

Ask a coding agent to follow the MiniCPM-OCR 1.0 skill to set up the environment, download models, and parse your first document. Send the following instruction to the agent:

Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_en.md

Ask a coding agent to follow the MiniCPM-OCR Jev skill to deploy, start, and verify the scoring service locally — either from the Docker image or with the SDK, using vLLM, SGLang, llama.cpp, or Ollama as the inference backend. Send the following instruction to the agent:

Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md

If you have already cloned this repository, you can use ./docs/SKILL_en.md and ./docs/SKILL_jev_en.md directly.

Free API

Use the Free API to access MiniCPM-OCR 1.0 recognition and MiniCPM-OCR Jev quality scoring.

MiniCPM-OCR 1.0 API docs  ·  MiniCPM-OCR Jev API example

Local Deployment

Run the models on your own hardware: MiniCPM-OCR 1.0 parses PDFs and images into Markdown or JSON, while MiniCPM-OCR Jev scores the parsing results.

MiniCPM-OCR 1.0 deployment tutorial · MiniCPM-OCR Jev deployment tutorial

Fine-Tuning

ModelFine-tuning tutorial
MiniCPM-OCR 1.0LLaMA-Factory · Swift
MiniCPM-OCR JevSwift

Model Weights

ModelDescriptionMain Model WeightsDSpark Heads
MiniCPM‑OCR 1.0Efficient document parsing and text recognition for Chinese and English documents and PDFs, balancing quality and speed across scans, photographs, curved pages, and recaptured documents.🤗  ModelScope BF16
🤗  ModelScope GGUF
🤗  ModelScope AWQ
🤗  ModelScope GPTQ
🤗  ModelScope BF16
🤗  ModelScope GGUF
MiniCPM‑OCR JevAn OCR correctness decision model for text, formulas, and tables. Given an image and its OCR result, it returns a quality score from 0 to 1.🤗  ModelScope BF16 🤗  ModelScope GGUF
🤗  ModelScope AWQ 🤗  ModelScope GPTQ

💡 FAQ and Troubleshooting

See the FAQ for common questions about installation, model downloads, GPU memory, input formats, and unexpected outputs.

Star History

GitHub star history for MiniCPM-OCR over time.

📄 License

The entire project is released under the Apache License 2.0, including code, documentation, and model weights for MiniCPM-OCR 1.0 and MiniCPM-OCR Jev.