|
FastDeploy
latest
Fast & Easy to Deploy!
|
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. | |
Postprocessor object for DBDetector serials model.
| 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.
| [in] | tensors | The inference result from runtime |
| [in] | results | The output result of detector |
| [in] | batch_det_img_info | The detector_preprocess result |
1.8.13