17 #ifndef MOVIDIUS_NCS_LIB_RESULT_H 18 #define MOVIDIUS_NCS_LIB_RESULT_H 46 using Items = std::vector<Item>;
70 using Ptr = std::shared_ptr<Result>;
71 using ConstPtr = std::shared_ptr<Result const>;
73 explicit Result(
const std::string& cnn_type);
76 void setClassificationResult(
Item item);
77 void setClassificationResult(
float time);
79 void setDetectionResult(
float time);
80 void parseYoloResult(
const std::vector<float>& result,
const std::vector<std::string> categories,
81 int img_width,
int img_height);
82 void parseSSDResult(
const std::vector<float>& result,
const std::vector<std::string> categories,
83 int img_width,
int img_height);
94 #endif // MOVIDIUS_NCS_LIB_RESULT_H
std::shared_ptr< Result > Ptr
std::vector< Item > Items
std::shared_ptr< DetectionResult > DetectionResultPtr
std::vector< ItemInBBox > ItemInBBoxArray
std::shared_ptr< ItemInBBoxArray > ItemInBBoxArrayPtr
DetectionResultPtr detection_result
std::shared_ptr< Result const > ConstPtr
ItemInBBoxArray items_in_boxes
std::shared_ptr< Items > ItemsPtr
ClassificationResultPtr classification_result
std::shared_ptr< ClassificationResult > ClassificationResultPtr