|
FastDeploy
latest
Fast & Easy to Deploy!
|
Detection result structure for all the object detection models and instance segmentation models. More...
#include <result.h>
Inherits fastdeploy::vision::BaseResult.
Public Member Functions | |
| DetectionResult (const DetectionResult &res) | |
| Copy constructor. | |
| DetectionResult & | operator= (DetectionResult &&other) |
| Move assignment. | |
| void | Clear () |
| Clear DetectionResult. | |
| void | Free () |
| Clear DetectionResult and free the memory. | |
| std::string | Str () |
| Debug function, convert the result to string to print. | |
Public Attributes | |
| std::vector< std::array< float, 4 > > | boxes |
All the detected object boxes for an input image, the size of boxes is the number of detected objects, and the element of boxes is a array of 4 float values, means [xmin, ymin, xmax, ymax]. | |
| std::vector< float > | scores |
| The confidence for all the detected objects. | |
| std::vector< int32_t > | label_ids |
| The classify label for all the detected objects. | |
| std::vector< Mask > | masks |
For instance segmentation model, masks is the predict mask for all the deteced objects. | |
| bool | contain_masks = false |
| Shows if the DetectionResult has mask. | |
Detection result structure for all the object detection models and instance segmentation models.
1.8.13