JdydAlgorithnm.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #include "PressplateDectect.h"
  30. #include "PersonBehaviorDetect.h"
  31. using namespace std;
  32. using json = nlohmann::json;
  33. class JdydAlgorithnm
  34. {
  35. private:
  36. static void GetMaxConfidenceRecoResult(string& tempResult, string& tempResultValue,const string instructionsDectectResultStr, vector<Output> result, int maxCenterBoxId, const int pluginNameId, const cv::Mat ROI);
  37. public:
  38. //static JdydAlgorithnm& getInstance();
  39. static json CallAlgorithnm(string pluginName, string filePath, string modelPath, int* roiVec, string pcArg);
  40. static bool Init();
  41. static ClassifyDectect& GetClassifyDectectInstance();
  42. static DisconnectorDectect& GetdisconnectorDectectInstance();
  43. static OilLevelDectect& GetoilLevelDectectInstance();
  44. static LightDectect& GetlightDectectInstance();
  45. static AirSwitchDectect& GetairSwitchDectectInstance();
  46. static ChangeoverSwitchDectect& GetchangeoverSwitchDectectInstance();
  47. static IndoorDisconnectorDectect& GetindoorDisconnectorDectectInstance();
  48. static MeterDectect& GetmeterDectectInstance();
  49. static CharacterDectect& GetcharacterDectectInstance();
  50. static DisconnectorStateDectect& GetdisconnectorStateDectectInstance();
  51. static ElectronPlateDectect& GetelectronPlateDectectInstance();
  52. static NumberDectect& GeNumberDectectInstance();
  53. static OperatingHandleStateDectect& GetoperatingHandleStateDectectInstance();
  54. static PressplateDectect& GetpressplateDectectInstance();
  55. static PersonBehaviorDetect& GetpersonBehaviorDetectInstance();
  56. };