17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/detection/contrib/yolov5/preprocessor.h" 19 #include "fastdeploy/vision/detection/contrib/yolov5/postprocessor.h" 35 YOLOv5(
const std::string& model_file,
const std::string& params_file =
"",
50 float conf_threshold = 0.25,
51 float nms_threshold = 0.5);
67 virtual bool BatchPredict(
const std::vector<cv::Mat>& imgs,
68 std::vector<DetectionResult>* results);
77 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
YOLOv5 model object used when to load a YOLOv5 model exported by YOLOv5.
Definition: yolov5.h:26
ModelFormat
Definition: enum_variables.h:67
std::string ModelName() const
Get model's name.
Definition: yolov5.h:39
virtual YOLOv5Postprocessor & GetPostprocessor()
Get postprocessor reference of YOLOv5.
Definition: yolov5.h:76
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
Postprocessor object for YOLOv5 serials model.
Definition: postprocessor.h:25
Model with ONNX format.
Definition: enum_variables.h:70
Preprocessor object for YOLOv5 serials model.
Definition: preprocessor.h:25
virtual YOLOv5Preprocessor & GetPreprocessor()
Get preprocessor reference of YOLOv5.
Definition: yolov5.h:71
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16