[packages/opencv] - more 3rdparty files for wechat_qrcode
qboosh
qboosh at pld-linux.org
Sat Jul 8 23:10:51 CEST 2023
commit 0c55c28d562b14d2a69cf3908cc993608df59791
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 8 23:03:47 2023 +0200
- more 3rdparty files for wechat_qrcode
opencv-ade.patch | 2 +-
opencv.spec | 17 ++++++++++++++---
2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/opencv.spec b/opencv.spec
index aded6b5..e099113 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -98,6 +98,15 @@ Source30: https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229
# See opencv-4.5.1/modules/gapi/cmake/DownloadADE.cmake
Source40: https://github.com/opencv/ade/archive/v0.1.2a/ade-0.1.2a.zip
# Source40-md5: fa4b3e25167319cb0fa9432ef8281945
+# See opencv_contrib-4.5.5/modules/wechat_qrcode/CMakeLists.txt
+Source50: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel
+# Source50-md5: 238e2b2d6f3c18d6c3a30de0c31e23cf
+Source51: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt
+# Source51-md5: 6fb4976b32695f9f5c6305c19f12537d
+Source52: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
+# Source52-md5: cbfcd60361a73beb8c583eea7e8e6664
+Source53: https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt
+# Source53-md5: 69db99927a70df953b471daaba03fbef
Patch0: %{name}-ximea.patch
Patch1: python-install.patch
Patch2: pkgconfig-paths.patch
@@ -350,9 +359,8 @@ cache_file() {
d="$2"
md5="$(md5sum "$f" | awk '{print $1}')"
file="$(basename "$f")"
- destfile="${md5}-${3:-${file}}"
mkdir -p ".cache/$d"
- ln -s --relative "$f" ".cache/$d/$destfile"
+ ln -s --relative "$f" ".cache/$d/$md5-$file"
}
for f in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16}; do
cache_file $f xfeatures2d/boostdesc
@@ -361,7 +369,10 @@ for f in %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23}; do
cache_file $f xfeatures2d/vgg
done
cache_file %{SOURCE30} data
-cache_file %{SOURCE40} ade v0.1.2a.zip
+cache_file %{SOURCE40} ade
+for f in %{SOURCE50} %{SOURCE51} %{SOURCE52} %{SOURCE53}; do
+ cache_file $f wechat_qrcode
+done
cd opencv_contrib-%{version}
diff --git a/opencv-ade.patch b/opencv-ade.patch
index f139aa0..f7d9e52 100644
--- a/opencv-ade.patch
+++ b/opencv-ade.patch
@@ -5,7 +5,7 @@
-set(ade_filename "v0.1.1f.zip")
-set(ade_subdir "ade-0.1.1f")
-set(ade_md5 "b624b995ec9c439cbc2e9e6ee940d3a2")
-+set(ade_filename "v0.1.2a.zip")
++set(ade_filename "ade-0.1.2a.zip")
+set(ade_subdir "ade-0.1.2a")
+set(ade_md5 "fa4b3e25167319cb0fa9432ef8281945")
ocv_download(FILENAME ${ade_filename}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opencv.git/commitdiff/0c55c28d562b14d2a69cf3908cc993608df59791
More information about the pld-cvs-commit
mailing list