17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/faceid/contrib/insightface/postprocessor.h" 19 #include "fastdeploy/vision/faceid/contrib/insightface/preprocessor.h" 36 const std::string& model_file,
const std::string& params_file =
"",
40 std::string
ModelName()
const {
return "insightface_rec"; }
56 virtual bool BatchPredict(
const std::vector<cv::Mat>& images,
57 std::vector<FaceRecognitionResult>* results);
66 return postprocessor_;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
Face recognition result structure for all the Face recognition models.
Definition: result.h:307
InsightFaceRecognition model object used when to load a InsightFaceRecognition model exported by Insi...
Definition: base.h:26
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
Preprocessor object for InsightFaceRecognition serials model.
Definition: preprocessor.h:25
Postprocessor object for InsightFaceRecognition serials model.
Definition: postprocessor.h:25
ModelFormat
Definition: enum_variables.h:67
virtual InsightFaceRecognitionPreprocessor & GetPreprocessor()
Get preprocessor reference of InsightFaceRecognition.
Definition: base.h:60
Model with ONNX format.
Definition: enum_variables.h:70
std::string ModelName() const
Get model's name.
Definition: base.h:40
virtual InsightFaceRecognitionPostprocessor & GetPostprocessor()
Get postprocessor reference of InsightFaceRecognition.
Definition: base.h:65
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16