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