gooutlook

 

 

#include "stdafx.h"
#include <opencv2\opencv.hpp>
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
	cvNamedWindow("我的摄像头", CV_WINDOW_AUTOSIZE);
	//captue = cvCaptureFromCAM(0);
	VideoCapture captue(0);//创建一个摄像头对象并且指定摄像头编号,只有一个写0就可以
	//captue = cvCreateCameraCapture(0);
 
	Mat frame;
	while (1)
	{
		captue >> frame;
		imshow("我的摄像头", frame);
		waitKey(30);
	}
	return 0;
}

  

分类:

技术点:

相关文章:

  • 2021-09-10
  • 2021-12-26
  • 2022-01-22
  • 2022-12-23
  • 2021-12-21
  • 2021-07-11
  • 2021-12-27
  • 2021-07-09
猜你喜欢
  • 2021-12-04
  • 2021-10-31
  • 2022-02-23
  • 2022-01-28
  • 2022-01-23
  • 2021-04-06
相关资源
相似解决方案