const wCap = new cv.VideoCapture(0);
var fourcc = cv.VideoWriter.fourcc("MJPG");
var path = 'output.avi';
// Define the codec and create VideoWriter object.The output is stored in 'outpy.avi' file.
const out = new cv.VideoWriter(path, fourcc, 20.0, (640,480), 1);
该程序的输出为
VideoWriter::New - Error: expected argument 3 to be of type Size