blob: 1792ecebf12887dce53971c0ce2f3ed5206a221c [file] [log] [blame]
Filip Kujawa3004f202023-02-12 16:41:40 -08001namespace y2023.vision;
2
Filip Kujawaec433e12023-04-09 19:58:59 -07003// Not used by ml anymore.
Filip Kujawa3004f202023-02-12 16:41:40 -08004enum 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
Filip Kujawaec433e12023-04-09 19:58:59 -070011enum ConeClass : byte {
12 NONE = 0,
13 CONE = 1,
14}
15
Filip Kujawa3004f202023-02-12 16:41:40 -080016// Bounding box dimensions and position.
Filip Kujawab72ca2d2023-02-26 17:38:54 -080017// X and Y represent the top left of the bounding box.
Filip Kujawa3004f202023-02-12 16:41:40 -080018table Box {
Filip Kujawa3004f202023-02-12 16:41:40 -080019 x:uint (id: 0);
20 y:uint (id: 1);
21 w:uint (id: 2);
22 h:uint (id: 3);
23}
24
25table GamePiece {
Filip Kujawaec433e12023-04-09 19:58:59 -070026 piece_class:ConeClass (id: 0);
Filip Kujawa3004f202023-02-12 16:41:40 -080027 box:Box (id:1);
28 confidence:float (id:2);
29}
30
31table GamePieces {
32 game_pieces:[GamePiece] (id: 0);
Filip Kujawa3004f202023-02-12 16:41:40 -080033}
34
Maxwell Hendersonbf1bcec2023-03-05 18:00:20 -080035root_type GamePieces;