mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-11-03 02:53:26 +08:00
[Bug Fix] add ocr new feature and fix codestyle (#764)
* fix ocr bug and add new feature * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * add property * add test * fix code style * fix bug * fix bug * fix bug * fix port * fix ocr * fix_ocr * fix ocr * fix ocr * fix ocr * fix ocr * Update paddle2onnx.cmake * Update paddle2onnx.cmake * Update paddle2onnx.cmake Co-authored-by: Jason <jiangjiajun@baidu.com> Co-authored-by: Jason <928090362@qq.com>
This commit is contained in:
@@ -25,11 +25,6 @@ namespace ocr {
|
||||
*/
|
||||
class FASTDEPLOY_DECL ClassifierPostprocessor {
|
||||
public:
|
||||
/** \brief Create a postprocessor instance for Classifier serials model
|
||||
*
|
||||
*/
|
||||
ClassifierPostprocessor();
|
||||
|
||||
/** \brief Process the result of runtime and fill to ClassifyResult structure
|
||||
*
|
||||
* \param[in] tensors The inference result from runtime
|
||||
@@ -40,10 +35,11 @@ class FASTDEPLOY_DECL ClassifierPostprocessor {
|
||||
bool Run(const std::vector<FDTensor>& tensors,
|
||||
std::vector<int32_t>* cls_labels, std::vector<float>* cls_scores);
|
||||
|
||||
float cls_thresh_ = 0.9;
|
||||
bool Run(const std::vector<FDTensor>& tensors,
|
||||
std::vector<int32_t>* cls_labels, std::vector<float>* cls_scores,
|
||||
size_t start_index, size_t total_size);
|
||||
|
||||
private:
|
||||
bool initialized_ = false;
|
||||
float cls_thresh_ = 0.9;
|
||||
};
|
||||
|
||||
} // namespace ocr
|
||||
|
||||
Reference in New Issue
Block a user