FastDeploy  latest
Fast & Easy to Deploy!
Public Member Functions | List of all members
fastdeploy::vision::detection::FastestDetPostprocessor Class Reference

Postprocessor object for FastestDet serials model. More...

#include <postprocessor.h>

Public Member Functions

 FastestDetPostprocessor ()
 Create a postprocessor instance for FastestDet serials model.
 
bool Run (const std::vector< FDTensor > &tensors, std::vector< DetectionResult > *results, const std::vector< std::map< std::string, std::array< float, 2 >>> &ims_info)
 Process the result of runtime and fill to DetectionResult structure. More...
 
void SetConfThreshold (const float &conf_threshold)
 Set conf_threshold, default 0.65.
 
float GetConfThreshold () const
 Get conf_threshold, default 0.65.
 
void SetNMSThreshold (const float &nms_threshold)
 Set nms_threshold, default 0.45.
 
float GetNMSThreshold () const
 Get nms_threshold, default 0.45.
 

Detailed Description

Postprocessor object for FastestDet serials model.

Member Function Documentation

◆ Run()

bool fastdeploy::vision::detection::FastestDetPostprocessor::Run ( const std::vector< FDTensor > &  tensors,
std::vector< DetectionResult > *  results,
const std::vector< std::map< std::string, std::array< float, 2 >>> &  ims_info 
)

Process the result of runtime and fill to DetectionResult structure.

Parameters
[in]tensorsThe inference result from runtime
[in]resultThe output result of detection
[in]ims_infoThe shape info list, record input_shape and output_shape
Returns
true if the postprocess successed, otherwise false

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