-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopencv.h
44 lines (31 loc) · 815 Bytes
/
opencv.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 OPENCV_H
#define OPENCV_H
#include <QWidget>
#include <QLabel>
class OpenCV : public QWidget
{
Q_OBJECT
public:
explicit OpenCV(QWidget *parent = nullptr);
~OpenCV();
void run(const QImage &img, int page);
int getYanlis() const;
void setYanlis(int newYanlis);
int getDogru() const;
void setDogru(int newDogru);
float getNet() const;
void setNet(float newNet);
int getBos() const;
void setBos(int newBos);
signals:
void errorNotify();
void resultsReady(const QImage& finalImg, const int &dogru, const int &yanlis, const int &bos, const float &net);
private:
std::map<int, std::string> answers;
std::map<int, std::string> cevapKagidi;
int dogru = 0;
int yanlis = 0;
int bos = 0;
float net = 0;
};
#endif // OPENCV_H