|
FastDeploy
latest
Fast & Easy to Deploy!
|
#include "fastdeploy_capi/vision/visualize.h"#include "fastdeploy/vision/visualize/visualize.h"#include "fastdeploy_capi/internal/types_internal.h"
Functions | |
| FD_C_Mat | FD_C_VisDetection (FD_C_Mat im, FD_C_DetectionResult *fd_c_detection_result, float score_threshold, int line_size, float font_size) |
| Show the visualized results for detection models. More... | |
| FD_C_Mat | FD_C_VisDetectionWithLabel (FD_C_Mat im, FD_C_DetectionResult *fd_c_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... | |
| FD_C_Mat | FD_C_VisClassification (FD_C_Mat im, FD_C_ClassifyResult *fd_c_classify_result, int top_k, float score_threshold, float font_size) |
| Show the visualized results for classification models. More... | |
| FD_C_Mat | FD_C_VisClassificationWithLabel (FD_C_Mat im, FD_C_ClassifyResult *fd_c_classify_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... | |
| FD_C_Mat | FD_C_VisOcr (FD_C_Mat im, FD_C_OCRResult *fd_c_ocr_result) |
| Show the visualized results for Ocr models. More... | |
| FD_C_Mat | FD_C_VisSegmentation (FD_C_Mat im, FD_C_SegmentationResult *fd_c_segmenation_result, float weight) |
| Show the visualized results for segmentation models. More... | |
| 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.
| [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 |
| 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.
| [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 |
| 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.
| [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 |
| 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.
| [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 |
| FD_C_Mat FD_C_VisOcr | ( | FD_C_Mat | im, |
| FD_C_OCRResult * | ocr_result | ||
| ) |
Show the visualized results for Ocr models.
| [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 |
| FD_C_Mat FD_C_VisSegmentation | ( | FD_C_Mat | im, |
| FD_C_SegmentationResult * | result, | ||
| float | weight | ||
| ) |
Show the visualized results for segmentation models.
| [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 |
1.8.13