rambo 3 months ago
parent
commit
f03f4d063a
2 changed files with 3 additions and 5 deletions
  1. 2 4
      python/mcu/capture/smart_shooter_class.py
  2. 1 1
      python/sys_configs.json

+ 2 - 4
python/mcu/capture/smart_shooter_class.py

@@ -295,16 +295,14 @@ class SmartShooter(metaclass=SingletonType):
             )
             low_iso = camera_configs.get("low", 100)
             high_iso = camera_configs.get("high", 6400)
-            mode_iso = camera_configs.get("mode", 6400)
             print("LOW_ISO", low_iso)
             print("HIGH_ISO", high_iso)
-            print("MODE_ISO", mode_iso)
             if str(low_iso).lower() != "auto" and str(high_iso).lower() != "auto":
                 # 等于auto就不设置
                 if enable_status == True:
-                    await self.setCameraProperty(property="ISO", value=str(mode_iso))
+                    await self.setCameraProperty(property="ISO", value=str(high_iso))
                 if enable_status == False:
-                    await self.setCameraProperty(property="ISO", value=str(mode_iso))
+                    await self.setCameraProperty(property="ISO", value=str(low_iso))
             else:
                 print("等于auto就不设置")
             socket, context = self.__create_req()

+ 1 - 1
python/sys_configs.json

@@ -21,6 +21,6 @@
     },
     {
         "key": "camera_configs",
-        "value": "{\"iso_config\":{\"low\":100,\"high\":6400,\"mode\":\"un_auto\"}}"
+        "value": "{\"iso_config\":{\"low\":\"100\",\"high\":\"6400\"}}"
     }
 ]