diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-03-22 21:34:47 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-03-22 21:34:47 +0000 |
commit | 277cc7603eb6b4d9fed6a0a2de245e4cdde6ee8b (patch) | |
tree | 1774fa28018005e4c96f5717d6d461dfb0123d5f /faceAPI/utils.h | |
parent | be57b6b8d3f8339980df08f196d23415f7974418 (diff) |
Successfully use console app for faceAPI 3.2.6. combined with tracker class in DLL.
Even managed to get the video-widget connected to the main-window...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@56 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'faceAPI/utils.h')
-rw-r--r-- | faceAPI/utils.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/faceAPI/utils.h b/faceAPI/utils.h index 9c67665e..1fdb35b5 100644 --- a/faceAPI/utils.h +++ b/faceAPI/utils.h @@ -25,7 +25,7 @@ namespace sm bool g_ctrl_c_detected(false);
bool g_do_head_pose_printing(false);
bool g_do_face_data_printing(false);
- unsigned short g_overlay_flags(SM_API_VIDEO_DISPLAY_HEAD_MESH);
+ unsigned short g_overlay_flags(SM_API_VIDEO_DISPLAY_HEAD_MESH | SM_API_VIDEO_DISPLAY_PERFORMANCE);
// CTRL-C handler function
void __cdecl CtrlCHandler(int)
@@ -324,20 +324,20 @@ namespace sm {
HANDLE console_handle = GetStdHandle(STD_OUTPUT_HANDLE);
// Buffer of 255 x 1024
- ////COORD buffer_size;
- ////buffer_size.X = 255;
- ////buffer_size.Y = 1024;
- ////SetConsoleScreenBufferSize(console_handle, buffer_size);
- ////// Window size of 120 x 50
- ////SMALL_RECT window_size;
- ////window_size.Left = 0;
- ////window_size.Right = 20;
- ////window_size.Top = 0;
- ////window_size.Bottom = 20;
- ////SetConsoleWindowInfo(console_handle,TRUE,&window_size);
+ COORD buffer_size;
+ buffer_size.X = 255;
+ buffer_size.Y = 1024;
+ SetConsoleScreenBufferSize(console_handle, buffer_size);
+ // Window size of 120 x 50
+ SMALL_RECT window_size;
+ window_size.Left = 0;
+ window_size.Right = 120;
+ window_size.Top = 0;
+ window_size.Bottom = 50;
+ SetConsoleWindowInfo(console_handle,TRUE,&window_size);
// Green text
SetConsoleTextAttribute(console_handle, FOREGROUND_GREEN | FOREGROUND_INTENSITY);
- ShowWindow(GetConsoleWindow(), SW_HIDE);
+// ShowWindow(GetConsoleWindow(), SW_HIDE);
}
}
}
|