forked from Linquas/Barcode-Decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.h
44 lines (35 loc) · 724 Bytes
/
display.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
#ifndef DISPLAY_H
#define DISPLAY_H
#include <QGLWidget>
#include <QPainter>
#include <QImage>
#include <QPixmap>
#include <opencv2/opencv.hpp>
namespace Ui {
class Display;
}
class Display : public QGLWidget
{
Q_OBJECT
public:
explicit Display(QWidget *parent = 0);
~Display();
protected:
void paintEvent(QPaintEvent *);
signals:
public slots:
void loadImg(cv::Mat);
void updateScreen();
void slotGetBarcodeLocation(cv::Rect);
void slotIsBarcodeLocated(bool);
void cleanScrean();
void startDisplay();
private:
Ui::Display *ui;
QPainter *painter;
cv::Mat img;
bool isBarcodeLocated;
bool isProgramRun;
cv::Rect barcadeLocation;
};
#endif // DISPLAY_H