TextDetection icon indicating copy to clipboard operation
TextDetection copied to clipboard

Swift Compiler Error in ViewController

Open leeprobert opened this issue 7 years ago • 1 comments

In this line on 157: let imageRequestHandler = VNImageRequestHandler(cvPixelBuffer: pixelBuffer, orientation: 6, options: requestOptions)

The int '6' should be expected argument type CGImagePropertyOrientation

leeprobert avatar Jul 24 '18 08:07 leeprobert

The int '6' should be modified to be:

let imageRequestHandler = VNImageRequestHandler(cvPixelBuffer: pixelBuffer, orientation: CGImagePropertyOrientation(rawValue: 6)!, options: requestOptions)

invisionjeremy avatar Sep 16 '18 14:09 invisionjeremy