1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #pragma once
- #include <nlohmann/json.hpp>
- #include <string>
- #include<iostream>
- #include<opencv2/opencv.hpp>
- #include <opencv2/highgui/highgui_c.h>
- #include <iostream>
- #include <vector>
- #include <algorithm>
- #include <cstdlib>
- #include <fstream>
- #include "YunDaISASImageRecognitionService.h"
- #include "DisconnectorDectect.h"
- #include "OilLevelDectect.h"
- #include "LightDectect.h"
- #include "AirSwitchDectect.h"
- #include "ChangeoverSwitchDectect.h"
- #include "IndoorDisconnectorDectect.h"
- #include "MeterDectect.h"
- #include "CharacterDectect.h"
- #include "DisconnectorStateDectect.h"
- #include "ElectronPlateDectect.h"
- #include "ClassifyDectect.h"
- #include "AppearanceClassifyDectect.h"
- #include "NumberDectect.h"
- #include "InstructionsDectect.h"
- #include "ContactDectect.h"
- #include "TriangleDisconnectorDectect.h"
- #include "OperatingHandleStateDectect.h"
- #include "PressplateDectect.h"
- #include "PersonBehaviorDetect.h"
- #include "InsulatorDetect.h"
- #include "CircleOffOnPlateDectect.h"
- using namespace std;
- using json = nlohmann::json;
- class JdydAlgorithnm
- {
- private:
- static void GetMaxConfidenceRecoResult(string& tempResult, string& tempResultValue,const string instructionsDectectResultStr, vector<Output> result, int maxCenterBoxId, const int pluginNameId, const cv::Mat ROI);
- static void AppearanceGetMaxConfidenceRecoResult(string& tempResult, string& tempResultValue, const string instructionsDectectResultStr, vector<Output2> result2, int maxCenterBoxId, const int pluginNameId, const cv::Mat ROI);
- public:
- //static JdydAlgorithnm& getInstance();
- static json CallAlgorithnm(string pluginName, string filePath, string modelPath, int* roiVec, string pcArg);
- static bool Init();
- static ClassifyDectect& GetClassifyDectectInstance();
- static DisconnectorDectect& GetdisconnectorDectectInstance();
- static OilLevelDectect& GetoilLevelDectectInstance();
- static LightDectect& GetlightDectectInstance();
- static AirSwitchDectect& GetairSwitchDectectInstance();
- static ChangeoverSwitchDectect& GetchangeoverSwitchDectectInstance();
- static IndoorDisconnectorDectect& GetindoorDisconnectorDectectInstance();
- static MeterDectect& GetmeterDectectInstance();
- static CharacterDectect& GetcharacterDectectInstance();
- static DisconnectorStateDectect& GetdisconnectorStateDectectInstance();
- static ElectronPlateDectect& GetelectronPlateDectectInstance();
- static NumberDectect& GeNumberDectectInstance();
- static OperatingHandleStateDectect& GetoperatingHandleStateDectectInstance();
- static PressplateDectect& GetpressplateDectectInstance();
- static PersonBehaviorDetect& GetpersonBehaviorDetectInstance();
- static CircleOffOnPlateDectect& GetcircleOffOnPlateDectectInstance();
- static AppearanceClassifyDectect& GetAppearanceClassifyDectectInstance();
- static InsulatorDetect& GetInsulatorDetectInstance();
- };
|