Skip to content

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

test CI

SWHL65fdc5296462
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
index 6713dbf..61ec2ac 100644
--- a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
@@ -19,6 +19,15 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v3
+ - name: Set up Python 3.7
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.7'
+ architecture: 'x64'
+
+ - name: Display Python version
+ run: python -c "import sys; print(sys.version)"
+
- name: Unit testings
run: |
wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
@@ -28,7 +37,6 @@ jobs:
cp required_for_whl_v1.1.0/resources/models/*.onnx python/rapidocr_openvino/models/
cd python
pip install -r requirements.txt
- pip install onnxruntime==1.11.0 openvino==2022.3.0
cd tests
pytest test_det.py test_cls.py test_rec.py test_all_ort.py
diff --git a/python/requirements.txt b/python/requirements.txt
index b075fe1..7851461 100644
--- a/python/requirements.txt
+++ b/python/requirements.txt
@@ -6,4 +6,6 @@ numpy>=1.19.5
Pillow
PyYAML
pytest>=7.2.1
-pip==22.3.1
\ No newline at end of file
+pip==22.3.1
+onnxruntime>=1.11.0
+openvino>=2022.2.0
\ No newline at end of file