123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include "IDetection.h"
- class InstructionsDectect :IDetection
- {
- public:
- IDetection::DectectResult GetStateResult(cv::Mat img, cv::Rect rec);
- IDetection::DectectResult GetDigitResult(cv::Mat img, cv::Rect rec);
- bool Detect(cv::Mat& SrcImg);
- bool Init(bool isCuda);
- private:
- IDetection::DectectResult resultValue;
- cv::dnn::Net net;
- const std::vector<std::string> className = {
- "lighting",
- "loacl",
- "remote",
- "close",
- "open",
- "manual",
- "trip",
- "run",
- "quit" ,
- "reset",
- "dispatch",
- "stored_energy",
- "no_stored_energy",
- "fault",
- "energy_storage",
- "off",
- "on"
- };
- };
|