InstructionsDectect.h 726 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "IDetection.h"
  3. class InstructionsDectect :IDetection
  4. {
  5. public:
  6. IDetection::DectectResult GetStateResult(cv::Mat img, cv::Rect rec);
  7. IDetection::DectectResult GetDigitResult(cv::Mat img, cv::Rect rec);
  8. bool Detect(cv::Mat& SrcImg);
  9. bool Init(bool isCuda);
  10. private:
  11. IDetection::DectectResult resultValue;
  12. cv::dnn::Net net;
  13. const std::vector<std::string> className = {
  14. "lighting",
  15. "loacl",
  16. "remote",
  17. "close",
  18. "open",
  19. "manual",
  20. "trip",
  21. "run",
  22. "quit" ,
  23. "reset",
  24. "dispatch",
  25. "stored_energy",
  26. "no_stored_energy",
  27. "fault",
  28. "energy_storage",
  29. "off",
  30. "on"
  31. };
  32. };