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

    Hi Thor
    Afaik this is fw side implementation so you can't change it manually. The branch is likely not merged to the main or develop atm. I'll check and ping one of our devs to possibly do the merge or at least pull in the latest changes.

    Thanks,
    Jaka

    IF there's any update on this, I'd love to know as well. I'm experimenting with your IMX582 also.

    Hi @Thor ,
    Here are the lines which set the on-sensor HDR;

    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

    We can look into updating the branch.
    Thanks, Erik

    it doesn't work on RCV2 depthai released library.
    AttributeError: 'depthai.CameraControl' object has no attribute 'setMisc

    To test it, I need instruction on how to install a branch that will work with HDR, and a list of things that won't work on that branch compared to the released one, in case I need to make changes to our program as well

    We would definitely also be interested in getting the ability to support HDR on the IMX582 onto the mainline. Would definitely be preferred to updating the branch.

    Hi @jdyer
    We will be merging the latest main branch into the camera_controls_misc. We don't want to merge into main since there are a few things missing.
    Feel free to ping me in case this isn't resolved.

    Thanks,
    Jaka

    thanks Jaka.
    Is it possible to have an idea of the timeframe, when the merge will happen?
    Is there a way to get notified by email when something is released/merged?

    7 days later

    Hi @Thor ,
    It mostly depends on the people's interest. I'd create an Issue (feature request) on depthai-core, and we can link the PR with the issue, so you'd be notified when the branch does get merged to develop. Thoughts?
    Thanks, Erik

    a month later