3#include <unordered_map>
13#ifndef BUILD_INFERENCE_CLIENT
17 virtual std::string toJSONString() {
return ""; }
22 virtual std::string toAnnotationJSONString() {
return ""; }
37#ifndef BUILD_INFERENCE_CLIENT
38 DAOAI_API std::string toJSONString()
override;
39 DAOAI_API std::string toAnnotationJSONString()
override;
56#ifndef BUILD_INFERENCE_CLIENT
57 DAOAI_API std::string toJSONString()
override;
58 DAOAI_API std::string toAnnotationJSONString()
override;
75#ifndef BUILD_INFERENCE_CLIENT
76 DAOAI_API std::string toJSONString()
override;
77 DAOAI_API std::string toAnnotationJSONString()
override;
96#ifndef BUILD_INFERENCE_CLIENT
97 DAOAI_API std::string toJSONString()
override;
98 DAOAI_API std::string toAnnotationJSONString()
override;
104 std::unordered_map<std::string, Mask>
masks;
111#ifndef BUILD_INFERENCE_CLIENT
112 DAOAI_API std::string toJSONString()
override;
113 DAOAI_API std::string toAnnotationJSONString()
override;
127#ifndef BUILD_INFERENCE_CLIENT
128 DAOAI_API std::string toJSONString()
override;
129 DAOAI_API std::string toAnnotationJSONString()
override;
143#ifndef BUILD_INFERENCE_CLIENT
144 DAOAI_API std::string toJSONString()
override;
145 DAOAI_API std::string toAnnotationJSONString()
override;
164#ifndef BUILD_INFERENCE_CLIENT
166 DAOAI_API std::string toJSONString()
override;
178#ifndef BUILD_INFERENCE_CLIENT
180 DAOAI_API std::string toJSONString()
override;
192#ifndef BUILD_INFERENCE_CLIENT
194 DAOAI_API std::string toJSONString()
override;
206#ifndef BUILD_INFERENCE_CLIENT
#define DAOAI_API
Definition API_EXPORT.h:6
Definition prediction.h:10
int image_width
Definition prediction.h:26
int image_height
Definition prediction.h:27
Definition prediction.h:124
std::string label
Definition prediction.h:135
Mask mask
Definition prediction.h:136
DAOAI_API AnomalyDetectionResult()
int label_id
Definition prediction.h:134
double confidence
Definition prediction.h:137
DAOAI_API AnomalyDetectionResult(const std::string &json_result)
Definition prediction.h:140
DAOAI_API ClassificationResult()
bool multilabel
Definition prediction.h:157
std::vector< Flag > flags
Definition prediction.h:156
DAOAI_API ClassificationResult(const std::string &json_result)
Definition prediction.h:53
std::vector< Mask > masks
Definition prediction.h:65
std::vector< int > class_ids
Definition prediction.h:67
std::vector< std::string > class_labels
Definition prediction.h:68
std::vector< double > confidences
Definition prediction.h:66
size_t num_detections
Definition prediction.h:63
DAOAI_API InstanceSegmentationResult()
std::vector< Box > boxes
Definition prediction.h:64
DAOAI_API InstanceSegmentationResult(const std::string &json_result)
Definition prediction.h:72
std::vector< Mask > masks
Definition prediction.h:84
std::vector< double > confidences
Definition prediction.h:86
std::vector< Box > boxes
Definition prediction.h:83
DAOAI_API KeypointDetectionResult()
size_t num_detections
Definition prediction.h:82
std::vector< std::string > class_labels
Definition prediction.h:88
std::vector< int > class_ids
Definition prediction.h:87
DAOAI_API KeypointDetectionResult(const std::string &json_result)
std::vector< std::vector< Point > > keypoints
Definition prediction.h:85
Definition prediction.h:108
DAOAI_API OCRResult(const std::string &json_result)
size_t num_detections
Definition prediction.h:118
std::vector< Polygon > boxes
Definition prediction.h:119
std::vector< std::string > texts
Definition prediction.h:121
std::vector< double > confidences
Definition prediction.h:120
Definition prediction.h:34
std::vector< std::string > class_labels
Definition prediction.h:48
std::vector< Box > boxes
Definition prediction.h:45
std::vector< double > confidences
Definition prediction.h:46
std::string decision
Definition prediction.h:49
std::vector< int > class_ids
Definition prediction.h:47
size_t num_detections
Definition prediction.h:44
DAOAI_API ObjectDetectionResult(const std::string &json_result)
DAOAI_API ObjectDetectionResult()
Definition prediction.h:175
std::string decision
Definition prediction.h:185
DAOAI_API PositioningResult(const std::string &json_result)
DAOAI_API PositioningResult()
Definition prediction.h:203
DAOAI_API PresenceCheckingResult(const std::string &json_result)
DAOAI_API PresenceCheckingResult()
Definition prediction.h:92
DAOAI_API SemanticSegmentationResult(const std::string &json_result)
std::unordered_map< std::string, Mask > masks
Definition prediction.h:104
DAOAI_API SemanticSegmentationResult()
Definition prediction.h:161
std::string decision
Definition prediction.h:171
DAOAI_API SupervisedDefectSegmentationResult(const std::string &json_result)
DAOAI_API SupervisedDefectSegmentationResult()
Definition prediction.h:189
DAOAI_API UnsupervisedDefectSegmentationResult()
DAOAI_API UnsupervisedDefectSegmentationResult(const std::string &json_result)
std::string decision
Definition prediction.h:199
Definition prediction.h:151
std::string label
Definition prediction.h:153
double confidence
Definition prediction.h:152