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.

62 lines
1.5 KiB

/*
* @Author: your name
* @Date: 2022-04-20 15:49:50
* @LastEditTime: 2025-09-16 21:19:45
* @LastEditors: xiewenji 527774126@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ZCXD_MonitorPlatform/src/CoreLogicModule/include/CamDeal.h
*/
#ifndef Product_H_
#define Product_H_
#include <iostream>
#include <stdio.h>
#include <sys/time.h>
#include <opencv2/opencv.hpp>
#include <condition_variable>
#include <mutex>
#include <vector>
#include <thread>
#include <string>
#include <stdlib.h>
#include "Define_Product.hpp"
#include "CameraResult.h"
#include "CheckErrorCodeDefine.hpp"
#include "ImageDetConfig.h"
using namespace std;
using namespace cv;
class Product
{
private:
/* data */
public:
Product(/* args */);
~Product();
std::shared_ptr<CameraResult> GetCameraResult(std::string strcameraName);
void AddLog(std::string str);
// 更新 送图状态
void UpdatePushStatus(int status);
// 是否全部检测完成
bool bCheckCamplate();
public:
// 相机结果
std::vector<std::shared_ptr<CameraResult>> m_pCameraResultList;
std::shared_ptr<ProductBaseResult> productBaseResult;
// 图片是否都送完了。
bool bIsImgComplete = false;
// 日志
std::vector<std::string> LogList;
std::mutex mtx_CameraResultList;
private:
std::mutex mtx_;
// 多线程安全
PRINT_LOG_ m_PrintLog;
};
#endif