Add Game Piece Detector

Signed-off-by: Filip Kujawa <filip.j.kujawa@gmail.com>
Change-Id: I4f460e64b1fb9fbe1e0d50581412e106a89515e2
diff --git a/y2023/vision/game_pieces_main.cc b/y2023/vision/game_pieces_main.cc
new file mode 100644
index 0000000..97940b6
--- /dev/null
+++ b/y2023/vision/game_pieces_main.cc
@@ -0,0 +1,25 @@
+#include "aos/events/shm_event_loop.h"
+#include "aos/init.h"
+#include "y2023/vision/game_pieces.h"
+
+DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
+
+namespace y2023 {
+namespace vision {
+namespace {
+
+void GamePiecesDetectorMain() {
+  aos::FlatbufferDetachedBuffer<aos::Configuration> config =
+      aos::configuration::ReadConfig(FLAGS_config);
+  aos::ShmEventLoop event_loop(&config.message());
+  GamePiecesDetector game_pieces_detector(&event_loop);
+  event_loop.Run();
+}
+}  // namespace
+}  // namespace vision
+}  // namespace y2023
+
+int main(int argc, char **argv) {
+  aos::InitGoogle(&argc, &argv);
+  y2023::vision::GamePiecesDetectorMain();
+}