12345678910111213141516171819202122 |
- #pragma once
- #include "IDetection.h"
- class DisconnectorDectect: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 = {
- "connection",
- "disconnection",
- };
- };
|