Go to the source code of this file.
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
◆ FD_C_VisClassification()
Show the visualized results for classification models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
[in] | top_k | the length of return values, e.g., if topk==2, the result will include the 2 most possible class label for input image. |
[in] | score_threshold | threshold for top_k scores, the class will not be shown if the score is less than score_threshold |
[in] | font_size | font size |
- Returns
- cv::Mat type stores the visualized results
◆ FD_C_VisClassificationWithLabel()
Show the visualized results with custom labels for classification models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
[in] | labels | custom labels for user, the visualized result will show the corresponding custom labels |
[in] | top_k | the length of return values, e.g., if topk==2, the result will include the 2 most possible class label for input image. |
[in] | score_threshold | threshold for top_k scores, the class will not be shown if the score is less than score_threshold |
[in] | font_size | font size |
- Returns
- cv::Mat type stores the visualized results
◆ FD_C_VisDetection()
Show the visualized results for detection models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
[in] | score_threshold | threshold for result scores, the bounding box will not be shown if the score is less than score_threshold |
[in] | line_size | line size for bounding boxes |
[in] | font_size | font size for text |
- Returns
- cv::Mat type stores the visualized results
◆ FD_C_VisDetectionWithLabel()
Show the visualized results with custom labels for detection models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
[in] | labels | the visualized result will show the bounding box contain class label |
[in] | score_threshold | threshold for result scores, the bounding box will not be shown if the score is less than score_threshold |
[in] | line_size | line size for bounding boxes |
[in] | font_size | font size for text |
- Returns
- cv::Mat type stores the visualized results
◆ FD_C_VisOcr()
Show the visualized results for Ocr models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
- Returns
- cv::Mat type stores the visualized results
◆ FD_C_VisSegmentation()
Show the visualized results for segmentation models.
- Parameters
-
[in] | im | the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format |
[in] | result | the result produced by model |
[in] | weight | transparent weight of visualized result image |
- Returns
- cv::Mat type stores the visualized results