diff options
author | adam <adam@pkgsrc.org> | 2019-12-16 08:24:39 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2019-12-16 08:24:39 +0000 |
commit | f260cbab036c2f381c9268c467529236f52f51c0 (patch) | |
tree | c6804642e6c833da680b6860c6b54b6b3265d011 /graphics/opencv | |
parent | 075c46633c73768c4407b672564fedb96efba17f (diff) | |
download | pkgsrc-f260cbab036c2f381c9268c467529236f52f51c0.tar.gz |
opencv: updated to 3.4.8
version:3.4.8
OpenCV 3.4.8 has been released. Bug fixes, optimizations and other enhancements are propagated into OpenCV 4.1.2.
version:3.4.7
OpenCV 3.4.7 has been released. Bug fixes, optimizations and other enhancements are propagated into OpenCV 4.1.1.
Diffstat (limited to 'graphics/opencv')
-rw-r--r-- | graphics/opencv/Makefile | 3 | ||||
-rw-r--r-- | graphics/opencv/Makefile.common | 12 | ||||
-rw-r--r-- | graphics/opencv/PLIST | 14 | ||||
-rw-r--r-- | graphics/opencv/distinfo | 16 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-CMakeLists.txt | 8 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake | 20 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-modules_highgui_src_window__cocoa.mm | 15 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp | 51 |
8 files changed, 80 insertions, 59 deletions
diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index fd2ca180c41..38516ac0a12 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,6 +1,5 @@ -# $NetBSD: Makefile,v 1.85 2019/07/21 22:25:02 wiz Exp $ +# $NetBSD: Makefile,v 1.86 2019/12/16 08:24:39 adam Exp $ -PKGREVISION= 4 .include "Makefile.common" DISTNAME= opencv-${OPENCV_VERSION} diff --git a/graphics/opencv/Makefile.common b/graphics/opencv/Makefile.common index 1911d7a8dad..18125c5c625 100644 --- a/graphics/opencv/Makefile.common +++ b/graphics/opencv/Makefile.common @@ -1,8 +1,8 @@ -# $NetBSD: Makefile.common,v 1.2 2019/07/16 15:36:02 nia Exp $ +# $NetBSD: Makefile.common,v 1.3 2019/12/16 08:24:39 adam Exp $ # used by graphics/opencv/Makefile # used by graphics/opencv-contrib-face/Makefile -OPENCV_VERSION= 3.4.6 +OPENCV_VERSION= 3.4.8 CATEGORIES= graphics devel MASTER_SITES= ${MASTER_SITE_GITHUB:=opencv/} @@ -16,21 +16,21 @@ USE_CMAKE= yes USE_LANGUAGES= c c++11 USE_PKGLOCALEDIR= yes USE_TOOLS+= gmake pkg-config - CONFIGURE_DIRS+= build -CMAKE_ARG_PATH= ${WRKSRC} +CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} +CMAKE_ARG_PATH= ${WRKSRC} CMAKE_ARGS+= -DBUILD_PROTOBUF=OFF CMAKE_ARGS+= -DCV_ENABLE_INTRINSICS=OFF # XXX: problematic +CMAKE_ARGS+= -DENABLE_CCACHE=OFF CMAKE_ARGS+= -DOPENCV_GENERATE_SETUPVARS=OFF CMAKE_ARGS+= -DPROTOBUF_UPDATE_FILES=ON -CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN} CMAKE_ARGS+= -DWITH_EIGEN=OFF CMAKE_ARGS+= -DZLIB_ROOT=${BUILDLINK_PREFIX.zlib} CMAKE_ARGS.SunOS+= -DENABLE_PRECOMPILED_HEADERS=OFF CMAKE_ARGS.SunOS+= -DOPENCV_PYTHON_SKIP_LINKER_EXCLUDE_LIBS=ON -CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} +PYTHON_VERSIONS_INCOMPATIBLE= 27 # avoid Python 2.7 pre-configure: ${MKDIR} ${WRKSRC}/build diff --git a/graphics/opencv/PLIST b/graphics/opencv/PLIST index 26998597216..88e83413809 100644 --- a/graphics/opencv/PLIST +++ b/graphics/opencv/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.20 2019/04/24 19:34:44 adam Exp $ +@comment $NetBSD: PLIST,v 1.21 2019/12/16 08:24:39 adam Exp $ bin/opencv_annotation bin/opencv_createsamples bin/opencv_interactive-calibration @@ -21,6 +21,7 @@ include/opencv2/calib3d/calib3d.hpp include/opencv2/calib3d/calib3d_c.h include/opencv2/core.hpp include/opencv2/core/affine.hpp +include/opencv2/core/async.hpp include/opencv2/core/base.hpp include/opencv2/core/bindings_utils.hpp include/opencv2/core/bufferpool.hpp @@ -66,6 +67,8 @@ include/opencv2/core/cv_cpu_helper.h include/opencv2/core/cvdef.h include/opencv2/core/cvstd.hpp include/opencv2/core/cvstd.inl.hpp +include/opencv2/core/detail/async_promise.hpp +include/opencv2/core/detail/exception_ptr.hpp include/opencv2/core/directx.hpp include/opencv2/core/eigen.hpp include/opencv2/core/fast_math.hpp @@ -73,12 +76,16 @@ include/opencv2/core/hal/hal.hpp include/opencv2/core/hal/interface.h include/opencv2/core/hal/intrin.hpp include/opencv2/core/hal/intrin_avx.hpp +include/opencv2/core/hal/intrin_avx512.hpp include/opencv2/core/hal/intrin_cpp.hpp include/opencv2/core/hal/intrin_forward.hpp +include/opencv2/core/hal/intrin_msa.hpp include/opencv2/core/hal/intrin_neon.hpp include/opencv2/core/hal/intrin_sse.hpp include/opencv2/core/hal/intrin_sse_em.hpp include/opencv2/core/hal/intrin_vsx.hpp +include/opencv2/core/hal/intrin_wasm.hpp +include/opencv2/core/hal/msa_macros.h include/opencv2/core/ippasync.hpp include/opencv2/core/mat.hpp include/opencv2/core/mat.inl.hpp @@ -111,12 +118,15 @@ include/opencv2/core/ovx.hpp include/opencv2/core/persistence.hpp include/opencv2/core/ptr.inl.hpp include/opencv2/core/saturate.hpp +include/opencv2/core/simd_intrinsics.hpp include/opencv2/core/softfloat.hpp include/opencv2/core/sse_utils.hpp include/opencv2/core/traits.hpp include/opencv2/core/types.hpp include/opencv2/core/types_c.h include/opencv2/core/utility.hpp +include/opencv2/core/utils/allocator_stats.hpp +include/opencv2/core/utils/allocator_stats.impl.hpp include/opencv2/core/utils/filesystem.hpp include/opencv2/core/utils/logger.defines.hpp include/opencv2/core/utils/logger.hpp @@ -335,5 +345,5 @@ share/OpenCV/lbpcascades/lbpcascade_profileface.xml share/OpenCV/lbpcascades/lbpcascade_silverware.xml share/OpenCV/valgrind.supp share/OpenCV/valgrind_3rdparty.supp -@pkgdir share/doc/opencv/ref/pics @pkgdir share/doc/opencv/papers +@pkgdir share/doc/opencv/ref/pics diff --git a/graphics/opencv/distinfo b/graphics/opencv/distinfo index ad8443367cb..2e6ed597073 100644 --- a/graphics/opencv/distinfo +++ b/graphics/opencv/distinfo @@ -1,18 +1,18 @@ -$NetBSD: distinfo,v 1.42 2019/04/29 06:59:17 wiz Exp $ +$NetBSD: distinfo,v 1.43 2019/12/16 08:24:39 adam Exp $ -SHA1 (opencv-3.4.6.tar.gz) = c445fe9f0a07a95837d2f39c0637da71158129c5 -RMD160 (opencv-3.4.6.tar.gz) = 9fba797c535a7c4366cbf8018ee61ccd396b6c51 -SHA512 (opencv-3.4.6.tar.gz) = 86870788cbe36062b8fdb359d516714df887b0bb894d82bc65d33f7c5e8435371908cf21cee57137a60334187c74f4dabd358a20e9f13bbb36308acec51260cc -Size (opencv-3.4.6.tar.gz) = 88174475 bytes +SHA1 (opencv-3.4.8.tar.gz) = ae032936ddbfecca7fbe6cd307d942604f26d403 +RMD160 (opencv-3.4.8.tar.gz) = 40652271f410d9d48904a7df428465296f71d874 +SHA512 (opencv-3.4.8.tar.gz) = 6c2dfa88e9a93747397f80e6a3dd7eed126bc14efe6c0ec5b064d10bc49f24fc6fb187029f3ac6f5d9f5c16465b96ba55e5d5cacc3584dce69e10567df423ccb +Size (opencv-3.4.8.tar.gz) = 87343996 bytes SHA1 (patch-3rdparty_ippicv_ippicv.cmake) = 14ce5de382084793ace32f43c6dfaf01f7ffb390 SHA1 (patch-3rdparty_protobuf_src_google_protobuf_message__lite.cc) = f1b77384ea8110d2bf3a30ff3fe9f2fa39608caf -SHA1 (patch-CMakeLists.txt) = d7b434783aca4d0999c6d888eb8e160142a3aa1b +SHA1 (patch-CMakeLists.txt) = 43fac541d6445186e335cb74c95d9e1c05749edd SHA1 (patch-cmake_OpenCVDetectCXXCompiler.cmake) = 221b0551d0f29d7e79afe3da8a33b1b3a4f7bf20 +SHA1 (patch-cmake_OpenCVDetectPython.cmake) = 4f3bfe574edf083ebc7e78d347355c58461b2c6b SHA1 (patch-modules_core_include_opencv2_core_types_c.h) = 75444e65677be99af8167f9060419d7970a7adaa SHA1 (patch-modules_core_src_downhill__simplex.cpp) = 1ad7c2fa126d15050b87785e8eec20dbe796b471 SHA1 (patch-modules_core_src_system.cpp) = 3b7ac545585a430d28c7077f360357079f127580 SHA1 (patch-modules_dnn_test__precomp.hpp) = 9bf15d32394f36b92e5fc5d57fd576b3860233ae SHA1 (patch-modules_flann_include_opencv2_flann_defines.h) = ab848e67c4e03219670598ac2d21071a617a5c33 -SHA1 (patch-modules_highgui_src_window__cocoa.mm) = 03a35cdbb32f40f7a234c406ddf0e4991873ae37 SHA1 (patch-modules_ts_src_ts.cpp) = b9a3992014b02dbd89d46375a2476385e91dc24c -SHA1 (patch-modules_videoio_src_cap__v4l.cpp) = 20e572d04a15b08180ad7d6671ab3d124b73b748 +SHA1 (patch-modules_videoio_src_cap__v4l.cpp) = 8e935a6d8128aaf536a9a431dc8b8a7ea58ae43d diff --git a/graphics/opencv/patches/patch-CMakeLists.txt b/graphics/opencv/patches/patch-CMakeLists.txt index b6c7af528c3..fd46cd9033c 100644 --- a/graphics/opencv/patches/patch-CMakeLists.txt +++ b/graphics/opencv/patches/patch-CMakeLists.txt @@ -1,10 +1,10 @@ -$NetBSD: patch-CMakeLists.txt,v 1.7 2019/04/24 19:34:45 adam Exp $ +$NetBSD: patch-CMakeLists.txt,v 1.8 2019/12/16 08:24:39 adam Exp $ Do not build third party libraries on Darwin. ---- CMakeLists.txt.orig 2019-04-24 11:18:07.000000000 +0000 +--- CMakeLists.txt.orig 2019-10-09 11:42:29.000000000 +0000 +++ CMakeLists.txt -@@ -211,13 +211,13 @@ OCV_OPTION(OPENCV_ENABLE_NONFREE "Enable +@@ -201,13 +201,13 @@ OCV_OPTION(OPENCV_ENABLE_NONFREE "Enable # 3rd party libs OCV_OPTION(OPENCV_FORCE_3RDPARTY_BUILD "Force using 3rdparty code from source" OFF) @@ -24,4 +24,4 @@ Do not build third party libraries on Darwin. +OCV_OPTION(BUILD_WEBP "Build WebP from source" (((WIN32 OR ANDROID) AND NOT WINRT) OR OPENCV_FORCE_3RDPARTY_BUILD) ) OCV_OPTION(BUILD_TBB "Download and build TBB from source" (ANDROID OR OPENCV_FORCE_3RDPARTY_BUILD) ) OCV_OPTION(BUILD_IPP_IW "Build IPP IW from source" (NOT MINGW OR OPENCV_FORCE_3RDPARTY_BUILD) IF (X86_64 OR X86) AND NOT WINRT ) - OCV_OPTION(BUILD_ITT "Build Intel ITT from source" (NOT MINGW OR OPENCV_FORCE_3RDPARTY_BUILD) IF (X86_64 OR X86) AND NOT WINRT AND NOT APPLE_FRAMEWORK ) + OCV_OPTION(BUILD_ITT "Build Intel ITT from source" diff --git a/graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake b/graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake new file mode 100644 index 00000000000..c867789fedb --- /dev/null +++ b/graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake @@ -0,0 +1,20 @@ +$NetBSD: patch-cmake_OpenCVDetectPython.cmake,v 1.1 2019/12/16 08:24:39 adam Exp $ + +Do not look for Python 2.x. + +--- cmake/OpenCVDetectPython.cmake.orig 2019-12-16 06:04:25.000000000 +0000 ++++ cmake/OpenCVDetectPython.cmake +@@ -268,13 +268,6 @@ if(OPENCV_PYTHON_SKIP_DETECTION) + return() + endif() + +-find_python("" "${MIN_VER_PYTHON2}" PYTHON2_LIBRARY PYTHON2_INCLUDE_DIR +- PYTHON2INTERP_FOUND PYTHON2_EXECUTABLE PYTHON2_VERSION_STRING +- PYTHON2_VERSION_MAJOR PYTHON2_VERSION_MINOR PYTHON2LIBS_FOUND +- PYTHON2LIBS_VERSION_STRING PYTHON2_LIBRARIES PYTHON2_LIBRARY +- PYTHON2_DEBUG_LIBRARIES PYTHON2_LIBRARY_DEBUG PYTHON2_INCLUDE_PATH +- PYTHON2_INCLUDE_DIR PYTHON2_INCLUDE_DIR2 PYTHON2_PACKAGES_PATH +- PYTHON2_NUMPY_INCLUDE_DIRS PYTHON2_NUMPY_VERSION) + + option(OPENCV_PYTHON3_VERSION "Python3 version" "") + find_python("${OPENCV_PYTHON3_VERSION}" "${MIN_VER_PYTHON3}" PYTHON3_LIBRARY PYTHON3_INCLUDE_DIR diff --git a/graphics/opencv/patches/patch-modules_highgui_src_window__cocoa.mm b/graphics/opencv/patches/patch-modules_highgui_src_window__cocoa.mm deleted file mode 100644 index 5605452d4a7..00000000000 --- a/graphics/opencv/patches/patch-modules_highgui_src_window__cocoa.mm +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-modules_highgui_src_window__cocoa.mm,v 1.1 2019/04/24 19:34:45 adam Exp $ - -Explicitly cast int to double. - ---- modules/highgui/src/window_cocoa.mm.orig 2019-04-24 11:04:32.000000000 +0000 -+++ modules/highgui/src/window_cocoa.mm -@@ -266,7 +266,7 @@ CV_IMPL void cvResizeWindow( const char* - CVWindow *window = cvGetWindow(name); - if(window && ![window autosize]) { - height += [window contentView].sliderHeight; -- NSSize size = { width, height }; -+ NSSize size = { double(width), double(height) }; - [window setContentSize:size]; - } - [localpool drain]; diff --git a/graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp b/graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp index c5d73ae28a5..d577efaa342 100644 --- a/graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp +++ b/graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp @@ -1,8 +1,8 @@ -$NetBSD: patch-modules_videoio_src_cap__v4l.cpp,v 1.5 2019/04/24 19:34:45 adam Exp $ +$NetBSD: patch-modules_videoio_src_cap__v4l.cpp,v 1.6 2019/12/16 08:24:39 adam Exp $ Conditionalize settings not available in NetBSD's v4l2 emulation. ---- modules/videoio/src/cap_v4l.cpp.orig 2019-04-06 21:43:23.000000000 +0000 +--- modules/videoio/src/cap_v4l.cpp.orig 2019-10-09 11:42:29.000000000 +0000 +++ modules/videoio/src/cap_v4l.cpp @@ -218,6 +218,7 @@ make & enjoy! #include <fcntl.h> @@ -12,7 +12,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. #include <sys/types.h> #include <sys/mman.h> -@@ -239,17 +240,21 @@ make & enjoy! +@@ -239,24 +240,30 @@ make & enjoy! #endif // https://github.com/opencv/opencv/issues/13335 @@ -32,9 +32,18 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. #endif +#endif - /* Defaults - If your board can do better, set it here. Set for the most common type inputs. */ - #define DEFAULT_V4L_WIDTH 640 -@@ -482,13 +487,17 @@ bool CvCaptureCAM_V4L::autosetup_capture + #ifndef V4L2_CID_ROTATE + #define V4L2_CID_ROTATE (V4L2_CID_BASE+34) + #endif ++#ifdef V4L2_CID_CAMERA_CLASS_BASE + #ifndef V4L2_CID_IRIS_ABSOLUTE + #define V4L2_CID_IRIS_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+17) + #endif ++#endif + + #ifndef V4L2_PIX_FMT_Y10 + #define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ') +@@ -493,13 +500,17 @@ bool CvCaptureCAM_V4L::autosetup_capture V4L2_PIX_FMT_NV12, V4L2_PIX_FMT_NV21, V4L2_PIX_FMT_SBGGR8, @@ -49,10 +58,10 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. +#ifdef V4L2_PIX_FMT_Y16 V4L2_PIX_FMT_Y16, +#endif - V4L2_PIX_FMT_GREY + V4L2_PIX_FMT_Y10, + V4L2_PIX_FMT_GREY, }; - -@@ -533,9 +542,13 @@ bool CvCaptureCAM_V4L::convertableToRgb( +@@ -545,9 +556,13 @@ bool CvCaptureCAM_V4L::convertableToRgb( case V4L2_PIX_FMT_UYVY: case V4L2_PIX_FMT_SBGGR8: case V4L2_PIX_FMT_SN9C10X: @@ -63,22 +72,20 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. +#ifdef V4L2_PIX_FMT_Y16 case V4L2_PIX_FMT_Y16: +#endif + case V4L2_PIX_FMT_Y10: case V4L2_PIX_FMT_GREY: case V4L2_PIX_FMT_BGR24: - return true; -@@ -569,9 +582,11 @@ void CvCaptureCAM_V4L::v4l2_create_frame +@@ -582,7 +597,9 @@ void CvCaptureCAM_V4L::v4l2_create_frame channels = 1; size.height = size.height * 3 / 2; // "1.5" channels break; +#ifdef V4L2_PIX_FMT_Y16 case V4L2_PIX_FMT_Y16: ++#endif + case V4L2_PIX_FMT_Y10: depth = IPL_DEPTH_16U; /* fallthru */ -+#endif - case V4L2_PIX_FMT_GREY: - channels = 1; - break; -@@ -1395,11 +1410,13 @@ void CvCaptureCAM_V4L::convertToRgb(cons +@@ -1408,11 +1425,13 @@ void CvCaptureCAM_V4L::convertToRgb(cons (unsigned char*)buffers[MAX_V4L_BUFFERS].start, (unsigned char*)frame.imageData); return; @@ -92,7 +99,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. default: break; } -@@ -1437,6 +1454,7 @@ void CvCaptureCAM_V4L::convertToRgb(cons +@@ -1450,6 +1469,7 @@ void CvCaptureCAM_V4L::convertToRgb(cons case V4L2_PIX_FMT_RGB24: cv::cvtColor(cv::Mat(imageSize, CV_8UC3, currentBuffer.start), destination, COLOR_RGB2BGR); return; @@ -100,7 +107,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. case V4L2_PIX_FMT_Y16: { cv::Mat temp(imageSize, CV_8UC1, buffers[MAX_V4L_BUFFERS].start); -@@ -1444,6 +1462,7 @@ void CvCaptureCAM_V4L::convertToRgb(cons +@@ -1464,6 +1484,7 @@ void CvCaptureCAM_V4L::convertToRgb(cons cv::cvtColor(temp, destination, COLOR_GRAY2BGR); return; } @@ -108,7 +115,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. case V4L2_PIX_FMT_GREY: cv::cvtColor(cv::Mat(imageSize, CV_8UC1, currentBuffer.start), destination, COLOR_GRAY2BGR); break; -@@ -1556,8 +1575,10 @@ static inline int capPropertyToV4L2(int +@@ -1576,8 +1597,10 @@ static inline int capPropertyToV4L2(int return -1; case cv::CAP_PROP_FOURCC: return -1; @@ -119,7 +126,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. case cv::CAP_PROP_FORMAT: return -1; case cv::CAP_PROP_MODE: -@@ -1572,8 +1593,10 @@ static inline int capPropertyToV4L2(int +@@ -1592,8 +1615,10 @@ static inline int capPropertyToV4L2(int return V4L2_CID_HUE; case cv::CAP_PROP_GAIN: return V4L2_CID_GAIN; @@ -130,7 +137,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. case cv::CAP_PROP_CONVERT_RGB: return -1; case cv::CAP_PROP_WHITE_BALANCE_BLUE_U: -@@ -1584,8 +1607,10 @@ static inline int capPropertyToV4L2(int +@@ -1604,8 +1629,10 @@ static inline int capPropertyToV4L2(int return -1; case cv::CAP_PROP_SHARPNESS: return V4L2_CID_SHARPNESS; @@ -141,7 +148,7 @@ Conditionalize settings not available in NetBSD's v4l2 emulation. case cv::CAP_PROP_GAMMA: return V4L2_CID_GAMMA; case cv::CAP_PROP_TEMPERATURE: -@@ -1596,34 +1621,54 @@ static inline int capPropertyToV4L2(int +@@ -1616,34 +1643,54 @@ static inline int capPropertyToV4L2(int return -1; case cv::CAP_PROP_WHITE_BALANCE_RED_V: return V4L2_CID_RED_BALANCE; |