FastDeploy
latest
Fast & Easy to Deploy!
|
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... | |
Postprocessor object for Recognizer serials model.
|
explicit |
Create a postprocessor instance for Recognizer serials model.
[in] | label_path | The path of label_dict |
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.
[in] | tensors | The inference result from runtime |
[in] | texts | The output text results of recognizer |
[in] | rec_scores | The output score results of recognizer |