I’m using Kevin Watsons streamlined code, and am running into massive oversaturation issues. The light from the Green target, along with the glare being reflected off the rack, are the same color, according to the CMUCam2 GUI.
I loaded in the configuration values given by Alan Federman at the SVR regionals, and it still seems to have issues. I’ve tried common solutions, such as putting a polarized lens over the cmucam. This does not seem to help. I have tried multiple rotatations of the Lens.
The “oversaturated” value from the camera is 240:240:240. If you see that in the GUI, it’s because you’re using the RGB color space. Switch to YCrCb instead, and you’ll see much better numbers.
In order to see what the values are using the LabView GUI tool, you need to
change to the YCrCb color space
send the new settings to the camera
capture a frame
Leaving out any of these steps means that you’ll still be viewing the RGB representation of the scene. If your camera is working properly, switching to YCrCb will result in a nearly uniform purple picture, with subtly darker bluish patches for light sources and bright reflections. The green target light might not look any different in the picture, but its values are definitely distinguishable from the other lights. You can turn on highlighting and/or use the “color tracking” window to prove it.
I did switch to YCbCr successfully. I meant, that even afterwards, the green light and the glare off the backgrounds were still exactly the same as each other.
So you saw the purple with blue blotches? That’s steps 1 and 3, but I’m still concerned that you might have missed step 2. What source did you use for the camera settings? The defaults in the LabView program are all appropriate for RGB, but they’re far from the values used in the code provided by Kevin Watson.
What color values are you getting for the target light and reflections? Are they anything like the range Kevin’s code is looking for?
I’ve never heard anyone describe it as greenish before. With the appropriate settings, it’s unmistakably purple. It sounds like either your camera is malfunctioning or something was severely misconfigured.