博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
功能2:播放视频 + 摄像头视频
阅读量:4298 次
发布时间:2019-05-27

本文共 265 字,大约阅读时间需要 1 分钟。



#include 
using namespace cv;using namespace std;int main(){ //读入视频 //VideoCapture capture("face.mp4"); VideoCapture capture(0); //循环显示 while(true) { Mat frame; //定义一个Mat变量,用于存储每一帧的图像 capture>>frame; //读取当前帧 imshow("读取视频",frame); waitKey(10); } return 0;}

 

转载地址:http://vosws.baihongyu.com/

你可能感兴趣的文章
openstack报错解决三
查看>>
乙未年年终总结
查看>>
子网掩码
查看>>
第一天上班没精神
查看>>
启动eclipse报错:Failed to load the JNI shared library
查看>>
eclipse安装插件的两种方式在线和离线
查看>>
linux下源的相关笔记(suse)
查看>>
linux系统分区文件系统划分札记
查看>>
Linux(SUSE 12)安装Tomcat
查看>>
Linux(SUSE 12)安装jboss4并实现远程访问
查看>>
Neutron在给虚拟机分配网络时,底层是如何实现的?
查看>>
netfilter/iptables全攻略
查看>>
Overlay之VXLAN架构
查看>>
Eclipse : An error occurred while filtering resources(Maven错误提示)
查看>>
在eclipse上用tomcat部署项目404解决方案
查看>>
web.xml 配置中classpath: 与classpath*:的区别
查看>>
suse如何修改ssh端口为2222?
查看>>
详细理解“>/dev/null 2>&1”
查看>>
suse如何创建定时任务?
查看>>
suse搭建ftp服务器方法
查看>>