Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 1 | namespace y2023.vision; |
2 | |||||
Filip Kujawa | ec433e1 | 2023-04-09 19:58:59 -0700 | [diff] [blame] | 3 | // Not used by ml anymore. |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 4 | enum Class : byte { |
Maxwell Henderson | bf1bcec | 2023-03-05 18:00:20 -0800 | [diff] [blame] | 5 | NONE = 0, |
6 | CONE_UP = 1, | ||||
7 | CUBE = 2, | ||||
8 | CONE_DOWN = 3, | ||||
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 9 | } |
10 | |||||
Filip Kujawa | ec433e1 | 2023-04-09 19:58:59 -0700 | [diff] [blame] | 11 | enum ConeClass : byte { |
12 | NONE = 0, | ||||
13 | CONE = 1, | ||||
14 | } | ||||
15 | |||||
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 16 | // Bounding box dimensions and position. |
Filip Kujawa | b72ca2d | 2023-02-26 17:38:54 -0800 | [diff] [blame] | 17 | // X and Y represent the top left of the bounding box. |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 18 | table Box { |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 19 | x:uint (id: 0); |
20 | y:uint (id: 1); | ||||
21 | w:uint (id: 2); | ||||
22 | h:uint (id: 3); | ||||
23 | } | ||||
24 | |||||
25 | table GamePiece { | ||||
Filip Kujawa | ec433e1 | 2023-04-09 19:58:59 -0700 | [diff] [blame] | 26 | piece_class:ConeClass (id: 0); |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 27 | box:Box (id:1); |
28 | confidence:float (id:2); | ||||
29 | } | ||||
30 | |||||
31 | table GamePieces { | ||||
32 | game_pieces:[GamePiece] (id: 0); | ||||
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 33 | } |
34 | |||||
Maxwell Henderson | bf1bcec | 2023-03-05 18:00:20 -0800 | [diff] [blame] | 35 | root_type GamePieces; |