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

Add manual white balance / color temperature camera control #281

Merged
merged 4 commits into from
Nov 29, 2021

Conversation

alex-luxonis
Copy link
Contributor

New CameraControl function:

    /**
     * Set a command to manually specify white-balance color correction
     * @param colorTemperatureK Light source color temperature in kelvins, range 1000..12000
     */
    void setManualWhiteBalance(int colorTemperatureK);

Updated ColorCamera/rgb_camera_control example with new key controls:

*   Control:      key[dec/inc]  min..max
*   white balance:     [   ]   1000..12000 (light color temperature K)

* 'B' - auto white-balance

Also fixes a FW issue: manual exposure set through initial control with other controls didn't work properly.

Related PR: luxonis/depthai-shared#67

- fixes a crash with more than 4x VideoEncoder instances, now up to around 8 should work
- StereoDepth fix crash with RGB-depth align and missing RGB calib (calibrated with -drgb)
- StereoDepth fix RGB alignment when running at calib resolution (OAK-D with 800_P or OAK-D-Lite)
- an error is thrown if multiple cameras have the same socket assigned
@alex-luxonis alex-luxonis merged commit 0a16ea4 into develop Nov 29, 2021
@alex-luxonis alex-luxonis deleted the manual_white_balance branch November 29, 2021 21:31
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

Successfully merging this pull request may close these issues.

None yet

3 participants