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

Postprocessor object for PaddleDet serials model. More...

#include <postprocessor.h>

Public Member Functions

 PaddleDetPostprocessor (const std::string &arch)
 Create a preprocessor instance for PaddleDet serials model. More...
 
bool Run (const std::vector< FDTensor > &tensors, std::vector< DetectionResult > *result)
 Process the result of runtime and fill to ClassifyResult structure. More...
 
void ApplyNMS ()
 
void SetNMSOption (const NMSOption &option)
 

Detailed Description

Postprocessor object for PaddleDet serials model.

Constructor & Destructor Documentation

◆ PaddleDetPostprocessor()

fastdeploy::vision::detection::PaddleDetPostprocessor::PaddleDetPostprocessor ( const std::string &  arch)
inlineexplicit

Create a preprocessor instance for PaddleDet serials model.

Parameters
[in]config_filePath of configuration file for deployment, e.g ppyoloe/infer_cfg.yml

Member Function Documentation

◆ ApplyNMS()

void fastdeploy::vision::detection::PaddleDetPostprocessor::ApplyNMS ( )
inline

Apply box decoding and nms step for the outputs for the model.This is only available for those model exported without box decoding and nms.

◆ Run()

bool fastdeploy::vision::detection::PaddleDetPostprocessor::Run ( const std::vector< FDTensor > &  tensors,
std::vector< DetectionResult > *  result 
)

Process the result of runtime and fill to ClassifyResult structure.

Parameters
[in]tensorsThe inference result from runtime
[in]resultThe output result of detection
Returns
true if the postprocess successed, otherwise false

◆ SetNMSOption()

void fastdeploy::vision::detection::PaddleDetPostprocessor::SetNMSOption ( const NMSOption option)
inline

If you do not want to modify the Yaml configuration file, you can use this function to set NMS parameters.


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