-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
53 lines (42 loc) · 940 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QThread>
#include <QLabel>
#include <QImage>
#include <QPixmap>
#include <QTimer>
#include <QString>
#include <opencv2/opencv.hpp>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
QThread decodeThread;
QThread cameraThread;
QThread setting;
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void focusNum(int);
public slots:
void updateBarcodeImg(const cv::Mat&);
void updateBarcode(const QString);
void slotCameraCheck(bool);
void getSliderValue();
void setCameraFocusValue(int);
void checkCamera(int);
void setFocusStatus(int);
private slots:
void on_close_clicked();
void on_start_clicked();
private:
Ui::MainWindow *ui;
QTimer *timer;
bool cameraFocus,isAutFocusDisable;
int cameraID;
};
#endif // MAINWINDOW_H