16 #include "fastdeploy/fastdeploy_model.h" 17 #include "fastdeploy/vision/common/processors/transform.h" 18 #include "fastdeploy/vision/common/result.h" 19 #include "fastdeploy/vision/facedet/contrib/yolov7face/preprocessor.h" 20 #include "fastdeploy/vision/facedet/contrib/yolov7face/postprocessor.h" 38 YOLOv7Face(
const std::string& model_file,
const std::string& params_file =
"",
42 std::string ModelName() {
return "yolov7-face";}
58 virtual bool BatchPredict(
const std::vector<cv::Mat>& images,
59 std::vector<FaceDetectionResult>* results);
68 return postprocessor_;
73 Yolov7FacePreprocessor preprocessor_;
74 Yolov7FacePostprocessor postprocessor_;
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
YOLOv7Face model object used when to load a YOLOv7Face model exported by YOLOv7Face.
Definition: yolov7face.h:29
ModelFormat
Definition: enum_variables.h:67
Face detection result structure for all the face detection models.
Definition: result.h:212
Model with ONNX format.
Definition: enum_variables.h:70
virtual Yolov7FacePostprocessor & GetPostprocessor()
Get postprocessor reference of YOLOv7Face.
Definition: yolov7face.h:67
virtual Yolov7FacePreprocessor & GetPreprocessor()
Get preprocessor reference of YOLOv7Face.
Definition: yolov7face.h:62
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16