summaryrefslogtreecommitdiff
path: root/ext/opencv
AgeCommit message (Collapse)AuthorFilesLines
2018-08-14makefile: opencv: Fix header names in noinst_HEADERSNicolas Dufresne1-2/+2
This should fix missing gstcameracalibrate.h and gstcameraundistort.h missing into generated tarballs.
2018-08-02opencv: Fixup include to follow new standardNicolas Dufresne5-26/+9
This uses the new path for OpenCV headers. OpenCV now have master headers files per modules, which reduce the amount of required includes. Note that HIGHGUI was included to get the imgcodecs includes, which I fixed, though the master header is missing the C headers, so I included that directly. All the image stuff should be ported to C++ eventually. Finally, this patch also update the header checks to reflect the modules that are really being used.
2018-08-02opencv: Updated to use new header pathNicolas Dufresne25-39/+34
2018-08-02opencv: Bump requirement to 3.0.0+Nicolas Dufresne12-133/+25
And removes all the ifdef code to support the 2.X APIs.
2018-08-02cameracalibrtate: Fix opencv2 core.hpp pathNicolas Dufresne2-2/+2
This is to support older release of OpenCV2 https://bugzilla.gnome.org/show_bug.cgi?id=789075
2018-08-01opencv: new cameracalibrate and cameraundistort elementsPhilippe Renon11-2/+1584
https://bugzilla.gnome.org/show_bug.cgi?id=789075
2018-07-14opencv: Fix build for opencv >= 3.4.2Thibault Saunier3-0/+9
The `CV_RGB` macro is now in `imgproc.hpp`. Fixes: ../subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp:497:40: error: ‘CV_RGB’ was not declared in this scope cvCircle (img, center, radius, CV_RGB (0, 0, 200), 1, 8, 0); ^~~~~~
2018-05-11opencv: Fix memcpy within C++Edward Hervey1-1/+1
Explicitly cast to void* because GCC 8 is (rightfully) upset that this is "writing to an object of type ‘...’ with no trivial copy-assignment". Caused by the new "class-memaccess" warning
2018-04-25Meson: Generate pc file for all plugins in badXavier Claessens1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=794568
2018-02-06opencv: fix OPENCV_PATH_NAME when using mesonGuillaume Desmottes1-1/+1
Meson was checking for $prefix/OpenCV but was then defining OPENCV_PATH_NAME with 'OpenCv' rather than 'OpenCV'. https://bugzilla.gnome.org/show_bug.cgi?id=793212
2018-01-02opencv: allow all future 3.4.x versionsTim-Philipp Müller1-1/+1
Fix-up for previous patch which I modified incorrectly. https://bugzilla.gnome.org/show_bug.cgi?id=792114
2018-01-02opencv: allow compilation against 3.4.xNicola Murino1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=792114
2017-12-14opencv: handdetect: fix typo in example launch lineReynaldo H. Verdejo Pinochet1-1/+1
2017-10-16opencv: Support smoothing only part of the imageMichał Górny2-5/+88
https://bugzilla.gnome.org/show_bug.cgi?id=788567
2017-10-16opencv: Add 'kernel' prefix to width/heightMichał Górny2-27/+27
Rename width to kernel-width, and height to kernel-height to avoid ambiguity in the name. https://bugzilla.gnome.org/show_bug.cgi?id=788567
2017-09-04opencv: allow compilation against 3.3.0Nicola Murino1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=787234
2017-05-18motioncells: delay motionmaskcoords until caps arriveDmitry Zhadinets2-9/+42
motionmaskcoords is not applied on start because the information about resolution isn't available until caps arrive. https://bugzilla.gnome.org/show_bug.cgi?id=768666
2017-05-16Remove plugin specific static build optionNicolas Dufresne1-1/+0
Static and dynamic plugins now have the same interface. The standard --enable-static/--enable-shared toggle are sufficient.
2017-05-11opencv/meson: Allow 3.2.0Nicolas Dufresne1-1/+1
This was already added and tested in autoconf.
2017-05-09opencv/meson: Ensure variable opencv_found is setNicolas Dufresne1-2/+2
If the required version is not satisfied, we need to make sure this variable is set, otherwise build will fail.
2017-05-09Bump and update for meson 0.40.1Nicolas Dufresne1-21/+12
This patch bumps the required meson to 0.40.1 as gstreamer core just did, and cleanup some code to use a feature from 0.37 that allow specifying version range when checking dependency. https://bugzilla.gnome.org/show_bug.cgi?id=780654
2017-04-14motioncells: Fix cell string generationJan Schmidt1-6/+5
Allow 1 extra char in the tmp buffer where the motion cell snippets are generated, so that it doesn't leave off a comma when dealing with cells that have 2 numerals in both indices
2017-02-28motioncells: Initialize m_changed_datafile class fieldSebastian Dröge1-0/+1
CID 1197704
2017-02-01dewarp: Store C++ types as pointers in C structsSebastian Dröge2-11/+23
Otherwise the destructor will never be called, and we would have to call the constructors manually at some point... which we never did, so calling release() on it before it got otherwise initialized caused a crash. For example when running gst-inspect-1.0.
2017-01-30motioncells: fix mingw buildNicola Murino1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=777930
2017-01-12opencv: Fix build with OpenCV < 3Sebastian Dröge1-3/+16
We only need the opencv2/bgsegm.hpp header for OpenCV >= 3 and have compat code for older versions.
2017-01-03Fix some caps leaks in pad template creation codeGarima Gaur2-0/+2
gst_pad_template_new() does not take ownership of the caps passed to it, so we need to unref the caps. https://bugzilla.gnome.org/show_bug.cgi?id=776790 https://bugzilla.gnome.org/show_bug.cgi?id=776787
2017-01-02opencv: add dewarp pluginNicola Murino5-3/+847
new plugin that dewarp fisheye images https://bugzilla.gnome.org/show_bug.cgi?id=776047
2016-12-13gst: Don't declare variables inside the for loop headerSebastian Dröge1-5/+9
This is a C99 feature.
2016-12-04segmentation: Port to GstOpencvVideoFilter base classNicolas Dufresne2-39/+31
2016-12-04grabcut: Port to GstOpencvVideoFilter base classNicolas Dufresne2-33/+37
2016-12-04retinex: Port to GstOpencvVideoFilter base classNicolas Dufresne2-50/+37
This allow reducing slightly the code. It also fixes a bug caused by in-place buffer being mapped and never unmapped.
2016-12-01opencv/meson: check presence of required opencv_contrib headersNicolas Dufresne1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=772822
2016-12-01edgedetect: Avoid extra copy of the output imageNicolas Dufresne2-13/+8
Simply produce the result into the output image provided by the base class. This avoid useless copy. This also removes unchecked buffer map and ensure that GstVideoMeta is respected (for stride mostly). https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01edgedetect: Remove redundant CAPS event handlerNicolas Dufresne1-51/+8
There is already a cv_set_caps() implemented, so just do the entire work there. https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01cvlaplace: Avoid extra copy of the output imageNicolas Dufresne2-12/+3
Simply produce the result into the output image provided by the base class. This avoid useless copy. This also removes unchecked buffer map and ensure that GstVideoMeta is respected (for stride mostly). https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01cvlaplace: Remove redundant CAPS event handlerNicolas Dufresne1-53/+8
There is already a cv_set_caps() implemented, so just do the entire work there. https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01cvsobel: Avoid extra copy of the output imageNicolas Dufresne2-12/+3
Simply produce the result into the output image provided by the base class. This avoid useless copy. This also removes unchecked buffer map and ensure that GstVideoMeta is respected (for stride mostly). https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01cvsobel: Remove redundant CAPS event handlerNicolas Dufresne1-50/+8
There is already a cv_set_caps() implemented, so just do the entire work there. https://bugzilla.gnome.org/show_bug.cgi?id=775377
2016-12-01opencv: Remove uneeded buffer writability checkNicolas Dufresne2-11/+1
When set to in_place, the BaseTransform class will guaranty that buffers passed to transform_ip() function are writable. https://bugzilla.gnome.org/show_bug.cgi?id=775378
2016-11-29meson: Rework opencv plugin checksNirbheek Chauhan1-16/+50
a) Use get_pkgconfig_variable() to get the opencv prefix b) Place an upper limit on the opencv version c) Ensure that headers are available (b) and (c) just copy what the configure.ac checks do.
2016-11-27opencv: Make the OpenCV plugin optional in the meson buildSebastian Dröge1-1/+1
2016-11-26opencv: Enable in meson buildLuis de Bethencourt1-0/+50
https://bugzilla.gnome.org/show_bug.cgi?id=774223
2016-11-25ext: Fix various compiler warnings with clangSebastian Dröge1-1/+1
wldisplay.c:179:15: error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare] if (shm_fmt < 0) ~~~~~~~ ^ ~ gstsegmentation.cpp:419:40: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion] filter->cvFG->imageData[j] = 255; ~ ^~~ https://bugzilla.gnome.org/show_bug.cgi?id=775112
2016-11-21opencv: forward declare opencv typesPhilippe Renon1-0/+2
Forward declare opencv types to avoid exposing them in the API. https://bugzilla.gnome.org/show_bug.cgi?id=774223
2016-11-14opencv: move base opencv filter class and utilities to gst-libsPhilippe Renon21-593/+25
https://bugzilla.gnome.org/show_bug.cgi?id=774223
2016-10-06opencv: Fix memory leak by gst_caps_to_stringJimmy Ohn1-1/+4
gst_caps_to_string function returned allocated memory. So, It should be freed using g_free function. https://bugzilla.gnome.org/show_bug.cgi?id=772499
2016-06-10facedetect: Fix compiler warning with clang 3.8Heinrich Fink1-2/+2
Use namespace only after it was actually defined by a header. gstfacedetect.cpp:79:17: error: using directive refers to implicitly-defined namespace 'std' [-Werror] using namespace std; ^
2016-05-15opencv/facedetect: fix the build with opencv 3.1.0Matthew Waters1-3/+7
- add using namespace std; for std::vector - use the cpp header imgproc.hpp file for the cv::ellipse function instead of the C header - Mat no longer takes IplImage in it's constructors, use the cvarrtomat() function instead. Fixes a couple of build errors: gstfacedetect.cpp:140:30: error: ‘vector’ does not name a type structure_and_message (const vector < Rect > &rectangles, const gchar * name, ^~~~~~ gstfacedetect.cpp:140:37: error: expected ‘,’ or ‘...’ before ‘<’ token structure_and_message (const vector < Rect > &rectangles, const gchar * name, ^ gstfacedetect.cpp: In function ‘void structure_and_message(int)’: gstfacedetect.cpp:143:13: error: ‘rectangles’ was not declared in this scope Rect sr = rectangles[0]; [...] gstfacedetect.cpp: In function ‘void gst_face_detect_run_detector(GstFaceDetect*, cv::CascadeClassifier*, gint, gint, cv::Rect, std::vector<cv::Rect_<int> >&)’: gstfacedetect.cpp:562:31: error: no matching function for call to ‘cv::Mat::Mat(IplImage*&, cv::Rect&)’ Mat roi (filter->cvGray, r); [...] gstfacedetect.cpp: In function ‘GstFlowReturn gst_face_detect_transform_ip(GstOpencvVideoFilter*, GstBuffer*, IplImage*)’: gstfacedetect.cpp:594:44: error: no matching function for call to ‘cv::Mat::Mat(cv::Mat, bool)’ Mat mtxOrg (cv::cvarrToMat (img), false); [...] gstfacedetect.cpp:734:79: error: ‘ellipse’ was not declared in this scope ellipse (mtxOrg, center, axes, 0, 0, 360, Scalar (cr, cg, cb), 3, 8, 0);
2016-04-01opencv: segmentation: Ported to OpenCV version 3.1Vanessa Chipirras Navalon2-19/+53
Add namespace bgsegm, replacement functions and Template class for new OpenCV versions because these functions have been removed. cvarrToMat() is added because it is compatible with all versions of OpenCV and the use of class Mat constructor is eliminated, it is also deprecated in 3.X versions. Use the namespace cv because some functions are called many times. This patch keeps compatibility with 2.4 https://bugzilla.gnome.org/show_bug.cgi?id=760473