Leave day night mode alone when not adjusting perspective

This commit is contained in:
Davide Depau 2023-09-17 18:07:21 +02:00
parent b74feed771
commit 83c2dd859b

5
bot.py
View file

@ -84,13 +84,12 @@ class Bot:
while pretty_image is None: while pretty_image is None:
ret, pretty_image = vcap.read() ret, pretty_image = vcap.read()
self.tapo.setDayNightMode("on")
if not adjust_perspective: if not adjust_perspective:
self.tapo.setPrivacyMode(privacy_mode) self.tapo.setPrivacyMode(privacy_mode)
self.tapo.setDayNightMode("auto")
return [pretty_image] return [pretty_image]
self.tapo.setDayNightMode("on")
# Iterate until we find all 4 aruco markers or timeout # Iterate until we find all 4 aruco markers or timeout
aruco_corners = {} aruco_corners = {}
annotated_image = None annotated_image = None