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

requestRevision

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

Required.

Determining Revision Type

VNRequestRevisionUnspecified

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

VNDetectRectanglesRequestRevision1

A constant for specifying revision 1 of VNDetectRectanglesRequest.

VNTrackRectangleRequestRevision1

A constant for specifying revision 1 of VNTrackRectangleRequest.

VNTrackObjectRequestRevision1

A constant for specifying revision 1 of VNTrackObjectRequest.

VNRecognizeTextRequestRevision1

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

VNDetectBarcodesRequestRevision1

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

VNDetectHorizonRequestRevision1

A constant for specifying revision 1 of VNDetectHorizonRequest.

VNCoreMLRequestRevision1

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

VNClassifyImageRequestRevision1

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

VNGenerateImageFeaturePrintRequestRevision1

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

Relationships

See Also

Determining the Revision

currentRevision

The current revison supported by the request.

defaultRevision

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

supportedRevisions

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