diff --git a/mediapipe/tasks/ios/vision/pose_landmarker/utils/sources/MPPPoseLandmarkerOptions+Helpers.mm b/mediapipe/tasks/ios/vision/pose_landmarker/utils/sources/MPPPoseLandmarkerOptions+Helpers.mm index 1a112ef41..6675a253e 100644 --- a/mediapipe/tasks/ios/vision/pose_landmarker/utils/sources/MPPPoseLandmarkerOptions+Helpers.mm +++ b/mediapipe/tasks/ios/vision/pose_landmarker/utils/sources/MPPPoseLandmarkerOptions+Helpers.mm @@ -36,7 +36,8 @@ using PoseLandmarkerGraphOptionsProto = optionsProto->MutableExtension(PoseLandmarkerGraphOptionsProto::ext); poseLandmarkerGraphOptions->Clear(); - [self.baseOptions copyToProto:poseLandmarkerGraphOptions->mutable_base_options()]; + [self.baseOptions copyToProto:poseLandmarkerGraphOptions->mutable_base_options() + withUseStreamMode:self.runningMode != MPPRunningModeImage]; poseLandmarkerGraphOptions->set_min_tracking_confidence(self.minTrackingConfidence); PoseLandmarksDetectorGraphOptionsProto *poseLandmarksDetectorGraphOptions =