Identification of colors in a transparent bottle under different lighting conditions

116 Views Asked by At

I am trying to identify set of colors in bottles which are kept serially using OpenCV. I have tried the following procedures but most of them fail in different colors of ambient light.

  1. Image segmentation using Histogram but fails for ambient light condition
  2. Image segmentation using K-means but that also fails for ambient light colors.
  3. Tried the color masking technique by defining the colors I am looking for but that isn't too great too.
  4. White balancing the image and then applying the above techniques. But that technique gives problematic colors normal white color background.

Any recommendation on this would be much appreciated. A reference image is attached.

enter image description here

I am looking for the following result. I would like to detect light yellow, light yellow, peach, peach, orange, orange, orange, orange, ivory, pink. enter image description here

0

There are 0 best solutions below