From b33b1390cc0d8fa242b739d5bcde1320ad6d50ff Mon Sep 17 00:00:00 2001 From: Kipp Cannon Date: Tue, 14 Jan 2014 01:06:02 -0500 Subject: [PATCH] facedetect: set maximum feature size to 0x0 This disables the "max feature size" feature. The current configuration is totally busted: The max feature size is hard-coded to 2 pixels more than the user-supplied min feature size which pretty much means you need to guess the size of the person's face to within a few pixels to get the code to find it. https://bugzilla.gnome.org/show_bug.cgi?id=722158 --- ext/opencv/gstfacedetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opencv/gstfacedetect.c b/ext/opencv/gstfacedetect.c index 18ac2402f3..6f8740dbf5 100644 --- a/ext/opencv/gstfacedetect.c +++ b/ext/opencv/gstfacedetect.c @@ -514,7 +514,7 @@ gst_face_detect_run_detector (GstFaceDetect * filter, filter->cvStorage, filter->scale_factor, filter->min_neighbors, filter->flags, cvSize (min_size_width, min_size_height) #if (CV_MAJOR_VERSION >= 2) && (CV_MINOR_VERSION >= 2) - , cvSize (min_size_width + 2, min_size_height + 2) + , cvSize (0, 0) #endif ); }