Contents

VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)

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

Declaration

func VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_ faceLandmarkPoint: vector_float2, _ faceBoundingBox: CGRect, _ imageWidth: Int, _ imageHeight: Int) -> CGPoint

Parameters

  • faceLandmarkPoint:

    The location of the face landmark, as returned from a Vnfacelandmarkregion2d instance.

  • faceBoundingBox:

    The normalized bounding box rect around the face, as obtained from a Vnfaceobservation instance.

  • imageWidth:

    The width of the image from which the Vnfaceobservation instance was generated.

  • imageHeight:

    The height of the image from which the Vnfaceobservation instance was generated.

Return Value

The input point projected into normalized bounding box coordinates.

See Also

Coordinate conversion