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
1.1 KiB

#ifndef __IM_DNNWORKER_H_INCL__
#define __IM_DNNWORKER_H_INCL__
#include "../../lib/components/base/basicVideoAnalyzer.h"
#include "../../lib/components/base/basicSettingsProvider.h"
#include <opencv2/dnn/dnn.hpp>
/**
* TODO: Add class description
*
* @author Gagua
*/
class IM_DnnWorker : public basicVideoAnalyzer {
private:
basicLogCollection * m_pLog;
config_setting_t * m_pSettings;
cv::dnn::Backend m_eBackendEngine;
cv::dnn::Target m_eTargetDevice;
cv::dnn::Net m_net;
char m_pConfigPath[1024];
char m_pWeightsPath[1024];
protected:
//virtual void m_fThreadProc( void );
virtual bool m_fImageAnalyzer( Mat &Picture );
public:
// Constructor
explicit IM_DnnWorker( config_setting_t * Settings = NULL );
// Destructor
virtual ~IM_DnnWorker();
bool create( void );
};
#endif // __IM_DNNWORKER_H_INCL__