Fast, accurate OCR with correctness assessment.
release: publish 1.0.2 with corrected SDK name and tutorial versions
caowanxia12378a3aca324e3
diff --git a/docs/faq_en.md b/docs/faq_en.mdindex 8ea2ff2..18130b1 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.0"`. For development from this repository, use `python -m pip install -e "./sdk[all]"`.+**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]"`.### `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 76db827..5b89c44 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.0"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。+**解决**:`python -m pip install "minicpm-ocr[all]==1.0.2"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。### `minicpmvocr parse` 报告缺少 `--config`**原因**:安装的是旧版 SDK;当前版本的 `parse` 支持内置快速开始配置。diff --git a/docs/minicpmvocr_tutorial.md b/docs/minicpmvocr_tutorial.mdindex 08cd47a..1f31512 100644--- a/docs/minicpmvocr_tutorial.md+++ b/docs/minicpmvocr_tutorial.md@@ -29,7 +29,7 @@ pip install uvuv venv .minicpm-ocr --python 3.12 --seedsource .minicpm-ocr/bin/activate-python -m pip install "minicpm-ocr[all]==1.0.0"+python -m pip install "minicpm-ocr[all]==1.0.2"python -m pip install "paddlepaddle-gpu==3.3.0" \-i https://www.paddlepaddle.org.cn/packages/stable/cu129/```diff --git a/docs/minicpmvocr_tutorial_en.md b/docs/minicpmvocr_tutorial_en.mdindex c777bd8..54cf232 100644--- a/docs/minicpmvocr_tutorial_en.md+++ b/docs/minicpmvocr_tutorial_en.md@@ -29,7 +29,7 @@ pip install uvuv venv .minicpm-ocr --python 3.12 --seedsource .minicpm-ocr/bin/activate-python -m pip install "minicpm-ocr[all]==1.0.0"+python -m pip install "minicpm-ocr[all]==1.0.2"python -m pip install "paddlepaddle-gpu==3.3.0" \-i https://www.paddlepaddle.org.cn/packages/stable/cu129/```diff --git a/docs/pypi_publish.md b/docs/pypi_publish.mdindex b16a56d..a1d651b 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.1`:+`.github/workflows/publish-pypi.yml` 使用 OIDC 发布,无需保存 PyPI API Token。手动运行工作流仅构建检查;推送与 SDK 版本一致的 `sdk-v*` 标签会在构建、元数据和安装检查通过后上传到 PyPI。例如版本 `1.0.2`:```bash-git tag sdk-v1.0.1-git push origin sdk-v1.0.1+git tag sdk-v1.0.2+git push origin sdk-v1.0.2```## 构建与检查@@ -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.1` 为例:+确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.2` 为例:```bash-python -m pip install "minicpm-ocr[all]==1.0.1"+python -m pip install "minicpm-ocr[all]==1.0.2"```PaddlePaddle GPU 运行时需单独安装,具体命令见[安装与推理教程](./minicpmvocr_tutorial.md#1-sdk-环境配置)。diff --git a/sdk/README.pypi.md b/sdk/README.pypi.mdindex 268a425..ce5c8a2 100644--- a/sdk/README.pypi.md+++ b/sdk/README.pypi.md@@ -15,8 +15,9 @@<p align="center"><sub><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://platform.modelbest.cn/console/playground/document-parse">Online Demo (China)</a> · - <a href="https://platform.modelbest.ai/console/playground/document-parse">Online Demo (Global)</a>+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api">API</a> · + <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill">Skill</a> · + Online Demo (<a href="https://platform.modelbest.cn/console/playground/document-parse">CN</a> / <a href="https://platform.modelbest.ai/console/playground/document-parse">Global</a>) | English · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README_zh.md">中文</a></sub></p>@@ -33,7 +34,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, a full-featured API, and established agent workflows** for application integration and customization. Online demos are available for [China](https://platform.modelbest.cn/console/playground/document-parse) and [global](https://platform.modelbest.ai/console/playground/document-parse) users.+- 🛠️ **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://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#local-deployment)** 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 ([CN](https://platform.modelbest.cn/console/playground/document-parse) / [Global](https://platform.modelbest.ai/console/playground/document-parse)) to explore parsing results.### SOTA Performance, Higher Throughputdiff --git a/sdk/minicpmvocr/_version.py b/sdk/minicpmvocr/_version.pyindex 5c4105c..7863915 100644--- a/sdk/minicpmvocr/_version.py+++ b/sdk/minicpmvocr/_version.py@@ -1 +1 @@-__version__ = "1.0.1"+__version__ = "1.0.2"diff --git a/sdk/pyproject.toml b/sdk/pyproject.tomlindex 9dccf42..91f4c62 100644--- a/sdk/pyproject.toml+++ b/sdk/pyproject.toml@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"[project]name = "minicpm-ocr"dynamic = ["version"]-description = "MiniCPM-V OCR SDK: document layout + VLM orchestration frontend with pluggable inference backends"+description = "MiniCPM-OCR SDK: document layout + VLM orchestration frontend with pluggable inference backends"readme = { file = "README.pypi.md", content-type = "text/markdown" }requires-python = ">=3.10"license = "Apache-2.0"