fix opencv import error for numpy 2.0 (#13105)

* fix opencv import error for numpy 2.0

* update requirements.txt
pull/13212/head^2
Wang Xin 2024-06-23 15:56:58 +08:00 committed by GitHub
parent 6d5f998fe1
commit 433677182f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install "paddlepaddle==2.5"
pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html
pip install -e .
- name: Test with pytest
run: |

View File

@ -47,10 +47,10 @@ dependencies = [
"tqdm",
"numpy<2.0",
"rapidfuzz",
"opencv-python<=4.6.0.66",
"opencv-contrib-python<=4.6.0.66",
"opencv-python",
"opencv-contrib-python",
"cython",
"Pillow>=10.0.0",
"Pillow",
"pyyaml",
"python-docx",
"beautifulsoup4",

View File

@ -6,9 +6,9 @@ lmdb
tqdm
numpy<2.0
rapidfuzz
opencv-python<=4.6.0.66
opencv-contrib-python<=4.6.0.66
opencv-python
opencv-contrib-python
cython
Pillow>=10.0.0
Pillow
pyyaml
requests