Updated error with info about unsupported mirrored orientations in MPPVisionTaskRunner
This commit is contained in:
parent
6253966901
commit
fee66069ac
|
@ -113,9 +113,13 @@ using ::mediapipe::tasks::core::PacketsCallback;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
[MPPCommonUtils createCustomError:error
|
[MPPCommonUtils
|
||||||
withCode:MPPTasksErrorCodeInvalidArgumentError
|
createCustomError:error
|
||||||
description:@"Unsupported UIImageOrientation."];
|
withCode:MPPTasksErrorCodeInvalidArgumentError
|
||||||
|
description:@"Unsupported UIImageOrientation. `imageOrientation` cannot be equal to "
|
||||||
|
@"any of the mirrored orientations "
|
||||||
|
@"(`UIImageOrientationUpMirrored`,`UIImageOrientationDownMirrored`,`"
|
||||||
|
@"UIImageOrientationLeftMirrored`,`UIImageOrientationRightMirrored`)"];
|
||||||
}
|
}
|
||||||
|
|
||||||
normalizedRect.set_rotation(-rotationDegrees * M_PI / 180.0);
|
normalizedRect.set_rotation(-rotationDegrees * M_PI / 180.0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user