备份
This commit is contained in:
@@ -39,3 +39,18 @@ public:
|
||||
virtual bool run() { return true; }
|
||||
};
|
||||
|
||||
class cameraModuleBase : public QObject
|
||||
{
|
||||
public:
|
||||
bool init_flag; //是否初始化,false,true
|
||||
bool status = true; //相机状态(判断相机是否断开连接)
|
||||
std::string paras; //传输数据
|
||||
cv::Mat m_mat; //传输图片
|
||||
std::string moduleName; //模块名称
|
||||
public:
|
||||
cameraModuleBase() {}
|
||||
virtual ~cameraModuleBase() {}
|
||||
virtual bool captrue(std::vector<cv::Mat>&, QByteArray&) { return true; }
|
||||
virtual bool writeData(std::vector<cv::Mat>&, QByteArray&) { return true; }
|
||||
virtual bool initParas(QByteArray&) { return true; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user