Skip to content

Commit 1a0ae77

Browse files
author
Jakob Socan
committed
Enable exposure time limit on RVC4
1 parent dd0f17a commit 1a0ae77

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

cmake/Depthai/DepthaiDeviceRVC4Config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set(DEPTHAI_DEVICE_RVC4_MATURITY "snapshot")
44

55
# "version if applicable"
6-
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+d9ffe3ca006f85ae4d976468c1a342828739ae18")
6+
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+b54c18baec10d5160714fc721c6b661707b0f23a")

utilities/cam_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ def socket_to_socket_opt(socket: dai.CameraBoardSocket) -> str:
485485
dotIntensity = 0
486486
floodIntensity = 0
487487

488+
expTimeLimit = 700
489+
488490
awb_mode = Cycle(dai.CameraControl.AutoWhiteBalanceMode)
489491
anti_banding_mode = Cycle(dai.CameraControl.AntiBandingMode)
490492
effect_mode = Cycle(dai.CameraControl.EffectMode)
@@ -664,6 +666,15 @@ def controlQueueSend(ctrl):
664666
ctrl = dai.CameraControl()
665667
ctrl.setManualExposure(expTime, sensIso)
666668
controlQueueSend(ctrl)
669+
elif key in [ord('g'), ord('h')]:
670+
if key == ord('g'):
671+
expTimeLimit -= 50
672+
else:
673+
expTimeLimit += 50
674+
print("Exposure time limit: ", expTimeLimit)
675+
ctrl = dai.CameraControl()
676+
ctrl.setAutoExposureLimit(expTimeLimit)
677+
controlQueueSend(ctrl)
667678
elif key == ord('1'):
668679
awb_lock = not awb_lock
669680
print("Auto white balance lock:", awb_lock)

0 commit comments

Comments
 (0)