fix: 🚑 added bracket
This commit is contained in:
parent
331c01b918
commit
fa59c790a9
|
@ -193,13 +193,14 @@ namespace mediapipe
|
||||||
const std::vector<std::unordered_map<std::string, cv::Mat>> &mask_vec =
|
const std::vector<std::unordered_map<std::string, cv::Mat>> &mask_vec =
|
||||||
cc->Inputs().Tag(kMaskTag).Get<std::vector<std::unordered_map<std::string, cv::Mat>>>();
|
cc->Inputs().Tag(kMaskTag).Get<std::vector<std::unordered_map<std::string, cv::Mat>>>();
|
||||||
|
|
||||||
const std::vector<std::tuple<double, double, double, double>> &face_boxes =
|
const std::vector<std::tuple<double, double, double, double>> &face_boxes =
|
||||||
cc->Inputs().Tag(kFaceBoxTag).Get<std::vector<std::tuple<double, double, double, double>>>();
|
cc->Inputs().Tag(kFaceBoxTag).Get<std::vector<std::tuple<double, double, double, double>>>();
|
||||||
|
|
||||||
if (mask_vec.size() > 0 && face_boxes.size() > 0)
|
if (mask_vec.size() > 0 && face_boxes.size() > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < mask_vec.size(); i++)
|
for (int i = 0; i < mask_vec.size(); i++)
|
||||||
MP_RETURN_IF_ERROR(SmoothFace(cc, mask_vec[i], face_boxes[i]));
|
MP_RETURN_IF_ERROR(SmoothFace(cc, mask_vec[i], face_boxes[i]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Copy the rendered image to output.
|
// Copy the rendered image to output.
|
||||||
uchar *image_mat_ptr = image_mat->data;
|
uchar *image_mat_ptr = image_mat->data;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user