Skip to content

Commit

Permalink
fix(sample): workaround for #1196
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jun 29, 2024
1 parent c2d594e commit 638fc28
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 638fc28

Please sign in to comment.