diff options
Diffstat (limited to 'ext/opencv/gstgazecompute.cpp')
-rw-r--r-- | ext/opencv/gstgazecompute.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/opencv/gstgazecompute.cpp b/ext/opencv/gstgazecompute.cpp index bbd88167e..14e04189c 100644 --- a/ext/opencv/gstgazecompute.cpp +++ b/ext/opencv/gstgazecompute.cpp @@ -580,7 +580,7 @@ gst_gaze_compute_message_new (GstGazeCompute * filter, GstBuffer * buf) } static void -gst_gaze_compute_run_computeor (GstGazeCompute * filter, +gst_gaze_compute_run_detector (GstGazeCompute * filter, CascadeClassifier * detector, gint min_size_width, gint min_size_height, Rect r, vector < Rect > &faces) { @@ -661,7 +661,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, cvCvtColor (img, filter->cvGray, CV_RGB2GRAY); - gst_gaze_compute_run_computeor (filter, filter->cvGazeCompute, + gst_gaze_compute_run_detector (filter, filter->cvGazeCompute, filter->min_size_width, filter->min_size_height, Rect (filter->cvGray->origin, filter->cvGray->origin, filter->cvGray->width, filter->cvGray->height), faces); @@ -721,7 +721,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, rny = r.y + r.height / 4; rnw = r.width / 2; rnh = rhh; - gst_gaze_compute_run_computeor (filter, filter->cvNoseDetect, mw, mh, + gst_gaze_compute_run_detector (filter, filter->cvNoseDetect, mw, mh, Rect (rnx, rny, rnw, rnh), nose); have_nose = !nose.empty (); } else { @@ -733,7 +733,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, rmy = r.y + r.height / 2; rmw = r.width; rmh = rhh; - gst_gaze_compute_run_computeor (filter, filter->cvMouthDetect, mw, + gst_gaze_compute_run_detector (filter, filter->cvMouthDetect, mw, mh, Rect (rmx, rmy, rmw, rmh), mouth); have_mouth = !mouth.empty (); } else { @@ -745,7 +745,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, rey = r.y; rew = r.width; reh = rhh; - gst_gaze_compute_run_computeor (filter, filter->cvEyesDetect, mw, mh, + gst_gaze_compute_run_detector (filter, filter->cvEyesDetect, mw, mh, Rect (rex, rey, rew, reh), eyes); have_eyes = !eyes.empty (); } else { @@ -757,7 +757,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, rely = r.y; relw = r.width; relh = rhh; - gst_gaze_compute_run_computeor (filter, filter->cvEarLDetect, mw, mh, + gst_gaze_compute_run_detector (filter, filter->cvEarLDetect, mw, mh, Rect (relx, rely, relw, relh), l_ears); have_l_ears = !l_ears.empty (); } else { @@ -769,7 +769,7 @@ gst_gaze_compute_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf, rery = r.y; rerw = r.width; rerh = rhh; - gst_gaze_compute_run_computeor (filter, filter->cvEarRDetect, mw, mh, + gst_gaze_compute_run_detector (filter, filter->cvEarRDetect, mw, mh, Rect (rerx, rery, rerw, rerh), r_ears); have_r_ears = !r_ears.empty (); } else { |