forked from ROCm/MIVisionX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserInterface.h
51 lines (42 loc) · 831 Bytes
/
UserInterface.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
#pragma once
#include <opencv2/opencv.hpp>
#include "DGtest.h"
struct CallbackData {
cv::String windowName;
cv::Mat image;
bool isDrawing = false;
cv::Point p1, p2;
};
class UserInterface
{
public:
/**
* Constructor
*/
UserInterface(const char* weights);
/**
* Destructor
*/
~UserInterface();
/**
* Starts the UI
*/
void startUI();
/**
* Mouse function for drawing
*/
static void onMouse(int event, int x, int y, int, void*);
private:
/**
* Main window name for user interface
*/
cv::String mWindow = "Palette";
/**
* Progress window name for user interface
*/
cv::String mProgressWindow = "MIVisionX DGtest";
/**
* Digit detector
*/
std::unique_ptr<DGtest> mDetector;
};