Internal change
PiperOrigin-RevId: 537089863
This commit is contained in:
parent
194a301dd8
commit
15aff443b1
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user