To detect different color you have to use a camelocate node for each color.
Let s say you want to detect 3 similar objects which have 3 different colors (red, green and blue). You will have 3 camlocate node. One to detect red objects, one to detect green objects and one to detect blue objects.
How do I use the camera to detect cifferrent colors and then sort them?
I have UR3