VNUtils Class

Definition

A set of utility functions for working with images.

[ObjCRuntime.TV(11, 0)]
public static class VNUtils
type VNUtils = class
Inheritance
VNUtils
Attributes

Properties

NormalizedIdentityRect

Gets the normalized identity CGRect [0, 0, 1, 1].

Methods

GetImagePoint(CGPoint, nuint, nuint)

Calculates the non-normalized point in an image of the specified size for the normalizedPoint.

GetImagePoint(Vector2, CGRect, nuint, nuint)

Calculates the non-normalized point in an image of the specified size, given the normalized faceBoundingBox and faceLandmarkPoint.

GetImageRect(CGRect, nuint, nuint)

Calculates the non-normalized rectangle in an image of the specified size from normalizedRect.

GetNormalizedFaceBoundingBoxPoint(Vector2, CGRect, nuint, nuint)

Gets the point, normalized in the range [0..1, 0..1] in an image of the given size, based on faceBoundingBox and faceLandmarkPoint.

GetNormalizedRect(CGRect, nuint, nuint)

Gets the normalized rectangle corresponding to imageRect in an image of the specified size.

IsIdentityRect(CGRect)

Returns true if the rect is [0, 0, 1, 1].

Applies to