123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #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 "NumberDectect.h"
- #include "InstructionsDectect.h"
- #include "ContactDectect.h"
- #include "TriangleDisconnectorDectect.h"
- #include "OperatingHandleStateDectect.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);
- 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();
- };
|