Skip to content

Commit 8f54bbc

Browse files
committed
cam_test: add tmp workaround for HDR initial local tone weight
1 parent 75f9827 commit 8f54bbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utilities/cam_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,12 @@ def socket_to_socket_opt(socket: dai.CameraBoardSocket) -> str:
517517
controlQueue = device.getInputQueue('control')
518518
tofCfgQueue = device.getInputQueue('tofConfig')
519519

520+
# TMP workaround, send again HDR local tone weight which doesn't seem to take effect from initialControl
521+
if hdr_on:
522+
ctrl = dai.CameraControl()
523+
ctrl.setMisc("hdr-local-tone-weight", hdr_local_tone_weight / 32)
524+
controlQueue.send(ctrl)
525+
520526
# Manual exposure/focus set step
521527
EXP_STEP = 500 # us
522528
ISO_STEP = 50

0 commit comments

Comments
 (0)