π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Update unit testing about rapid_orientation.
SWHLe04bcd4fec01
diff --git a/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml b/.github/workflows/gen_whl_to_pypi_rapid_orientation.ymlindex 8e56b00..b325dcd 100644--- a/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml+++ b/.github/workflows/gen_whl_to_pypi_rapid_orientation.yml@@ -11,42 +11,21 @@ on:- 'python/rapid_structure/tests/test_orientation.py'jobs:- UnitTesting:- runs-on: windows-latest+ UnitTesting:+ runs-on: ubuntu-lateststeps:- - name: Install 7Zip PowerShell Module- shell: powershell- run: Install-Module 7Zip4PowerShell -Force -Verbose-- name: Pull latest codeuses: actions/checkout@v3- - name: Download rapid orientation model- uses: suisei-cn/actions-download-file@v1- id: downloadfile3- with:- url: "https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/rapid_orientation_models.zip"- target: ./-- - name: Decompress- shell: powershell- run: |- Expand-7Zip -ArchiveFileName ./rapid_orientation_models.zip -TargetPath .\-- - name: List all file- shell: cmd- run: |- dir .-- name: Unit testings- shell: cmdrun: |- set git_keep_path=%cur_dir%\python\rapid_structure\rapid_orientation\models\.gitkeep- del %git_keep_path%- move rapid_orientation_models\* python\rapid_structure\rapid_orientation\models\+ wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/rapid_orientation_models.zip+ unzip rapid_orientation_models.zip+ rm python/rapid_structure/rapid_orientation/models/.gitkeep+ mv rapid_orientation_models/* python/rapid_structure/rapid_orientation/models/cd python/rapid_structurepip install -r requirements.txt- pip install onnxruntime==1.12.1+ pip install onnxruntimecd testspytest test_orientation.py