diff --git a/Assets/MediaPipeUnity/Samples/Scenes/Tasks/Pose Landmark Detection/PoseLandmarkerRunner.cs b/Assets/MediaPipeUnity/Samples/Scenes/Tasks/Pose Landmark Detection/PoseLandmarkerRunner.cs index ceebe855b..33ee01a6c 100644 --- a/Assets/MediaPipeUnity/Samples/Scenes/Tasks/Pose Landmark Detection/PoseLandmarkerRunner.cs +++ b/Assets/MediaPipeUnity/Samples/Scenes/Tasks/Pose Landmark Detection/PoseLandmarkerRunner.cs @@ -65,7 +65,10 @@ protected override IEnumerator Run() var transformationOptions = imageSource.GetTransformationOptions(); var flipHorizontally = transformationOptions.flipHorizontally; var flipVertically = transformationOptions.flipVertically; - var imageProcessingOptions = new Tasks.Vision.Core.ImageProcessingOptions(rotationDegrees: (int)transformationOptions.rotationAngle); + + // Always setting rotationDegrees to 0 to avoid the issue that the detection becomes unstable when the input image is rotated. + // https://github.com/homuler/MediaPipeUnityPlugin/issues/1196 + var imageProcessingOptions = new Tasks.Vision.Core.ImageProcessingOptions(rotationDegrees: 0); AsyncGPUReadbackRequest req = default; var waitUntilReqDone = new WaitUntil(() => req.done);