PredictImageResult.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_
  17. #define ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/ivision/IvisionExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Ivision
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_IVISION_EXPORT PredictImageResult : public ServiceResult
  30. {
  31. public:
  32. struct PredictData
  33. {
  34. struct PredictionResult
  35. {
  36. struct Region
  37. {
  38. std::string left;
  39. std::string top;
  40. std::string height;
  41. std::string width;
  42. };
  43. std::string regionType;
  44. std::string tagName;
  45. std::string tagId;
  46. std::string probability;
  47. Region region;
  48. std::string overlap;
  49. std::string properties;
  50. };
  51. std::string status;
  52. std::string dataId;
  53. std::string iterationId;
  54. std::vector<PredictData::PredictionResult> predictionResults;
  55. std::string projectId;
  56. std::string dataUrl;
  57. std::string creationTime;
  58. std::string errorCode;
  59. std::string errorMessage;
  60. std::string dataName;
  61. };
  62. PredictImageResult();
  63. explicit PredictImageResult(const std::string &payload);
  64. ~PredictImageResult();
  65. std::vector<PredictData> getPredictDatas()const;
  66. protected:
  67. void parse(const std::string &payload);
  68. private:
  69. std::vector<PredictData> predictDatas_;
  70. };
  71. }
  72. }
  73. }
  74. #endif // !ALIBABACLOUD_IVISION_MODEL_PREDICTIMAGERESULT_H_