Function

VNNormalizedRectIsIdentityRect(_:)

Returns true if the rectangle has origin (0,0) and unit length and width.

Declaration

func VNNormalizedRectIsIdentityRect(_ normalizedRect: CGRect) -> Bool

Parameters

normalizedRect

Normalized input rect to test for identity.

Return Value

A Boolean value that indicates whether the input normalized rect is the identity rect.

See Also

Coordinate Conversion

func VNImagePointForNormalizedPoint(CGPoint, Int, Int) -> CGPoint

Projects a point from normalized coordinate space into image coordinates.

func VNImageRectForNormalizedRect(CGRect, Int, Int) -> CGRect

Projects a rectangle from normalized coordinate space into image coordinates.

func VNNormalizedRectForImageRect(CGRect, Int, Int) -> CGRect

Normalizes a rectangle from image coordinates.

let VNNormalizedIdentityRect: CGRect

The normalized identity rectangle with origin (0,0) and unit length and width.

func VNImagePointForFaceLandmarkPoint(vector_float2, CGRect, Int, Int) -> CGPoint

Returns the image coordinates of a given face landmark point.

func VNNormalizedFaceBoundingBoxPointForLandmarkPoint(vector_float2, CGRect, Int, Int) -> CGPoint

Returns the coordinates of a given face landmark point, in bounding box coordinates.