JdydAlgorithnm.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include <nlohmann/json.hpp>
  3. #include <string>
  4. #include<iostream>
  5. #include<opencv2/opencv.hpp>
  6. #include <opencv2/highgui/highgui_c.h>
  7. #include <iostream>
  8. #include <vector>
  9. #include <algorithm>
  10. #include <cstdlib>
  11. #include <fstream>
  12. #include "YunDaISASImageRecognitionService.h"
  13. #include "DisconnectorDectect.h"
  14. #include "OilLevelDectect.h"
  15. #include "LightDectect.h"
  16. #include "AirSwitchDectect.h"
  17. #include "ChangeoverSwitchDectect.h"
  18. #include "IndoorDisconnectorDectect.h"
  19. #include "MeterDectect.h"
  20. #include "CharacterDectect.h"
  21. #include "DisconnectorStateDectect.h"
  22. #include "ElectronPlateDectect.h"
  23. #include "ClassifyDectect.h"
  24. #include "NumberDectect.h"
  25. #include "InstructionsDectect.h"
  26. #include "ContactDectect.h"
  27. #include "TriangleDisconnectorDectect.h"
  28. #include "OperatingHandleStateDectect.h"
  29. using namespace std;
  30. using json = nlohmann::json;
  31. class JdydAlgorithnm
  32. {
  33. private:
  34. static void GetMaxConfidenceRecoResult(string& tempResult, string& tempResultValue,const string instructionsDectectResultStr, vector<Output> result, int maxCenterBoxId, const int pluginNameId, const cv::Mat ROI);
  35. public:
  36. //static JdydAlgorithnm& getInstance();
  37. static json CallAlgorithnm(string pluginName, string filePath, string modelPath, int* roiVec, string pcArg);
  38. static bool Init();
  39. static ClassifyDectect& GetClassifyDectectInstance();
  40. static DisconnectorDectect& GetdisconnectorDectectInstance();
  41. static OilLevelDectect& GetoilLevelDectectInstance();
  42. static LightDectect& GetlightDectectInstance();
  43. static AirSwitchDectect& GetairSwitchDectectInstance();
  44. static ChangeoverSwitchDectect& GetchangeoverSwitchDectectInstance();
  45. static IndoorDisconnectorDectect& GetindoorDisconnectorDectectInstance();
  46. static MeterDectect& GetmeterDectectInstance();
  47. static CharacterDectect& GetcharacterDectectInstance();
  48. static DisconnectorStateDectect& GetdisconnectorStateDectectInstance();
  49. static ElectronPlateDectect& GetelectronPlateDectectInstance();
  50. static NumberDectect& GeNumberDectectInstance();
  51. static OperatingHandleStateDectect& GetoperatingHandleStateDectectInstance();
  52. };