源代码:

#include <opencv2/highgui/highgui.hpp>  
#include <opencv2/imgproc/imgproc.hpp>  
#include <opencv2/core/core.hpp>  
using namespace cv;
//调用摄像头
int main()
{
	VideoCapture cap(0);
	Mat frame;
	while (1)
	{
		cap >> frame;
		imshow("调用摄像头", frame);
		waitKey(30);
	}
	return 0;
}

人脸识别-调用摄像头

 

相关文章:

  • 2022-01-03
  • 2021-07-21
  • 2021-12-04
  • 2021-09-25
  • 2021-08-13
  • 2022-01-20
  • 2022-01-10
  • 2021-11-21
猜你喜欢
  • 2021-07-22
  • 2021-10-22
  • 2021-11-30
  • 2021-12-18
  • 2021-10-19
  • 2021-11-28
相关资源
相似解决方案