Saturday, 21 February 2009

Blah!

Tracking an object is another difficult task to do. I tried to do that, but my program failed miserably. All because of bad lighting. See, my calculator is slightly reflective, because of the smooth surface. So, at some angle, it reflects a little more of the ambient light into the camera. Because of that, it picks up different colour values. If these values do not lie in the range of colour values that I want, the program will discard that particular pixel.

The usual colour space that we use everyday is the RGB (Red Green Blue) colour space. Different amount of these 3 colours can create a variety of colours. The bad thing is, different lighting can change these values significantly. Not good for my program, so I didn't use it. Instead, I tried with YCbCr colour space, which is actually quite a new thing for me. It's better than RGB actually. But then again, lighting 1, program 0.

I'm currently searching for better colour spaces, which aren't really influenced by lighting conditions.

0 comments: