Updated roi not allowed check in ios vision task runner
This commit is contained in:
parent
c036b9f408
commit
0fd60285b5
|
@ -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."];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user