The main reason for the us trying the IMX582 is HDR support
Jaka mentioned
For HDR: https://docs.luxonis.com/projects/hardware/en/latest/pages/articles/sensors/imx582/#imx582
However when trying to run the suggested
python3 cam_test.py -cams rgb,c -rs -cres 12mp -fps 10 -misc hdr-exposure-ratio=4 hdr-local-tone-weight=75
I get
usage: cam_test.py [-h] [-cams CAMERAS [CAMERAS ...]] [-mres {480,800,400,720}] [-cres {1200,720,4k,12mp,800,48mp,1520,13mp,5mp,1012,1080}] [-rot [{mono,rgb,all}]] [-fps FPS]
[-isp3afps ISP3AFPS] [-ds ISP_DOWNSCALE] [-rs] [-tun CAMERA_TUNING] [-raw] [-tofraw] [-tofamp] [-tofcm] [-tofmedian {0,3,5,7}] [-rgbprev] [-d DEVICE]
[-ctimeout CONNECTION_TIMEOUT] [-btimeout BOOT_TIMEOUT]
cam_test.py: error: unrecognized arguments: -misc hdr-exposure-ratio=4 hdr-local-tone-weight=75
Also, the webpage says I should use the branch camera_controls_misc, which was supposed to be merged with the main soon - That branch is 7 months old, I'm concerned the main branch was updated recently and the camera_controls_misc is (maybe) been left behind
Bottom line:
I need your input on what to change to the following camera setup code to support HDR on the IMX582, and confirmation that HDR is now supported on the main branch
def setupCamera(pipeline, sensorSize, W, H):
camRgb = pipeline.create(dai.node.ColorCamera)
camRgb.setResolution(sensorSize)
camRgb.setVideoSize(W, H)
camRgb.setPreviewSize(W, H)
camRgb.setPreviewKeepAspectRatio(True)
camRgb.setInterleaved(False)
camRgb.setColorOrder(dai.ColorCameraProperties.ColorOrder.BGR)
camRgb.setFps(25)
camRgb.initialControl.setManualFocus(120)
camRgb.initialControl.setAutoFocusMode(dai.RawCameraControl.AutoFocusMode.OFF)
return camRgb