Permalink
Browse files

Attempt to resize the window, but it doesn't seem to have an impact

  • Loading branch information...
jadonk committed Mar 1, 2013
1 parent 58feb5a commit 2cda905b6c8aba68ba8b8c05eaee5dc61f078a02
Showing with 5 additions and 2 deletions.
  1. +4 −1 stache.cpp
  2. +1 −1 tweetstache.js
View
@@ -63,7 +63,7 @@ void inputSetup(int setup);
/** Global variables */
String face_cascade_name = "lbpcascade_frontalface.xml";
CascadeClassifier face_cascade;
-string window_name = "stache - BeagleBone OpenCV demo";
+const char * window_name = "stache - BeagleBone OpenCV demo";
IplImage* mask = 0;
/** Command-line arguments */
@@ -162,6 +162,9 @@ void detectAndDisplay(Mat frame) {
//-- Show what you got
flip(frame, frame, 1);
imshow(window_name, frame);
+
+ //-- 0a. Attempt to resize window
+ cvResizeWindow(window_name, camWidth, camHeight);
}
View
@@ -168,7 +168,7 @@ var stacheExit = function(code, signal) {
winston.info('stache exited: ' + code + ' signal: ' + signal);
};
var stache = child_process.spawn('./stache',
- ['-1','stache-mask.png','6','4','0','640','480','0.5'],
+ ['-1','stache-mask.png','6','4','0','800','480','0.5'],
{stdio:['pipe', 'pipe', process.stderr]}
);
stache.stdout.setEncoding('ascii');

0 comments on commit 2cda905

Please sign in to comment.