Updated comments

This commit is contained in:
Prianka Liz Kariat 2023-06-05 13:26:17 +05:30
parent 56a035cb1b
commit db0da30f18

View File

@ -42,9 +42,8 @@ using ::mediapipe::tasks::ios::test::vision::utils::get_proto_from_pbtxt;
} }
if (removeZPosition) { if (removeZPosition) {
// Remove z position of landmarks, because they are not used in correctness // Remove z position of landmarks, because they are not used in correctness testing. For video
// testing. For video or live stream mode, the z positions varies a lot during // or live stream mode, the z positions varies a lot during tracking from frame to frame.
// tracking from frame to frame.
for (int i = 0; i < landmarkDetectionResultProto.landmarks().landmark().size(); i++) { for (int i = 0; i < landmarkDetectionResultProto.landmarks().landmark().size(); i++) {
auto &landmark = *landmarkDetectionResultProto.mutable_landmarks()->mutable_landmark(i); auto &landmark = *landmarkDetectionResultProto.mutable_landmarks()->mutable_landmark(i);
landmark.clear_z(); landmark.clear_z();