FuncPersonOnWork.h 948 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef FUNCPERSONONWORK_H
  2. #define FUNCPERSONONWORK_H
  3. #include "FuncBase.h"
  4. #include "spdlog/spdlog.h"
  5. /**
  6. * @brief 人员在岗识别线程
  7. * 1、这个写入tWorkOnInfo表格,十分钟写一次,记录这十分钟内的在岗离岗的人员信息,同时记录这十分钟房间内
  8. * 的人员数量最大值和最小值。
  9. * 2、
  10. * 3、这个线程也会进行在岗离岗的识别报警
  11. *
  12. */
  13. class FuncPersonOnWork : public FuncBase
  14. {
  15. public:
  16. FuncPersonOnWork();
  17. ~FuncPersonOnWork();
  18. void thread_task() override;
  19. private:
  20. std::shared_ptr<spdlog::logger> m_logger = nullptr;
  21. ListAlarmInfo m_listAlarm; /* 报警列表 */
  22. /* 保存每个摄像机的报警信息 */
  23. std::shared_ptr<std::list<AlarmInfo>> m_pListAlarm = nullptr;
  24. /* 保存人脸信息的数据 */
  25. ListRoomFaceInfo* m_pListRoomFace = nullptr;
  26. };
  27. #endif /* FUNCPERSONONWORK_H */