Browse Source

fix the bug where mask cannot be shown

FlyingQianMM 5 years ago
parent
commit
ea94deb9a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deploy/cpp/src/visualize.cpp

+ 1 - 1
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];