init(cgImage:options:)
Creates a handler to be used for performing requests on Core Graphics images.
Declaration
init(cgImage image: CGImage, options: [VNImageOption : Any] = [:])Parameters
- image:
A Cgimage containing the image to be used for performing the requests. Image content is immutable.
- options:
An optional dictionary containing Vnimageoption keys to auxiliary image data.
See Also
Creating a Request Handler
init(CGImage:options:)init(CGImage:orientation:options:)init(cgImage:orientation:options:)init(CIImage:options:)init(ciImage:options:)init(CIImage:orientation:options:)init(ciImage:orientation:options:)init(CVPixelBuffer:options:)init(cvPixelBuffer:options:)init(CVPixelBuffer:orientation:options:)init(cvPixelBuffer:orientation:options:)init(CVPixelBuffer:depthData:orientation:options:)init(cvPixelBuffer:depthData:orientation:options:)init(CMSampleBuffer:options:)init(cmSampleBuffer:options:)