init(completionHandler:)
Creates a new Vision request with an optional completion handler.
Declaration
init(completionHandler: VNRequestCompletionHandler? = nil)Parameters
- completionHandler:
The block to invoke after the request finishes processing.
Discussion
Vision executes the completion handler on the same queue that it executes the request; however, this queue differs from the one where you called perform(_:).