Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 1, 2018 16:12
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 fitomad/db62efd9e48cb40f3688c043776e8eb5 to your computer and use it in GitHub Desktop.
Save fitomad/db62efd9e48cb40f3688c043776e8eb5 to your computer and use it in GitHub Desktop.
// 1
guard let results = request.results,
let ciBikeImage = self.ciBikeImage,
!results.isEmpty
else
{
return
}
// 2
guard let result = results.first,
let observation = result as? VNTextObservation,
observation.isBikeIdentifier
else
{
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment