diff --git a/depthai-core b/depthai-core index 13d7ae5b8..2595d5690 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 13d7ae5b8303b3e7b2c644edffe402282376a25d +Subproject commit 2595d569055f514153aa38deea3e09b2b47d951c diff --git a/utilities/cam_test.py b/utilities/cam_test.py index 4873c84d7..40c59e56f 100755 --- a/utilities/cam_test.py +++ b/utilities/cam_test.py @@ -297,6 +297,7 @@ def prev(self): # cam[c].initialControl.setMisc("manual-exposure-handling", "fast") # default: "default" # cam[c].initialControl.setMisc("hdr-exposure-ratio", 4) # enables HDR when set `> 1`, current options: 2, 4, 8 # cam[c].initialControl.setMisc("hdr-local-tone-weight", 75) # default 75, range 0..100 + # cam[c].initialControl.setMisc("high-conversion-gain", 0) # 1 to enable (default on supported sensors) for kvPair in args.misc_controls: cam[c].initialControl.setMisc(*kvPair) control.out.link(cam[c].inputControl) @@ -407,6 +408,7 @@ def exit_cleanly(signum, frame): chroma_denoise = 0 control = 'none' show = args.show_meta + high_conversion_gain = 1 jet_custom = cv2.applyColorMap(np.arange(256, dtype=np.uint8), cv2.COLORMAP_JET) jet_custom[0] = [0, 0, 0] @@ -508,10 +510,17 @@ def exit_cleanly(signum, frame): print("ToF toggling f_mod value to:", f_mod) tofConfig.depthParams.freqModUsed = f_mod tofCfgQueue.send(tofConfig) - elif key == ord('h') and tof: - tofConfig.depthParams.avgPhaseShuffle = not tofConfig.depthParams.avgPhaseShuffle - print("ToF toggling avgPhaseShuffle value to:", tofConfig.depthParams.avgPhaseShuffle) - tofCfgQueue.send(tofConfig) + elif key == ord('h'): + if tof: + tofConfig.depthParams.avgPhaseShuffle = not tofConfig.depthParams.avgPhaseShuffle + print("ToF toggling avgPhaseShuffle value to:", tofConfig.depthParams.avgPhaseShuffle) + tofCfgQueue.send(tofConfig) + else: + high_conversion_gain = 1 - high_conversion_gain + print("High conversion gain:", high_conversion_gain) + ctrl = dai.CameraControl() + ctrl.setMisc("high-conversion-gain", high_conversion_gain) + controlQueue.send(ctrl) elif key == ord('t'): print("Autofocus trigger (and disable continuous)") ctrl = dai.CameraControl()