From 194544706acfd72fae9635a0a84e49acb9a6d21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Tue, 5 Nov 2024 16:03:00 +0800 Subject: [PATCH] opencv --- .gitignore | 1 + src/plugins/scripts/fetchwebview2.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 08005899..57d959e2 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ src/plugins/libs/opencv-static.zip src/plugins/libs/onnxruntime-static.zip src/plugins/libs/onnxruntime-static/onnxruntime-static.7z src/plugins/libs/opencv-static/opencv-static.7z +src/plugins/libs/opencv-static/opencv-4.8.1-windows-vs2022-mt.7z diff --git a/src/plugins/scripts/fetchwebview2.py b/src/plugins/scripts/fetchwebview2.py index 3c667d7a..fa3ea1a2 100644 --- a/src/plugins/scripts/fetchwebview2.py +++ b/src/plugins/scripts/fetchwebview2.py @@ -30,7 +30,7 @@ onnx = os.path.normpath( opencv = os.path.normpath( os.path.join( os.path.dirname(__file__), - r"..\libs\opencv-static\windows-x64\x64\vc16\staticlib\opencv_core470.lib", + r"..\libs\opencv-static\windows-x64\x64\vc17\staticlib\opencv_core481.lib", ) ) onnx_1 = os.path.normpath( @@ -50,6 +50,6 @@ if os.path.exists(onnx) == False: if os.path.exists(opencv) == False: os.makedirs(os.path.dirname(opencv_1), exist_ok=True) os.system( - rf'curl -SLo "{opencv_1}" https://github.com/RapidAI/OpenCVBuilder/releases/download/4.7.0/opencv-4.7.0-windows-vs2019-mt.7z' + rf'curl -SLo "{opencv_1}" https://github.com/RapidAI/OpenCVBuilder/releases/download/4.8.1/opencv-4.8.1-windows-vs2022-mt.7z' ) os.system(rf'7z x -y "{opencv_1}" -o{os.path.dirname(opencv_1)}')