rambo 3 月之前
父节点
当前提交
f03f4d063a
共有 2 个文件被更改,包括 3 次插入5 次删除
  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)
             low_iso = camera_configs.get("low", 100)
             high_iso = camera_configs.get("high", 6400)
             high_iso = camera_configs.get("high", 6400)
-            mode_iso = camera_configs.get("mode", 6400)
             print("LOW_ISO", low_iso)
             print("LOW_ISO", low_iso)
             print("HIGH_ISO", high_iso)
             print("HIGH_ISO", high_iso)
-            print("MODE_ISO", mode_iso)
             if str(low_iso).lower() != "auto" and str(high_iso).lower() != "auto":
             if str(low_iso).lower() != "auto" and str(high_iso).lower() != "auto":
                 # 等于auto就不设置
                 # 等于auto就不设置
                 if enable_status == True:
                 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:
                 if enable_status == False:
-                    await self.setCameraProperty(property="ISO", value=str(mode_iso))
+                    await self.setCameraProperty(property="ISO", value=str(low_iso))
             else:
             else:
                 print("等于auto就不设置")
                 print("等于auto就不设置")
             socket, context = self.__create_req()
             socket, context = self.__create_req()

+ 1 - 1
python/sys_configs.json

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