Leave day night mode alone when not adjusting perspective
This commit is contained in:
parent
b74feed771
commit
83c2dd859b
1 changed files with 2 additions and 3 deletions
5
bot.py
5
bot.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue