-
Notifications
You must be signed in to change notification settings - Fork 4
/
mainwindow.h
54 lines (41 loc) · 1.12 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/contrib/contrib.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <QMainWindow>
#include <QLabel>
#include <QTimer>
#include "Header/ft.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
ft::Camera ftcamera;
QTimer *timer;
double fps;
int compteur;
int streamed;
explicit MainWindow(QWidget *parent = 0);
QImage Ipl2QImage(IplImage *newImage);
void ViolaJones(CvHaarClassifierCascade * cascade, CvMemStorage *storage, char KeyStop, char * stream);
void show_loading(char * stream);
~MainWindow();
public slots:
void check_form();
private slots:
void startStream();
void changePixMap(CvCapture *);
void on_actionStart_triggered();
void on_actionStop_triggered();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H