/* * @Author: your name * @Date: 2022-04-20 15:49:50 * @LastEditTime: 2025-09-16 21:20:28 * @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 CameraResult_H_ #define CameraResult_H_ #include #include #include #include #include #include #include #include #include #include #include "Define_Product.hpp" #include "CheckErrorCodeDefine.hpp" #include "ImgCheckConfig.h" #include "ImageDetConfig.h" #include "ImageAllResult.h" #include "DetLog.h" using namespace std; using namespace cv; class CameraResult { private: /* data */ public: CameraResult(/* args */); ~CameraResult(); void AddLog(std::string str); // 添加图片信息 int AddDetImage(std::shared_ptr p); // 是否全部检测完成 bool bCheckCamplate(); // 设置 检测步骤 Check_Step GetCheckStep(); void SetCheckStep(Check_Step step); // 送图是否全部完成 bool getImgPushComplate(); void setImgPushComplate(); // 返回一个未检测的 图片进行检测 std::shared_ptr GetNoDetImg(); long time_start; bool bJson = false; public: std::vector LogList; std::shared_ptr detlog; std::vector> ImageALLDetResultList; // 每个通道的检测结果 ,返回的结果。 std::shared_ptr productBaseResult; std::shared_ptr cameraBaseResult; CameraImage_Status cameraImage_Status; // 图片状态 std::mutex mtx_Det; // 互斥量 private: bool bIsImgComplete = false; // 图片是否都送完了。 Check_Step checkStep = Check_Step_NODet; // 检测步骤 PRINT_LOG_ m_PrintLog; // 多线程安全 std::mutex mtx_DetImageList; }; #endif