mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
+CalcOpticalFlowPyrLK method
~GoodFeaturesToTrack hardcoded vars replaced with actual parameters
This commit is contained in:
parent
d1fe7e8f3a
commit
ee4d634639
20
examples/optical-flow.js
Executable file
20
examples/optical-flow.js
Executable file
@ -0,0 +1,20 @@
|
||||
var cv = require('../lib/opencv');
|
||||
|
||||
try {
|
||||
var camera = new cv.VideoCapture(0);
|
||||
var window = new cv.NamedWindow('Video', 0)
|
||||
/*
|
||||
setInterval(function() {
|
||||
camera.read(function(err, im) {
|
||||
if (err) throw err;
|
||||
console.log(im.size())
|
||||
if (im.size()[0] > 0 && im.size()[1] > 0){
|
||||
window.show(im);
|
||||
}
|
||||
window.blockingWaitKey(0, 50);
|
||||
});
|
||||
}, 20);
|
||||
*/
|
||||
} catch (e){
|
||||
console.log("Couldn't start camera:", e)
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user