Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 1, 2018 16:14
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/e2d580c8a679d688a8cc38d524425ea9 to your computer and use it in GitHub Desktop.
Save fitomad/e2d580c8a679d688a8cc38d524425ea9 to your computer and use it in GitHub Desktop.
let box_rect = box.boundingBox.scaled(to: imageSize)
// Rectify the detected image and reduce it to inverted grayscale for applying model.
let topLeft = box.topLeft.scaled(to: imageSize)
let topRight = box.topRight.scaled(to: imageSize)
let bottomLeft = box.bottomLeft.scaled(to: imageSize)
let bottomRight = box.bottomRight.scaled(to: imageSize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment