14 const int *pred_class;
15 const std::string* pred_text;
16 const std::string* pred_class_name;
17 const std::vector<Polygon> *pred_mask;
19 const std::vector<Point> *pred_keypoints;
71 DAOAI_API
int size()
const;
88 DAOAI_API
const std::vector<double>&
scores()
const;
100 DAOAI_API
const std::vector<std::vector<Polygon>>&
pred_masks()
const;
118 DAOAI_API
const std::vector<std::pair<std::string, double>>&
flags()
const;
130 DAOAI_API
const std::vector<std::string>&
pred_texts()
const;
151 std::unique_ptr<PredictionImpl> prediction_impl_;
Definition prediction.h:27
Prediction(const PredictionImpl &prediction_impl)
DAOAI_API const std::vector< std::string > & pred_class_names() const
Get the names of the predicted classes. This is used in object detection and anomaly detection,...
DAOAI_API const std::vector< Polygon > & pred_flex_boxes() const
Get the predicted text bounding box. This is used in OCR, it will be an empty vector for anomaly dete...
DAOAI_API void push_back(const Instance &instance)
DAOAI_API Prediction(const Prediction &prediction)
DAOAI_API const std::vector< double > & scores() const
Get the confidence scores for each predicted bounding box. This is used in object detection and anoma...
DAOAI_API Prediction & operator=(const Prediction &prediction)
DAOAI_API int size() const
DAOAI_API const std::vector< std::vector< Polygon > > & pred_masks() const
Get the predicted masks for each bounding box. This is used in object detection and anomaly detection...
DAOAI_API const std::vector< int > & pred_classes() const
Get the predicted classes for each bounding box. This is used in object detection and anomaly detecti...
DAOAI_API const bool & is_multilabel() const
Check if the classification prediction is multilabel. This is used in classification,...
DAOAI_API std::string toJSONString()
DAOAI_API Instance operator[](size_t index) const
DAOAI_API const int & image_height() const
Get the height of the image associated with the prediction.
DAOAI_API const std::vector< std::string > & pred_texts() const
Get the predicted texts for each bounding box. This is used in OCR, it will be an empty vector for ot...
DAOAI_API const std::vector< Box > & pred_boxes() const
Get the predicted bounding boxes. This is for object detection, will be an empty vector for classific...
DAOAI_API const int & image_width() const
Get the width of the image associated with the prediction.
DAOAI_API const std::vector< std::vector< Point > > & pred_keypoints() const
Get the predicted keypoints for each bounding box. This is used in object detection,...
DAOAI_API const std::vector< std::pair< std::string, double > > & flags() const
Get the label-score pairs associated with the classification prediction. This is used in classificati...
Definition prediction.h:11