#pragma once #include "IDetection.h" class ElectronPlateDectect :IDetection { public: IDetection::DectectResult GetStateResult(cv::Mat img, cv::Rect rec); IDetection::DectectResult GetDigitResult(cv::Mat img, cv::Rect rec); vector GetDigitResults(cv::Mat img, cv::Rect rec); bool Detect(cv::Mat& SrcImg); bool Init(bool isCuda); private: IDetection::DectectResult resultValue; vector resultValues; vector output; cv::dnn::Net net; /*const std::vector className = { "three_rows_digit_voltage", "three_rows_digit_current", "two_rows_digit_voltage_current", "one_rows_digit_temperature", "one_rows_digit_count", "one_rows_digit_voltage", "one_rows_digit_current", };*/ const std::vector className = { "digit","state" }; };