Draw partially detected corners

This commit is contained in:
Davide Depau 2024-08-11 22:30:29 +02:00
parent a71712b8a4
commit 61ebb19bd1

4
bot.py
View file

@ -128,6 +128,10 @@ class Bot:
print( print(
"Timeout waiting for ArUco markers, returning only original image" "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.setPrivacyMode(privacy_mode)
self.tapo.setDayNightMode("auto") self.tapo.setDayNightMode("auto")
return [pretty_image] return [pretty_image]