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) -> CGPointParameters
- 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
VNImagePointForNormalizedPoint(_:_:_:)VNNormalizedPointForImagePoint(_:_:_:)VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)VNImageRectForNormalizedRect(_:_:_:)VNNormalizedRectForImageRect(_:_:_:)VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedIdentityRectVNNormalizedRectIsIdentityRect(_:)VNImagePointForFaceLandmarkPoint(_:_:_:_:)