how to detect colors precisely ?
Hello,
I want to detect the color from the tube, I am using In range function and HSV plan , its work fine for one by one tube,but as shown in figure, all tube has not exactly same color.
is there any way to detect this color with minimum error. Please give me any suggestion how can I do color detection precisely.
Thank you very much in advance.
You looking for the color of the tube itself or for the color of the contents? Because those regions will certainly influence your decision technique!
thank you for comments, actually I am looking for the contents of the tubes.
Ow then why not go the other way around? Start by segmenting the tube, background and sticker color, which will be constant in this case. Then look for other colors and cluster them? You know in advance how many tubes will be there?
Thank you for comments. there is only one tube at a time, this is just sample picture with multiple tubes with different filling. I will try according to your suggestion.