Instantly share code, notes, and snippets.

Embed
What would you like to do?
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