Multi-color rendering with opencv

Hello: I can’t define more than one color when processing images with opencv, for example, I have trouble writing this code when I want it to define yellow color and red color if there is no yellow color.Would you please help me?

You offer too little details. Please explain exactly what you need and explain what you have already tested.