>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 74
下载积分: 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 个回复

  • Myimagesegemention
    VC图像处理中阈值变换,计算图像面积等适合初学者,有一定的指导意义(VC image processing threshold transform, calculating image size suitable for beginners, must have guiding significance)
    2009-03-27 15:39:06下载
    积分:1
  • Standard-CPP
    美国编制C++教程,提高C++编程质量,有利于学习资料,对初学者和入门的都有很提高。(Improve the quality of C++ programming, in favor of learning materials for beginners and entry has very improved)
    2014-01-13 16:35:32下载
    积分:1
  • 基于stm8L的电容触摸开关
    基于stm8L的电容触摸开关例程,主要是使用了stm8系列自带的电容功能。里面包含了3路电容按键的配置以及3路LED的控制,对于STM8 Touch Sensing Library库的配置做了简要说明与配置
    2022-08-25 09:10:51下载
    积分:1
  • clock
    说明:  古老电子荧光管做的数字钟,可以调时间。整点闹钟。(Electronic fluorescent tubes to do the old digital clock, you can transfer time. The whole point of alarm.)
    2010-03-26 10:00:44下载
    积分:1
  • OpenGl_nice_water
    1个OpenGl不错的水面效果(带动态波动)(OpenGl a nice water effects (with dynamic fluctuations))
    2020-10-13 00:27:31下载
    积分:1
  • Kriging_WENG
    c++实现克里金插值法并使用openGL展示等值线(Kriging Interpolation and OpenGL Display)
    2019-06-13 14:47:39下载
    积分:1
  • CodeBuilder
    说明:  代码生成器,C#源码,欢迎交流,带有详细功能,zip格式无密码(Code Builder)
    2011-04-02 08:49:57下载
    积分:1
  • roamingsysterm
    绘制教室,包含有投影仪,空调,可以开灯关灯,贴纹理,光照等。还有3d模型(Draw the classroom, including a projector, air conditioning, you can turn on the lights turn off the lights, stickers texture, lighting and so on. There 3d model)
    2014-12-05 21:49:55下载
    积分:1
  • C# WPF演示窗体模式的切换
    C# WPF演示窗体模式的切换,可以切换到拖放模式,切换到编辑模式。编辑模式切换的例子。
    2022-05-14 05:31:05下载
    积分:1
  • ECG
    该段代码为实现ECG中的解析,从ecg数据中可以得到QRST波形的相关数据。(The code to achieve the analysis of ECG, the related data ECG data can be obtained by QRST waveform.)
    2014-10-13 14:24:37下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载