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

  • Hall
    说明:  使用stm32f103编写程序,实现霍尔元件测速功能(Using STM32F103 to write program to realize the function of Hall element speed measurement)
    2019-12-05 09:15:12下载
    积分:1
  • RRT-path-panning-algorithm
    本文以自主驾驶车辆为实际应用背景.提出了一种改进的RRT(快速随机搜索树)路径规划算法.该路 径规划算法将非完整性约束条件与双向多步扩展RRT搜索算法相结合,在提高搜索效率的同时保证了规划路径的可 行性.同时将路径点作为B样条基函数的控制点,用三次B样条函数来拟合控制点生成平滑可跟踪的路径.通过在平 面障碍物环境下实验,验证了该算法的有效性.(AimingattheapplicationofALV(automaticlandvehicle),animprovedRRT(RapidlyRandom?exploring Trees)pathplanningalgorithm isproposed.Thealgorithm combinesthenoholonomicconstraintsofvehiclewithdoubleextend RRTs,whichnotonlyimprovestheefficiencyofsearchingbutalsoguaranteesthefeasibilityofthepathatthesametime.Thepath pointsaretakenasreferencepointsfortheB?splinebasicfunction,approachandcreateanewsmoothroutewhichsuitsforthevehi? cletofollow.Thesimulationoutcomesandfieldtestsverifytheeffectivenessofthemethodproposed.)
    2012-12-01 18:39:27下载
    积分:1
  • twiner.tar
    说明:  twin protocol to newcamd protocol
    2020-06-17 20:40:04下载
    积分:1
  • BOSS_C
    本程序是使用 TURBO C 语言BOSS窗口开发程序库的应用程序。(This is an application program developped by TURBO C and BOSS windows developping application library.)
    2005-04-27 12:02:39下载
    积分:1
  • Mean-Shift-object-tracking
    meanshift object tracking
    2011-05-08 00:10:07下载
    积分:1
  • 地震数据道头
    读取地震数据所必须的道头结构体,用c语言写的。
    2022-02-03 15:28:24下载
    积分:1
  • 泊车系统
    停车系统,用c++写的小例子,方便大家学习(Parking system, written with c++ small example, convenient for everyone to learn)
    2019-06-23 11:04:25下载
    积分:1
  • MSP430F4152
    MSP430F4152系列经典代码,包括所有的功能模块(MSP430 series of classic code details)
    2017-12-23 16:31:17下载
    积分:1
  • 世纪杯成品
    说明:  激光雷达测距,树莓派识别二维码,路径规划,定向搬运(Laser radar ranging, raspberry pie recognition two-dimensional code, path planning, directional handling)
    2020-06-19 17:40:02下载
    积分:1
  • msp430无刷电机PWM 及12864液晶驱动程序。CCS
    包含24L01收发,12864液晶  矩阵键盘检测程序,控制PWM占空比控制电调调节电机转速。分为接收器和主机,在程序里修改宏定义就可以了。去年暑假没事写的。
    2022-05-25 09:49:44下载
    积分:1
  • 696518资源总数
  • 105918会员总数
  • 20今日下载