Updated roi not allowed check in ios vision task runner

This commit is contained in:
Prianka Liz Kariat 2023-04-10 19:23:32 +05:30
parent c036b9f408
commit 0fd60285b5

View File

@ -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."];