Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Compiler Error in ViewController #3

Open
leeprobert opened this issue Jul 24, 2018 · 1 comment
Open

Swift Compiler Error in ViewController #3

leeprobert opened this issue Jul 24, 2018 · 1 comment

Comments

@leeprobert
Copy link

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

The int '6' should be expected argument type CGImagePropertyOrientation

@invisionjeremy
Copy link

The int '6' should be modified to be:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants