|
|
@@ -8,7 +8,7 @@ from io import BytesIO
|
|
|
import base64
|
|
|
import zmq, sys, time
|
|
|
from utils.SingletonType import SingletonType
|
|
|
-
|
|
|
+from settings import LOW_ISO,HIGH_ISO
|
|
|
import logging
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
@@ -252,9 +252,9 @@ class SmartShooter(metaclass=SingletonType):
|
|
|
return False, "请先连接相机"
|
|
|
try:
|
|
|
if enable_status == True:
|
|
|
- await self.setCameraProperty(property="ISO", value=100)
|
|
|
+ await self.setCameraProperty(property="ISO", value=HIGH_ISO)
|
|
|
if enable_status == False:
|
|
|
- await self.setCameraProperty(property="ISO", value=6400)
|
|
|
+ await self.setCameraProperty(property="ISO", value=LOW_ISO)
|
|
|
socket, context = self.__create_req()
|
|
|
req = {}
|
|
|
req["msg_type"] = "Request"
|