© 1999-2048 dssz.net 粤ICP备11031372号
[C/C++] OpenCV打开摄像头提取边缘
说明: VideoCapture 既可以从视频文件读取图像,也可以从摄像头读取图像。可以 使用该类的构造函数打开视频文件或者摄像头。如果 VideoCapture 对象已经创 建,也可以使用 VideoCapture::open()打开,VideoCapture::open()函数会自动调用 VideoCapture::release()函数,先释放已经打开的视频,然后再打开新视频。 如果要读一帧,可以使用 VideoCapture::read()函数。VideoCapture 类重载了>><weixin_43233163> 上传 | 大小:958byte