>frame;   imshow("a",frame);  waitKey(30); }  return0;}-IMDN开发者社群-imdn.cn"> >frame;   imshow("a",frame);  waitKey(30); }  return0;} - IMDN开发者社群-imdn.cn">
登录
首页 » c++ » opencv打开USB摄像头

opencv打开USB摄像头

于 2023-05-01 发布 文件大小:3.99 MB
0 106
下载积分: 2 下载次数: 1

代码说明:

#include #include #include #include using namespace cv; int main() {  VideoCapture capture(1);  //namedWindow("a", CV_WINDOW_NORMAL);  //setWindowProperty("a", CV_WND_PROP_FULLSCREEN);  //capture.set(CV_CAP_PROP_FRAME_WIDTH, 1920.0);  //capture.set(CV_CAP_PROP_FRAME_HEIGHT, 1920.0);    while (1)  {   Mat frame;   capture >> frame;     imshow("a", frame);   waitKey(30);  }    return 0; }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 人工势场法(3维alpha)
    说明:  人工势场三维仿真图,程序可以运行。。。。。。。。(Artificial potential field three-dimensional simulation diagram , the program can run.)
    2021-02-21 22:49:41下载
    积分:1
  • 3dfdtd
    fdtd 电磁计算 三维电磁仿真技术 电磁场计算 fdtd 算法(fdtd Em compute em field calculation )
    2014-02-09 17:16:19下载
    积分:1
  • IIRlunwencailiao
    IIR滤波器的设计方法,以及所有论文资料,谢谢下载,支持网站发展(IIR filter design methods and information of all papers, thank you download support site development)
    2010-05-18 16:15:01下载
    积分:1
  • STC12C2052AD
    STC单片机检测IO电平变化,并计数,接收到串口指令时,发送计数或者控制继电器输出(STC microcontroller detects the change of IO level, counts and receives the serial port instruction, sends the count or controls the relay output.)
    2018-05-31 13:17:55下载
    积分:1
  • amosa
    多目标最新优化算法,可以在GCC编译器下面通过,是目前目标标优化算法的代表(Multi-objective the latest optimization algorithm, through beneath the GCC compiler, is representative of the target standard optimization algorithm)
    2013-01-09 22:21:50下载
    积分:1
  • adpmedian
    这是自适应中值滤波的matlab函数实现,可以清晰的保存图像的细节。(This is the adaptive median filtering matlab function to achieve, you can save the image clear the details.)
    2012-01-07 16:46:31下载
    积分:1
  • keyboard-
    键盘程序,能控制云台和球机的上下、左右、变倍等功能(Keyboard program that can control PTZ and dome up and down, left and right, zoom and other functions)
    2014-02-18 16:06:44下载
    积分:1
  • Tree
    TREE控件代码。已在本机调试好。可以使用。数据库为ACESS。(TREE control code. Has been good on the local debugging. Can be used. Database for ACESS.)
    2008-06-01 10:30:20下载
    积分:1
  • 430串口通信
    #include "sim900c.h" uchar ATE0[]="ATE0 "; //关闭回显 uchar CREG_CMD[]="AT+CREG? "; //获取网络当前的注册状态 uchar SMS_send[]="AT+CMGS=32 "; uchar ATCN[]="AT+CNMI=2,1 ";         //新短信提示命令 uchar CMGR[12]="AT+CMGR=1 "; //查看一号短信 uchar CMGD[12]="AT+CMGD=1 "; //删除一号短信 //add uchar CMGF0[]="AT+CMGF=0 ";   //设置短信格式为PDU格式 uchar CMGF1[]="AT+CMGF=1 ";   //设置短信格式为TEXT格式 uchar CSCA[]="AT+CSCA=+8613800290500 ";//短信中心号码 uchar CMGS[]="AT+CMGS=18706741665 ";//发送方手机号码 uchar Sms1_txt[]="wo shi hao ren";    uchar SEND_MESSA_CONTENT[20]="zhinengsushe";//消息发送内容 int g_timeout=0; void led(int i) {            P3OUT |= (0x01
    2022-04-17 00:07:46下载
    积分:1
  • ga_lm_bp
    4-9-1的结构ga-lm的bp算法 有示例数值 不是拟合而是预测(4-9-1 structure of ga-lm bp algorithm is not fit but there are examples of numerical prediction)
    2013-12-23 21:25:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载