Up to [cvs.NetBSD.org] / pkgsrc / graphics / opencv
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
opencv: updated to 4.14.0 4.14.0 Core module: Fixed copyTo on empty fixed-type matrices Improved precision of RotatedRect::points Fixed UB in cv::error when breakOnError set to true Fixed cv::mul overflow for U16 type Revert "Disable IPP with AVX512 in cv::compare because of performance regression" Fixed UBSan function pointer type mismatch in countNonZero Fixed heap-buffer-overflow in YAML parseKey for empty keys Optimized flip Horizontal Added AVX VNNI support Fixed meanStdDev on Windows for ARM Added NEON implementation for rotate function Fixed inplace transpose race by enforcing LLSS ordering via local barrier in OpenCL Fixed incorrect results for in-place flip on strict OpenCL implementations Added platform-specific SIMD for cv::reduce REDUCE_SUM Implemented safe handling of compressed file level extension (.gz[0-9]) Extended AutoBuffer to mimic std::vector Fixed signed overflow UB in Point/Point3i::dot() Added SIMD intrinsics support for norm_mask function Add ARMPL support for DFT Function Implemented OpenCL kernel for UMat::diag to avoid aliasing races Optimized norm with RVV HAL Deprecateed MatCommaInitializer_ Fixed v_matmul/v_matmuladd scalable semantics and expand lane-group test coverage Siwtched to better Durand-Kerner initialization in solvePoly Fixed numerical instability and out-of-bounds store in VBLAS SIMD Added convertScale data type conversions to RVV HAL Fixed inverted continuity check in cvReshapeMatND() Fixed memory leak in OpenCL extensions gathering Added check to reject nd-matrix dim count above CV_MAX_DIM in FileStorage read Moved IPP math functions from core module to HAL parallelize sort_ using parallel_for_ Fixed potential stack overflow in FileStorage Vectorizeed meanStdDev FileStorage reads integers above INT_MAX into float/double without truncation Optimized minMaxIdx/minMaxLoc Added fast-path transposeND for identity and 2D transpose orders Migrateed MomentsInTile_SIMD to universal:scalable intrinsics Fixed Unicode temp path handling on Windows Vectorized cv::reduce Enabled ipp calls for sort and sortIdx Fixed use-after-scope when Mat::mul() is given a scalar Optimized countNonZero Enabled AVX-512 dispatch for sum SIMD optimizations for norm, distance and Hamming APIs Optimized gemm implementation with Universal SIMD
opencv*: update to 4.13
New Year update for OpenCV 4.x has been released.
Core module:
Modified Input/OutputArray methods to handle 'std::vector' or 'std::vector<std::vector>' in more accurate way #28242
Made cuda::GpuMatND compatible with InputArray/OutputArray #23913
Forced output type for empty matrices where it's defined in API #27972
Added std::vector length check Input/OutputArray #27817
Added 16-bit LUT and corresponding HAL entrypoint #27890, #27911
Add cv::Mat::copyAt for for ROI operation #27318
Extended JSON support in cv::FileStorage: null parsing #27579 and
Added support parsing null in JSON parser in cv::FileStorage #27579 and back slash "" support #27587
Fixed cv::solveCubic numerical instability via coefficient normalization #28117
Fixed tempfile race condition on Windows #28087
Restore parallel framework name on failure attempt #27802
Dropped OPENCV_FOR_OPENMP_DYNAMIC_DISABLE environment variable in favor of standard OMP_DYNAMIC #28122
Enabled fp16 conversions, but disabled NEON FP16 arithmetics on Windows for ARM #27897
Fixed dot product accumulation causing NORM test failures on Windows ARM64 #28211
Added several performance optimizations for Windows on ARM: #27575, #27596
Fixed missing vec_cvfo on IBM POWER9 due to unavailable VSX float64 conversion #27990
Fix in-place flip in HAL for RISC-V RVV #28180
Added inRange HAL entry point #27854
Disabled IPP with AVX512 in cv::compare because of performance regression #28311
Imgproc module:
Added Iterative Phase Correlation #28146, paper
Added cv::minEnclosingConvexPolygon #27369
Improved near-zero convexity handling in cv::convexHull #28043
Kept cv::convexHull output indices monotone if possible #28163
Fixed overflow in connected components #27582
Corrected cv::minAreaRect to follow documentation (force angle to range [-90, 0)) #28051
Increased minAreaRect accuracy with doubles #28149
Added cv::CLAHE::BitShift option #28014
Fixed cv::minEnclosingCircle #27904, #27914
Fixed standard cv::HoughLines output shift for rho. #27992
Fixed LINE_4/LINE_8 swap in cv::drawContours #28088
Fixed bug in approxPolyDP: calculate distance to a segment, not to a line #28119
Various performance optimizations for Gaussian Blur, including AVX512 #27795 and blur #27822, bilateralFilter #27433.
Added CV_SIMD_SCALABLE branch to pointSetBoundingRect #27479
Added Canny, Scharr and Sobel for riscv-rvv hal #27378
Optimized ThickLine() for distant points #27366
Fixed heap-buffer-overflow in stackBlur #28233 #28250
Fixed the out-of-bounds read in cv::bilateralFilter for 32f images #28259
Fixed memory leak in ipp_warp function #27532
Set limitation to IPP Bilateral Filter tiles number to avoid too small tiles #27720
Fixed incorrect implementation of multi-threaded call for warp perspective in IPP HAL #27903
Added stateless HAL for filters and morphology #28208
Imgcodecs module:
Extended metadata support in Jpeg (ICCP and XMP) #27583, PNG and WebP #27503, cICP field in PNG #27741, AVIF (XMP) #27506, #28072.
Added OpenEXR multispectral read/write support #27485
Added strict validation for encoding parameters #27621, #27769
Relaxed decoding size limit to over 1 GiB for several formats #27811, #27976
Added IMWRITE_PNG_ZLIBBUFFER_SIZE option support for PNG #27551, #27615
Fixed memory leak in WebP backend #27849
Added workaround for image flipping bug in older GDAL FITS drivers #27919
Added support for 32bpp BMP with BI_BITFIELDS #27559
Fixed several overflow and out-of-bound access issues in BMP #28040, #27847
Fixed potential crashes in PNG found by fuzzer. Namely 429429085, 429645379, 430091585 #27529
Fixed several potential overflows and error handling mistakes in PNG #28249, #28196, 27750
Fixed alpha handling for blending in PNG format #27981
Set matrixCoefficients to UNSPECIFIED for monochrome images in AVIF #28065
Added safety checks for AVIF decoder and encoder #28200
VideoIO module:
Added option to open camera device by index through FFmpeg #27841, Added FFmpeg 8.0 support #27691, #27746
Extended Orbbec SDK support: added timestamps #27610, options for custom fps and resolution #27629, camera distortion coefficients as API #27663
Extended Aravis SDK support: allowed system-wide installation of SDK #28090, set default pixel format for cameras with unsupported format #28086
Added macOS support for Orbbec Gemini330 camera #27930
Fixed frame seeking with negative DTS values in FFMPEG backend #27878
Fixed CvCapture_FFMPEG::setProperty(CAP_PROP_POS_*) followed by getProperty #27523
Added Raspberry Pi 4 and 5 V4L2 Stateless HEVC Hardware Acceleration with FFmpeg #27453
Optimized FFmpeg VideoCapture with swscale threads option #27755
Fix return code from CvVideoWriter_FFMPEG::writeFrame() when encapsulating ##27737
Added OPENCV_FFMPEG_SKIP_LOG_CALLBACK to preserve custom FFmpeg logging #27864
Get code to compile without FFMPEG's libavdevice #27948
catch _com_error exceptions to suppress debugger flooding #28073
Fixed picture_sw object leak in ffmpeg backend with hardware codecs. #28283
videoio(dshow): Fix incorrect mapping for White Balance Temperature (CAP_PROP_WB_TEMPERATURE) property #28202
Fixes a crash on iOS when calling VideoWriter::release() in OpenCV 4.12.0 #28173.
Features2D module:
Fixed ORB inconsistency for masks with values differs from 255 #26366
Fixed pointer arithmetic in BRISK corner traversal #28091
Added heuristic to allocate buffer for FAST features depending on input image resolution #27657
Optimized AGAST for Windows on ARM #27776
Added FAST to RISC-V RVV HAL #27391
Objdetect module:
Added pixel-based confidence in ArUco marker detection #23190
Improved multiple QR codes detection with QRCodeDetector::detectAndDecodeMulti #27787
Fixed to prevent QR code decoding from throwing on degenerate source points #27837
Fix QRCodeDetector::detectAndDecode crash in case of inconsistent detection #27877
Remove floating point arithmetic from angle computation in QR codes #28157
Speedup ChArUco by avoiding temporary copies #27820
Fixed stack-use-after-scope errors in charuco detector #28285
Used fast-path with INTER_LINEAR resize when ALGO_HINT_APPROX is used in HOG 27706
DNN module:
Added more layers support: ONNX randomNormalLike #28164, TFLite Minimum #28248, Maximum #28171
Allowed protobuffer message to be compiled with LITE_RUNTIME #27960
Fixed ONNX Convolution node parsing when kernel size is implicit #28282
Fixed Windograd flag handling in convolution layer #28000
Added NEON intrinsics implementation of fastGEMM1T function #27785
Add SVE optimized fastGEMM1T function and SVE dispatch #28055
Fixed heap-buffer-overflow in DNN NaryEltwiseLayer #28272
Improved performance of softmax_3d with loop unrolling #27777
Calib3d module:
Added estimateTranslation2D() #27950
Replaced Gao P3P with Ding P3P algorithm #27736
Added QR decomposition option to stereoCalibrate #27920
Improved fisheye::undistortPoints convergence #27993
Fixed invalid memory access in USAC #27865
Fixed out of bounds in calibrateAndNormalizePointsPnP #28009
Stitching module:
Fixed multiband blender memory leak 27333 #28085
Pass warp parameters by value to avoid CUDA constant races #28118
Optimized fast.cpp on Windows ARM with loop unrolling #27642
HighGUI module:
Fixed linking for HighGUI against Qt 6.9 and newer #27908
Fixed Qt HighGUI lifecycle issue when external QApplication exists #28312
Fixed memory leak in CvWindow Qt back-end #28102
G-API module:
Added G-API custom stream sources in Python #27276
Implemented cfgEnsureNamedTensors option to OpenVINO Params #27549
Implemented cfgClampOutputs option to OpenVINO Params #27600
Renamed WorkloadType::notify() -> WorkloadType::set() #28299
Added support to set workload type dynamically in both OpenVINO and ONNX OVEP #27460
Fixed null pointer dereference in G-API stateful kernels #28137
Updated deprecated ov::element::undefined #28127
Video module:
Added multichannel support for findTransformECC and computeECC #27524
Add optional template mask for findTransformECC #27952
Added optional Known Foreground Mask for Background Subtractors #27810
Add setCoarsestScale to DISOpticalFlow #28217
Fixed potential pointer overflow in Farnback optical flow #28226
ML module:
Fixed ml::KDTree::findNearest #27915
Photo module:
Added 16U and 32F support in merge functions in photo module #28168
JavaScript bindings:
Added option to wrap opencv_contrib into JS too #27828
Fixed string property bindings in JS generator #27726
Update helpers.js to include .delete #27613
Added deep copy behavior for Mat.clone() #28216
Removed deprecated DEMANGLE_SUPPORT option
Tuned CONV_NR_FP32 size for WASM #27773
Added large scalar kernel for fastconv #27723
Fixed generation when returned class and function are in a namespace #27963
Fixed JS bindings for namespaced Ptr factory return types #28143
Python bindings:
Tuned Python bindings for logging #27812
Marked Feature2D.detectAndCompute mask as optional in Python type stubs #27544
Marked distCoeffs/R/D as optional in calib3d functions #27564
Added DLPACK support #27581, #27861
Fixed memory leaks in pybindings #27738
Add PathLike type hints for args annotated with CV_WRAP_FILE_PATH #27767
Fixed memory leak in pyopencv_to for path-like objects #28047
Tunned Python bindings: use export_name as resolved typename for AliasTypeNode #27997
python: fix pytest-cov false warnings by using compile() with full file path in exec_file_wrapper #28093
Fixed python scalar typing issues #27620
Fixed bug in ifdef state machine in header parser for bindings #27393
Wrap GridType field in cv::findCirclesGrid parameters structure #27689
Java bindings:
Introduced option to generate Java code with new Cleaners interface or old finalize() #28159
Enabled Java wrapper generation for Vec4i #27567
Added Java wrapper support for List<List> #27705, #27708
Applications and Tools:
Improved interactive calibration tool: added option to select camera backend #27546, extended calibration flags #27574, Improved preview for grayscale cameras #27628.
Aligned calibration tools and samples output fields to make them reusable in further steps #27872
Used calibration board imperfectness correction only for the cases where it's applicable #27571
Added option to define Aruco index offset in pattern generator #27799
Moved pattern generator to apps and rewrote tutorial #27833
Fix charuco_board_pattern in generate_pattern.py #27876
Updated Tutorial PSNR for identical images #27859
Build:
Integrated KleidiCV version 0.7 with Mac and Linux support (enabled by default) #28220, #27640, #27607.
Integrated IPP ICV with AWX512 support.
Fixed issues identified by PVS Studio #28167, #28185, #28198
Added support MS Visual Studio 2026 support #28013
Added CUDA 13.0 support #27636, #27668, #27537. Fixed compatibility issues with modern CUDA: #27522, #27734, #27889, #27949
Fixed OpenBLAS detection #27778, #28052
Added reproducible builds support by making host system version optional #27979
Fixed build issue with some old GCC versions #27569
Fixed unicode tracing symbols with QT #28128
Fixed eigen diagnostics for versions after v3.4.0 #27536
Added CMake define option to enforce IPP calls in IPP HAL #27925
opencv: force gnu++17 for alloca()
opencv*: update to 4.12.0
Summer update for OpenCV 4.x
Core Module:
Added user-defined logger callback #27154
Added reinterpret() method to cv::Mat #25394
Fixed empty ND-array construction #27362
Fixed bug with int64 support for FileStorage #26846
Fixed cv::meanStdDev overflow for large images #26867
Useed HAL for cv::mean function too #26895
Vectorized cv::normalize / cv::norm #26885
Enabled SIMD_SCALABLE for exp and sqrt #26886
vectorized normDiff with universal intrinsics #27042
Refactored normDiff in hal_rvv and extended with support of more data types #27115
Further vectorized copyTo with mask #27145
Fix POWN OpenCL implementation #27274
Restored legacy universal intrinsics operators in a separate header #27327
Improved solveCubuc accuracy: #27331, #27347
Deprecated copyData Parameter in cv::UMat construction from std::vector and always copy data #27408
Imgproc Module:
Optimized and reduced memory consumption in cv::findContours #26690, #26834
Fixed integer overflow in cv::HoughLinesProbabilistic with very large input images #26744
Fixed several potential overflows in image warping #26765, #26776
Improved robustness for ellipse fitting #26773
Added cv::THRESH_DRYRUN flag to get adaptive threshold values without input thresholding #26836
Fixed cv::getPerspectiveTransform for singular case #26926
Optimized bayer2Gray with universal intrinsics #26868
Added optional mask to cv::threshold #26842
Accelerated cv::remap calculation with multi-threading, when cv::WARP_INVERSE_MAP is used #27108
Reworked HSV color conversion tables initialization in OpenCL branch to fix possible data raise #27287
Fixed bilateral filter's sigma color and sigma space issue #27309
Impoved performance of medianblur #27299
Added cv::getClosestEllipsePoints function to get the closest point on an ellipse #26299
Corrected IPP implementation for cv::distanceTransform results with single thread #27432
Fixed cv::matchTemplate with mask crash #26703
Added diamond structuring element to morphology operations #27441, #27492
Improved cv::intersectConvexConvex accuracy in corner cases #26974
Calib3d module:
Fixed inliers updating in homography estimation #26742
Added cv::solvePnPRansac implementation for the fisheye camera model #26669
Fixed different marker ordering with cv::findChessboardCornersSBWithMeta and cv::CALIB_CB_LARGER flag.
Fixed logical mistake in FilterSpecklesImpl #26996
Optimized undistort points for the fisheye camera model #26988
Optimized new camera matrix estimation and some related functions #27001
Added warning if projected axes are out of camera frame in cv::drawAxes function #27311
Added image dimension check to avoid StereoSGBM non-determinism #27305
Fixed bugs in SQPNP orthogonalization and simplified column vectors copying #27437
DNN Module:
Added TFLite StridedSllice (without strides but just Slice) and enable strides for TF importers #27273
Added fusion handler of conv+eltwise in case of multi-output node (i.e. Split) #27326
Added new ops import in TFLite parser: SUB, SQRT, DIV, NEG, SQUARED_DIFFERENCE, SUM #27307
Fxied scalars and 1d tensors support in TFLite parser #27307
Reduced mumber of NHWC<->NCHW conversions in TFLite parser #27307
Added checks before getting latest pin in Net::Impl::getLatestLayerPin #27353
Added OpenVINO NPU support #27363
Added more operations to CANN backend #24756
Objdetect module:
Extend ArUcoDetector to run multiple dictionaries in an efficient manner #26934.
Fixed rotated aruco marker board generation #26753
Fixed incorrect Aruco marker detection near image edge #26968
Fixed invalid vector access in QR de/encoder #26532
Fix QR code encoder with auto version #27244
Aded QRCode ECI encoding support #24426, #27486
Made ChAruco board consistency check optional #26824
Photo Module:
Added 16-bit support to cv::fastNlMeansDenoising and updated tests #26831
Local decolor pipeline optimization #27041
Fixed Triangle Weights used by Debevec algorithm being non zero at extremes #27270
Fixed NaNs in HDR Triangle Weights and Tonemapping and Update LDR Ground Truth in tutorial #27396
VideoIO Module:
Fixed invalid custom FFmpeg options handling provided with environment variable #26793
Fixed default cv::CAP_PROP_ORIENTATION_ATUO behaviour #26800
Improved camera opening performance when with DShow backed, if custom options are provided #26601
Added zoom support into Android native camera capture #26837
Fixed V4L frame size for non-BGR output #27193
Added Orbbec Gemini 330 camera support #27230
Fixed cv::VideoWriter failure on writing colorless images #27153
Fixed Android setCameraIndex issue #27419
Imgcodecs:
Extended image I/O API with metadata support #27499
Added in-memory animation encoding and decoding #27013
Added hidden frame support for Animated PNG #27127
Added GIF decode and encode for imgcodecs #25691, #26971, #26859, #26738, #26930, #27081, #27138, #27296
Added animated WebP Support #25608, #27457
Added GDAL multi-channel support #27458
Fixed AVIF linkage on Windows #26762
Significantly improved PNG and Animated PNG files handing #26849, #26739, #26748, #26782, #26832, #26835, #26848, #26851, #26854, #26915, #27040, #27087, #27297
Added several fixes for libspng integration #27314
Fixed memory leak in JpegXL decoder #26787
Added support for cv::IMREAD_UNCHANGED and other ImreadFlags into JpegXL implementation #26788
Implemented imdecode() for JpegXL to directly read from memory #26844
Added lossless compression support for JpegXL #27384
Fixed cv::imread() implementation for 16-bit png with libspng back-end #27113
Highgui Module:
displayOverlay doesn't disappear after timeout #27082
Fix closing of windows when using the Qt backend #27170
Fixed QT window resize regression #27282
G-API module:
Workaround for successfull append of OpenVINO Execution Provider: Moved creation of 'Ort::Env' before it #26983
Adding AddRgbFeature(), and improving robustness in ComputeRgbDistance #26682
Added MS Media Foundation availability check in G-API too #27355
Video Module:
Added trackers factory with pre-loaded dnn models #26875
HAL:
Extracted HAL implementations as dedicated folder #27252.
Implemented new HAL for RISC-V RVV 1.0 platforms, see all changes by query
Refactored OpenVX implementation as HAL #26903, #26911, #26907.
Partially refactored Intel IPP integration as HAL #26880, #27125, #27128, #27194, #27213, #27346. Further IPP conversion will be continued in the next releases
Fixed HALs dependency from thre cv namespace #26878
Updated KleidiCV HAL for ARM to version 0.5
Extended FastCV HAL for Qualcomm platforms #27217, #27216, #27184, #27182, #27033
Added new HAL entries for cv::sum #27346, copyTo with mask #27162, cv::DFT and cv::DCT variations #26865, convert with scale #26804, cv::norm variations #26804, minMaxIdx with step support #26789, cv::calcHist #27332, cv::pyrUp #26958, more variations for cv::remap #27119
Python, Java and JavaScript bindings:
Added conditional inclusion support to header parser #27325, #27393, #27478
Updated predefined_types.py #26826
Added bindings for animations #26813
Fix wrong python type hints for cv::imread #26890
Replaced tostring() and fromstring() call in tests and samples for compatibility with modern Python #26932, #26949
Replaced ndarray.ptp() with np.ptp() for NumPy 2.0 Compatibility #27133
Extended Java bindings generation in DNN #27228, #27260, Features2d #27245
Fixed std::vector<Point3f> handling in JS wrappers #27291
Added cv::VideoCapture buffered stream constructor into Java #27284, #27421
Extended bindings for cv::HoughLinesWithAccumulator #27377
Fixed Kotlin 2.0 internal error for unsafe coercions #26354
Platforms support:
Fixed OpenBLAS detection on Linux #27029
Fixed compatibility with CMake 4 #27192
Fixed Android build with Vulkan support #26765
Fixed VSX intrinsics (Power) implementation #26750, #26786
Added CMake checks for getauxval and elf_aux_info for POWER architecture #26798
Fixed build for openBSD #26803
Added initial support for Nvidia Blackwell GPU arch in CUDA #26820
Fixed cv namespace dependency in Carotene HAL #26878
Fixed _DEBUG/NDEBUG handling across modules #26151
Fixed build for QNX 7.0 #26985
Switched to statically linked FastCV #26917, #27340 fixed build issues on Android #27345
Forced C++17 Standard for CUDA targets when CUDA Toolkit >=12.8 #27112 #27142
Fixed build for Windows ARM64EC #27416
Fixed filesystem support under Cygwin environment #27484
opencv: use PYVERSSUFFIX in PLIST
opencv: update to 4.11.0. This is the new major version under the Apache 2 license. Too many changes to list, no concise summary found. Details at: https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs-v2.2%E2%80%90v4.10 https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs#version4110
opencv opencv-contrib-face: updated to 3.4.20 3.4.20 Bug fixes
opencv: updated to 3.4.9 version:3.4.9 OpenCV 3.4.9 has been released. Bug fixes, optimizations and other enhancements are propagated into OpenCV 4.2.0.
opencv: fix PLIST for python != 3.7
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.
opencv: updated to 3.4.6 version:3.4.6 OpenCV 3.4.6 has been released. Bug fixes, optimizations and other enhancements are propagated into OpenCV 4.1.0. version:3.4.5 OpenCV 3.4.5 has been released. Bug fixes, optimizations and other enhancements are propagated into OpenCV 4.0.1. version:3.4.4 OpenCV 3.4.4 has been released. This is a mantenance release. New features are landed in OpenCV 4.0. version:3.4.3 OpenCV 3.4.3 has been released, with further extended dnn module, documentation improvements, some other new functionality and bug fixes. version:3.4.2 OpenCV 3.4.2 has been released, with further extended dnn module, documentation improvements, some other new functionality and bug fixes. OpenCV 3.4.x development is switched from "master" to "3.4" branch. "master" branch is used for development of upcoming OpenCV 4.x releases. Bugfixes / optimizations / small improvemets should go into "3.4" branch. We will merge changes from "3.4" into "master" regularly (weekly/bi-weekly).
graphics/opencv: Update to 3.4.1. == OpenCV 3.4.1 dnn - Added support for quantized TensorFlow networks - OpenCV is now able to use Intel DL inference engine as DNN acceleration backend - Added AVX-512 acceleration to the performance-critical kernels, such as convolution and fully-connected layers - SSD-based models trained and retrained in TensorFlow Object Detection API can be easier imported by a single invocation of python script making a text graph representation - Performance of pthreads backend of cv::parallel_for_() has been greatly improved on many core machines - OpenCL backend has been expanded to cover more layers - Several bugs in various layers have been fixed OpenCL - On-disk caching of precompiled OpenCL kernels has been fixed to comply with OpenCL standard - Certain cases with UMat deadlock when copying UMats in different threads has been fixed Android - Supported Android NDK16 - Added build.gradle into OpenCV 4 Android SDK - Added initial support of Camera2 API via JavaCamera2View interface C++ - C++11: added support of multi-dimentional cv::Mat creation via C++ initializers lists - C++17: OpenCV source code and tests comply C++17 standard Misc - opencv_contrib: added GMS matching - opencv_contrib: added CSR-DCF tracker - opencv_contrib: several improvements in OVIS module == OpenCV 3.4 - New background subtraction algorithms have been integrated. dnn - Added faster R-CNN support - Javascript bindings have been extended to cover DNN module - DNN has been further accelerated for iGPU using OpenCL OpenCL - On-disk caching of precompiled OpenCL kernels has been finally implemented - It's now possible to load and run pre-compiled OpenCL kernels via T-API - Bit-exact 8-bit and 16-bit resize has been implemented
Update graphics/opencv to 3.3.0. Sync opencv-contrib-face too. Main changes: - DNN module from opencv_contrib was promoted to the main repository, improved and accelerated it a lot. An external BLAS implementation is not needed anymore. For GPU there is experimental DNN acceleration using Halide (http://halide-lang.org). - OpenCV can now be built as C++ 11 library using the flag ENABLE_CXX11. Some cool features for C++ 11 programmers have been added. - We've also enabled quite a few AVX/AVX2 and SSE4.x optimizations in the default build of OpenCV thanks to the feature called 'dynamic dispatching'. The DNN module also has some AVX/AVX2 optimizations. - Intel Media SDK can now be utilized by our videoio module to do hardware-accelerated video encoding/decoding. MPEG1/2, as well as H.264 are supported. - Embedded into OpenCV Intel IPP subset has been upgraded from 2015.12 to 2017.2 version, resulting in ~15% speed improvement in our core & imgproc perf tests. Full release notes: https://github.com/opencv/opencv/wiki/ChangeLog
Update opencv to 3.2
Many Darwin library handling patches removed because of commit 912592de4ce
Remove "INSTALL_NAME_DIR lib" target property
Full changelog at
https://github.com/opencv/opencv/wiki/ChangeLog
Highlights:
* Results from 11 GSoC 2016 projects have been submitted to the
library, 9 of them have been integrated already, 2 still pending
(the numbers below are the id's of the Pull Requests in opencv or
opencv_contrib repository):
+ Ambroise Moreau (Delia Passalacqua) - sinusoidal patterns for
structured light and phase unwrapping module (711)
+ Alexander Bokov (Maksim Shabunin) - DIS optical flow
(excellent dense optical flow algorithm that is both
significantly better and significantly faster than Farneback's
algorithm - our baseline), and learning-based color constancy
algorithms implementation (689, 708, 722, 736, 745, 747)
+ Tyan Vladimir (Antonella Cascitelli) - CNN based tracking
algorithm (GOTURN) (718, 899)
+ Vladislav Samsonov (Ethan Rublee) - PCAFlow and Global Patch
Collider algorithms implementation (710, 752)
+ Jo o Cartucho (Vincent Rabaud) - Multi-language OpenCV
Tutorials in Python, C++ and Java (7041)
+ Jiri Horner (Bo Li) - New camera model and parallel processing
for stitching pipeline (6933)
+ Vitaliy Lyudvichenko (Anatoly Baksheev) - Optimizations and
improvements of dnn module (707, 750)
+ Iric Wu (Vadim Pisarevsky) - Base64 and JSON support for file
storage (6697, 6949, 7088). Use names like
`"myfilestorage.xml?base64"` when writing file storage to
store big chunks of numerical data in base64-encoded form.
+ Edgar Riba (Manuele Tamburrano, Stefano Fabri) - tiny_dnn
improvements and integration (720: pending)
+ Yida Wang (Manuele Tamburrano, Stefano Fabri) - Quantization
and semantic saliency detection with tiny_dnn
+ Anguelos Nicolaou (Lluis Gomez) - Word-spotting CNN based
algorithm (761: pending)
Update graphics/opencv to 3.1.0.
* A lot of new functionality has been introduced during GSoC 2015:
- "Omnidirectional Cameras Calibration and Stereo 3D Reconstruction"
opencv_contrib/ccalib module
- "Structure From Motion" - opencv_contrib/sfm module
- "Improved Deformable Part-based Models" - opencv_contrib/dpm module
- "Real-time Multi-object Tracking using Kernelized Correlation Filter"
- opencv_contrib/tracking module
- "Improved and expanded Scene Text Detection" - opencv_contrib/text
module
- "Stereo correspondence improvements" - opencv_contrib/stereo module
- "Structured-Light System Calibration" - opencv_contrib/structured_light
- "Chessboard+ArUco for camera calibration" - opencv_contrib/aruco
- "Implementation of universal interface for deep neural network
frameworks" - opencv_contrib/dnn module
- "Recent advances in edge-aware filtering, improved SGBM stereo
algorithm" - opencv/calib3d and opencv_contrib/ximgproc
- "Improved ICF detector, waldboost implementation"
- opencv_contrib/xobjdetect
- "Multi-target TLD tracking" - opencv_contrib/tracking module
- "3D pose estimation using CNNs" - opencv_contrib/cnn_3dobj
* Many great contributions made by the community, such as:
- Support for HDF5 format
- New/Improved optical flow algorithms
- Multiple new image processing algorithms for filtering, segmentation
and feature detection
- Superpixel segmentation
* IPPICV is now based on IPP 9.0.1, which should make OpenCV even faster
on modern Intel chips
* opencv_contrib modules can now be included into the opencv2.framework
for iOS
* Newest operating systems are supported: Windows 10 and OSX 10.11
(Visual Studio 2015 and XCode 7.1.1)
* Interoperability between T-API and OpenCL, OpenGL, DirectX and Video
Acceleration API on Linux, as well as Android 5 camera.
* HAL (Hardware Acceleration Layer) module functionality has been moved
into corresponding basic modules; the HAL replacement mechanism has
been implemented along with the examples
See full changelog:
https://github.com/Itseez/opencv/wiki/ChangeLog
Update graphics/opencv to 3.0.0.
Major changes (besides bugfixes):
- opencv_contrib (http://github.com/itseez/opencv_contrib) repository
has been added.
- a subset of Intel IPP (IPPCV) is given to us and our users free
of charge, free of licensing fees, for commercial and non-commerical
use.
- T-API (transparent API) has been introduced, this is transparent GPU
acceleration layer using OpenCL. It does not add any compile-time or
runtime dependency of OpenCL. When OpenCL is available, it's detected
and used, but it can be disabled at compile time or at runtime.
- ~40 OpenCV functions have been accelerated using NEON intrinsics and
because these are mostly basic functions, some higher-level functions
got accelerated as well.
- There is also new OpenCV HAL layer that will simplifies creation
of NEON-optimized code and that should form a base for the open-source
and proprietary OpenCV accelerators.
- The documentation is now in Doxygen: http://docs.opencv.org/master/
- We cleaned up API of many high-level algorithms from features2d, calib3d,
objdetect etc. They now follow the uniform "abstract interface - hidden
implementation" pattern and make extensive use of smart pointers (Ptr<>).
- Greatly improved and extended Python & Java bindings (also, see below on
the Python bindings), newly introduced Matlab bindings
- Improved Android support - now OpenCV Manager is in Java and supports
both 2.4 and 3.0.
- Greatly improved WinRT support, including video capturing and
multi-threading capabilities. Thanks for Microsoft team for this!
- Big thanks to Google who funded several successive GSoC programs and
let OpenCV in. The results of many successful GSoC 2013 and 2014 projects
have been integrated in opencv 3.0 and opencv_contrib (earlier results
are also available in OpenCV 2.4.x). We can name:
- text detection
- many computational photography algorithms (HDR, inpainting, edge-aware
filters, superpixels,...)
- tracking and optical flow algorithms
- new features, including line descriptors, KAZE/AKAZE
- general use optimization (hill climbing, linear programming)
- greatly improved Python support, including Python 3.0 support, many new
tutorials & samples on how to use OpenCV with Python.
- 2d shape matching module and 3d surface matching module
- RGB-D module
- VTK-based 3D visualization module
For full changelog see:
http://code.opencv.org/projects/opencv/wiki/ChangeLog
For 2.4 to 3.0 transition, see the transition guide:
http://docs.opencv.org/master/db/dfa/tutorial_transition_guide.html
Update to 2.4.9
Changelog:
2.4.9
April, 2014
Several improvements in OpenCL optimizations (ocl::sum, ocl::countNonZero, ocl::minMax, bitwise operationss, Haar face detector, etc)
Multiple fixes in Naitve Camera (NativeCameraView, cv::VideoCapture);
Improved CUDA support for all CUDA-enabled SoCs.
New VTK-based 3D visualization module viz stabilized and back-ported to 2.4 branch.
The module provides a very convenient way to display and position clouds, meshes, cameras and trajectories, and simple widgets (cube, line, circle, etc.).
Full demo video can be found at Itseez Youtube channel
Numerous bugfixes in code and docs from community
156 pull requests have been merged since 2.4.8
55 reported bugs have been closed since 2.4.8
2.4.8
December, 2013
User provided OpenCL context can be used by OpenCV ( ocl::initializeContext )
A separate OpenCL command queue is created for every CPU thread (allows concurrent kernels execution)
Some new OpenCL optimizations and bug-fixes
NVidia CUDA support on CUDA capable SoCs;
Android 4.4 support, including native camera;
Java wrappers for GPU-detection functions from core module were added;
New sample with CUDA on Android was added;
OpenCV Manager and apps hanging were fixed on Samsung devices with Android 4.3 (#3368, #3372, #3403, #3414, #3436).
Static linkage support for native C++ libraries;
139 pull requests have been merged since version:2.4.7!
32 reported bugs have been closed since version:2.4.7
2.4.7
November, 2013
Now 'ocl' module can be built without installing OpenCL SDK (Khronos headers in OpenCV tree);
Dynamic dependency on OpenCL runtime (allows run-time branching between OCL and non-OCL implementation);
Changing default OpenCL device via OPENCV_OPENCL_DEVICE environment variable (without app re-build);
Refactoring/extending/bug-fixing of existing OpenCL optimizations, updated documentation;
New OpenCL optimizations of SVM, MOG/MOG2, KalmanFilter and more;
New optimization for histograms, TV-L1 optical flow and resize;
Updated multi gpu sample for stereo matching;
Fixed BGR<->YUV color conversion and bitwize operations;
Fixed several build issues;
Android NDK-r9 (x86, x86_64) support;
Android 4.3 support: hardware detector (Bugs #3124, #3265, #3270) and native camera (Bug #3185);
MediaRecorder hint enabled for all Android devices with API level 14 and above;
Fixed JavaCameraView slowdown (Bugs #3033, #3238);
Fixed MS Certification test issues for all algorithmical modules and highgui, except OpenEXR and Media Foundation code for camera;
Implemented XAML-based sample for video processing using OpenCV;
Fixed issue in Media Foundation back-end for VideoCapture (#3189);
382 pull requests have been merged since 2.4.6!
54 reported bugs have been fixed since 2.4.6 (issue tracker query).
Fix PLIST on Darwin, where OpenCL is enabled by default.
Fix PLIST for the python option
Update opencv to 2.4.6.1 Changes in 2.4.6.1: * Hotfix for camera pipeline for Linux (V4L). Changes in 2.4.6: * Windows RT: added video file i/o and sample application using camera, enabled parallelization with TBB or MS Concurrency * CUDA 5.5: added support for desktop and ARM * Added Qt 5 support * Binary compatiblility with both OpenCL 1.1/1.2 platforms. Now the binaries compiled with any of AMD/Intel/Nvidia's SDK can run on all other platforms. * New functions ported, CLAHE, GoodFeaturesToTrack, TVL1 optical flow and more * Performance optimizations, HOG and more. * More kernel binary cache options though setBinaryDiskCache interface. * OpenCL binaries are now included into the superpack for Windows (for VS2010 and VS2012 only) * Switched all the remaining parallel loops from TBB-only 'tbb::parallel_for()' to universal 'cv::parallel_for_()' with many possible backends (MS Concurrency, Apple's GDC, OpenMP, Intel TBB etc.) * iOS build scripts (together with Android ones) moved to 'opencv/platforms' directory * Fixed bug with incorrect saved video from camera through CvVideoCamera * Added 'rotateVideo' flag to the CvVideoCamera class to control camera preview rotation on device rotation * Added functions to convert between UIImage and cv::Mat (just include opencv2/highgui/ios.h) * Numerous bug-fixes across all the library
Update to 2.4.5:
2.4.5
April, 2013
Experimental WinRT support (build for WindowsRT guide)
the new video super-resolution module has been added that
implements the following papers:
- S. Farsiu, D. Robinson, M. Elad, P. Milanfar. Fast and robust
Super-Resolution. Proc 2003 IEEE Int Conf on Image Process,
pp. 291â294, 2003.
- D. Mitzel, T. Pock, T. Schoenemann, D. Cremers. Video super
resolution using duality based TV-L1 optical flow. DAGM, 2009.
CLAHE (adaptive histogram equalization) algorithm has been
implemented, both CPU and GPU-accelerated versions (in imgproc
and gpu modules, respectively)
there are further improvements and extensions in ocl module:
- 2 stereo correspondence algorithms: stereobm (block matching)
and stereobp (belief propagation) have been added
- many bugs fixed, including some crashes on Intel HD4000
The tutorial on displaying cv::Mat inside Visual Studio 2012
debugger has been contributed by Wolf Kienzle from Microsoft
Research. See
http://opencv.org/image-debugger-plug-in-for-visual-studio.html
78 pull requests have been merged. Big thanks to everybody who
contributed!
At least 25 bugs have been fixed since 2.4.4 (see
http://code.opencv.org/projects/opencv/issues select closed
issues with target version set to "2.4.5").
2.4.4
March, 2013
This is the biggest news in 2.4.4 - we've got full-featured
OpenCV Java bindings on a desktop, not only Android! In fact
you can use any JVM language, including functional Java or
handy Groovy. Big thanks to Eric Christiansen for the contribution!
Check the tutorial for details and code samples.
Android application framework, samples, tutorials, OpenCV
Manager are updated, see Android Release Notes for details.
Numerous improvements in gpu module and the following new
functionality & optimizations:
Optimizations for the NVIDIA Kepler architecture
NVIDIA CARMA platform support
HoughLinesP for line segments detection
Lab/Luv <-> RGB conversions
Let us be more verbose here. The openCL-based hardware acceleration
(ocl) module is now mature, and, with numerous bug fixes, it
is largely bug-free. Correct operation has been verified on
all tested platforms, including discrete GPUs (tested on NVIDIA
and AMD boards), as well as integrated GPUs (AMD APUs as well
as Intel Ivy Bridge iGPUs). On the host side, there has been
exhaustive testing on 32/64 bit, Windows/Linux systems, making
the ocl module a very serious and robust cross-platform GPU
hardware acceleration solution. While we currently do not test
on other devices that implement OpenCL (e.g. FPGA, ARM or other
processors), it is expected that the ocl module will work well
on such devices as well (provided the minimum requirements
explained in the user guide are met).
Here are specific highlights of the 2.4.4 release:
The ocl::Mat can now use âspecialâ memory (e.g. pinned
memory, host-local or device-local).
The ocl module can detect if the underlying hardware supports
âintegrated memory,â and if so use âdevice-localâ memory
by default for all operations.
New arithmetic operations for ocl::Mat, providing significant
ease of use for simple numerical manipulations.
Interop with OpenCL enables very easy integration of OpenCV
in existing OpenCL applications, and vice versa.
New algorithms include Hough circles, more color conversions
(including YUV, YCrCb), and Hu Moments.
Numerous bug fixes, and optimizations, including in:
blendLinear, square samples, erode/dilate, Canny, convolution
fixes with AMD FFT library, mean shift filtering, Stereo
BM.
Platform specific bug fixes: PyrLK, bruteForceMatcher,
faceDetect now works also on Intel Ivy Bridge chips (as
well as on AMD APUs/GPUs and NVIDIA GPUs); erode/dilate
also works on NVIDIA GPUs (as well as AMD APUs/GPUs and
Intel iGPUs).
Many people contributed their code in the form of pull requests.
Here are some of the most interesting contributions, that were
included into 2.4 branch:
>100 reported problems have been resolved since 2.4.3
Oscar Deniz submitted smile detector and sample.
Alexander Smorkalov created a tutorial on cross-compilation
of OpenCV for Linux on ARM platforms.
Update to 2.4.3 Changelog: * Add universal parallell mechianism support * Add sample codes * Add some new algorithms * Many improvements in GPU support * Many bugfixes
Rev.1: enable OpenEXR; fix buildling on case-insensitive file-systems; fix installation on Mac OS X
Update to 2.4.1. Now builds with clang. Python option
not tested. New ffmpeg support not enabled in package.
2.4.1
June, 2012
The changes since 2.4.0
The GPU module now supports CUDA 4.1 and CUDA 4.2 and can be
compiled with CUDA 5.0 preview.
Added API for storing OpenCV data structures to text string
and reading them back:
cv::calcOpticalFlowPyrLK now supports precomputed pyramids as
input.
Function signatures in documentation are made consistent with
source code.
Restored python wrappers for SURF and MSER.
45 more bugs in our bug tracker have been fixed
2.4.0
May, 2012
The major changes since 2.4 beta
OpenCV now provides pretty complete build information via
(surprise) cv::getBuildInformation().
reading/writing video via ffmpeg finally works and it's now
available on MacOSX too.
note 1: we now demand reasonably fresh versions of ffmpeg/libav
with libswscale included.
note 2: if possible, do not read or write more than 1 video
simultaneously (even within a single thread) with ffmpeg 0.7.x
or earlier versions, since they seem to use some global structures
that are destroyed by simultaneously executed codecs. Either
build and install a newer ffmpeg (0.10.x is recommended), or
serialize your video i/o, or use parallel processes instead of
threads.
MOG2 background subtraction by Zoran Zivkovic was optimized
using TBB.
The reference manual has been updated to match OpenCV 2.4.0
better (though, not perfectly).
>20 more bugs in our bug tracker have been closed
(http://code.opencv.org/projects/opencv/roadmap).
Asus Xtion is now properly supported for HighGUI. For now, you
have to manually specify this device by using
VideoCapture(CV_CAP_OPENNI_ASUS) instead of
VideoCapture(CV_CAP_OPENNI).
2.4 beta
April, 2012
As usual, we created 2.4 branch in our repository
(http://code.opencv.org/svn/opencv/branches/2.4), where we will
further stabilize the code. You can check this branch periodically,
before as well as after 2.4 release.
Common changes
At the age of 12, OpenCV got its own home! http://code.opencv.org
is now the primary site for OpenCV development and http://opencv.org
(to be launched soon) will be the official OpenCV user site.
Some of the old functionality from the modules imgproc, video,
calib3d, features2d, objdetect has been moved to legacy.
CMake scripts have been substantially modified. Now it's very
easy to add new modules - just put the directory with include,
src, doc and test sub-directories to the modules directory,
create a very simple CMakeLists.txt and your module will be
built as a part of OpenCV. Also, it's possible to exclude
certain modules from build (the CMake variables
"BUILD_opencv_<modulename>" control that).
New functionality
The new very base cv::Algorithm class has been introduced. It's
planned to be the base of all the "non-trivial" OpenCV
functionality. All Algorithm-based classes have the following
features:
"virtual constructor", i.e. an algorithm instance can be created by name;
there is a list of available algorithms;
one can retrieve and set algorithm parameters by name;
one can save algorithm parameters to XML/YAML file and then load them.
A new ffmpeg wrapper has been created that features multi-threaded
decoding, more robust video positioning etc. It's used with
ffmpeg starting with 0.7.x versions.
features2d API has been cleaned up. There are no more numerous
classes with duplicated functionality. The base classes
FeatureDetector and DescriptorExtractor are now derivatives of
cv::Algorithm. There is also the base Feature2D, using which
you can detect keypoints and compute the descriptors in a single
call. This is also more efficient.
SIFT and SURF have been moved to a separate module named nonfree
to indicate possible legal issues of using those algorithms in
user applications. Also, SIFT performance has been substantially
improved (by factor of 3-4x).
The current state-of-art textureless detection algorithm,
Line-Mod by S. Hinterstoisser, has been contributed by Patrick
Mihelich. See objdetect/objdetect.hpp, class Detector.
3 face recognition algorithms have been contributed by Philipp
Wagner. Please, check opencv/contrib/contrib.hpp, FaceRecognizer
class, and opencv/samples/cpp/facerec_demo.cpp.
2 algorithms for solving PnP problem have been added. Please,
check flags parameter in solvePnP and solvePnPRansac functions.
Enhanced LogPolar implementation (that uses Blind-Spot model)
has been contributed by Fabio Solari and Manuela Chessa, see
opencv/contrib/contrib.hpp, LogPolar_* classes and
opencv/samples/cpp/logpolar_bsm.cpp sample.
A stub module photo has been created to support a quickly
growing "computational photography" area. Currently, it only
contains inpainting algorithm, moved from imgproc, but it's
planned to add much more functionality.
Another module videostab (beta version) has been added that
solves a specific yet very important task of video stabiliion.
The module is under active development. Please, check
opencv/samples/cpp/videostab.cpp sample.
findContours can now find contours on a 32-bit integer image
of labels (not only on a black-and-white 8-bit image). This is
a step towards more convenhich results in better edge maps
Python bindings can now be used within python threads, so one
can write multi-threaded computer vision applications in Python.
OpenCV on GPU
Different Optical Flow algorithms have been added:
Brox (contrtions;
Improved performance.
pyrUp/pyrDown implementations.
Matrix multiplication on GPU (wrapper for the CUBLAS library).
This is optional, user need to compile OpenCV with CUBLAS
support.
OpenGL back-end has been implemented for highgui module, that
allows to display GpuMat directly without downloading them to
CPU.
Performance
A few OpenCV functions, like color conversion, morphology, data
type conversions, brute-force feature mer have been optimized
using TBB and/or SSE intrinisics.
Along with regression tests, now many OpenCV functions have
got performance tests. Now for most modules one can build
opencv_perf_<modulename> executables that run various functions
from the particular module and produce a XML file. Note that
if you want to run those tests, as well as the normal regression
tests, you will need to get (a rather big)
http://code.opencv.org/svn/opencv/trunk/opencv_extra directory
and set environment variable OPENCV_TEST_DATA_PATH to
"<your_copy_of_opencv_extra>/testdata".
Bug fixes
In this version we fixed literally hundreds of bugs. Please,
check http://code.opencv.org/projects/opencv/versions/1 for a
list of fixed bugs.
Known issues
When OpenCV is built statically, dynamically created classes
(via Algorithm::create) can fail because linker excludes the
"unused" object files. To avoid this problem, create classes
explicitly, e.g
1 Ptr<DescriptorExtractor> d = new BriefDescriptorExtractor;
Update to 2.3.1 Add a python option (off by default). 2.3.1 (August, 2011) New Functionality and Features * Retina module has been contributed by Alexandre Benoit (in opencv_contrib module). * Planar subdivisions construction (Delaunay triangulation and Voronoi tesselation) have been ported to C++. See the new delaunay2.cpp sample. * Several new Python samples have been added. * FLANN in OpenCV has been upgraded to v1.6. Also, added Python bindings for FLANN. * We now support the latest FFMPEG (0.8.x) that features multi-threaded decoding. Reading videos in OpenCV has never been that fast. * Over 100 issues have been resolved since 2.3 release. 2.3 (July, 2011) Modifications and Improvements since 2.3rc * A few more bugs reported in the OpenCV bug tracker have been fixed. * Documentation has been improved a lot! 2.3rc (June, 2011) New Functionality, Features * Many functions and methods now take InputArray/OutputArray instead of "cv::Mat" references. It retains compatibility with the existing code and yet brings more natural support for STL vectors and potentially other "foreign" data structures to OpenCV. core: * LAPACK is not used by OpenCV anymore. * Arithmetic operations now support mixed-type operands and arbitrary number of channels. features2d: * Completely new patent-free BRIEF and ORB feature descriptors have been added. * Very fast LSH matcher for BRIEF and ORB descriptors will be added in 2.3.1. calib3d: * calibration.cpp sample. With the new pattern calibration accuracy is usually much higher. stitching: * opencv_stitching is a beta version of new application that makes a panorama out of a set of photos taken from the same point. python: * Now there are 2 extension modules: cv and cv2. cv2 includes wrappers for OpenCV 2.x functionality. opencv/samples/python2 contain a few samples demonstrating cv2 in use. * Over 250 issues have been resolved.
Update to 2.2.0.
2.2
(December, 2010)
General Modifications and Improvements
* The library has been reorganized. Instead of cxcore, cv, cvaux,
highgui and ml we now have several smaller modules:
* opencv_core - core functionality (basic structures, arithmetics
and linear algebra, dft, XML and YAML I/O ...).
* opencv_imgproc - image processing (filter, GaussianBlur, erode,
dilate, resize, remap, cvtColor, calcHist etc.)
* opencv_highgui - GUI and image & video I/O
* opencv_ml - statistical machine learning models (SVM, Decision
Trees, Boosting etc.)
* opencv_features2d - 2D feature detectors and descriptors (SURF,
FAST etc.,
* including the new feature detectors-descriptor-matcher
framework)
* opencv_video - motion analysis and object tracking (optical flow,
motion templates, background subtraction)
* opencv_objdetect - object detection in images (Haar & LBP face
detectors, HOG people detector etc.)
* opencv_calib3d - camera calibration, stereo correspondence and
elements of 3D data processing
* opencv_flann - the Fast Library for Approximate Nearest Neighbors
(FLANN 1.5) and the OpenCV wrappers
* opencv_contrib - contributed code that is not mature enough
* opencv_legacy - obsolete code, preserved for backward
compatibility
* opencv_gpu - acceleration of some OpenCV functionality using CUDA
(relatively unstable, yet very actively developed part of OpenCV)
* If you detected OpenCV and configured your make scripts using CMake or
pkg-config tool, your code will likely build fine without any changes.
Otherwise, you will need to modify linker parameters (change the
library names) and update the include paths.
* It is still possible to use #include <cv.h> etc. but the recommended
notation is:
* #include "opencv2/imgproc/imgproc.hpp"
* ..
* Please, check the new C and C++ samples
(https://code.ros.org/svn/opencv/trunk/opencv/samples), which now
include the new-style headers.
* The new-style wrappers now cover much more of OpenCV 2.x API. The
documentation and samples are to be added later. You will need numpy
in order to use the extra added functionality.
* SWIG-based Python wrappers are not included anymore.
* OpenCV can now be built for Android (GSoC 2010 project), thanks to
Ethan Rublee; and there are some samples too. Please, check
http://opencv.willowgarage.com/wiki/Android
* The completely new opencv_gpu acceleration module has been created
with support by NVidia. See below for details.
New Functionality, Features
* core:
* The new cv::Matx<T, m, n> type for fixed-type fixed-size matrices
has been added. Vec<T, n> is now derived from Matx<T, n, 1>. The
class can be used for very small matrices, where cv::Mat use
implies too much overhead. The operators to convert Matx to Mat
and backwards are available.
* cv::Mat and cv::MatND are made the same type: typedef cv::Mat
cv::MatND. Note that many functions do not check the matrix
dimensionality yet, so be careful when processing 3-, 4- ...
dimensional matrices using OpenCV.
* Experimental support for Eigen 2.x/3.x is added (WITH_EIGEN2
option in CMake). Again, there are convertors from Eigen2
matrices to cv::Mat and backwards. See
modules/core/include/opencv2/core/eigen.hpp.
* cv::Mat can now be print with "<<" operator. See
opencv/samples/cpp/cout_mat.cpp.
* cv::exp and cv::log are now much faster thanks to SSE2
optimization.
* imgproc:
* color conversion functions have been rewritten;
* RGB->Lab & RGB->Luv performance has been noticeably
improved. Now the functions assume sRGB input color space
(e.g. gamma=2.2). If you want the original linear RGB->L**
conversion (i.e. with gamma=1), use CV_LBGR2LAB etc.
* VNG algorithm for Bayer->RGB conversion has been added. It's
much slower than the simple interpolation algorithm, but
returns significantly more detailed images
* The new flavors of RGB->HSV/HLS conversion functions have
been added for 8-bit images. They use the whole 0..255 range
for the H channel instead of 0..179. The conversion codes
are CV_RGB2HSV_FULL etc.
* special variant of initUndistortRectifyMap for wide-angle cameras
has been added: initWideAngleProjMap()
* features2d:
* the unified framework for keypoint extraction, computing the
descriptors and matching them has been introduced. The previously
available and some new detectors and descriptors, like SURF,
Fast, StarDetector etc. have been wrapped to be used through the
framework. The key advantage of the new framework (besides the
uniform API for different detectors and descriptors) is that it
also provides high-level tools for image matching and textured
object detection. Please, see documentation
http://opencv.willowgarage.com/documentation/cpp/features2d_common_interfaces_of_feature_detectors.html
* and the C++ samples:
* descriptor_extractor_matcher.cpp - finding object in a
scene using keypoints and their descriptors.
* generic_descriptor_matcher.cpp - variation of the above
sample where the descriptors do not have to be computed
explicitly.
* bagofwords_classification.cpp - example of extending
the framework and using it to process data from the VOC
databases:
* http://pascallin.ecs.soton.ac.uk/challenges/VOC/
* the newest super-fast keypoint descriptor BRIEF by Michael
Calonder has been integrated by Ethan Rublee. See the sample
opencv/samples/cpp/video_homography.cpp
* SURF keypoint detector has been parallelized using TBB (the patch
is by imahon and yvo2m)
* objdetect:
* LatentSVM object detector, implementing P. Felzenszwalb
algorithm, has been contributed by Nizhniy Novgorod State
University (NNSU) team. See
* opencv/samples/c/latentsvmdetect.cpp
* calib3d:
* The new rational distortion model:
* x' = x*(1 + k1*r2 + k2*r4 + k3*r6)/(1 + k4*r2 + k5*r4 +
k6*r6) + <tangential_distortion for x>,
y' = y*(1 + k1*r2 + k2*r4 + k3*r6)/(1 + k4*r2 + k5*r4 +
k6*r6) + <tangential_distortion for y>
* has been introduced. It is useful for calibration of cameras
with wide-angle lenses. Because of the increased number of
parameters to optimize you need to supply more data to
robustly estimate all of them. Or, simply initialize the
distortion vectors with zeros and pass
CV_CALIB_RATIONAL_MODEL to enable the new model +
CV_CALIB_FIX_K3 + CV_CALIB_FIX_K4 + CV_CALIB_FIX_K5 or other
such combinations to selectively enable or disable certain
coefficients.
* rectification of trinocular camera setup, where all 3 heads are
on the same line, is added. see samples/cpp/3calibration.cpp
* ml:
* Gradient boosting trees model has been contributed by NNSU team.
* highgui:
* Experimental Qt backend for OpenCV has been added as a result of
GSoC 2010 project, completed by Yannick Verdie. The backend has a
few extra features, not present in the other backends, like text
rendering using TTF fonts, separate "control panel" with sliders,
push-buttons, checkboxes and radio buttons, interactive zooming,
panning of the images displayed in highgui windows, "save as"
etc. Please, check the youtube videos where Yannick demonstrates
the new features: http://www.youtube.com/user/MrFrenchCookie#p/u
* The new API is described here:
http://opencv.willowgarage.com/documentation/cpp/highgui_qt_new_functions.html
To make use of the new API, you need to have Qt SDK (or
libqt4 with development packages) installed on your machine,
and build OpenCV with Qt support (pass -DWITH_QT=ON to
CMake; watch the output, make sure Qt is used as GUI
backend)
* 16-bit and LZW-compressed TIFFs are now supported.
* You can now set the mode for IEEE1394 cameras on Linux.
* contrib:
* Chamfer matching algorithm has been contributed by Marius Muja,
Antonella Cascitelli, Marco Di Stefano and Stefano Fabri. See
samples/cpp/chamfer.cpp
* gpu:
* This is completely new part of OpenCV, created with the support
by NVidia. Note that the package is at alpha, probably early beta
state, so use it with care and check OpenCV SVN for updates.
In order to use it, you need to have the latest NVidia CUDA SDK
installed, and build OpenCV with CUDA support (-DWITH_CUDA=ON
CMake flag). All the functionality is put to cv::gpu namespace.
The full list of functions and classes can be found at
opencv/modules/gpu/include/opencv2/gpu/gpu.hpp, and here are some
major components of the API:
* image arithmetics, filtering operations, morphology,
geometrical transformations, histograms
* 3 stereo correspondence algorithms: Block Matching, Belief
Propagation and Constant-Space Belief Propagation.
* HOG-based object detector. It runs more than order of
magnitude faster than the CPU version!
* See opencv/samples/cpp/
* python bindings:
* A lot more of OpenCV 2.x functionality is now covered by Python
bindings.
Documentation, Samples
* Links to wiki pages (mostly empty) have been added to each function
description, see http://opencv.willowgarage.com
* All the samples have been documented; most samples have been converted
to C++ to use the new OpenCV API.
Bug Fixes
* Over 300 issues have been resolved. Most of the issues (closed and
still open) are listed at https://code.ros.org/trac/opencv/report/6.
Update to 2.1. Changelog of most insteresting changes:
2.1
(April, 2010)
General Modifications
- The whole OpenCV is now using exceptions instead of the old
libc-style mechanism.
* That is, instead of checking error code with cvGetErrStatus()
(which currently always returns 0) you can now just call OpenCV
functions inside C++ try-catch statements, cv::Exception is now
derived from std::exception.
- All the parallel loops in OpenCV have been converted from OpenMP
* to Intel TBB (http://www.threadingbuildingblocks.org/). Thus
parallel version of OpenCV can now be built using MSVC 2008
Express Edition or using earlier than 4.2 versions of GCC.
- SWIG-based Python wrappers are still included,
* but they are not built by default and it's generally preferable
to use the new wrappers. The python samples have been rewritten
by James Bowman to use the new-style Python wrappers, which have
been also created by James.
- OpenCV can now be built and run in 64-bit mode on MacOSX 10.6 and
Windows (see HighGUI and known problems below).
* On Windows both MSVC 2008 and mingw64 are known to work.
- In theory OpenCV is now able to determine the host CPU on-fly and
make use of SSE/SSE2/... instructions,
* if they are available. That is, it should be more safe to use
WITH_SSE* flags in CMake. However, if you want maximum
portability, it's recommended to turn on just WITH_SSE and
WITH_SSE2 and leave other SSE* turned off, as we found that using
WITH_SSE3, WITH_SSSE3 and WITH_SSE4_1 can yield the code
incompatible with Intel's pre-Penryn or AMD chips.
- Experimental "static" OpenCV configuration in CMake was contributed
by Jose Luis Blanco.
* Pass "BUILD_SHARED_LIBS=OFF" to CMake to build OpenCV statically.
New Functionality, Features
* - cxcore, cv, cvaux:
* Grabcut (http://en.wikipedia.org/wiki/GrabCut) image segmentation
algorithm has been implemented.
* See opencv/samples/c/grabcut.cpp
* new improved version of one-way descriptor is added. See
opencv/samples/c/one_way_sample.cpp
* modified version of H. Hirschmuller semi-global stereo matching
algorithm that we call SGBM
* (semi-global block matching) has been created. It is much
faster than Kolmogorov's graph cuts-based algorithm and yet
it's usually better than the block matching StereoBM
algorithm. See opencv/samples/c/stereo_matching.cpp.
* existing StereoBM stereo correspondence algorithm by K. Konolige
was noticeably improved:
* added the optional left-right consistency check and speckle
filtering, improved performance (by ~20%).
* User can now control the image areas visible after the stereo
rectification
* (see the extended stereoRectify/cvStereoRectify), and also
limit the region where the disparity is computed (see
CvStereoBMState::roi1, roi2; getValidDisparityROI).
* Mixture-of-Gaussian based background subtraction algorithm has
been rewritten for better performance
* and better accuracy. Alternative C++ interface
BackgroundSubtractor has been provided, along with the
possibility to use the trained background model to segment
the foreground without updating the model. See
opencv/samples/c/bgfg_segm.cpp.
- highgui:
* MacOSX: OpenCV now includes Cocoa and QTKit backends, in addition
to Carbon and Quicktime.
* Therefore you can build OpenCV as 64-bit library. Thanks to
Andre Cohen and Nicolas Butko, which components Note however
that the backend are now in the alpha state, they can crash
or leak memory, so for anything more serious than quick
experiments you may prefer to use Carbon and Quicktime. To
do that, pass USE_CARBON=ON and USE_QUICKTIME=ON to CMake
and build OpenCV in 32-bit mode (i.e. select i386
architecture in Xcode).
* Windows. OpenCV can now be built in 64-bit mode with MSVC 2008
and also mingw64.
* Fullscreen has been added (thanks to Yannick Verdie).
* Call cvSetWindowProperty(window_name, CV_WINDOW_FULLSCREEN,
1) to make the particular window to fill the whole screen.
This feature is not supported in the Cocoa bindings yet.
* gstreamer backend has been improved a lot (thanks to Stefano
Fabri)
Bug Fixes
* - about 200 bugs have been fixed
2.0
(September, 2009)
New functionality, features:
* - General:
* New Python interface officially in.
- MLL:
* The new-style class aliases (e.g. cv::SVM ~ CvSVM) and the
train/predict methods, taking cv::Mat in addition to CvMat, have
been added. So now MLL can be used more seamlesly with the rest
of the restyled OpenCV.
2.0 beta
(September, 2009)
New functionality, features:
* General:
* The brand-new C++ interface for most of OpenCV functionality
(cxcore, cv, highgui) has been introduced. Generally it means
that you will need to do less coding to achieve the same results;
it brings automatic memory management and many other advantages.
* See the C++ Reference section in opencv/doc/opencv.pdf and
opencv/include/opencv/*.hpp.
* The previous interface is retained and still supported.
* The source directory structure has been reorganized; now all the
external headers are placed in the single directory on all
platforms.
* The primary build system is CMake,
* CXCORE, CV, CVAUX:
* CXCORE now uses Lapack (CLapack 3.1.1.1 in OpenCV 2.0) in its
various linear algebra functions (such as solve, invert, SVD,
determinant, eigen etc.) and the corresponding old-style
functions (cvSolve, cvInvert etc.
* Lots of new feature and object detectors and descriptors have
been added (there is no documentation on them yet), see cv.hpp
and cvaux.hpp:
* FAST - the fast corner detector, submitted by Edward Rosten
* MSER - maximally stable extremal regions, submitted by Liu
Liu
* LDetector - fast circle-based feature detector
* by V. Lepetit (a.k.a. YAPE)
* Fern-based point classifier and the planar object detector -
* based on the works by M. Ozuysal and V. Lepetit
* One-way descriptor - a powerful PCA-based feature
descriptor,
* S. Hinterstoisser, O. Kutter, N. Navab, P. Fua, and V.
Lepetit, "Real-Time Learning of Accurate Patch
Rectification". Contributed by Victor Eruhimov
* Spin Images 3D feature descriptor
* based on the A. Johnson PhD thesis; implemented by
Anatoly Baksheev
* Self-similarity features - contributed by Rainer Leinhar
* HOG people and object detector - the reimplementation of
Navneet Dalal framework
* (http://pascal.inrialpes.fr/soft/olt/). Currently, only
the detection part is ported, but it is fully
compatible with the original training code.
* See cvaux.hpp and opencv/samples/c/peopledetect.cpp.
* LBP (Local Binary Pattern) features
* Extended variant of the Haar feature-based object detector -
implemented by Maria Dimashova. It now supports Haar
features and LBPs, other features can be added in the same
way.
* Adaptive skin detector and the fuzzy meanshift tracker -
contributed by Farhad Dadgostar, see cvaux.hpp and
opencv/samples/c/adaptiveskindetector.cpp
* The new traincascade application complementing the new-style
HAAR+LBP object detector has been added. See
opencv/apps/traincascade.
* The powerful library for approximate nearest neighbor search
FLANN by Marius Muja is now shipped with OpenCV, and the
OpenCV-style interface to the library is included into cxcore.
See cxcore.hpp and opencv/samples/c/find_obj.cpp
* The bundle adjustment engine has been contributed by PhaseSpace;
see cvaux.hp
* Added dense optical flow estimation function based on the paper
* "Two-Frame Motion Estimation Based on Polynomial Expansion"
by G. Farnerback.
* See cv::calcOpticalFlowFarneback and the C++ documentation
* Image warping operations (resize, remap, warpAffine,
warpPerspective) now all support bicubic and Lanczos
interpolation.
* Most of the new linear and non-linear filtering operations
(filter2D, sepFilter2D, erode, dilate ...) support arbitrary
border modes and can use the valid image pixels outside of the
ROI (i.e. the ROIs are not "isolated" anymore), see the C++
documentation.
* The data can now be saved to and loaded from GZIP-compressed
XML/YML files, e.g.: cvSave("a.xml.gz", my_huge_matrix);
* MLL:
* Added the Extremely Random Trees that train super-fast, comparing
to Boosting or Random Trees (by Maria Dimashova).
* The decision tree engine and based on it classes (Decision Tree
itself, Boost, Random Trees) have been reworked and now:
* they consume much less memory (up to 200% savings)
* the training can be run in multiple threads (when OpenCV is
built with OpenMP support)
* the boosting classification on numerical variables is
especially fast because of the specialized low-overhead
branch.
* mltest has been added. While far from being complete, it contains
correctness tests for some of the MLL classes.
* HighGUI:
* [Linux] The support for stereo cameras (currently Videre only)
has been added.
* There is now uniform interface for capturing video from two-,
three- ... n-head cameras.
* Images can now be compressed to or decompressed from buffers in
the memory, see the C++ HighGUI reference manual
* Documentation:
* The reference manual has been converted from HTML to LaTeX (by
James Bowman and Caroline Pantofaru)
* Samples, misc.:
* Better eye detector has been contributed by Shiqi Yu, see
opencv/data/haarcascades/*[lefteye|righteye]*.xml
* sample LBP (Local Binary Pattern) cascade for the frontal face
detection has been created by Maria Dimashova, see
opencv/data/lbpcascades/lbpcascade_frontalface.xml
* Several high-quality body parts and facial feature detectors have
been
* contributed by Modesto Castrillon-Santana,
* see opencv/data/haarcascades/haarcascade_mcs*.xml
Optimization:
* Many of the basic functions and the image processing operations(like
arithmetic operations, geometric image transformations, filtering
etc.) have got SSE2 optimization, so they are several times faster.
* The model of IPP support has been changed. Now IPP is supposed to be
detected by CMake at the configuration stage and linked against
OpenCV. (In the beta it is not implemented yet though).
* PNG encoder performance improved by factor of 4 by tuning the
parameters
1.1pre1
(October, 2008)
New functionality/features:
* General:
* Octave bindings have been added. See interfaces/swig/octave (for
now, Linux only)
* CXCORE, CV, CVAUX:
* Speeded-up Robust Features (SURF), contributed by Liu Liu. see
samples/c/find_obj.cpp and the documentation opencvref_cv.htm
* Many improvements in camera calibration:
* Added stereo camera calibration: cvStereoCalibrate,
cvStereoRectify etc.
* Single camera calibration now uses Levenberg-Marquardt
method and supports extra flags to switch on/off
optimization of individual camera parameters
* The optional 3rd radial distortion parameter (k3*r^6) is now
supported in every calibration-related function
* 2 stereo correspondence algorithms:
* very fast block matching method by Kurt Konolige (processes
the Tsukuba stereo pair in <10ms on Core2Duo laptop)
* slow but more accurate graph-cut based algorithm by
Kolmogorov and Zabin
* Better homography estimation algorithms (RANSAC and LMEDs)
* new C++ template image classes contributed by Daniel Filip
(Google inc.). see opencv/cxcore/include/cvwimage.h
* Fast approximate nearest neighbor search (by Xavier Delacour)
* Codebook method for background/foreground segmentation (by Gary
Bradski)
* Sort function (contributed by Shiqi Yu)
* [OpenCV+IPP] Face Detection (cvHaarDetectObjects) now runs much
faster (up to 2x faster) when using IPP 5.3 or higher.
* Much faster (~4x faster) fixed-point variant of cvRemap has been
added
* MLL:
* Python bindings for MLL have been added. There are no samples
yet.
* HighGUI:
* [Windows, 32bit] Added support for videoInput library. Hence,
cvcam is [almost] not needed anymore
* [Windows, 32bit] FFMPEG can now be used for video
decoding/encoding via ffopencv*.dll
* [Linux] Added unicap support
* Improved internal video capturing and video encoding APIs
* Documentation:
* OpenCV book has been published (sold separately :) see
docs/index.htm)
* New samples (opencv/samples):
* Many Octave samples
* find_obj.cpp (SURF), bgfg_codebook.cpp (Codebook BG/FG
segmentation),
* stereo_calib.cpp (Stereo calibration and stereo
correspondence)
Remove @dirrm entries from PLISTs
Fix PLIST. Bump revision.
Import OpenCV 1.0.0, pkg/34655 from Anthony Mallet. OpenCV means Intel(R) Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement many popular Image Processing and Computer Vision algorithms. OpenCV provides cross-platform middle-to-high level API that includes about 300 C functions and a few C++ classes. Also there are Python bindings to OpenCV. OpenCV has no strict dependencies on external libraries, though it can use some (such as libjpeg, ffmpeg, GTK+ etc.) OpenCV provides transparent interface to Intel(R) Integrated Performance Primitives (IPP). That is, it loads automatically IPP libraries optimized for specific processor at runtime, if they are available.
Initial revision