Update visualize.h

This commit is contained in:
huangjianhui
2023-02-14 11:24:08 +08:00
committed by GitHub
parent 7bd8bbfb84
commit c62dbb7367

View File

@@ -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