Last active
March 15, 2021 23:51
-
-
Save hohonuuli/c163b85faded9a426b447770388bf99d to your computer and use it in GitHub Desktop.
Pascal VOC modeled in Scala. For medium article
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
case class Voc( | |
filename: String, | |
objects: Seq[VocObject] = Nil | |
) | |
case class VocObject( | |
name: String, | |
xmin: Int, | |
ymin: Int, | |
xmax: Int, | |
ymax: Int | |
) { | |
val width = xmax - xmin | |
val height = ymax - ymin | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment