-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitialisation.h
72 lines (62 loc) · 2.04 KB
/
initialisation.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
///For Image Declaration and Initialisation
IplImage *img1;
IplImage *img2;
IplImage *image;
CvCapture* capture1;
CvCapture* capture2;
int iter; ///Set the number of iteration
int tolerance = 20; ///Set the tolerance level for threshholding in kmeans algo
int cn = 4; ///Set the number of clusters to classify
int height, width, step, channels; ///Defines the height width and channel of the frame
///Two image defined for operation
Mat OrigIm;
Mat GndIm;
Mat HumanIm;
bool ground_presence = false;
bool stair_presence = false;
bool door_presence = false;
bool human_presence = false;
///variables needed for K-Means Clustering Algorithm
uchar *data;
int *clusx;
int *clusy;
int *var;
int i, j, k, l, h, b;
int *pixel;
int toggle,starting,ending,difference,cnt;
int *ClusterCenter;
int *PrevClusterCenter;
int *ThresholdPoints;
int global_var;
int total_var;
int threshold_var = 20;
int range;
long int sigmanum;
long int sigmaden;
///variable to generate random number generator
time_t now; ///checking the systems time for random number generator
/** Global variables */
String face_cascade_name = "/home/aninda/opencv-2.4.9/data/haarcascades/haarcascade_frontalface_default.xml";
String eyes_cascade_name = "/home/xeon/opencv-2.4.9/data/haarcascades/haarcascade_eye.xml";
CascadeClassifier face_cascade;
CascadeClassifier eyes_cascade;
string window_name = "Capture - Face detection";
RNG rng(12345);
///Variables needed for toggle switch for door Stair and Human
int door_toggledetect,door_prevtoggledetect;
int stair_toggledetect,stair_prevtoggledetect;
int human_toggledetect,human_prevtoggledetect;
/*******************************Sound Generation*********************************/
///For Sound Declaration and Initialisation
espeak_POSITION_TYPE position_type;
espeak_AUDIO_OUTPUT output;
char *path=NULL;
int Buflength = 500, Options=0;
void* user_data;
t_espeak_callback *SynthCallback;
espeak_PARAMETER Parm;
char Voice[] = {"default"};
unsigned int position=0, end_position=0, flags=espeakCHARS_AUTO, *unique_identifier;
int TextSize;
int decision;
char *text;