From c62dbb7367c55c8994042ac08383e242f731ee83 Mon Sep 17 00:00:00 2001 From: huangjianhui <852142024@qq.com> Date: Tue, 14 Feb 2023 11:24:08 +0800 Subject: [PATCH] Update visualize.h --- fastdeploy/vision/visualize/visualize.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastdeploy/vision/visualize/visualize.h b/fastdeploy/vision/visualize/visualize.h index c3a77e394..530400e16 100755 --- a/fastdeploy/vision/visualize/visualize.h +++ b/fastdeploy/vision/visualize/visualize.h @@ -143,14 +143,14 @@ FASTDEPLOY_DECL cv::Mat VisSegmentation(const cv::Mat& im, * * \param[in] im the input image data, comes from cv::imread(), is a 3-D array with layout HWC, BGR format * \param[in] result the result produced by model - * \param[in] is_transparent if is_transparent==true, the background will with transparent color + * \param[in] transparent_background if transparent_background==true, the background will with transparent color * \param[in] transparent_threshold since the alpha value in MattringResult is a float between [0, 1], transparent_threshold is used to filter background pixel * \param[in] remove_small_connected_area if remove_small_connected_area==true, the visualized result will not include the small connected areas * \return cv::Mat type stores the visualized results */ FASTDEPLOY_DECL cv::Mat VisMatting(const cv::Mat& im, const MattingResult& result, - bool is_transparent = false, + bool transparent_background = false, float transparent_threshold = 0.999 bool remove_small_connected_area = false); /** \brief Show the visualized results for Ocr models