Updated roi not allowed check in ios vision task runner
This commit is contained in:
@@ -90,7 +90,7 @@ static const NSInteger kMPPOrientationDegreesLeft = -270;
|
|||||||
(UIImageOrientation)imageOrientation
|
(UIImageOrientation)imageOrientation
|
||||||
ROIAllowed:(BOOL)ROIAllowed
|
ROIAllowed:(BOOL)ROIAllowed
|
||||||
error:(NSError **)error {
|
error:(NSError **)error {
|
||||||
if (CGRectEqualToRect(roi, CGRectZero) && !ROIAllowed) {
|
if (!CGRectEqualToRect(roi, CGRectZero) && !ROIAllowed) {
|
||||||
[MPPCommonUtils createCustomError:error
|
[MPPCommonUtils createCustomError:error
|
||||||
withCode:MPPTasksErrorCodeInvalidArgumentError
|
withCode:MPPTasksErrorCodeInvalidArgumentError
|
||||||
description:@"This task doesn't support region-of-interest."];
|
description:@"This task doesn't support region-of-interest."];
|
||||||
|
|||||||
Reference in New Issue
Block a user