mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-23 00:29:35 +08:00
Update visualize.h
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user