whose robot track two color with driving?

hey
our team had done the camera tracking for one color only so when it see green go forward and track it , else if it see pink move backward and move away, else stop the robot … but now we are trying to do with two color but doesn’t succeed … we are using windriver … if someone had done this and it works well please put here the code , no need to move the servo just the robot itself…
thanks