blob: 773cc93d1e701b9b133fd5ef0ef00ec81e81082a [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.
Filip Kujawab72ca2d2023-02-26 17:38:54 -080011// X and Y represent the top left of the bounding box.
Filip Kujawa3004f202023-02-12 16:41:40 -080012table Box {
Filip Kujawa3004f202023-02-12 16:41:40 -080013 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);
Filip Kujawab72ca2d2023-02-26 17:38:54 -080027 best_piece:uint (id: 1); // Index of the "best piece".
Filip Kujawa3004f202023-02-12 16:41:40 -080028}
29
30root_type GamePieces;