FastDeploy  latest
Fast & Easy to Deploy!
visualize.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 
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
36 FD_C_VisDetection(FD_C_Mat im, FD_C_DetectionResult* fd_detection_result,
37  float score_threshold, int line_size, float font_size);
38 
50  FD_C_Mat im,
51  FD_C_DetectionResult* fd_detection_result,
52  FD_C_OneDimArrayCstr* labels,
53  float score_threshold,
54  int line_size, float font_size);
55 
66  FD_C_Mat im, FD_C_ClassifyResult* result, int top_k,
67  float score_threshold, float font_size);
79  FD_C_Mat im, FD_C_ClassifyResult* result,
80  FD_C_OneDimArrayCstr* labels, int top_k,
81  float score_threshold, float font_size);
82 
83 
91 
100  FD_C_SegmentationResult* result,
101  float weight);
102 
103 
104 #ifdef __cplusplus
105 } // extern "C"
106 #endif
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisClassificationWithLabel(FD_C_Mat im, FD_C_ClassifyResult *result, FD_C_OneDimArrayCstr *labels, int top_k, float score_threshold, float font_size)
Show the visualized results with custom labels for classification models.
Definition: visualize.cc:74
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisSegmentation(FD_C_Mat im, FD_C_SegmentationResult *result, float weight)
Show the visualized results for segmentation models.
Definition: visualize.cc:104
#define FASTDEPLOY_CAPI_EXPORT
Definition: fd_common.h:27
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisDetectionWithLabel(FD_C_Mat im, FD_C_DetectionResult *fd_detection_result, FD_C_OneDimArrayCstr *labels, float score_threshold, int line_size, float font_size)
Show the visualized results with custom labels for detection models.
Definition: visualize.cc:39
Definition: result.h:51
Definition: result.h:66
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisOcr(FD_C_Mat im, FD_C_OCRResult *ocr_result)
Show the visualized results for Ocr models.
Definition: visualize.cc:93
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisClassification(FD_C_Mat im, FD_C_ClassifyResult *result, int top_k, float score_threshold, float font_size)
Show the visualized results for classification models.
Definition: visualize.cc:59
Definition: result.h:29
auto & ocr_result
Definition: model.cc:351
Definition: result.h:80
FASTDEPLOY_CAPI_EXPORT __fd_give FD_C_Mat FD_C_VisDetection(FD_C_Mat im, FD_C_DetectionResult *fd_detection_result, float score_threshold, int line_size, float font_size)
Show the visualized results for detection models.
Definition: visualize.cc:24
#define __fd_give
Definition: fd_common.h:37
void * FD_C_Mat
Definition: fd_type.h:88
Definition: fd_type.h:58