π 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.ymlindex 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_wheelmv 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.ymlindex 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_wheelmv 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.mdindex 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.```pythonimport cv2from 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.mdindex 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.```pythonimport cv2from rapidocr_openvino import RapidOCRdiff --git a/python/setup_openvino.py b/python/setup_openvino.pyindex 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,