First time here? Check out the FAQ!

Ask Your Question
0

Reliable color detection in difference lightings.

asked Jul 7 '15

I am working on a project where I need to detect color of a particular region of the object. While It's very easy to get RGB value from the frame of a particular object. Results fluctuate a lot when lighting changes. Ie, from natural light to artificial ones. I am wondering if there is anything to eliminate minor lighting changes to get a reliable color detection.

Things I have tried so far.

  1. Tried converting RGB to YCrCy and try hist_equalization on Y part.
  2. Converted from BGR to gray, hist_equalizarion and converted back to RGB.

Any suggestions ? Thanks in advance.

Preview: (hide)

Comments

What I do in most of my setups is calibrating the color beforehand. This can be done by adding a color calibration pattern inside the capture area and compensate the colors for know color values. A more easier approach is to use simpe pieces of white paper and already compensate for that.

StevenPuttemans gravatar imageStevenPuttemans (Jul 7 '15)edit

1 answer

Sort by » oldest newest most voted
2

answered Jul 20 '15

I ended up using DC light source with a kind of diffusion paper with my entire setup covered so that natural light doesn't affect it anymore. It works so reliable with this simple idea. It can help in any light sensitive image processing application.

Hope it helps someone who stumbles across this. :)

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jul 7 '15

Seen: 1,730 times

Last updated: Jul 20 '15