FastDeploy  latest
Fast & Easy to Deploy!
model.h
Go to the documentation of this file.
1 // Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
22 
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 // YOLOv5
30 
32 
44 
50 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv5, fd_c_yolov5_wrapper);
51 
59 YOLO_DECLARE_PREDICT_FUNCTION(YOLOv5, fd_c_yolov5_wrapper);
60 
68 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOv5, fd_c_yolov5_wrapper);
69 
79 YOLO_DECLARE_BATCH_PREDICT_FUNCTION(YOLOv5, fd_c_yolov5_wrapper);
80 
81 // YOLOv7
82 
84 
96 
102 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv7, fd_c_yolov7_wrapper);
103 
111 YOLO_DECLARE_PREDICT_FUNCTION(YOLOv7, fd_c_yolov7_wrapper);
112 
120 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOv7, fd_c_yolov7_wrapper);
121 
131 YOLO_DECLARE_BATCH_PREDICT_FUNCTION(YOLOv7, fd_c_yolov7_wrapper);
132 
133 // YOLOv8
134 
136 
148 
154 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv8, fd_c_yolov8_wrapper);
155 
163 YOLO_DECLARE_PREDICT_FUNCTION(YOLOv8, fd_c_yolov8_wrapper);
164 
172 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOv8, fd_c_yolov8_wrapper);
173 
183 YOLO_DECLARE_BATCH_PREDICT_FUNCTION(YOLOv8, fd_c_yolov8_wrapper);
184 
185 // YOLOv6
186 
188 
200 
206 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv6, fd_c_yolov6_wrapper);
207 
217 YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD(YOLOv6, fd_c_yolov6_wrapper);
218 
226 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOv6, fd_c_yolov6_wrapper);
227 
228 
229 // YOLOR
230 
232 
244 
250 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOR, fd_c_yolor_wrapper);
251 
261 YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD(YOLOR, fd_c_yolor_wrapper);
262 
270 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOR, fd_c_yolor_wrapper);
271 
272 
273 
274 // YOLOX
275 
277 
289 
295 YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOX, fd_c_yolox_wrapper);
296 
306 YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD(YOLOX, fd_c_yolox_wrapper);
307 
315 YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOX, fd_c_yolox_wrapper);
316 
317 #ifdef __cplusplus
318 } // extern "C"
319 #endif
YOLO_DECLARE_BATCH_PREDICT_FUNCTION(YOLOv5, fd_c_yolov5_wrapper)
Predict the detection results for a batch of input images.
YOLO_DECLARE_CREATE_WRAPPER_FUNCTION(YOLOv5)
Create a new FD_C_YOLOv5Wrapper object.
struct FD_C_YOLOv8Wrapper FD_C_YOLOv8Wrapper
Definition: model.h:135
struct FD_C_YOLORWrapper FD_C_YOLORWrapper
Definition: model.h:231
YOLO_DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv5, fd_c_yolov5_wrapper)
Destroy a FD_C_YOLOv5Wrapper object.
Definition: types_internal.h:26
YOLO_DECLARE_INITIALIZED_FUNCTION(YOLOv5, fd_c_yolov5_wrapper)
Check if the model is initialized successfully.
struct FD_C_YOLOXWrapper FD_C_YOLOXWrapper
Definition: model.h:276
struct FD_C_YOLOv5Wrapper FD_C_YOLOv5Wrapper
Definition: model.h:31
struct FD_C_YOLOv7Wrapper FD_C_YOLOv7Wrapper
Definition: model.h:83
struct FD_C_YOLOv6Wrapper FD_C_YOLOv6Wrapper
Definition: model.h:187
YOLO_DECLARE_PREDICT_FUNCTION(YOLOv5, fd_c_yolov5_wrapper)
Predict the detection result for an input image.
YOLO_DECLARE_PREDICT_FUNCTION_WITH_THRESHOLD(YOLOv6, fd_c_yolov6_wrapper)
Predict the detection result for an input image.