Skip to content

Instantly share code, notes, and snippets.

@rickwierenga
Created October 25, 2019 16:13
Show Gist options
  • Save rickwierenga/3c2cd3f74e7948002251991527a60c6b to your computer and use it in GitHub Desktop.
Save rickwierenga/3c2cd3f74e7948002251991527a60c6b to your computer and use it in GitHub Desktop.
lazy var detectBarcodeRequest: VNDetectBarcodesRequest = {
return VNDetectBarcodesRequest(completionHandler: { (request, error) in
guard error == nil else {
self.showAlert(withTitle: "Barcode Error", message: error!.localizedDescription)
return
}
self.processClassification(for: request)
})
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment