利用Opencv+Qt打开摄像头

利用Opencv+Qt添加摄像头

  1. 1、opencv包

添加链接描述

  1. 2、安装Qt
  2. 3、代码
#pragma once

#include 
#include "ui_camera.h"
#include 
#include 
#include 
#include "opencv2/opencv.hpp"
#include 
#include  
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#define CAM_TIME 80

class camera : public QWidget
{
	Q_OBJECT

public:
	camera(QWidget* parent = Q_NULLPTR);
	~camera();
	static unsigned int __stdcall play_camera_playing(void*);
	void th_play_camera_playing();
	void get_camera_info();

p

你可能感兴趣的:(qt,qt,opencv,计算机视觉)