blob: 1792ecebf12887dce53971c0ce2f3ed5206a221c [file] [log] [blame]
namespace y2023.vision;
// Not used by ml anymore.
enum Class : byte {
NONE = 0,
CONE_UP = 1,
CUBE = 2,
CONE_DOWN = 3,
}
enum ConeClass : byte {
NONE = 0,
CONE = 1,
}
// Bounding box dimensions and position.
// X and Y represent the top left of the bounding box.
table Box {
x:uint (id: 0);
y:uint (id: 1);
w:uint (id: 2);
h:uint (id: 3);
}
table GamePiece {
piece_class:ConeClass (id: 0);
box:Box (id:1);
confidence:float (id:2);
}
table GamePieces {
game_pieces:[GamePiece] (id: 0);
}
root_type GamePieces;