From ea94deb9a8910b5e934194a9aaf6414187e58dd2 Mon Sep 17 00:00:00 2001 From: FlyingQianMM <245467267@qq.com> Date: Wed, 16 Sep 2020 08:50:59 +0000 Subject: [PATCH] fix the bug where mask cannot be shown --- deploy/cpp/src/visualize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/cpp/src/visualize.cpp b/deploy/cpp/src/visualize.cpp index 3443848..d6efc7f 100644 --- a/deploy/cpp/src/visualize.cpp +++ b/deploy/cpp/src/visualize.cpp @@ -89,7 +89,7 @@ cv::Mat Visualize(const cv::Mat& img, cv::Mat bin_mask(boxes[i].mask.shape[1], boxes[i].mask.shape[0], CV_32FC1, - boxes[i].mask.data.data()); + mask_data.data()); cv::Mat full_mask = cv::Mat::zeros(vis_img.size(), CV_8UC1); bin_mask.copyTo(full_mask(roi)); cv::Mat mask_ch[3]; -- GitLab