-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdetectviewer.h
37 lines (33 loc) · 888 Bytes
/
detectviewer.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
#ifndef DETECTVIEWER_H
#define DETECTVIEWER_H
#include <iostream>
#include "Detector.h"
#include <QOpenGLWidget>
#include <QOpenGLFunctions>
#include <qpainter.h>
#include "VideoCaptureAdaptor.hpp"
#include "PictureCaptureAdaptor.hpp"
#include "CameraCaptureAdaptor.hpp"
#include "CaptureAdaptor.hpp"
#include <QMouseEvent>
#include <qmessagebox.h>
using namespace cv;
class DetectViewer : public QOpenGLWidget, public QOpenGLFunctions
{
Q_OBJECT
public:
explicit DetectViewer(QWidget *parent = nullptr);
~DetectViewer();
inline void setRunning(bool val) { dtcr.setRunning(val); }
inline Detector* getDetector() { return &dtcr; }
inline void setFill(bool val) { _isFill = val; }
protected:
void initializeGL() override;
void paintGL() override;
void mouseMoveEvent(QMouseEvent *event);
signals:
private:
Detector dtcr;
bool _isFill;
};
#endif // DETECTVIEWER_H