π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Rename docs files
SWHL232996f19342
diff --git a/.github/workflows/gen_whl_to_pypi_layout.yml b/.github/workflows/gen_whl_to_pypi_layout.ymlnew file mode 100644index 0000000..335a32a--- /dev/null+++ b/.github/workflows/gen_whl_to_pypi_layout.yml@@ -0,0 +1,92 @@+name: push rapidocr_onnxruntime to pypi++on:+ push:+ branches: [ main ]+ paths:+ - 'python/rapid_structure/rapid_layout/**'+ - 'docs/doc_whl_layout.md'+ - 'python/rapid_structure/setup_layout.py'++jobs:+ UnitTesting:+ runs-on: windows-latest+ steps:+ - name: Install 7Zip PowerShell Module+ shell: powershell+ run: Install-Module 7Zip4PowerShell -Force -Verbose++ - name: Pull latest code+ uses: actions/checkout@v3++ - name: Download required_for_whl_v1.1.0+ uses: suisei-cn/actions-download-file@v1+ id: downloadfile3 # Remember to give an ID if you need the output filename+ with:+ url: "https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip"+ target: ./++ - name: Decompress+ shell: powershell+ run: |+ Expand-7Zip -ArchiveFileName ./required_for_whl_v1.1.0.zip -TargetPath .\++ - name: List all file+ shell: cmd+ run: |+ dir .++ - name: Unit testings+ shell: cmd+ run: |+ set git_keep_path=%cur_dir%\python\resoureces\models\.gitkeep+ del %git_keep_path%+ move required_for_whl_v1.1.0\resources\models\* python\resources\models\+ cd python+ pip install -r requirements.txt+ pip install onnxruntime==1.11.0 openvino==2022.2.0+ cd tests+ pytest test_det.py test_cls.py test_rec.py++ GenerateWHL_PushPyPi:+ needs: UnitTesting+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v3++ - name: Set SSH Environment+ env:+ DEPLOY_KEYS: ${{ secrets.GEN_PYTHON_SDK }}+ run: |+ mkdir -p ~/.ssh/+ echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa+ chmod 600 ~/.ssh/id_rsa+ chmod 700 ~/.ssh && chmod 600 ~/.ssh/*++ - name: Run setup_onnxruntime.py+ run: |+ cd python+ mkdir rapidocr_onnxruntime_t+ mv rapidocr_onnxruntime rapidocr_onnxruntime_t+ mv rapidocr_onnxruntime_t rapidocr_onnxruntime+ cd rapidocr_onnxruntime+ echo "from .rapidocr_onnxruntime.rapid_ocr_api import RapidOCR" > __init__.py++ cd ..+ python -m pip install --upgrade pip+ 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+ uses: pypa/[email protected]+ with:+ password: ${{ secrets.PYPI_API_TOKEN }}+ packages_dir: dist/diff --git a/.github/workflows/gen_whl_to_pypi_onnxruntime.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.ymlsimilarity index 98%rename from .github/workflows/gen_whl_to_pypi_onnxruntime.ymlrename to .github/workflows/gen_whl_to_pypi_rapidocr_ort.ymlindex 8a50aab..89084f0 100644--- a/.github/workflows/gen_whl_to_pypi_onnxruntime.yml+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml@@ -5,7 +5,7 @@ on:branches: [ main ]paths:- 'python/rapidocr_onnxruntime/**'- - 'docs/doc_whl_en_onnxruntime.md'+ - 'docs/doc_whl_rapidocr_ort.md'- 'python/setup_onnxruntime.py'jobs:diff --git a/.github/workflows/gen_whl_to_pypi_openvino.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_vino.ymlsimilarity index 98%rename from .github/workflows/gen_whl_to_pypi_openvino.ymlrename to .github/workflows/gen_whl_to_pypi_rapidocr_vino.ymlindex ba64687..212d302 100644--- a/.github/workflows/gen_whl_to_pypi_openvino.yml+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_vino.yml@@ -5,7 +5,7 @@ on:branches: [ main ]paths:- 'python/rapidocr_openvino/**'- - 'docs/doc_whl_en_openvino.md'+ - 'docs/doc_whl_rapidocr_vino.md'- 'python/setup_openvino.py'jobs:diff --git a/docs/doc_whl_en_onnxruntime.md b/docs/doc_whl_rapidocr_ort.mdsimilarity index 100%rename from docs/doc_whl_en_onnxruntime.mdrename to docs/doc_whl_rapidocr_ort.mddiff --git a/docs/doc_whl_en_openvino.md b/docs/doc_whl_rapidocr_vino.mdsimilarity index 100%rename from docs/doc_whl_en_openvino.mdrename to docs/doc_whl_rapidocr_vino.mddiff --git a/python/setup_onnxruntime.py b/python/setup_onnxruntime.pyindex f1065a5..a2514fd 100644--- a/python/setup_onnxruntime.py+++ b/python/setup_onnxruntime.py@@ -31,7 +31,7 @@ def version_add_one(version, add_loc=-1):def get_readme():root_dir = Path(__file__).resolve().parent.parent- readme_path = str(root_dir / 'docs' / 'doc_whl_en_onnxruntime.md')+ readme_path = str(root_dir / 'docs' / 'doc_whl_rapidocr_ort.md')print(readme_path)with open(readme_path, 'r') as f:readme = f.read()diff --git a/python/setup_openvino.py b/python/setup_openvino.pyindex 5751a3c..56396ec 100644--- a/python/setup_openvino.py+++ b/python/setup_openvino.py@@ -31,7 +31,7 @@ def version_add_one(version, add_loc=-1):def get_readme():root_dir = Path(__file__).resolve().parent.parent- readme_path = str(root_dir / 'docs' / 'doc_whl_en_openvino.md')+ readme_path = str(root_dir / 'docs' / 'doc_whl_rapidocr_vino.md')print(readme_path)with open(readme_path, 'r', encoding='utf-8') as f:readme = f.read()