Draw partially detected corners
This commit is contained in:
parent
a71712b8a4
commit
61ebb19bd1
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue