forked from gg-fu/arm-video-opencv-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
58 lines (48 loc) · 1.02 KB
/
mainwindow.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
55
56
57
58
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPaintEvent>
#include <QTimer>
#include <QPainter>
#include <QPixmap>
#include <QLabel>
#include <QImage>
#include <QDebug>
#include <math.h>
#include <iostream>
#include <opencv2/opencv.hpp>
#include "opencv2/video.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/videostab.hpp"
#include "ui_mainwindow.h"
#include "video.h"
using namespace cv;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void pushButton_2_clicked();
void getFrame();
void pushButton_3_clicked();
void pushButton_clicked();
void on_pushButton_4_clicked();
private:
Ui::MainWindow *ui;
VideoCapture capture;
QTimer *timer;
camera_t* camera;
uint32_t width;
uint32_t height;
CCamera *C_camera;
int rgb24Size;
int rgb24Pitch;
unsigned char *rgb24;
bool flag=true;
};
#endif // MAINWINDOW_H