Skip to content

HDR on OAK-1 max #1071

@dk-teknologisk-bgd

Description

@dk-teknologisk-bgd

I bought the OAK-1 max mainly due to its HDR support. I build this repo from source from the branch "camera_controls_misc", which makes it possible to run:

camRGB.initialControl.setMisc("hdr-exposure-ratio", 4 if hdr else 0)  # enables HDR when set `> 1`, current options: 2, 4, 8
camRGB.initialControl.setMisc("hdr-local-tone-weight", 75)  # default 75, range 0..100

However, I'm pretty sure the HDR is not enabled. The picture looks unchanged. What could be wrong? Do I need to make more modifications to enable HDR in this beta-setup?
I am outputting the isp-image like this:

camRGB = pipeline.createColorCamera()
camRGB.setResolution(dai.ColorCameraProperties.SensorResolution.THE_5312X6000)
camRGB.setFps(targetFps)
camRGB.setNumFramesPool(2,2,2,2,2)
camRGB.initialControl.setSharpness(0)
camRGB.initialControl.setLumaDenoise(0)
camRGB.initialControl.setChromaDenoise(4)
camRGB.initialControl.setMisc("hdr-exposure-ratio", 4 if hdr else 0) # enables HDR when set > 1, current options: 2, 4, 8
camRGB.initialControl.setMisc("hdr-local-tone-weight", 75) # default 75, range 0..100

xoutVideo = pipeline.create(dai.node.XLinkOut)
xoutVideo.setStreamName("isp")
xoutVideo.input.setBlocking(False)
xoutVideo.input.setQueueSize(1)
camRGB.isp.link(xoutVideo.input)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions