mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
opencv: Fix build for opencv >= 3.4.2
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); ^~~~~~
This commit is contained in:
parent
6fd3e2a400
commit
c247745faa
3 changed files with 9 additions and 0 deletions
|
@ -51,6 +51,9 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include "MotionCells.h"
|
||||
#if (CV_MAJOR_VERSION >= 3)
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#endif
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
|
||||
MotionCells::MotionCells ()
|
||||
|
|
|
@ -62,6 +62,9 @@
|
|||
|
||||
/* element header */
|
||||
#include "gsthanddetect.h"
|
||||
#if (CV_MAJOR_VERSION >= 3)
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#endif
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug);
|
||||
|
|
|
@ -63,6 +63,9 @@
|
|||
|
||||
#include "../../gst-libs/gst/gst-i18n-plugin.h"
|
||||
#include "gsttemplatematch.h"
|
||||
#if (CV_MAJOR_VERSION >= 3)
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#endif
|
||||
#include <opencv2/imgproc/imgproc_c.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_template_match_debug);
|
||||
|
|
Loading…
Reference in a new issue