Global Variable

VNDetectFaceLandmarksRequestRevision2

A constant for specifying revision 2 of VNDetectFaceLandmarksRequest.

Declaration

const NSUInteger VNDetectFaceLandmarksRequestRevision2;

Discussion

The revision number is a constant that you pass on a per-request basis to indicate to the Vision framework which version of the face landmark detector to use for that request. Each OS release in which the framework improves aspects of the algorithm (recognition speed, accuracy, number of languages supported, and so forth), the revision number increments by 1.

By default, recognition requests use the latest—the highest—revision number for the SDK that your app links against. If you don’t recompile your app against a newer SDK, your app binary will use the revision that was the default at the time you last compiled it. If you do recompile, your app uses the default of the new SDK.

If your app must support users on older OS versions that don’t have access to the latest Vision framework, you may want to specify an earlier revision. For example, your algorithm may depend on specific behavior from a Vision request, such as writing your image processing algorithm to assume the size or aspect ratio of bounding boxes from an older revision of the face detector. In such a scenario, you can support earlier versions of the algorithm by specifying lower numbers:

visionRequest.revision = VNDetectFaceLandmarksRequestRevision1;

See Also

Versioning Face Landmark Detection

+ revision:supportsConstellation:

A Boolean variable that indicates whether the Vision framework supports a given constellation type for a given request revision.

Beta
VNDetectFaceLandmarksRequestRevision3

A constant for specifying revision 3 of VNDetectFaceLandmarksRequest.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software