Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Optim python module.

SWHL55309d39a0a8
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
index 268029b..9a0ea61 100644
--- a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
@@ -89,15 +89,15 @@ jobs:
python setup_onnxruntime.py bdist_wheel
mv dist ../
- - name: Publish distribution πŸ“¦ to Test PyPI
- uses: pypa/[email protected]
- with:
- password: ${{ secrets.TEST_PYPI_API_TOKEN }}
- repository_url: https://test.pypi.org/legacy/
- packages_dir: dist/
-
- # - name: Publish distribution πŸ“¦ to PyPI
+ # - name: Publish distribution πŸ“¦ to Test PyPI
# uses: pypa/[email protected]
# with:
- # password: ${{ secrets.PYPI_API_TOKEN }}
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
+ # repository_url: https://test.pypi.org/legacy/
# packages_dir: dist/
+
+ - name: Publish distribution πŸ“¦ to PyPI
+ uses: pypa/[email protected]
+ with:
+ password: ${{ secrets.PYPI_API_TOKEN }}
+ packages_dir: dist/
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml
index b26d0bc..47a6e96 100644
--- a/.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml
@@ -90,15 +90,15 @@ jobs:
python setup_openvino.py bdist_wheel
mv dist ../
- - name: Publish distribution πŸ“¦ to Test PyPI
- uses: pypa/[email protected]
- with:
- password: ${{ secrets.TEST_PYPI_API_TOKEN }}
- repository_url: https://test.pypi.org/legacy/
- packages_dir: dist/
-
- # - name: Publish distribution πŸ“¦ to PyPI
+ # - name: Publish distribution πŸ“¦ to Test PyPI
# uses: pypa/[email protected]
# with:
- # password: ${{ secrets.RAPIDOCR_OPENVINO }}
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
+ # repository_url: https://test.pypi.org/legacy/
# packages_dir: dist/
+
+ - name: Publish distribution πŸ“¦ to PyPI
+ uses: pypa/[email protected]
+ with:
+ password: ${{ secrets.RAPIDOCR_OPENVINO }}
+ packages_dir: dist/
diff --git a/docs/doc_whl_rapidocr_ort.md b/docs/doc_whl_rapidocr_ort.md
index 66274dd..bec8cd7 100644
--- a/docs/doc_whl_rapidocr_ort.md
+++ b/docs/doc_whl_rapidocr_ort.md
@@ -9,38 +9,12 @@
$ pip install rapidocr-onnxruntime
```
-### 2. Download the models and config yaml.
-```bash
-$ wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
-
-# or by gitee
-# wget https://gitee.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
-
-$ unzip required_for_whl_v1.1.0.zip
-$ cd required_for_whl_v1.1.0
-```
-
-- The final directory of the folder:
- ```text
- required_for_whl_v1.1.0/
- β”œβ”€β”€ config.yaml
- β”œβ”€β”€ README.md
- β”œβ”€β”€ test_demo.py
- β”œβ”€β”€ resources
- β”‚ └── models
- β”‚ β”œβ”€β”€ ch_ppocr_mobile_v2.0_cls_infer.onnx
- β”‚ β”œβ”€β”€ ch_PP-OCRv3_det_infer.onnx
- β”‚ └── ch_PP-OCRv3_rec_infer.onnx
- └── test_images
- └── ch_en_num.jpg
- ```
-
-### 3. Use.
+### 2. Use.
```python
import cv2
from rapidocr_onnxruntime import RapidOCR
-text_sys = RapidOCR('config.yaml')
+text_sys = RapidOCR()
img = cv2.imread('test_images/ch_en_num.jpg')
diff --git a/docs/doc_whl_rapidocr_vino.md b/docs/doc_whl_rapidocr_vino.md
index 1fad791..e19ad75 100644
--- a/docs/doc_whl_rapidocr_vino.md
+++ b/docs/doc_whl_rapidocr_vino.md
@@ -9,33 +9,8 @@
$ pip install rapidocr-openvino
```
-### 2. Download the models and config yaml.
-```bash
-$ wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
-# or by gitee
-# wget https://gitee.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
-
-$ unzip required_for_whl_v1.1.0.zip
-$ cd required_for_whl_v1.1.0
-```
-
-- The final directory of the folder:
- ```text
- required_for_whl_v1.1.0/
- β”œβ”€β”€ config.yaml
- β”œβ”€β”€ README.md
- β”œβ”€β”€ test_demo.py
- β”œβ”€β”€ resources
- β”‚ └── models
- β”‚ β”œβ”€β”€ ch_ppocr_mobile_v2.0_cls_infer.onnx
- β”‚ β”œβ”€β”€ ch_PP-OCRv3_det_infer.onnx
- β”‚ └── ch_PP-OCRv3_rec_infer.onnx
- └── test_images
- └── ch_en_num.jpg
- ```
-
-### 3. Use.
+### 2. Use.
```python
import cv2
from rapidocr_openvino import RapidOCR
diff --git a/python/setup_openvino.py b/python/setup_openvino.py
index b307965..58a5d35 100644
--- a/python/setup_openvino.py
+++ b/python/setup_openvino.py
@@ -39,6 +39,7 @@ def get_readme():
MODULE_NAME = 'rapidocr_openvino'
latest_version = get_latest_version(MODULE_NAME)
VERSION_NUM = version_add_one(latest_version)
+VERSION_NUM = '1.1.14'
setuptools.setup(
name=MODULE_NAME,