Internal change

PiperOrigin-RevId: 537089863
This commit is contained in:
MediaPipe Team 2023-06-01 11:58:15 -07:00 committed by Copybara-Service
parent 194a301dd8
commit 15aff443b1

View File

@ -290,17 +290,17 @@ void LandmarksToNormalizedLandmarks(const LandmarkList& landmarks,
// Scale Z the same way as X (using image width). // Scale Z the same way as X (using image width).
norm_landmark->set_z(landmark.z() / image_width); norm_landmark->set_z(landmark.z() / image_width);
if (landmark.has_presence()) {
norm_landmark->set_presence(landmark.presence());
} else {
norm_landmark->clear_presence();
}
if (landmark.has_visibility()) { if (landmark.has_visibility()) {
norm_landmark->set_visibility(landmark.visibility()); norm_landmark->set_visibility(landmark.visibility());
} else { } else {
norm_landmark->clear_visibility(); norm_landmark->clear_visibility();
} }
if (landmark.has_presence()) {
norm_landmark->set_presence(landmark.presence());
} else {
norm_landmark->clear_presence();
}
} }
} }