FastDeploy  latest
Fast & Easy to Deploy!
Public Member Functions | Public Attributes | List of all members
fastdeploy::vision::DetectionResult Struct Reference

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.
 
DetectionResultoperator= (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< Maskmasks
 For instance segmentation model, masks is the predict mask for all the deteced objects.
 
bool contain_masks = false
 Shows if the DetectionResult has mask.
 

Detailed Description

Detection result structure for all the object detection models and instance segmentation models.


The documentation for this struct was generated from the following files: