Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 1 | namespace y2023.vision; |
2 | |||||
3 | // Object class. | ||||
4 | enum Class : byte { | ||||
5 | CONE_DOWN, | ||||
6 | CONE_UP, | ||||
7 | CUBE | ||||
8 | } | ||||
9 | |||||
10 | // Bounding box dimensions and position. | ||||
11 | table 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 | |||||
19 | table GamePiece { | ||||
20 | piece_class:Class (id: 0); | ||||
21 | box:Box (id:1); | ||||
22 | confidence:float (id:2); | ||||
23 | } | ||||
24 | |||||
25 | table GamePieces { | ||||
26 | game_pieces:[GamePiece] (id: 0); | ||||
27 | } | ||||
28 | |||||
29 | root_type GamePieces; |