17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/detection/contrib/yolov5seg/preprocessor.h" 19 #include "fastdeploy/vision/detection/contrib/yolov5seg/postprocessor.h" 35 YOLOv5Seg(
const std::string& model_file,
const std::string& params_file =
"",
39 std::string
ModelName()
const {
return "yolov5seg"; }
55 virtual bool BatchPredict(
const std::vector<cv::Mat>& imgs,
56 std::vector<DetectionResult>* results);
65 return postprocessor_;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
std::string ModelName() const
Get model's name.
Definition: yolov5seg.h:39
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
Preprocessor object for YOLOv5Seg serials model.
Definition: preprocessor.h:25
ModelFormat
Definition: enum_variables.h:67
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
virtual YOLOv5SegPreprocessor & GetPreprocessor()
Get preprocessor reference of YOLOv5Seg.
Definition: yolov5seg.h:59
YOLOv5Seg model object used when to load a YOLOv5Seg model exported by YOLOv5.
Definition: yolov5seg.h:26
Model with ONNX format.
Definition: enum_variables.h:70
virtual YOLOv5SegPostprocessor & GetPostprocessor()
Get postprocessor reference of YOLOv5Seg.
Definition: yolov5seg.h:64
Postprocessor object for YOLOv5Seg serials model.
Definition: postprocessor.h:25
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16