-
-
Save fitomad/e2d580c8a679d688a8cc38d524425ea9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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