[Docs] Add dependency notice (#15365)

* Add dependency notice

* Fix typo

* Update doc

* Add PaddleOCR and PaddleX version correspondance

* Use independant sentence

* Add 3.0.1
This commit is contained in:
Lin Manhui 2025-05-30 14:37:03 +08:00 committed by GitHub
parent 3ea2fb9086
commit 6df4cdea16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 1 deletions

View File

@ -56,7 +56,7 @@ from paddleocr import PaddleOCR
# 基础的初始化参数保持一致
ocr = PaddleOCR(lang="en")
result = ocr.ocr("img.png")
# 也可以使用新的统接口
# 也可以使用新的统接口
# result = ocr.predict("img.png")
for res in result:
# 可直接调用方法打印识别结果,无需嵌套循环

View File

@ -16,6 +16,15 @@ PaddleOCR fully reuses the capabilities of PaddleX in the inference deployment p
- The high-performance inference capabilities of PaddleOCR are achieved through PaddleX's Paddle2ONNX plugin and high-performance inference plugins.
- The service deployment solutions of PaddleOCR are based on PaddleX's implementations.
It is important to note that although PaddleOCR uses PaddleX at the underlying level, thanks to PaddleXs optional dependency installation feature, **installing the PaddleOCR inference package does not include all of PaddleXs dependencies—only those required for OCR-related tasks are installed**. Therefore, users generally do not need to worry about excessive expansion of dependency size. Tested in May 2025, in an x86-64 + Linux + Python 3.10 environment, the total size of required dependencies increased only from 717 MB to 738 MB.
The version correspondence between PaddleOCR and PaddleX is as follows:
| PaddleOCR Version | PaddleX Version |
| --- | --- |
| `3.0.0` | `3.0.0` |
| `3.0.1` | `3.0.1` |
## 2. Correspondence Between PaddleOCR Pipelines and PaddleX Pipeline Registration Names
| PaddleOCR Pipeline | PaddleX Pipeline Registration Name |

View File

@ -16,6 +16,15 @@ PaddleOCR 在推理部署环节充分复用了 PaddleX 的能力,具体包括
- PaddleOCR 的高性能推理能力通过 PaddleX 的 Paddle2ONNX 插件及高性能推理插件实现。
- PaddleOCR 的服务化部署方案基于 PaddleX 的实现。
需要特别说明的是,尽管 PaddleOCR 在底层使用了 PaddleX但得益于 PaddleX 的可选依赖安装功能,**安装 PaddleOCR 推理包时并不会安装 PaddleX 的全部依赖,而只会安装 OCR 类任务需要使用到的依赖**用户通常无需关心依赖体积的过度膨胀问题。2025 年 5 月测试,在 x86-64 + Linux + Python 3.10 环境中,需要安装的依赖总体积仅仅从 717 MB 增加到 738 MB。
PaddleOCR 和 PaddleX 的版本存在如下对应关系:
| PaddleOCR 版本 | PaddleX 版本 |
| --- | --- |
| `3.0.0` | `3.0.0` |
| `3.0.1` | `3.0.1` |
## 2. PaddleOCR 产线与 PaddleX 产线注册名的对应关系
| PaddleOCR 产线 | PaddleX 产线注册名 |