From 61ebb19bd1c5c2290c5844414335e8d55d11be37 Mon Sep 17 00:00:00 2001
From: Davide Depau <davide@depau.eu>
Date: Sun, 11 Aug 2024 22:30:29 +0200
Subject: [PATCH] Draw partially detected corners

---
 bot.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bot.py b/bot.py
index c1cc45e..0ce4c65 100644
--- a/bot.py
+++ b/bot.py
@@ -128,6 +128,10 @@ class Bot:
                 print(
                     "Timeout waiting for ArUco markers, returning only original image"
                 )
+
+                ids, corners = zip(*filter(lambda x: x[1] is not None, enumerate(aruco_corners)))
+                aruco.drawDetectedMarkers(pretty_image, corners, ids)
+
                 self.tapo.setPrivacyMode(privacy_mode)
                 self.tapo.setDayNightMode("auto")
                 return [pretty_image]