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