-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.h
52 lines (35 loc) · 789 Bytes
/
hello.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
#ifndef HELLO_H
#define HELLO_H
#include <QMainWindow>
#include <opencv2/core.hpp>
namespace Ui {
class Hello;
}
class QTimer;
class QLabel;
class Hello : public QMainWindow
{
Q_OBJECT
public:
explicit Hello(QWidget *parent = 0);
~Hello();
public slots:
void onSelectSrc();
void onControl();
private slots:
void showPic();
private:
Ui::Hello *ui;
QString state;
QString dir;
QStringList fileList;
int fileIndex;
QTimer * pTimer;
void play();
void stop();
void undistortImage(const cv::Mat &img, cv::Mat &undistortImg);
void showPicInLabel(cv::Mat &img, QLabel *frame);
void updateFileList(const QString &newDir);
void getDoorFrame(cv::Mat &biImg, std::vector<cv::Vec4i> &lines);
};
#endif // HELLO_H