The IR camera outputs an array of pixel data. If a set of pixels is "on" for a period of time longer than the flashing IR led time, then it will be the always on led.
If pixel data is changing at the flashing IR led rate, then it's the flashing LED.
You need to save the camera pixel data in frames and compare frames to determine on/off states of the LEDs and choose which area of the array is looking at which LED.
What type of camera do you have and what type of arduino?
Is it possible to write an Arduino code that discriminates between the flashing of two IR Leds?
( I have two Infra red Leds connected to an Arduino. The first one is always on and the second one is flashing. what should I write in my Arduino code to make my IR camera know which Led is which? the camera is also connected to the arduino)
any help would be appreciated.