blob: e981712632fb289c63a73d10bd647e75c243a1ca [file] [log] [blame]
Filip Kujawa3004f202023-02-12 16:41:40 -08001namespace y2023.vision;
2
3// Object class.
4enum Class : byte {
5 CONE_DOWN,
6 CONE_UP,
7 CUBE
8}
9
10// Bounding box dimensions and position.
11table Box {
12 //TODO(Filip): Are cords center of box or top left corner?
13 x:uint (id: 0);
14 y:uint (id: 1);
15 w:uint (id: 2);
16 h:uint (id: 3);
17}
18
19table GamePiece {
20 piece_class:Class (id: 0);
21 box:Box (id:1);
22 confidence:float (id:2);
23}
24
25table GamePieces {
26 game_pieces:[GamePiece] (id: 0);
27}
28
29root_type GamePieces;