source: level2/competencies/src/FaceDetection.h @ 157

Revision 157, 1.9 KB checked in by ginevra, 10 years ago (diff)
Line 
1// AUTHOR: Ginevra Castellano
2// Queen Mary University of London
3// DATE: 10/2009
4// VERSION: 1.0
5
6// Copyright (C) 2009 Ginevra Castellano
7
8// This file is part of the FaceTracking program
9
10// FaceTracking is free software: you can redistribute it and/or modify
11// it under the terms of the GNU Lesser General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14
15// This program is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18// GNU Lesser General Public License for more details.
19
20// You should have received a copy of the GNU Lesser General Public License
21// along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23// FaceTracking uses the OpenCV library
24// Copyright (C) 2000-2006, Intel Corporation, all rights reserved.
25// Third party copyrights are property of their respective owners.
26// See OpenCV_license.txt, in the program folder, for details.
27
28// FaceTracking uses the Camshift wrapper program (see camshift_wrapper.cpp and camshift_wrapper.h)
29// Copyright (c) 2007, Robin Hewitt (http://www.robin-hewitt.com)
30// See License.txt, in the Camshift wrapper folder, for details.
31
32
33
34#ifndef _FACE_DETECTION
35#define _FACE_DETECTION
36
37class FaceDetection
38{
39        public:
40        FaceDetection();
41        ~FaceDetection();
42
43        CvRect *detectFace(IplImage *src);
44        void InitFaceDetection(void);
45
46   
47        private:
48        CvMemStorage* storage; // memory for calculations
49       
50        CvHaarClassifierCascade* cascade; // Haar classifier
51        CvHaarClassifierCascade* cascade_lateral; // Haar classifier
52
53        const char* cascade_name; //string that contains the cascade name
54        const char* cascade_name_lateral; //string that contains the cascade name
55
56        CvRect* rect;
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.