source: foam/trunk/faceclassifier/src/App.h @ 94

Revision 94, 1.3 KB checked in by dave, 10 years ago (diff)

added face classifier application, not working yet

Line 
1// Copyright (C) 2009 foam
2//
3// This program is free software; you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation; either version 2 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17#include "cv.h"
18#include "highgui.h"
19#include <yarp/os/all.h>
20#include <string>
21
22#include "FaceBank.h"
23#include "SceneState.h"
24
25using namespace yarp::os;
26using namespace std;
27
28class App
29{
30public:
31        App(const string &filename);
32        ~App();
33       
34        void Update();
35       
36private:
37       
38        CvCapture* m_Capture;
39        CvHaarClassifierCascade* m_Cascade;
40        CvMemStorage* m_Storage;
41       
42        Classifier *m_Classifier;
43        FaceBank *m_FaceBank;
44        SceneState m_SceneState;
45        BufferedPort<Bottle> m_CtrlPort;
46       
47        int m_FaceNum;
48        bool m_Learn;
49        CvFont m_Font;
50       
51        IplImage *frame;
52        IplImage *frame_copy;
53};
Note: See TracBrowser for help on using the repository browser.