mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
~commented out calls to window functions, trying to fix tests
This commit is contained in:
parent
6ae96cae3d
commit
9edf312229
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user