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.
- Image segmentation using Histogram but fails for ambient light condition
- Image segmentation using K-means but that also fails for ambient light colors.
- Tried the color masking technique by defining the colors I am looking for but that isn't too great too.
- 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.
I am looking for the following result. I would like to detect light yellow, light yellow, peach, peach, orange, orange, orange, orange, ivory, pink.