17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/classification/contrib/yolov5cls/preprocessor.h" 19 #include "fastdeploy/vision/classification/contrib/yolov5cls/postprocessor.h" 23 namespace classification {
35 YOLOv5Cls(
const std::string& model_file,
const std::string& params_file =
"",
39 std::string
ModelName()
const {
return "yolov5cls"; }
55 virtual bool BatchPredict(
const std::vector<cv::Mat>& imgs,
56 std::vector<ClassifyResult>* results);
65 return 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
std::string ModelName() const
Get model's name.
Definition: yolov5cls.h:39
Postprocessor object for YOLOv5Cls serials model.
Definition: postprocessor.h:25
Classify result structure for all the image classify models.
Definition: result.h:46
virtual YOLOv5ClsPostprocessor & GetPostprocessor()
Get postprocessor reference of YOLOv5Cls.
Definition: yolov5cls.h:64
YOLOv5Cls model object used when to load a YOLOv5Cls model exported by YOLOv5Cls. ...
Definition: yolov5cls.h:26
Model with ONNX format.
Definition: enum_variables.h:70
virtual YOLOv5ClsPreprocessor & GetPreprocessor()
Get preprocessor reference of YOLOv5Cls.
Definition: yolov5cls.h:59
Preprocessor object for YOLOv5Cls serials model.
Definition: preprocessor.h:25
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16