Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDR on OAK-1 max #1071

Open
dk-teknologisk-bgd opened this issue Sep 11, 2024 · 1 comment
Open

HDR on OAK-1 max #1071

dk-teknologisk-bgd opened this issue Sep 11, 2024 · 1 comment

Comments

@dk-teknologisk-bgd
Copy link

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)
@Erol444
Copy link
Member

Erol444 commented Sep 11, 2024

Hi @dk-teknologisk-bgd , could you post images with hdr-exposure-ratio at 0/2/4, just so we can double check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants