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

Auto exposure (gain), auto white balance switching does not work in freenect-glview example #386

Closed
alexander-hagg opened this issue Apr 27, 2014 · 9 comments
Milestone

Comments

@alexander-hagg
Copy link

In v0.2.0 you added control of auto exposure and white balance, as mentioned in #332. I am running the current main branch. After starting the freenect-glview example and then consecutively pushing 'e', 'b', 'e, 'b', I get the following output, but no change in device behaviour. I flip my lights on and off, but autoexposure still seems to be on.

'w' - tilt up, 's' - level, 'x' - tilt down, '0'-'6' - select LED mode 
'f' - change video format, 'm' - mirror video, 'o' - rotate video with accelerometer 
'e' - auto exposure, 'b' - white balance, 'r' - raw color 
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x7fff 
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x02
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x00
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x00
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x4000
read_cmos_register: 0x0106 =>
write_cmos_register: 0x0106 <= 0x02
@piedar
Copy link
Contributor

piedar commented May 1, 2014

Confirmed!

@piedar piedar added this to the v0.4.2 milestone May 1, 2014
@piedar
Copy link
Contributor

piedar commented May 2, 2014

Now I'm not so sure. I don't see a difference when toggling e and b, but my output is consistent with the correct bit being written to the cmos register. Here I pressed e four times:

read_cmos_register: 0x0106 => 0x648e
write_cmos_register: 0x0106 <= 0x248e
read_cmos_register: 0x0106 => 0x248e
write_cmos_register: 0x0106 <= 0x648e

43d44e9 prints the read_cmos_register reply. It would be helpful if you can post the output with e four times then b four times.

@piedar piedar modified the milestones: v0.4.3, v0.4.2 May 2, 2014
@alexander-hagg
Copy link
Author

This is the output on my system, pressing e four times, then b four times.

read_cmos_register: 0x0106 => 0x7fff
write_cmos_register: 0x0106 <= 0x7fff
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x00
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x4000
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x00
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x02
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x00
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x02
read_cmos_register: 0x0106 => 0x0000
write_cmos_register: 0x0106 <= 0x00

@piedar
Copy link
Contributor

piedar commented May 5, 2014

I'm kind of stumped on this one. The first read from my model 1414 is always 0x648e. What model do you have?

@alexander-hagg
Copy link
Author

It is a 1473 model

@alexander-hagg
Copy link
Author

And by the way, I did a manual install (using http://openkinect.org/wiki/Getting_Started#Ubuntu_Manual_Install) to get the Kinect model to work with Freenect.

@piedar piedar modified the milestones: v0.5.0, v0.4.3 May 18, 2014
@piedar piedar modified the milestones: v0.5.1, v0.5.0, v0.5.2 Jul 15, 2014
@piedar piedar modified the milestones: v0.6.1, v0.5.2 Dec 2, 2014
@usama-ghufran
Copy link

Hey, has this issue been resolved? Can we control the exposure, colour correction and white balance of the kinect with the latest release?

@Masterxilo
Copy link

I think exposure, white-balance and colour correction can only be controlled with "Kinect for Windows" devices, not with vanilla XBox 360 devices.

@piedar
Copy link
Contributor

piedar commented Apr 4, 2023

Done via #670

@piedar piedar closed this as completed Apr 4, 2023
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

4 participants