VNImageRequestHandler
An object that processes one or more image-analysis request pertaining to a single image.
Declaration
class VNImageRequestHandlerMentioned in
Overview
Instantiate this handler to perform Vision requests on a single image. You specify the image and, optionally, a completion handler at the time of creation, and call perform(_:) to begin executing the request.
Topics
Creating a Request Handler
init(cgImage:options:)init(cgImage:orientation:options:)init(ciImage:options:)init(ciImage:orientation:options:)init(cvPixelBuffer:options:)init(cvPixelBuffer:orientation:options:)init(cvPixelBuffer:depthData:orientation:options:)init(cmSampleBuffer:options:)init(cmSampleBuffer:orientation:options:)init(cmSampleBuffer:depthData:orientation:options:)init(data:options:)init(data:orientation:options:)init(url:options:)init(url:orientation:options:)
Executing a Request Handler
Setting Image Options
Initializers
init(CGImage:options:)init(CGImage:orientation:options:)init(CIImage:options:)init(CIImage:orientation:options:)init(CMSampleBuffer:depthData:orientation:options:)init(CMSampleBuffer:options:)init(CMSampleBuffer:orientation:options:)init(CVPixelBuffer:depthData:orientation:options:)init(CVPixelBuffer:options:)init(CVPixelBuffer:orientation:options:)init(URL:options:)init(URL:orientation:options:)