46 lines
910 B
C++
46 lines
910 B
C++
/**
|
|
* 视频辅助判定来车状态
|
|
* */
|
|
|
|
#ifndef VIDEOAUXILIARYENGINE_H
|
|
#define VIDEOAUXILIARYENGINE_H
|
|
|
|
#include "AppCommon.h"
|
|
|
|
#include "EngineBase.h"
|
|
#include "EngineFactory.h"
|
|
#include "Config.h"
|
|
#include "TimeUtil.h"
|
|
#include "StringUtil.h"
|
|
#include "BaseSocket.h"
|
|
#include "BaseComPort.h"
|
|
#include "json/json.h"
|
|
|
|
#define AEI_SOCKET_TYPE 0
|
|
#define AEI_COM_TYPE 1
|
|
|
|
class VideoAuxiliaryEngine : public ai_matrix::EngineBase
|
|
{
|
|
public:
|
|
VideoAuxiliaryEngine();
|
|
~VideoAuxiliaryEngine();
|
|
|
|
APP_ERROR Init() override;
|
|
APP_ERROR DeInit() override;
|
|
APP_ERROR Process() override;
|
|
|
|
private:
|
|
|
|
std::string strPort0_;
|
|
|
|
ai_matrix::VideoAuxiliaryConfig videoAuxiliaryConfig_;
|
|
BaseSocket baseScoket_;
|
|
std::string carType_;
|
|
|
|
bool getOrder(const std::string &recv, Json::Value &order);
|
|
void dealSocketInfo(const std::string &info);
|
|
};
|
|
|
|
ENGINE_REGIST(VideoAuxiliaryEngine)
|
|
|
|
#endif |