00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __OMNI_CONFIG_H__
00021 #define __OMNI_CONFIG_H__
00022
00023 #ifndef WIN32
00024 #include <unistd.h>
00025 #endif
00026
00027 #include <stdio.h>
00028 #include "OmniCallback.hh"
00029
00034 #define OMNISTUFF_DEBUG
00035
00037
00038
00043
00044
00049 #define SHOW_TRACKED_FACES
00050
00055
00056
00061
00062
00067
00068
00075
00076 #define FACE_TRACK_ANGLE_WINDOW 0.59
00077
00082 #define TRACK_WINDOW_HITRATE 0.95
00083
00088 #define FREEZE_FRAME_BOUND 20
00089
00092 #ifndef WAIT_KEY_VALUE
00093 #ifdef WIN32
00094 #define WAIT_KEY_VALUE 1
00095 #else // LINUX
00096 #define WAIT_KEY_VALUE 20
00097 #endif
00098 #endif
00099
00101 #ifndef CV_WAIT_KEY
00102 #ifdef __LINUX__
00103 #define CV_WAIT_KEY usleep
00104 #else
00105 #define CV_WAIT_KEY cvWaitKey
00106 #endif
00107 #endif
00108
00109
00111 #ifndef DEBUG_PRINT
00112 #ifdef OMNISTUFF_DEBUG
00113 #define DEBUG_PRINT printf
00114 #else
00115 #define DEBUG_PRINT(...)
00116 #endif
00117 #endif
00118
00119
00120 #endif
00121
00122
00123