Protocol

VNRequestRevisionProviding

A protocol for specifying the revision number of Vision algorithms.

Declaration

protocol VNRequestRevisionProviding

Overview

Subclasses of VNRequest should adopt this protocol to specify which revision of an algorithm the Vision framework uses to generate requests.

Topics

Specifying Revision Number

var requestRevision: Int

The revision of the VNRequest subclass used to generate the implementing object.

Required.

Determining Revision Type

let VNRequestRevisionUnspecified: Int

A constant enumerating the case where a VNRequest revision hasn't been specified.

let VNTrackObjectRequestRevision1: Int

A constant for specifying revision 1 of VNTrackObjectRequest.

let VNRecognizeTextRequestRevision1: Int

A constant for specifying revision 1 of the text recognition algorithm.

Beta
let VNDetectBarcodesRequestRevision1: Int

A constant for specifying revision 1 of the barcode detection algorithm.

let VNCoreMLRequestRevision1: Int

A constant for specifying revision 1 of a Core ML request.

let VNClassifyImageRequestRevision1: Int

A constant for specifying revision 1 of the image classification algorithm.

Beta
let VNGenerateImageFeaturePrintRequestRevision1: Int

A constant for specifying revision 1 of the feature print algorithm.

Beta

Relationships

See Also

Determining the Revision

class var currentRevision: Int

The current revison supported by the request.

class var defaultRevision: Int

The revision of the latest request for the particular SDK linked with the client application.

class var supportedRevisions: IndexSet

The collection of currently-supported algorithm versions for the class of request.

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