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

Postprocessor object for Classifier serials model. More...

#include <cls_postprocessor.h>

Public Member Functions

bool Run (const std::vector< FDTensor > &tensors, std::vector< int32_t > *cls_labels, std::vector< float > *cls_scores)
 Process the result of runtime and fill to ClassifyResult structure. More...
 
void SetClsThresh (float cls_thresh)
 Set threshold for the classification postprocess, default is 0.9.
 
float GetClsThresh () const
 Get threshold value of the classification postprocess.
 

Detailed Description

Postprocessor object for Classifier serials model.

Member Function Documentation

◆ Run()

bool fastdeploy::vision::ocr::ClassifierPostprocessor::Run ( const std::vector< FDTensor > &  tensors,
std::vector< int32_t > *  cls_labels,
std::vector< float > *  cls_scores 
)

Process the result of runtime and fill to ClassifyResult structure.

Parameters
[in]tensorsThe inference result from runtime
[in]cls_labelsThe output label results of classification model
[in]cls_scoresThe output score results of classification model
Returns
true if the postprocess successed, otherwise false

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