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

Postprocessor object for Recognizer serials model. More...

#include <rec_postprocessor.h>

Public Member Functions

 RecognizerPostprocessor (const std::string &label_path)
 Create a postprocessor instance for Recognizer serials model. More...
 
bool Run (const std::vector< FDTensor > &tensors, std::vector< std::string > *texts, std::vector< float > *rec_scores)
 Process the result of runtime and fill to RecognizerResult. More...
 

Detailed Description

Postprocessor object for Recognizer serials model.

Constructor & Destructor Documentation

◆ RecognizerPostprocessor()

fastdeploy::vision::ocr::RecognizerPostprocessor::RecognizerPostprocessor ( const std::string &  label_path)
explicit

Create a postprocessor instance for Recognizer serials model.

Parameters
[in]label_pathThe path of label_dict

Member Function Documentation

◆ Run()

bool fastdeploy::vision::ocr::RecognizerPostprocessor::Run ( const std::vector< FDTensor > &  tensors,
std::vector< std::string > *  texts,
std::vector< float > *  rec_scores 
)

Process the result of runtime and fill to RecognizerResult.

Parameters
[in]tensorsThe inference result from runtime
[in]textsThe output text results of recognizer
[in]rec_scoresThe output score results of recognizer
Returns
true if the postprocess successed, otherwise false

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