Age | Commit message (Collapse) | Author | Files | Lines |
|
This should fix missing gstcameracalibrate.h and gstcameraundistort.h
missing into generated tarballs.
|
|
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.
|
|
|
|
And removes all the ifdef code to support the 2.X APIs.
|
|
This is to support older release of OpenCV2
https://bugzilla.gnome.org/show_bug.cgi?id=789075
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=789075
|
|
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);
^~~~~~
|
|
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
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=794568
|
|
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
|
|
Fix-up for previous patch which I modified incorrectly.
https://bugzilla.gnome.org/show_bug.cgi?id=792114
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=792114
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=788567
|
|
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
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=787234
|
|
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
|
|
Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.
|
|
This was already added and tested in autoconf.
|
|
If the required version is not satisfied, we need to make sure this
variable is set, otherwise build will fail.
|
|
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
|
|
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
|
|
CID 1197704
|
|
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.
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=777930
|
|
We only need the opencv2/bgsegm.hpp header for OpenCV >= 3 and have
compat code for older versions.
|
|
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
|
|
new plugin that dewarp fisheye images
https://bugzilla.gnome.org/show_bug.cgi?id=776047
|
|
This is a C99 feature.
|
|
|
|
|
|
This allow reducing slightly the code. It also fixes a bug caused by
in-place buffer being mapped and never unmapped.
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=772822
|
|
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
|
|
There is already a cv_set_caps() implemented, so just do the
entire work there.
https://bugzilla.gnome.org/show_bug.cgi?id=775377
|
|
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
|
|
There is already a cv_set_caps() implemented, so just do the
entire work there.
https://bugzilla.gnome.org/show_bug.cgi?id=775377
|
|
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
|
|
There is already a cv_set_caps() implemented, so just do the
entire work there.
https://bugzilla.gnome.org/show_bug.cgi?id=775377
|
|
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
|
|
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.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=774223
|
|
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
|
|
Forward declare opencv types to avoid exposing them in the API.
https://bugzilla.gnome.org/show_bug.cgi?id=774223
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=774223
|
|
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
|
|
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;
^
|
|
- 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);
|
|
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
|