Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 1 | namespace y2023.vision; |
| 2 | |
| 3 | // Object class. |
| 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 | |
| 11 | // Bounding box dimensions and position. |
| 12 | table 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 | |
| 20 | table GamePiece { |
| 21 | piece_class:Class (id: 0); |
| 22 | box:Box (id:1); |
| 23 | confidence:float (id:2); |
| 24 | } |
| 25 | |
| 26 | table GamePieces { |
| 27 | game_pieces:[GamePiece] (id: 0); |
| 28 | } |
| 29 | |
Maxwell Henderson | bf1bcec | 2023-03-05 18:00:20 -0800 | [diff] [blame^] | 30 | root_type GamePieces; |