source: level2/competencies/ExpressionRecog/src/App.h @ 203

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

added ExpressionRecog?

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 "PCA.h"
20#include <yarp/os/all.h>
21#include <string>
22#include <map>
23
24#include "FaceFinder.h"
25
26using namespace yarp::os;
27using namespace std;
28
29class App
30{
31public:
32        App(const string &filename);
33        ~App();
34       
35        void Run();
36        void Update(Image &camera);
37       
38private:
39       
40        CvCapture* m_Capture;
41       
42        FaceFinder m_FaceFinder;
43        BufferedPort<Bottle> m_CtrlPort;
44       
45        CvFont m_Font;
46        CvFont m_LargeFont;
47       
48        IplImage *m_Frame;
49        IplImage *m_FrameCopy;
50       
51        PCA *m_PCA;
52       
53        map<int,string> m_DebugNames;
54       
55        Vector<float> *m_Extremes[2];
56        Vector<float> *m_ExtVec;
57       
58        int m_FrameNum;
59};
Note: See TracBrowser for help on using the repository browser.