26
src/pBox.h
26
src/pBox.h
@@ -6,12 +6,15 @@
|
||||
#include <opencv2/core/cvstd.hpp>
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* 声明结构体
|
||||
*/
|
||||
|
||||
using namespace std;
|
||||
//#define mydataFmt double
|
||||
#define Num 128
|
||||
typedef float mydataFmt;
|
||||
|
||||
|
||||
struct pBox : public cv::String {
|
||||
mydataFmt *pdata;
|
||||
int width;
|
||||
@@ -19,7 +22,6 @@ struct pBox : public cv::String {
|
||||
int channel;
|
||||
};
|
||||
|
||||
|
||||
struct pRelu {
|
||||
mydataFmt *pdata;
|
||||
int width;
|
||||
@@ -30,7 +32,6 @@ struct BN {
|
||||
int width;
|
||||
};
|
||||
|
||||
|
||||
struct Weight {
|
||||
mydataFmt *pdata;
|
||||
mydataFmt *pbias;
|
||||
@@ -45,25 +46,6 @@ struct Weight {
|
||||
int padh;
|
||||
};
|
||||
|
||||
class pBox1 {
|
||||
public:
|
||||
vector<vector<vector<mydataFmt>>> pdata;
|
||||
};
|
||||
|
||||
class pRelu1 {
|
||||
public:
|
||||
vector<mydataFmt> pdata;
|
||||
};
|
||||
|
||||
class Weight1 {
|
||||
public:
|
||||
vector<vector<vector<vector<mydataFmt>>>> pdata;
|
||||
vector<mydataFmt> pbias;
|
||||
int stride;
|
||||
int padw;
|
||||
int padh;
|
||||
};
|
||||
|
||||
struct Bbox {
|
||||
float score;
|
||||
int x1;
|
||||
|
||||
Reference in New Issue
Block a user