summaryrefslogtreecommitdiff
path: root/ext/opencv/gsthanddetect.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-08-07 13:08:17 +0100
committerLuis de Bethencourt <luis@debethencourt.com>2015-08-07 13:14:11 +0100
commit316657a2f85437c8866e88213e2e63967a0031b7 (patch)
treefc0328d6affb3a5f1bcfbad6c9f7ebcfa7b5f587 /ext/opencv/gsthanddetect.c
parent69becd734d3f94264f6f0ef2e6147205646c1abd (diff)
downloadgstreamer-plugins-bad-316657a2f85437c8866e88213e2e63967a0031b7.tar.gz
configure: update OpenCV requirements to 2.3.0
With facedetect ported to C++ the minimum version of OpenCV supported is 2.3.0 https://bugzilla.gnome.org/show_bug.cgi?id=748377
Diffstat (limited to 'ext/opencv/gsthanddetect.c')
-rw-r--r--ext/opencv/gsthanddetect.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/ext/opencv/gsthanddetect.c b/ext/opencv/gsthanddetect.c
index 8c72b72e4..762f5fb9e 100644
--- a/ext/opencv/gsthanddetect.c
+++ b/ext/opencv/gsthanddetect.c
@@ -404,11 +404,8 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
/* detect FIST gesture fist */
hands =
cvHaarDetectObjects (filter->cvGray, filter->cvCascade_fist,
- filter->cvStorage, 1.1, 2, CV_HAAR_DO_CANNY_PRUNING, cvSize (24, 24)
-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
- , cvSize (0, 0)
-#endif
- );
+ filter->cvStorage, 1.1, 2, CV_HAAR_DO_CANNY_PRUNING, cvSize (24, 24),
+ cvSize (0, 0));
/* if FIST gesture detected */
if (hands && hands->total > 0) {
@@ -496,11 +493,8 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
/* if NO FIST gesture, detecting PALM gesture */
hands =
cvHaarDetectObjects (filter->cvGray, filter->cvCascade_palm,
- filter->cvStorage, 1.1, 3, CV_HAAR_DO_CANNY_PRUNING, cvSize (24, 24)
-#if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2)
- , cvSize (0, 0)
-#endif
- );
+ filter->cvStorage, 1.1, 3, CV_HAAR_DO_CANNY_PRUNING, cvSize (24, 24),
+ cvSize (0, 0));
/* if PALM detected */
if (hands && hands->total > 0) {
int min_distance, distance;