Ask Your Question
0

How to obtain an 'approximate' true color from an image in different lightning conditions?

asked 2018-01-08 13:02:34 -0500

David_Lavy gravatar image

I'm working on an app that can detect the 'true' color from a specific paint (or an approximate). So for example if I paint a wall with a specific red color (RGB values given by the manufacturer of the paint) I'd like to get this information given any particular (but not extreme) lightning. For example if my room is illuminated with a yellow light, or if is dark I'd like to get the approximate manufacturer RGB values of the color on the wall. A first step I did is to apply white balance to the image. However because of the lightning the values needs still to be calibrated. As a solution I tried to apply CLAHE on the resulted white balanced image, but the colors get darker (and away from the values that I need) and often can be similar in values but other times the values from different environments are not similar. I can't find any articles to read about how to do this. Does anyone have any idea on how to tackle this problem?

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-01-10 06:01:10 -0500

For example if my room is illuminated with a yellow light, or if is dark I'd like to get the approximate manufacturer RGB values of the color on the wall.

In my honest opinion, that is simply impossible. For this to work, you would need to know the exact details of the illumination sources, to cope for that and even then, we are not considering color binning of sensors, deterioration of paint, influences like cigarette smoke, dust, filth, ...

Computer vision can do a lot, but I am pretty sure this is one bridge to far. It is not an oracle :D

edit flag offensive delete link more

Comments

Thank you for your reply. I think the wall example is a bit extreme, and I should've been a bit clearer. In my specific case what I'm trying to do is to detect a lipstick color. I have the RGB color from the manufacturer. The area in this case is smaller (lips or showing the lipstick itself to the camera) and there isn't many obstacles that deviate the real color (like dust, filth as you mentioned). I'm not trying to get the exact match but some accurate approximate, regarding the illumination (dark, bright, etc). Even in 'regular' illumination settings the values differ quite a lot. And I would like to perform some calibration that would give me a good approximate color to one of the lipsticks I have in my list. Would this be a bit more rational to do?

David_Lavy gravatar imageDavid_Lavy ( 2018-01-10 11:41:38 -0500 )edit

Nope it is still quite impossible. Unless you can somehow calibrate the conditions each time automatically I do not see it working out. But hey that might just be me.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-01-11 04:45:06 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-01-08 13:02:34 -0500

Seen: 408 times

Last updated: Jan 10 '18