From 0fd60285b5a0939f3d4ec81e013b262a554941c6 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Mon, 10 Apr 2023 19:23:32 +0530 Subject: [PATCH] Updated roi not allowed check in ios vision task runner --- mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm index 98d46f17e..964cd38c7 100644 --- a/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm +++ b/mediapipe/tasks/ios/vision/core/sources/MPPVisionTaskRunner.mm @@ -90,7 +90,7 @@ static const NSInteger kMPPOrientationDegreesLeft = -270; (UIImageOrientation)imageOrientation ROIAllowed:(BOOL)ROIAllowed error:(NSError **)error { - if (CGRectEqualToRect(roi, CGRectZero) && !ROIAllowed) { + if (!CGRectEqualToRect(roi, CGRectZero) && !ROIAllowed) { [MPPCommonUtils createCustomError:error withCode:MPPTasksErrorCodeInvalidArgumentError description:@"This task doesn't support region-of-interest."];