Ask Your Question
0

Reliable color detection in difference lightings.

asked 2015-07-07 02:32:23 -0600

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.

edit retag flag offensive close merge delete

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 ( 2015-07-07 07:21:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-07-20 06:00:12 -0600

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. :)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-07 02:32:23 -0600

Seen: 1,653 times

Last updated: Jul 20 '15