FastDeploy
latest
Fast & Easy to Deploy!
|
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. | |
Postprocessor object for Classifier serials model.
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.
[in] | tensors | The inference result from runtime |
[in] | cls_labels | The output label results of classification model |
[in] | cls_scores | The output score results of classification model |