-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabwidget.h
58 lines (47 loc) · 1.01 KB
/
tabwidget.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 TABWIDGET_H
#define TABWIDGET_H
#include <QTabWidget>
#include <QTimer>
#include <opencv.hpp>
#include <vector>
#include <QComboBox>
namespace Ui {
class TabWidget;
}
class TabWidget : public QTabWidget
{
Q_OBJECT
public:
explicit TabWidget(QWidget *parent = nullptr);
~TabWidget();
private slots:
//Snap
void snapPlay();
void snapSnap();
void timerStartRefresh();
void timerStopRefresh();
bool fileExist(const std::string& name);
void roicountUpdater();
//FD
void loadFile();
void loadNet();
void defectDetect();
//RTD
//Settings
void setImgDir();
//Info&Help
private:
Ui::TabWidget *ui;
int ROI_Count = 0;
QTimer *m_pTimer;
cv::VideoCapture *m_pVideo1, *m_pVideo2;
std::vector<int> compression_params;
int m_sysIdx;
cv::Mat* m_pImg;
cv::VideoCapture* m_pVdo;
cv::dnn::Net* m_pNet;
void setSysIdx();
bool winOrLnx();
cv::Mat litPic(cv::Mat src, int cols, int rows);
};
#endif // TABWIDGET_H