That's not difficult. You can simply use color information and detect salient regions. You may need to modify the original algorithm so that specifically the Red, Yellow and Green color of lights can be detected.
thank you very much for your reply. can you provide me with the matlab code for detecting saliency map by Itti's method or any guide regarding this method
thank you but I took a look at the code but I don't understand very well because ı think it is complicated.Can you say me which code ı wrote step by step?