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