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

Postprocessor object for DBDetector serials model. More...

#include <det_postprocessor.h>

Public Member Functions

bool Run (const std::vector< FDTensor > &tensors, std::vector< std::vector< std::array< int, 8 >>> *results, const std::vector< std::array< int, 4 >> &batch_det_img_info)
 Process the result of runtime and fill to results structure. More...
 
void SetDetDBThresh (double det_db_thresh)
 Set det_db_thresh for the detection postprocess, default is 0.3.
 
double GetDetDBThresh () const
 Get det_db_thresh of the detection postprocess.
 
void SetDetDBBoxThresh (double det_db_box_thresh)
 Set det_db_box_thresh for the detection postprocess, default is 0.6.
 
double GetDetDBBoxThresh () const
 Get det_db_box_thresh of the detection postprocess.
 
void SetDetDBUnclipRatio (double det_db_unclip_ratio)
 Set det_db_unclip_ratio for the detection postprocess, default is 1.5.
 
double GetDetDBUnclipRatio () const
 Get det_db_unclip_ratio_ of the detection postprocess.
 
void SetDetDBScoreMode (const std::string &det_db_score_mode)
 Set det_db_score_mode for the detection postprocess, default is 'slow'.
 
std::string GetDetDBScoreMode () const
 Get det_db_score_mode_ of the detection postprocess.
 
void SetUseDilation (int use_dilation)
 Set use_dilation for the detection postprocess, default is fasle.
 
int GetUseDilation () const
 Get use_dilation of the detection postprocess.
 

Detailed Description

Postprocessor object for DBDetector serials model.

Member Function Documentation

◆ Run()

bool fastdeploy::vision::ocr::DBDetectorPostprocessor::Run ( const std::vector< FDTensor > &  tensors,
std::vector< std::vector< std::array< int, 8 >>> *  results,
const std::vector< std::array< int, 4 >> &  batch_det_img_info 
)

Process the result of runtime and fill to results structure.

Parameters
[in]tensorsThe inference result from runtime
[in]resultsThe output result of detector
[in]batch_det_img_infoThe detector_preprocess result
Returns
true if the postprocess successed, otherwise false

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