6#include <unordered_map>
10 namespace DeepLearning
16#ifndef BUILD_INFERENCE_CLIENT
40#ifndef BUILD_INFERENCE_CLIENT
59#ifndef BUILD_INFERENCE_CLIENT
78#ifndef BUILD_INFERENCE_CLIENT
100#ifndef BUILD_INFERENCE_CLIENT
116#ifndef BUILD_INFERENCE_CLIENT
138#ifndef BUILD_INFERENCE_CLIENT
149#ifndef BUILD_INFERENCE_CLIENT
162#ifndef BUILD_INFERENCE_CLIENT
170 std::unordered_map<std::string, Mask>
masks;
180#ifndef BUILD_INFERENCE_CLIENT
197#ifndef BUILD_INFERENCE_CLIENT
204#ifndef BUILD_INFERENCE_CLIENT
#define DAOAI_API
Definition API_EXPORT.h:13
Definition prediction.h:13
virtual DAOAI_API std::string toAnnotationJSONString()
virtual std::string toJSONString()
Definition prediction.h:20
int image_width
Definition prediction.h:29
int image_height
Definition prediction.h:30
Definition prediction.h:146
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API std::string toJSONString() override
Mask mask
Definition prediction.h:154
DAOAI_API AutoSegmentationResult()
double confidence
Definition prediction.h:155
Definition prediction.h:113
DAOAI_API std::string toJSONString() override
DAOAI_API ClassificationResult()
bool multilabel
Definition prediction.h:130
std::vector< Flag > flags
Definition prediction.h:129
DAOAI_API std::string toAnnotationJSONString() override
Definition prediction.h:134
std::vector< float > data
Definition prediction.h:141
DAOAI_API ImageEmbedding(const std::vector< float > &data, const std::vector< size_t > &shape, const int &image_height, const int &image_width)
std::vector< size_t > shape
Definition prediction.h:142
DAOAI_API ImageEmbedding()
DAOAI_API std::string toJSONString() override
Definition prediction.h:56
DAOAI_API std::string toAnnotationJSONString() override
std::vector< Mask > masks
Definition prediction.h:68
std::vector< int > class_ids
Definition prediction.h:70
std::vector< std::string > class_labels
Definition prediction.h:71
std::vector< double > confidences
Definition prediction.h:69
DAOAI_API std::string toJSONString() override
size_t num_detections
Definition prediction.h:66
DAOAI_API InstanceSegmentationResult()
std::vector< Box > boxes
Definition prediction.h:67
Definition prediction.h:75
std::vector< Mask > masks
Definition prediction.h:87
std::vector< double > confidences
Definition prediction.h:89
std::vector< Box > boxes
Definition prediction.h:86
DAOAI_API KeypointDetectionResult()
DAOAI_API std::string toJSONString() override
size_t num_detections
Definition prediction.h:85
std::vector< std::string > class_labels
Definition prediction.h:91
std::vector< int > class_ids
Definition prediction.h:90
DAOAI_API std::string toAnnotationJSONString() override
std::vector< std::vector< Point > > keypoints
Definition prediction.h:88
Definition prediction.h:97
size_t num_detections
Definition prediction.h:107
DAOAI_API std::string toJSONString() override
std::vector< Polygon > boxes
Definition prediction.h:108
std::vector< std::string > texts
Definition prediction.h:110
DAOAI_API std::string toAnnotationJSONString() override
std::vector< double > confidences
Definition prediction.h:109
Definition prediction.h:37
std::vector< std::string > class_labels
Definition prediction.h:51
std::vector< Box > boxes
Definition prediction.h:48
std::vector< double > confidences
Definition prediction.h:49
std::string decision
Definition prediction.h:52
std::vector< int > class_ids
Definition prediction.h:50
size_t num_detections
Definition prediction.h:47
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API ObjectDetectionResult()
DAOAI_API std::string toJSONString() override
Definition prediction.h:177
double angle
Definition prediction.h:188
std::string decision
Definition prediction.h:190
Point center
Definition prediction.h:189
DAOAI_API std::string toAnnotationJSONString() override
PositioningResult(const KeypointDetectionResult &keypoint_result)
DAOAI_API std::string toJSONString() override
DAOAI_API PositioningResult()
Definition prediction.h:194
PresenceCheckingResult(const ObjectDetectionResult &object_result)
DAOAI_API PresenceCheckingResult()
Definition prediction.h:159
DAOAI_API std::string toJSONString() override
std::string decision
Definition prediction.h:172
std::vector< float > pixel_scores
Definition prediction.h:171
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API SupervisedDefectSegmentationResult()
std::unordered_map< std::string, Mask > masks
Definition prediction.h:170
Definition prediction.h:206
std::vector< Region > region_defects
Definition prediction.h:234
UnsupervisedDefectSegmentationResult(Image &&mask, const std::vector< Region > ®ion_defects, const double &confidence, const bool &defect, const int &image_height, const int &image_width)
Definition prediction.h:223
UnsupervisedDefectSegmentationResult(const std::vector< Region > ®ion_defects, const int &image_height, const int &image_width)
Definition prediction.h:226
UnsupervisedDefectSegmentationResult(double confidence, bool defect, int image_height, int image_width)
Definition prediction.h:218
UnsupervisedDefectSegmentationResult()
Definition prediction.h:217
DAOAI_API UnsupervisedDefectSegmentationResult(const std::string &json_result)
DAOAI_API std::string toJSONString()
UnsupervisedDefectSegmentationResult(Image &&mask, double confidence, bool defect, int image_height, int image_width)
Definition prediction.h:220
DAOAI_API std::string toAnnotationJSONString()
Image mask
Definition prediction.h:231
bool defect
Definition prediction.h:233
double confidence
Definition prediction.h:232
int image_height
Definition prediction.h:236
int image_width
Definition prediction.h:235
Definition prediction.h:124
std::string label
Definition prediction.h:126
double confidence
Definition prediction.h:125
Definition prediction.h:209
Region(const std::string &label, const double &confidence, const bool &defect, const double *bbox)
Definition prediction.h:210
std::string label
Definition prediction.h:211
double bbox[4]
Definition prediction.h:214
double confidence
Definition prediction.h:212
bool defect
Definition prediction.h:213