~commented out calls to window functions, trying to fix tests

This commit is contained in:
Dmitry Ivanovm 2017-03-08 16:30:31 -05:00
parent 6ae96cae3d
commit 9edf312229

View File

@ -2,7 +2,6 @@ var cv = require('../lib/opencv');
var path = require('path');
var cap = new cv.VideoCapture(path.join(__dirname, 'files', 'motion.mov'));
var window = new cv.NamedWindow('Video', 0);
// Parameters for lucas kanade optical flow
var lk_params = {
@ -20,6 +19,10 @@ feature_params = {
// Create some random colors
var color = [255, 0, 0];
/*
var window = new cv.NamedWindow('Video', 0);
*/
// Take first frame and find corners in it
cap.read(function(err, firstFrame) {
if (err) throw err;
@ -45,8 +48,10 @@ cap.read(function(err, firstFrame) {
out.line(flow.old_points[i], flow.new_points[i], color);
}
}
/*
window.show(out);
window.blockingWaitKey(0, 50);
*/
old_frame = newFrame.copy();
read();
});