16 #include "fastdeploy/vision/common/processors/transform.h" 17 #include "fastdeploy/vision/common/result.h" 18 #include "fastdeploy/vision/detection/ppdet/multiclass_nms.h" 42 multi_class_nms_.SetNMSOption(
NMSOption());
51 bool Run(
const std::vector<FDTensor>& tensors,
52 std::vector<DetectionResult>* result);
61 multi_class_nms_.SetNMSOption(option);
66 void SetScaleFactor(
const std::vector<float>& scale_factor_value) {
67 scale_factor_ = scale_factor_value;
71 std::vector<float> scale_factor_{0.0, 0.0};
72 std::vector<float> GetScaleFactor() {
return scale_factor_; }
75 bool with_nms_ =
true;
80 PaddleMultiClassNMS multi_class_nms_{};
83 bool ProcessWithoutNMS(
const std::vector<FDTensor>& tensors,
84 std::vector<DetectionResult>* results);
87 bool ProcessWithNMS(
const std::vector<FDTensor>& tensors,
88 std::vector<DetectionResult>* results);
91 bool ProcessSolov2(
const std::vector<FDTensor>& tensors,
92 std::vector<DetectionResult>* results);
95 bool ProcessMask(
const FDTensor& tensor,
96 std::vector<DetectionResult>* results);
void SetNMSOption(const NMSOption &option)
Definition: postprocessor.h:60
FDTensor object used to represend data matrix.
Definition: fd_tensor.h:31
PaddleDetPostprocessor(const std::string &arch)
Create a preprocessor instance for PaddleDet serials model.
Definition: postprocessor.h:37
void ApplyNMS()
Definition: postprocessor.h:56
Postprocessor object for PaddleDet serials model.
Definition: postprocessor.h:25
Config for PaddleMultiClassNMS.
Definition: multiclass_nms.h:32
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16