5#include <unordered_map>
10 namespace DeepLearning
16#ifndef BUILD_INFERENCE_CLIENT
40#ifndef BUILD_INFERENCE_CLIENT
65#ifndef BUILD_INFERENCE_CLIENT
84#ifndef BUILD_INFERENCE_CLIENT
104#ifndef BUILD_INFERENCE_CLIENT
111 std::vector<std::unordered_map<std::string, double>>
attributes;
118#ifndef BUILD_INFERENCE_CLIENT
134#ifndef BUILD_INFERENCE_CLIENT
156#ifndef BUILD_INFERENCE_CLIENT
167#ifndef BUILD_INFERENCE_CLIENT
180#ifndef BUILD_INFERENCE_CLIENT
188 std::unordered_map<std::string, Mask>
masks;
189 std::unordered_map<std::string, bool>
classes;
199#ifndef BUILD_INFERENCE_CLIENT
216#ifndef BUILD_INFERENCE_CLIENT
236#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:164
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API std::string toJSONString() override
Mask mask
Definition prediction.h:172
DAOAI_API AutoSegmentationResult()
double confidence
Definition prediction.h:173
Definition prediction.h:131
DAOAI_API std::string toJSONString() override
DAOAI_API ClassificationResult()
bool multilabel
Definition prediction.h:148
std::vector< Flag > flags
Definition prediction.h:147
DAOAI_API std::string toAnnotationJSONString() override
Definition prediction.h:152
std::vector< float > data
Definition prediction.h:159
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:160
DAOAI_API ImageEmbedding()
DAOAI_API std::string toJSONString() override
Definition prediction.h:62
DAOAI_API std::string toAnnotationJSONString() override
std::vector< Mask > masks
Definition prediction.h:74
std::vector< int > class_ids
Definition prediction.h:76
std::vector< std::string > class_labels
Definition prediction.h:77
std::vector< double > confidences
Definition prediction.h:75
DAOAI_API std::string toJSONString() override
size_t num_detections
Definition prediction.h:72
DAOAI_API InstanceSegmentationResult()
std::vector< Box > boxes
Definition prediction.h:73
Definition prediction.h:81
std::vector< Mask > masks
Definition prediction.h:93
std::vector< double > confidences
Definition prediction.h:95
std::vector< Box > boxes
Definition prediction.h:92
DAOAI_API KeypointDetectionResult()
DAOAI_API std::string toJSONString() override
size_t num_detections
Definition prediction.h:91
std::vector< std::string > class_labels
Definition prediction.h:97
std::vector< int > class_ids
Definition prediction.h:96
DAOAI_API std::string toAnnotationJSONString() override
std::vector< std::vector< Point > > keypoints
Definition prediction.h:94
Definition prediction.h:101
std::vector< std::unordered_map< std::string, double > > attributes
Definition prediction.h:111
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API MultilabelDetectionResult()
DAOAI_API std::string toJSONString() override
Definition prediction.h:115
size_t num_detections
Definition prediction.h:125
DAOAI_API std::string toJSONString() override
std::vector< Polygon > boxes
Definition prediction.h:126
std::vector< std::string > texts
Definition prediction.h:128
DAOAI_API std::string toAnnotationJSONString() override
std::vector< double > confidences
Definition prediction.h:127
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:196
double angle
Definition prediction.h:207
std::string decision
Definition prediction.h:209
Point center
Definition prediction.h:208
DAOAI_API std::string toAnnotationJSONString() override
PositioningResult(const KeypointDetectionResult &keypoint_result)
DAOAI_API std::string toJSONString() override
DAOAI_API PositioningResult()
Definition prediction.h:213
PresenceCheckingResult(const ObjectDetectionResult &object_result)
DAOAI_API PresenceCheckingResult()
Definition prediction.h:56
Definition prediction.h:177
DAOAI_API std::string toJSONString() override
std::string decision
Definition prediction.h:191
std::unordered_map< std::string, bool > classes
Definition prediction.h:189
DAOAI_API std::string toAnnotationJSONString() override
DAOAI_API SupervisedDefectSegmentationResult()
Mask pixel_scores
Definition prediction.h:190
std::unordered_map< std::string, Mask > masks
Definition prediction.h:188
Definition prediction.h:224
std::vector< Region > region_defects
Definition prediction.h:247
DAOAI_API std::string toJSONString() override
Mask anomaly_heatmap
Definition prediction.h:244
DAOAI_API UnsupervisedDefectSegmentationResult()
Mask mask
Definition prediction.h:243
double ai_deviation_score
Definition prediction.h:245
bool defect
Definition prediction.h:246
DAOAI_API std::string toAnnotationJSONString() override
Definition prediction.h:142
std::string label
Definition prediction.h:144
double confidence
Definition prediction.h:143
Definition prediction.h:227
std::string label
Definition prediction.h:229
double bbox[4]
Definition prediction.h:232
bool defect
Definition prediction.h:231
double ai_deviation_score
Definition prediction.h:230
Region(const std::string &label, const double &ai_deviation_score, const bool &defect, const double *bbox)
Definition prediction.h:228