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.
33 lines
735 B
33 lines
735 B
#ifndef __MOTION_DETECTOR_HEADER__
|
|
#define __MOTION_DETECTOR_HEADER__
|
|
|
|
#include "../../../components/base/basicVideoAnalyzer.h"
|
|
|
|
class motionDetector: 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;
|
|
|
|
protected:
|
|
virtual bool m_fImageAnalyzer( Mat &Picture );
|
|
public:
|
|
motionDetector();
|
|
motionDetector( int Width, int Height, double Area );
|
|
~motionDetector();
|
|
virtual void markup( Mat &Picture );
|
|
void setParametersEx(int SST, int DetectionWindow);
|
|
};
|
|
|
|
|
|
|
|
#endif
|