Fast, accurate OCR with correctness assessment.
release: publish 1.0.3 with image-block markdown rendering
huangfwebd2ea83636e
diff --git a/docs/faq_en.md b/docs/faq_en.mdindex 14a1c98..1ba78a1 100644--- a/docs/faq_en.md+++ b/docs/faq_en.md@@ -7,7 +7,7 @@ Common issues with installation, model download, GPU memory, input formats and u### `pip install minicpmvocr` package not found**Cause**: The PyPI distribution is named `minicpm-ocr`; the Python import and command are named `minicpmvocr`.-**Solution**: Run `python -m pip install "minicpm-ocr[all]==1.0.2"`. For development from this repository, use `python -m pip install -e "./sdk[all]"`.+**Solution**: Run `python -m pip install "minicpm-ocr[all]==1.0.3"`. For development from this repository, use `python -m pip install -e "./sdk[all]"`.### `minicpmvocr parse` reports `--config` missing**Cause**: An older SDK version is installed. The current `parse` command supports a built-in quickstart configuration.diff --git a/docs/faq_zh.md b/docs/faq_zh.mdindex 2c838c7..4012c17 100644--- a/docs/faq_zh.md+++ b/docs/faq_zh.md@@ -7,7 +7,7 @@### `pip install minicpmvocr` 提示找不到包**原因**:PyPI 发行包名为 `minicpm-ocr`,Python 导入名和命令为 `minicpmvocr`。-**解决**:`python -m pip install "minicpm-ocr[all]==1.0.2"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。+**解决**:`python -m pip install "minicpm-ocr[all]==1.0.3"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。### `minicpmvocr parse` 报告缺少 `--config`**原因**:安装的是旧版 SDK;当前版本的 `parse` 支持内置快速开始配置。diff --git a/docs/pypi_publish.md b/docs/pypi_publish.mdindex bb216ce..058cab3 100644--- a/docs/pypi_publish.md+++ b/docs/pypi_publish.md@@ -10,11 +10,11 @@ PyPI 介绍以根目录 `README.md` 为唯一内容来源。`scripts/prepare_pypPyPI 项目的 **Manage → Publishing** 中应配置 GitHub 可信发布者:Owner 为 `OpenBMB`,Repository 为 `MiniCPM-OCR`,Workflow 为 `publish-pypi.yml`,Environment 为 `pypi`。-`.github/workflows/publish-pypi.yml` 使用 OIDC 发布,无需保存 PyPI API Token。手动运行工作流仅构建检查;推送与 SDK 版本一致的 `sdk-v*` 标签会在构建、元数据和安装检查通过后上传到 PyPI。例如版本 `1.0.2`:+`.github/workflows/publish-pypi.yml` 使用 OIDC 发布,无需保存 PyPI API Token。手动运行工作流仅构建检查;推送与 SDK 版本一致的 `sdk-v*` 标签会在构建、元数据和安装检查通过后上传到 PyPI。例如版本 `1.0.3`:```bash-git tag sdk-v1.0.2-git push origin sdk-v1.0.2+git tag sdk-v1.0.3+git push origin sdk-v1.0.3```## 构建与检查@@ -40,10 +40,10 @@ python -m twine upload sdk/dist/*按提示提供 PyPI API Token。上传方式见 [PyPA 官方发布教程](https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives)。同一版本不能覆盖上传,后续发布需递增版本号。-确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.2` 为例:+确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.3` 为例:```bash-python -m pip install "minicpm-ocr[all]==1.0.2"+python -m pip install "minicpm-ocr[all]==1.0.3"```PaddlePaddle GPU 运行时需单独安装,具体命令见[安装与推理教程](./minicpm_ocr_tutorial.md#1-sdk-环境配置)。diff --git a/sdk/README.pypi.md b/sdk/README.pypi.mdindex 52358ba..518c226 100644--- a/sdk/README.pypi.md+++ b/sdk/README.pypi.md@@ -2,9 +2,9 @@<div align="center">-<img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/release-hero.svg" alt="MiniCPM-OCR: fast, accurate document parsing into text, tables, and formulas, with a lightning arrow connecting documents to structured results; a decision model helps identify regions that need review (illustration)." width="100%">--<p align="center"><strong>MiniCPM-OCR · Fast, accurate parsing for real-world documents.</strong></p>+<p align="center">+ <img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/release-hero.svg" alt="MiniCPM-OCR: fast, accurate document parsing into text, tables, and formulas, with a lightning arrow connecting documents to structured results; a decision model helps identify regions that need review (illustration)." width="100%">+</p><p align="center"><a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md"><strong>MiniCPM-OCR 1.0 Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>@@ -12,13 +12,19 @@<a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-Jev" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a></p>+<p align="center">+ <strong>Official Demo</strong> (<a href="https://platform.modelbest.cn/console/playground/document-parse">CN</a> / <a href="https://platform.modelbest.ai/console/playground/document-parse">Global</a>)+ · + Basic Demo (<a href="http://82.157.64.212:10111/playground/document-parse">CN</a> / <a href="https://huggingface.co/spaces/openbmb/MiniCPM-OCR">Global</a>)+</p>+<p align="center"><a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#quick-start">Get Started</a> · - <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#model-weights">Model Weights</a> · - <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api">Free API</a> · + <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#model-weights">Weights</a> · + <a href="https://platform.modelbest.ai/console/docs/api/document-parse">Free API</a> · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill">Skill</a> · - Online Demo (<a href="https://huggingface.co/spaces/openbmb/MiniCPM-OCR">HF Space</a> / <a href="https://platform.modelbest.ai/console/playground/document-parse">Official Demo</a> / <a href="https://platform.modelbest.cn/console/playground/document-parse">Official Demo(CN)</a>)- | English · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README_zh.md">中文</a>+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_tutorial_en.md">Local Deployment</a>+ | <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README_zh.md">中文</a></p></div>@@ -34,7 +40,7 @@- 🏆 **SOTA document parsing**: MiniCPM-OCR 1.0 achieves a **SOTA score of 93.68 on Real5-OmniDocBench**, a benchmark for real-world document parsing, and demonstrates leading parsing capabilities on OmniDocBench v1.6, Wild-OmniDocBench, and olmOCR-Bench. It supports Chinese and English documents and PDFs, handling both standard documents and challenging capture conditions, including scans, curved pages, photographs, skewed pages, and recaptured documents.- ⚡ **Efficient inference.** With DSpark decoding acceleration ([**DSpark-BF16**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark), [**DSpark-GGUF**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf)), MiniCPM-OCR 1.0 improves **end-to-end processing efficiency by 55%**. Its throughput is approximately **1.49×** that of PaddleOCR-VL-1.6 and **3.62×** that of MinerU2.5 Pro, reducing the time needed for large-scale document parsing.- 🔍 **General recognition and information extraction**: MiniCPM-OCR 1.0 achieves a **SOTA score of 54.7 on OCRBench v2**, demonstrating strong general OCR capabilities. It **also supports key information extraction (KIE)**, extracting relevant document content for downstream information management and automated processing.-- 🛠️ **Easy deployment and development**: MiniCPM-OCR 1.0 supports **vLLM, SGLang, llama.cpp, and Ollama from day one**, with multiple chip platforms and quantized versions available at release. It **supports further fine-tuning** and provides a **[pip SDK](https://pypi.org/project/minicpm-ocr/)** and a **[full-featured API](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api)** for application integration and customization. You can also **[get started quickly with SKILL.md](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill)**. Try the Online Demo ([HF Space](https://huggingface.co/spaces/openbmb/MiniCPM-OCR) / [Official Demo](https://platform.modelbest.ai/console/playground/document-parse) / [Official Demo(CN)](https://platform.modelbest.cn/console/playground/document-parse)) to explore parsing results.+- 🛠️ **Easy deployment and development**: MiniCPM-OCR 1.0 supports **vLLM, SGLang, llama.cpp, and Ollama from day one**, with multiple chip platforms and quantized versions available at release. It **supports further fine-tuning** and provides a **[pip SDK](https://pypi.org/project/minicpm-ocr/)** and a **[full-featured API](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api)** for application integration and customization. You can also **[get started quickly with SKILL.md](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill)**. Explore parsing results with the Official Demo ([CN](https://platform.modelbest.cn/console/playground/document-parse) / [Global](https://platform.modelbest.ai/console/playground/document-parse)) or Basic Demo ([CN](http://82.157.64.212:10111/playground/document-parse) / [Global](https://huggingface.co/spaces/openbmb/MiniCPM-OCR)).### SOTA Performance, Higher Throughput@@ -143,7 +149,7 @@ Ask a coding agent to follow the MiniCPM-OCR 1.0 [skill](https://github.com/OpenRead 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](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md) to deploy, start, and verify the scoring service locally, with vLLM, SGLang, llama.cpp, or Ollama as the inference backend. Send the following instruction to the agent:+Ask a coding agent to follow the MiniCPM-OCR Jev [skill](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md) 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:```textRead and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md@@ -207,6 +213,18 @@ Run the models on your own hardware: MiniCPM-OCR 1.0 parses PDFs and images intoSee the [FAQ](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/faq_en.md) for common questions about installation, model downloads, GPU memory, input formats, and unexpected outputs.+## Star History++<p align="center">+ <a href="https://www.star-history.com/?repos=openbmb%2Fminicpm-ocr&type=date&legend=top-left">+ <picture>+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=openbmb/minicpm-ocr&type=date&legend=top-left&theme=dark">+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=openbmb/minicpm-ocr&type=date&legend=top-left">+ <img src="https://api.star-history.com/chart?repos=openbmb/minicpm-ocr&type=date&legend=top-left" alt="GitHub star history for MiniCPM-OCR over time." width="100%">+ </picture>+ </a>+</p>+## 📄 LicenseThe entire project is released under the [Apache License 2.0](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/LICENSE), including code, documentation, and model weights for MiniCPM-OCR 1.0 and MiniCPM-OCR Jev.diff --git a/sdk/minicpmvocr/_version.py b/sdk/minicpmvocr/_version.pyindex 7863915..976498a 100644--- a/sdk/minicpmvocr/_version.py+++ b/sdk/minicpmvocr/_version.py@@ -1 +1 @@-__version__ = "1.0.2"+__version__ = "1.0.3"