You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.0 KiB

#ifndef __DARKNET_DETECTOR_HEADER__
#define __DARKNET_DETECTOR_HEADER__
#include "../../../components/base/basicVideoAnalyzer.h"
extern "C" {
#include "../../../data/darknet/src/image.h"
}
using namespace cv;
using namespace DN;
class darknetDetector: public basicVideoAnalyzer {
private:
int m_iWidth;
int m_iHeight;
int m_iSST;
int m_iCounterSST;
int m_iWindow;
int m_iCounterWindow;
double m_dArea;
bool m_bDilatePicture;
Mat m_oMat;
tContours m_vContours;
tHierarhy m_vHierarchy;
network m_oNeuralNetwork;
char **m_vNames;
struct DN_list *m_sOptions;
//image **m_vAlphabet;
layer m_lLastLayer;
float m_fThresh;
float m_fHier_Thresh;
box *m_pBoxes;
float **m_vProbs;
float **m_vMasks;
protected:
virtual bool m_fImageAnalyzer( Mat &Picture );
public:
darknetDetector();
~darknetDetector();
virtual void markup( Mat &Picture );
void setParametersEx(int SST, int DetectionWindow);
};
#endif