FastDeploy
latest
Fast & Easy to Deploy!
|
#include "fastdeploy_capi/core/fd_common.h"
#include "fastdeploy_capi/core/fd_type.h"
#include "fastdeploy_capi/runtime/runtime_option.h"
#include "fastdeploy_capi/vision/result.h"
#include "fastdeploy_capi/vision/detection/contrib/yolo/base_define.h"
Go to the source code of this file.
Typedefs | |
typedef struct FD_C_RuntimeOptionWrapper | FD_C_RuntimeOptionWrapper |
typedef struct FD_C_YOLOv5Wrapper | FD_C_YOLOv5Wrapper |
typedef struct FD_C_YOLOv7Wrapper | FD_C_YOLOv7Wrapper |
typedef struct FD_C_YOLOv8Wrapper | FD_C_YOLOv8Wrapper |
typedef struct FD_C_YOLOv6Wrapper | FD_C_YOLOv6Wrapper |
typedef struct FD_C_YOLORWrapper | FD_C_YOLORWrapper |
typedef struct FD_C_YOLOXWrapper | FD_C_YOLOXWrapper |
Functions | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOv5) | |
Create a new FD_C_YOLOv5Wrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOv5, fd_c_yolov5_wrapper) | |
Destroy a FD_C_YOLOv5Wrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION (YOLOv5, fd_c_yolov5_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOv5, fd_c_yolov5_wrapper) | |
Check if the model is initialized successfully. More... | |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION (YOLOv5, fd_c_yolov5_wrapper) | |
Predict the detection results for a batch of input images. More... | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOv7) | |
Create a new FD_C_YOLOv7Wrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOv7, fd_c_yolov7_wrapper) | |
Destroy a FD_C_YOLOv7Wrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION (YOLOv7, fd_c_yolov7_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOv7, fd_c_yolov7_wrapper) | |
Check if the model is initialized successfully. More... | |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION (YOLOv7, fd_c_yolov7_wrapper) | |
Predict the detection results for a batch of input images. More... | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOv8) | |
Create a new FD_C_YOLOv8Wrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOv8, fd_c_yolov8_wrapper) | |
Destroy a FD_C_YOLOv8Wrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION (YOLOv8, fd_c_yolov8_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOv8, fd_c_yolov8_wrapper) | |
Check if the model is initialized successfully. More... | |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION (YOLOv8, fd_c_yolov8_wrapper) | |
Predict the detection results for a batch of input images. More... | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOv6) | |
Create a new FD_C_YOLOv6Wrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOv6, fd_c_yolov6_wrapper) | |
Destroy a FD_C_YOLOv6Wrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD (YOLOv6, fd_c_yolov6_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOv6, fd_c_yolov6_wrapper) | |
Check if the model is initialized successfully. More... | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOR) | |
Create a new FD_C_YOLORWrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOR, fd_c_yolor_wrapper) | |
Destroy a FD_C_YOLORWrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD (YOLOR, fd_c_yolor_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOR, fd_c_yolor_wrapper) | |
Check if the model is initialized successfully. More... | |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION (YOLOX) | |
Create a new FD_C_YOLOXWrapper object. More... | |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION (YOLOX, fd_c_yolox_wrapper) | |
Destroy a FD_C_YOLOXWrapper object. More... | |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD (YOLOX, fd_c_yolox_wrapper) | |
Predict the detection result for an input image. More... | |
YOLO_DECLARE_INITIALIZED_FUNCTION (YOLOX, fd_c_yolox_wrapper) | |
Check if the model is initialized successfully. More... | |
typedef struct FD_C_RuntimeOptionWrapper FD_C_RuntimeOptionWrapper |
typedef struct FD_C_YOLORWrapper FD_C_YOLORWrapper |
typedef struct FD_C_YOLOv5Wrapper FD_C_YOLOv5Wrapper |
typedef struct FD_C_YOLOv6Wrapper FD_C_YOLOv6Wrapper |
typedef struct FD_C_YOLOv7Wrapper FD_C_YOLOv7Wrapper |
typedef struct FD_C_YOLOv8Wrapper FD_C_YOLOv8Wrapper |
typedef struct FD_C_YOLOXWrapper FD_C_YOLOXWrapper |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION | ( | YOLOv5 | , |
fd_c_yolov5_wrapper | |||
) |
Predict the detection results for a batch of input images.
[in] | fd_c_yolov5_wrapper | pointer to FD_C_YOLOv5Wrapper object |
[in] | imgs,The | input image list, each element comes from cv::imread() |
[in] | results | The output detection result list |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION | ( | YOLOv7 | , |
fd_c_yolov7_wrapper | |||
) |
Predict the detection results for a batch of input images.
[in] | fd_c_yolov7_wrapper | pointer to FD_C_YOLOv7Wrapper object |
[in] | imgs,The | input image list, each element comes from cv::imread() |
[in] | results | The output detection result list |
YOLO_DECLARE_BATCH_PREDICT_FUNCTION | ( | YOLOv8 | , |
fd_c_yolov8_wrapper | |||
) |
Predict the detection results for a batch of input images.
[in] | fd_c_yolov8_wrapper | pointer to FD_C_YOLOv8Wrapper object |
[in] | imgs,The | input image list, each element comes from cv::imread() |
[in] | results | The output detection result list |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOv5 | ) |
Create a new FD_C_YOLOv5Wrapper object.
[in] | model_file | Path of model file, e.g ./yolov5.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOv7 | ) |
Create a new FD_C_YOLOv7Wrapper object.
[in] | model_file | Path of model file, e.g ./yolov7.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOv8 | ) |
Create a new FD_C_YOLOv8Wrapper object.
[in] | model_file | Path of model file, e.g ./yolov8.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOv6 | ) |
Create a new FD_C_YOLOv6Wrapper object.
[in] | model_file | Path of model file, e.g ./yolov6.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOR | ) |
Create a new FD_C_YOLORWrapper object.
[in] | model_file | Path of model file, e.g ./yolor.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION | ( | YOLOX | ) |
Create a new FD_C_YOLOXWrapper object.
[in] | model_file | Path of model file, e.g ./yolox.onnx |
[in] | params_file | Path of parameter file, e.g ppyoloe/model.pdiparams, if the model format is ONNX, this parameter will be ignored |
[in] | fd_c_runtime_option_wrapper | RuntimeOption for inference, the default will use cpu, and choose the backend defined in valid_cpu_backends |
[in] | model_format | Model format of the loaded model, default is Paddle format |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOv5 | , |
fd_c_yolov5_wrapper | |||
) |
Destroy a FD_C_YOLOv5Wrapper object.
[in] | fd_c_yolov5_wrapper | pointer to FD_C_YOLOv5Wrapper object |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOv7 | , |
fd_c_yolov7_wrapper | |||
) |
Destroy a FD_C_YOLOv7Wrapper object.
[in] | fd_c_yolov7_wrapper | pointer to FD_C_YOLOv7Wrapper object |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOv8 | , |
fd_c_yolov8_wrapper | |||
) |
Destroy a FD_C_YOLOv8Wrapper object.
[in] | fd_c_yolov8_wrapper | pointer to FD_C_YOLOv8Wrapper object |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOv6 | , |
fd_c_yolov6_wrapper | |||
) |
Destroy a FD_C_YOLOv6Wrapper object.
[in] | fd_c_yolov6_wrapper | pointer to FD_C_YOLOv6Wrapper object |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOR | , |
fd_c_yolor_wrapper | |||
) |
Destroy a FD_C_YOLORWrapper object.
[in] | fd_c_yolor_wrapper | pointer to FD_C_YOLORWrapper object |
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION | ( | YOLOX | , |
fd_c_yolox_wrapper | |||
) |
Destroy a FD_C_YOLOXWrapper object.
[in] | fd_c_yolox_wrapper | pointer to FD_C_YOLOXWrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOv5 | , |
fd_c_yolov5_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolov5_wrapper | pointer to FD_C_YOLOv5Wrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOv7 | , |
fd_c_yolov7_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolov7_wrapper | pointer to FD_C_YOLOv7Wrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOv8 | , |
fd_c_yolov8_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolov8_wrapper | pointer to FD_C_YOLOv8Wrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOv6 | , |
fd_c_yolov6_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolov6_wrapper | pointer to FD_C_YOLOv6Wrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOR | , |
fd_c_yolor_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolor_wrapper | pointer to FD_C_YOLORWrapper object |
YOLO_DECLARE_INITIALIZED_FUNCTION | ( | YOLOX | , |
fd_c_yolox_wrapper | |||
) |
Check if the model is initialized successfully.
[in] | fd_c_yolox_wrapper | pointer to FD_C_YOLOXWrapper object |
YOLO_DECLARE_PREDICT_FUNCTION | ( | YOLOv5 | , |
fd_c_yolov5_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolov5_wrapper | pointer to FD_C_YOLOv5Wrapper object |
[in] | img | pointer to cv::Mat image |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |
YOLO_DECLARE_PREDICT_FUNCTION | ( | YOLOv7 | , |
fd_c_yolov7_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolov7_wrapper | pointer to FD_C_YOLOv7Wrapper object |
[in] | img | pointer to cv::Mat image |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |
YOLO_DECLARE_PREDICT_FUNCTION | ( | YOLOv8 | , |
fd_c_yolov8_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolov8_wrapper | pointer to FD_C_YOLOv8Wrapper object |
[in] | img | pointer to cv::Mat image |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD | ( | YOLOv6 | , |
fd_c_yolov6_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolov6_wrapper | pointer to FD_C_YOLOv6Wrapper object |
[in] | img | pointer to cv::Mat image |
[in] | conf_threshold | confidence threashold for postprocessing |
[in] | nms_iou_threshold | iou threashold for NMS |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD | ( | YOLOR | , |
fd_c_yolor_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolor_wrapper | pointer to FD_C_YOLORWrapper object |
[in] | img | pointer to cv::Mat image |
[in] | conf_threshold | confidence threashold for postprocessing |
[in] | nms_iou_threshold | iou threashold for NMS |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD | ( | YOLOX | , |
fd_c_yolox_wrapper | |||
) |
Predict the detection result for an input image.
[in] | fd_c_yolox_wrapper | pointer to FD_C_YOLOXWrapper object |
[in] | img | pointer to cv::Mat image |
[in] | conf_threshold | confidence threashold for postprocessing |
[in] | nms_iou_threshold | iou threashold for NMS |
[in] | fd_c_detection_result_wrapper | pointer to FD_C_DetectionResultWrapper object, which stores the result. |