16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/common/processors/transform.h" 18 #include "fastdeploy/vision/common/result.h" 36 UltraFace(
const std::string& model_file,
const std::string& params_file =
"",
41 return "Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB";
52 float conf_threshold = 0.7f,
53 float nms_iou_threshold = 0.3f);
64 std::map<std::string, std::array<float, 2>>* im_info);
66 bool Postprocess(std::vector<FDTensor>& infer_result,
68 const std::map<std::string, std::array<float, 2>>& im_info,
69 float conf_threshold,
float nms_iou_threshold);
71 bool IsDynamicInput()
const {
return is_dynamic_input_; }
73 bool is_dynamic_input_;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
ModelFormat
Definition: enum_variables.h:67
FDTensor object used to represend data matrix.
Definition: fd_tensor.h:31
Face detection result structure for all the face detection models.
Definition: result.h:212
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
UltraFace model object used when to load a UltraFace model exported by UltraFace. ...
Definition: ultraface.h:27
Model with ONNX format.
Definition: enum_variables.h:70
std::string ModelName() const
Get model's name.
Definition: ultraface.h:40
std::vector< int > size
Argument for image preprocessing step, tuple of (width, height), decide the target size after resize...
Definition: ultraface.h:58
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16