2015-07-20 32 views
1

我想停止Node.js中的videoCaputure。我該怎麼做?如何使用節點和openCV停止videoCapture()

var cv = require('opencv'); 
var camWidth = 640; 
var camHeight = 480; 
var camFps = 40; 
var camInterval = 1000/camFps; 

camera = new cv.VideoCapture(0); 
camera.setWidth(camWidth); 
camera.setHeight(camHeight); 

camera.read(function(err, im) { 
    if (err) throw err; 
    ... 
} 

現在,我想停止videoCapture ...

回答