|
|
@@ -297,14 +297,17 @@ class SmartShooter(metaclass=SingletonType):
|
|
|
high_iso = camera_configs.get("high", 6400)
|
|
|
print("LOW_ISO", low_iso)
|
|
|
print("HIGH_ISO", high_iso)
|
|
|
- if str(low_iso).lower() != "auto" and str(high_iso).lower() != "auto":
|
|
|
- # 等于auto就不设置
|
|
|
- if enable_status == True:
|
|
|
+ # 等于auto就不设置
|
|
|
+ if enable_status == True:
|
|
|
+ if str(high_iso).lower() != "auto":
|
|
|
await self.setCameraProperty(property="ISO", value=str(high_iso))
|
|
|
- if enable_status == False:
|
|
|
+ else:
|
|
|
+ print("high_iso 等于auto就不设置")
|
|
|
+ if enable_status == False:
|
|
|
+ if str(low_iso).lower() != "auto":
|
|
|
await self.setCameraProperty(property="ISO", value=str(low_iso))
|
|
|
- else:
|
|
|
- print("等于auto就不设置")
|
|
|
+ else:
|
|
|
+ print("low_iso 等于auto就不设置")
|
|
|
socket, context = self.__create_req()
|
|
|
req = {}
|
|
|
req["msg_type"] = "Request"
|