Skip to content

Instantly share code, notes, and snippets.

@an-indya
Created May 12, 2018 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an-indya/8a9c624233e6a7a4fe4b5e88ef29c722 to your computer and use it in GitHub Desktop.
Save an-indya/8a9c624233e6a7a4fe4b5e88ef29c722 to your computer and use it in GitHub Desktop.
let handler = VNImageRequestHandler(ciImage: image)
DispatchQueue.global(qos: .userInteractive).async {
do {
try handler.perform([request])
} catch {
print(error)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment