-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcameracapture.h
54 lines (52 loc) · 1.15 KB
/
cameracapture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef CAMERACAPTURE_H
#define CAMERACAPTURE_H
#include <QThread>
#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QMessageBox>
#include <QTimer>
#include <QLabel>
#include <QTimer>
#include <QDebug>
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
class Cameracapture : public QThread
{
Q_OBJECT
void run();
int camFlag;
int saveFlag;
int waitTime;
int frameCount;
bool intruderFlag;
Mat frame, frameQt;
Mat securityFrame;
void put_string(Mat &frame, string text, Point pt, uint32_t value);
QTimer* pQTimer;
bool timerFlag;
int hue, sat, val, conval, robval, cnt;
int mColor;
public:
static int RED;
static int GREEN;
static int BLUE;
bool colorMode;
public:
explicit Cameracapture(QWidget *parent = nullptr);
bool getCamFlag();
void setCamFlag(bool);
void showImage(Mat img);
void securityProcess();
QLabel* pTLcamView;
void camTimerStartStop(bool);
void camSnapshot();
void colorProcess();
signals:
void sigSocketSendData(QString);
public slots:
void slotMScounter();
};
#endif // CAMERACAPTURE_H