Fixed comments in MPPVisionTaskRunner

This commit is contained in:
Prianka Liz Kariat 2023-03-03 10:57:39 +05:30
parent 09fa23088a
commit 4b54f7f45f

View File

@ -58,7 +58,7 @@ NS_ASSUME_NONNULL_BEGIN
error:(NSError **)error NS_DESIGNATED_INITIALIZER;
/**
* Creates a `NormalizedRect` from region of interest and image orientation, performing
* Creates a `NormalizedRect` from a region of interest and an image orientation, performing
* sanity checks on-the-fly. If the input region of interest equals `CGRectZero`, returns a default
* `NormalizedRect` covering the whole image with rotation set according `imageOrientation`. If
* `roiAllowed` is NO, an error will be returned if the input region of interest is not equal to
@ -66,11 +66,10 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param roi A `CGRect` specifying the region of interest. If the input region of interest equals
* `CGRectZero`, the returned `NormalizedRect` covers the whole image. Make sure that `roi` equals
* `CGRectZero` if `roiAllowed` is NO. Otherwise an error will be returned.
* `CGRectZero` if `roiAllowed` is NO. Otherwise, an error will be returned.
* @param imageOrientation A `UIImageOrientation` indicating the rotation to be applied to the
* image. The resulting `NormalizedRect` will convert the `imageOrientation` to degrees clockwise.
* @param roiAllowed Indicates if the `roi` field is allowed to be a value other than `CGRectZero`.
*
* @param error Pointer to the memory location where errors if any should be
* saved. If @c NULL, no error will be saved.
*