16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/common/processors/transform.h" 18 #include "fastdeploy/vision/common/result.h" 36 YOLOv5Face(
const std::string& model_file,
const std::string& params_file =
"",
40 std::string
ModelName()
const {
return "yolov5-face"; }
50 float conf_threshold = 0.25,
51 float nms_iou_threshold = 0.5);
59 std::vector<float> padding_value;
83 std::map<std::string, std::array<float, 2>>* im_info);
86 const std::map<std::string, std::array<float, 2>>& im_info,
87 float conf_threshold,
float nms_iou_threshold);
89 bool IsDynamicInput()
const {
return is_dynamic_input_; }
91 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
std::vector< int > size
Argument for image preprocessing step, tuple of (width, height), decide the target size after resize...
Definition: yolov5face.h:56
std::string ModelName() const
Get model's name.
Definition: yolov5face.h:40
int landmarks_per_face
Argument for image postprocessing step, setup the number of landmarks for per face (if have)...
Definition: yolov5face.h:77
Model with ONNX format.
Definition: enum_variables.h:70
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16
YOLOv5Face model object used when to load a YOLOv5Face model exported by YOLOv5Face.
Definition: yolov5face.h:27