VNImagePointForFaceLandmarkPoint(_:_:_:_:)
Returns the image coordinates of a specified face landmark point.
Declaration
func VNImagePointForFaceLandmarkPoint(_ 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.
- imageWidth:
The width of the image from which the Vnfaceobservation was generated.
- imageHeight:
The height of the image from which the Vnfaceobservation was generated.
Return Value
The input face landmark point, projected into image coordinates.
Discussion
The resulting point in image coordinate space may have nonintegral (floating-point) coordinates.
See Also
Coordinate conversion
VNImagePointForNormalizedPoint(_:_:_:)VNNormalizedPointForImagePoint(_:_:_:)VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)VNImageRectForNormalizedRect(_:_:_:)VNNormalizedRectForImageRect(_:_:_:)VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedIdentityRectVNNormalizedRectIsIdentityRect(_:)VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)