Fast, accurate OCR with correctness assessment.
release: publish 1.0.4 with online-API-aligned page output.
huangfw5cf860d4af72
diff --git a/docs/faq_en.md b/docs/faq_en.mdindex 1ba78a1..fd65fb2 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.3"`. For development from this repository, use `python -m pip install -e "./sdk[all]"`.+**Solution**: Run `python -m pip install "minicpm-ocr[all]==1.0.4"`. 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 4012c17..290200d 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.3"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。+**解决**:`python -m pip install "minicpm-ocr[all]==1.0.4"`;从当前仓库开发安装可使用 `python -m pip install -e "./sdk[all]"`。### `minicpmvocr parse` 报告缺少 `--config`**原因**:安装的是旧版 SDK;当前版本的 `parse` 支持内置快速开始配置。diff --git a/docs/pypi_publish.md b/docs/pypi_publish.mdindex 058cab3..3304c32 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.3`:+`.github/workflows/publish-pypi.yml` 使用 OIDC 发布,无需保存 PyPI API Token。手动运行工作流仅构建检查;推送与 SDK 版本一致的 `sdk-v*` 标签会在构建、元数据和安装检查通过后上传到 PyPI。例如版本 `1.0.4`:```bash-git tag sdk-v1.0.3-git push origin sdk-v1.0.3+git tag sdk-v1.0.4+git push origin sdk-v1.0.4```## 构建与检查@@ -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.3` 为例:+确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.4` 为例:```bash-python -m pip install "minicpm-ocr[all]==1.0.3"+python -m pip install "minicpm-ocr[all]==1.0.4"```PaddlePaddle GPU 运行时需单独安装,具体命令见[安装与推理教程](./minicpm_ocr_tutorial.md#1-sdk-环境配置)。diff --git a/sdk/README.pypi.md b/sdk/README.pypi.mdindex f3e4f33..8f39205 100644--- a/sdk/README.pypi.md+++ b/sdk/README.pypi.md@@ -6,6 +6,10 @@<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"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/minicpm-logo.jpg" width="300" alt="MiniCPM logo"></a>+</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> @@ -21,6 +25,10 @@<a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill">Skill</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>+ <br>+ Join the Community via+ <a href="https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=c35j072a-9abe-4ba6-ba1d-3ab340f9ba8c">Feishu / Lark</a> · + <a href="https://discord.gg/JE8KQqtdn">Discord</a></p></div>@@ -63,6 +71,8 @@ See the [MiniCPM-OCR 1.0 guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main### Examples+<p align="center"><a href="https://youtu.be/lJOzZytWoK8"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/main_video_en_play.PNG" alt="MiniCPM-OCR 1.0 and Jev promo video. Click to watch the demo on YouTube." width="80%"></a></p>+Left to right: original document, detected layout, and rendered Markdown.#### English Documents@@ -161,6 +171,14 @@ Use the Free API to access MiniCPM-OCR 1.0 recognition and MiniCPM-OCR Jev quali[MiniCPM-OCR 1.0 API docs](https://platform.modelbest.ai/console/docs/api/document-parse)  ·  [MiniCPM-OCR Jev API docs](https://platform.modelbest.ai/console/docs/api/ocr-jev)+<a id="mobile-demo"></a>++### MiniCPM-V Demo — iOS, Android & HarmonyOS++MiniCPM-OCR 1.0 now runs fully on-device on iOS in the MiniCPM-V Demo app (document OCR is currently iOS only).++[On-device demo tutorial](https://github.com/OpenBMB/MiniCPM-V-Apps/blob/main/README.md)+<a id="手动部署"></a><a id="本地部署"></a>@@ -169,7 +187,7 @@ Use the Free API to access MiniCPM-OCR 1.0 recognition and MiniCPM-OCR Jev qualiRun 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](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_tutorial_en.md) · [MiniCPM-OCR Jev deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_tutorial_en.md)+[MiniCPM-OCR 1.0 deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_tutorial_en.md) · [MiniCPM-OCR Jev deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_tutorial_en.md) · [Web demo deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/webdemo_deploy.md)<a id="模型微调"></a>diff --git a/sdk/minicpmvocr/_version.py b/sdk/minicpmvocr/_version.pyindex 976498a..92192ee 100644--- a/sdk/minicpmvocr/_version.py+++ b/sdk/minicpmvocr/_version.py@@ -1 +1 @@-__version__ = "1.0.3"+__version__ = "1.0.4"