ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

Auto white balance with OpenNI

asked 2011-06-09 01:14:04 -0500

updated 2016-10-24 08:33:23 -0500

ngrennan gravatar image

Is it possible to disable the auto white balance of the Kinect camera using the openni_kinect driver?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2011-09-02 10:57:29 -0500

Patrick Mihelich gravatar image

As far as I know, you can't.

OpenNI provides extremely limited access to camera properties. I don't know of any way to change the RGB camera's exposure, gain, or white balance settings through OpenNI.

You can play with the available properties by editing /etc/primesense/GlobalDefaults.ini. This file is read by OpenNI at startup. There are WhiteBalancedEnabled and Gain properties in the [Depth] section, but oddly not in the [Image] section which configures the RGB camera. Note that the openni_kinect driver overrides some properties (e.g. InputFormat/OutputFormat, Resolution, Registration, RegistrationType). The properties are defined in the source code at https://github.com/PrimeSense/Sensor/blob/master/Include/XnStreamParams.h">XnStreamParams.h.

You can try asking this on the openni-dev list.

The libfreenect guys have figured out how to access the registers of the color CMOS sensor to change a variety of settings, including white balance. They don't appear to have added access to these to their API yet, but if you're interesting in hacking, this looks like the easiest path to modify the camera settings.

At WG, for applications where we absolutely require high-quality color images and/or fine control of the camera, we've mounted a Prosilica to the Kinect and calibrated it to the depth sensor. That's a lot of pain for something that should be easy though.

If anyone has more success with this I'm interested to hear about it.

edit flag offensive delete link more

Comments

This question still pops up every now and then. I found this thread, might be useful: http://www.pcl-users.org/Kinect-auto-exposure-td4020887.html

Ivan Dryanovski gravatar image Ivan Dryanovski  ( 2012-11-16 03:11:54 -0500 )edit

Hi, are there any news on this topic?

Phreaky gravatar image Phreaky  ( 2015-01-04 04:19:19 -0500 )edit

It's possible in OpenNI2. See the toggleImageAutoExposure function here: https://github.com/OpenNI/OpenNI2/blo...

songuke gravatar image songuke  ( 2015-11-30 23:03:27 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2011-06-09 01:14:04 -0500

Seen: 2,999 times

Last updated: Sep 02 '11