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

  • 四大经典排序算法代码(matlab)
    四大经典排序算法代码(matlab)四大经典排序算法代码(matlab)四大经典排序算法代码(matlab) 选择排序、插入排序、冒泡排序、合并排序
    2022-01-26 00:34:12下载
    积分:1
  • stm32矩阵键盘
    本人一行行写出来的.适用于寄存器写和库版本写都可以用,反转法循环扫描;由于本人接的是GPIOB PIN8 - PIN 15 所以字节都是左移了两位的 后面移回来了. 输出的时候要 推挽输出 输入的时候要上拉输入;如果直接从pin0-pin7 那就更容易了.键盘直接接的IO口 没其他外拉了..。。。。。。。。。
    2023-04-27 08:35:04下载
    积分:1
  • Huffman
    数据结构,利用霍夫曼树实现文本数据的压缩。(Huffman data compression and decompression.)
    2014-01-28 18:25:24下载
    积分:1
  • OpenGL
    OpenGL 模型的点线面 显示实例,附加光源 旋转 等多个函数 有测试obj 文件。(Point, Line OpenGL model displays a plurality of function instances, additional light rotation obj files have the test.)
    2016-01-04 21:12:28下载
    积分:1
  • vc_bit_big
    档案管理系统的 档案管理系统的 档案管理系统的 档案管理系统的 档案管理系统的 ( docment manegemant docment manegemant docment manegemant docment manegemant)
    2009-12-01 10:12:57下载
    积分:1
  • 单次多通道adc程序
    MSP430F552x Demo - ADC12, Repeated Single Channel Conversions // //  Description: This example shows how to perform repeated conversions on a //  single channel using "repeat-single-channel" mode.  AVcc is used for the //  reference and repeated conversions are performed on Channel A0. Each //  conversion result is moved to an 8-element array called results[].  Test by //  applying a voltage to channel A0, then running. Open a watch window in //  debugger and view the results. Set Breakpoint1 in the index increment line //  to see the array value change sequentially and Breakpoint to see the entire //  array of conversion results in "results[]" for the specified Num_of_Results. //  This can run even in LPM4 mode as ADC has its own clock // //                MSP430F552x //         &nb
    2022-01-25 14:37:15下载
    积分:1
  • cprogram
    51单片机常用的C程序例子。非常适合单片机控制多媒体方面的(51 SCM common example of C program. Very suitable for microcomputer control of multi-media)
    2010-09-12 15:25:44下载
    积分:1
  • TCT40-16TR
    超声波传感器 TCT40-16TR 程序 电路,超声波传感器 TCT40-16TR 程序 电路(ultrasonic sensor TCT40-16TR programme circuit,ultrasonic sensor TCT40-16TR programme circuit)
    2009-04-29 23:47:24下载
    积分:1
  • SANBAN
    数字散斑相关程序,能够计算2副图片的位移,简单的例子,对初学者也许有用。(Digital speckle correlation program can calculate the displacement of two images, a simple example, may be useful for beginners.)
    2020-11-25 17:39:32下载
    积分:1
  • TFT3.5
    TFT3.5触摸彩屏 校正,C51单片机程序(TFT3.5 touch color correction, C51 MCU program)
    2013-10-30 10:42:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载