Train_Identify/nvidia_ascend_engine/common_engine/TransEngine/TransChkDateEngine.h

38 lines
937 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 定检期信息推理结果转换引擎
* */
#ifndef TRANSCHKDATEENGINE_H
#define TRANSCHKDATEENGINE_H
#include "AppCommon.h"
#include "MyYaml.h"
#include "EngineBase.h"
#include "EngineFactory.h"
class TransChkDateEngine : public ai_matrix::EngineBase
{
public:
TransChkDateEngine();
~TransChkDateEngine();
APP_ERROR Init() override;
APP_ERROR DeInit() override;
APP_ERROR Process() override;
private:
//定检期框内容转换
void TransChkDate(TransSubData &transSubData, std::map<int, std::vector<SingleData>> &mapLine);
//push数据到队列队列满时则休眠一段时间再push
void PushData(const std::string &strPort, const std::shared_ptr<ProcessData> &pProcessData);
bool bUseEngine_;
std::string strPort0_;
ai_matrix::ModelConfig modelConfig_;
std::vector<std::string> vecClassNames_; // 分类名称集合
};
ENGINE_REGIST(TransChkDateEngine)
#endif