diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2011-11-16 20:53:13 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2011-11-16 21:03:36 +0100 |
commit | fefa1df8b9115404c94ec2aa2e9d1ff8ca79d34c (patch) | |
tree | 9e14e2b5cbf56c5b5fc703caac57677faacc6e44 /ext/opencv/gstfacedetect.h | |
parent | a857c905901ae08be197277f007e690d4003125c (diff) | |
download | gstreamer-plugins-bad-fefa1df8b9115404c94ec2aa2e9d1ff8ca79d34c.tar.gz |
facedetect: detect face features
Also detect mouth, nose and eyes. Drop faces that don't have them. Fixes leaking the
cascades. Adds more docs.
Diffstat (limited to 'ext/opencv/gstfacedetect.h')
-rw-r--r-- | ext/opencv/gstfacedetect.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/opencv/gstfacedetect.h b/ext/opencv/gstfacedetect.h index cb66e50c3..90fe2c683 100644 --- a/ext/opencv/gstfacedetect.h +++ b/ext/opencv/gstfacedetect.h @@ -3,6 +3,7 @@ * Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org> * Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net> * Copyright (C) 2008 Michael Sheldon <mike@mikeasoft.com> + * Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -75,7 +76,10 @@ struct _GstFacedetect gboolean display; - gchar *profile; + gchar *face_profile; + gchar *nose_profile; + gchar *mouth_profile; + gchar *eyes_profile; gdouble scale_factor; gint min_neighbors; gint flags; @@ -83,7 +87,10 @@ struct _GstFacedetect gint min_size_height; IplImage *cvGray; - CvHaarClassifierCascade *cvCascade; + CvHaarClassifierCascade *cvFaceDetect; + CvHaarClassifierCascade *cvNoseDetect; + CvHaarClassifierCascade *cvMouthDetect; + CvHaarClassifierCascade *cvEyesDetect; CvMemStorage *cvStorage; }; |