forked from ChrisVeigl/BrainBay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathob_cam.h
50 lines (32 loc) · 1.19 KB
/
ob_cam.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact: [email protected]
MODULE: OB_CAM.CPP: contains functions for Webcam functions
Author: Chris Veigl
The Camera-Object can connect to an installed webcam an display the live-
video in a window. A Face-Detection is performed and the Position of the Nose and
the Chin are presented at the objects-output ports.
This Module uses the Intel OpenCV Library for Computer Vision, and source
code from the sample-projects describingf the use of the HaarClassifier-Cascade
and the Lukas Kanade Optical Flow Algorithm.
see details about Intels OpenCV: http://www.intel.com/research/mrl/research/opencv
-----------------------------------------------------------------------------*/
#include "brainBay.h"
class CAMOBJ : public BASE_CL
{
protected:
float input;
public:
int interval;
int showlive;
int mode;
int enable_tracking;
int trackface;
char videofilename[256];
CAMOBJ(int num);
void make_dialog(void);
void load(HANDLE hFile);
void save(HANDLE hFile);
void incoming_data(int port, float value);
void work(void);
~CAMOBJ();
};