-
Notifications
You must be signed in to change notification settings - Fork 1
/
yolov3.h
65 lines (34 loc) · 1.02 KB
/
yolov3.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
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef YOLOV3_H
#define YOLOV3_H
#include<QFile>
#include<QVector>
#include<opencv2/core.hpp>
#include<opencv2/imgproc.hpp>
#include<opencv/cv.hpp>
class yolov3:public QObject
{
Q_OBJECT
public:
yolov3();
QVector<QString>classes;
QVector<int>classids;
QVector<float>confidences;
QVector<QRect>boxes;
cv::Mat image;
signals:
void send_boxes(QVector<QRect>&qbox);
private:
//initialize the parameter
float confThreshold=0.5; //confidence threshold
float nmsThreshold =0.4; //Non-maxium suppression threshold
int inpWidth=416; //Width of network's input image
int inpHeight=416; //Height of network's input image
QString classesFile="coco.names";
QString line;
QString modelConfiguration="yolov3.cfg";
QString modelWeights="yolov3.weights";
void load_network();
private slots:
void recieve_image(cv::Mat& img);
};
#endif // YOLOV3_H