diff options
author | Christoph Willing <chris.willing@linux.com> | 2020-10-14 18:08:14 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-10-17 09:36:30 +0700 |
commit | 7924bf6bc30ff8fb5c90ef41ce47180d5f0bf37c (patch) | |
tree | d1ac6a6fa15a48e4b1a948126fc59a4f82417421 /libraries | |
parent | 816da98442d118b239f5fc38c1e05521af8fccc8 (diff) |
libraries/opencv: Updated for version 4.5.0
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/opencv/README | 15 | ||||
-rw-r--r-- | libraries/opencv/opencv.SlackBuild | 17 | ||||
-rw-r--r-- | libraries/opencv/opencv.info | 10 |
3 files changed, 22 insertions, 20 deletions
diff --git a/libraries/opencv/README b/libraries/opencv/README index d2e02e42d986b..38ce4bcba59ac 100644 --- a/libraries/opencv/README +++ b/libraries/opencv/README @@ -53,13 +53,14 @@ This package is configured to generate python bindings for Python 3 (via dependency on the numpy3 package). If bindings for Python 2 are required, the numpy package is required when building opencv. -The Deep Neural Network module and Extra 2D Features Framework from -OpenCV's "extra modules" section are disabled by default. They may be -enabled by setting the DNN and/or XF2D environment variables as required -e.g. - DNN=yes sh ./opencv.SlackBuild -Enabling either of these modules results in additional downloading during -the configure stage of building. +The Extra 2D Features Framework from OpenCV's "extra modules" section +is disabled by default as it entails additional downloading during +the configure stage of building. It may be enabled by setting the XF2D +environment variable when building e.g. + XF2D=yes sh ./opencv.SlackBuild +Usually, this also applies to the Deep Neural Network (DNN) module +however it is no longer possible to complete a build without without +it and therefore remains enabled by default. The face recognition module is enabled by default. This incurs an additional download of the face_landmark_model.dat file (~70M) from OpenCV's github diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild index cc5911e4bfb84..5ca57a41142e0 100644 --- a/libraries/opencv/opencv.SlackBuild +++ b/libraries/opencv/opencv.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=opencv PRGNAM2=opencv_contrib -VERSION=${VERSION:-4.3.0} +VERSION=${VERSION:-4.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -58,13 +58,13 @@ else fi qt5="-DWITH_QT=ON" ; [ "${CVQT5:-yes}" = "no" ] && qt5="-DWITH_QT=OFF" -cvnonfree="" ; [ "${CVNONFREE:-no}" = "yes" ] && cvnonfree="-DOPENCV_ENABLE_NONFREE=ON" -cv1394="" ; [ "${CV1394:-yes}" = "no" ] && cv1394="-DWITH_1394=OFF" -cvffmpeg="" ; [ "${CVFFMPEG:-yes}" = "no" ] && cvffmpeg="-DWITH_FFMPEG=OFF" -cvvtk="" ; [ "${CVVTK:-yes}" = "no" ] && cvvtk="-DWITH_VTK=OFF" -cvgdal="" ; [ "${CVGDAL:-no}" = "yes" ] && cvgdal="-DWITH_GDAL=ON" -dnn="-DBUILD_opencv_dnn=OFF" ; [ "${DNN:-no}" = "yes" ] && dnn="" -face="" ; [ "${OCV_FACE:-yes}" = "no" ] && face="-DBUILD_opencv_face=OFF" +cvnonfree="" ; [ "${CVNONFREE:-no}" = "yes" ] && cvnonfree="-DOPENCV_ENABLE_NONFREE=ON" +cv1394="" ; [ "${CV1394:-yes}" = "no" ] && cv1394="-DWITH_1394=OFF" +cvffmpeg="" ; [ "${CVFFMPEG:-yes}" = "no" ] && cvffmpeg="-DWITH_FFMPEG=OFF" +cvvtk="" ; [ "${CVVTK:-yes}" = "no" ] && cvvtk="-DWITH_VTK=OFF" +cvgdal="" ; [ "${CVGDAL:-no}" = "yes" ] && cvgdal="-DWITH_GDAL=ON" +dnn=""; #dnn="-DBUILD_opencv_dnn=OFF" ; [ "${DNN:-no}" = "yes" ] && dnn="" +face="" ; [ "${OCV_FACE:-yes}" = "no" ] && face="-DBUILD_opencv_face=OFF" xf2d="-DBUILD_opencv_xfeatures2d=OFF" ; [ "${XF2D:-no}" = "yes" ] && xf2d="" cvdocs="-DBUILD_DOCS=ON -DBUILD_EXAMPLES=ON -DINSTALL_C_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON " ; [ "${CVDOCS:-yes}" = "no" ] && cvdocs="" @@ -116,6 +116,7 @@ cd build $xf2d \ $cvdocs \ $cvnonfree \ + -DBUILD_opencv_intensity_transform=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../$PRGNAM2-$VERSION/modules .. make VERBOSE=1 diff --git a/libraries/opencv/opencv.info b/libraries/opencv/opencv.info index eba00211680f9..8fd018ce8094c 100644 --- a/libraries/opencv/opencv.info +++ b/libraries/opencv/opencv.info @@ -1,10 +1,10 @@ PRGNAM="opencv" -VERSION="4.3.0" +VERSION="4.5.0" HOMEPAGE="https://opencv.org/" -DOWNLOAD="https://github.com/opencv/opencv/archive/4.3.0/opencv-4.3.0.tar.gz \ - https://github.com/opencv/opencv_contrib/archive/4.3.0/opencv_contrib-4.3.0.tar.gz" -MD5SUM="559953ef6ffaad03421cbba7f31d891c \ - 924ed270a66b5234442cf84da8c7e4b1" +DOWNLOAD="https://github.com/opencv/opencv/archive/4.5.0/opencv-4.5.0.tar.gz \ + https://github.com/opencv/opencv_contrib/archive/4.5.0/opencv_contrib-4.5.0.tar.gz" +MD5SUM="65ecd733f41b8286debfc4f29bd0d453 \ + bcd25c6796f647a4a14e3235c7eddd6a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="numpy3 qt5" |