16 #include "fastdeploy/vision/common/processors/transform.h" 17 #include "fastdeploy/vision/common/result.h" 25 class FASTDEPLOY_DECL CenterFacePostprocessor{
29 CenterFacePostprocessor();
38 bool Run(
const std::vector<FDTensor>& infer_result,
39 std::vector<FaceDetectionResult>* results,
40 const std::vector<std::map<std::string,
41 std::array<float, 2>>>& ims_info);
44 void SetConfThreshold(
const float& conf_threshold) {
45 conf_threshold_ = conf_threshold;
49 float GetConfThreshold()
const {
return conf_threshold_; }
52 void SetNMSThreshold(
const float& nms_threshold) {
53 nms_threshold_ = nms_threshold;
57 float GetNMSThreshold()
const {
return nms_threshold_; }
60 float conf_threshold_;
62 int landmarks_per_face_;
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16