Instance Property

usesCPUOnly

A Boolean signifying that the Vision request should execute exclusively on the CPU.

Declaration

var usesCPUOnly: Bool { get set }

Discussion

This value defaults to false to signify that the Vision request is free to leverage the GPU to accelerate its processing.

See Also

Configuring a Request

var completionHandler: VNRequestCompletionHandler?

The completion handler block that's invoked after the request has finished processing.

var preferBackgroundProcessing: Bool

A hint to minimize the resource burden of the request.

var results: [Any]?

The collection of VNObservation results generated by request processing.

var revision: Int

The specific algorithm or implementation revision that is to be used to perform the 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