A method for detecting a LED light source in a sequence of frames of an environment, comprising: selecting a frame portion of interest; determining, using the sequence of frames, a variation of the frame portion of interest, wherein determining the variation of the frame portion of interest comprises comparing a characteristic value of the frame portion of interest in one frame of the sequence of frames to the respective characteristic values of the frame portion of interest in temporally preceding frames of the sequence of frames, wherein the result of each comparison is represented by characters 0, 1 or 2 according to the expression T i j = { 0 if i < j − t 1 if i − j ≤ t 2 if i > j + t, with T ( i,j) denoting a respective comparison result, i denoting the characteristic value of the frame portion of interest in the one frame of the sequence of frames, j denoting the characteristic value of the frame portion of interest in a respective one frame of the temporally preceding frames of the sequence of frames, and t denoting a constant; generating a pattern from the respective comparison results of comparing the characteristic value of the frame portion of interest in the one frame of the sequence of frames to the respective characteristic values of the frame portion of interest in the temporally preceding frames of the sequence of frames, wherein the pattern is generated by concatenating together the respective comparison results into a string such that the leftmost character of the pattern results from the comparison of the characteristic value of the frame portion of interest in the one frame, p i, of the sequence of frames with the characteristic value of the frame portion of interest in the temporally preceding frame p i ― n, the second character from the left of the pattern results from the comparison of the characteristic values p i and p i― ( n― 1) and so on, wherein n + 1 is the number of frames in the sequence of frames; comparing the pattern to a reference pattern, wherein the reference pattern indicates the presence of an LED light source; and determining that the frame portion of interest is a candidate for representing the LED light source, if the pattern is equal to the reference pattern, wherein a frame rate of the sequence of frames is 100 frames per second or more, wherein the sequence of frames comprises at least 5 frames, and wherein the characteristic value represents a luminance or brightness of the frame portion. selecting a frame portion of interest; determining, using the sequence of frames, a variation of the frame portion of interest, wherein determining the variation of the frame portion of interest comprises comparing a characteristic value of the frame portion of interest in one frame of the sequence of frames to the respective characteristic values of the frame portion of interest in temporally preceding frames of the sequence of frames, wherein the result of each comparison is represented by characters 0, 1 or 2 according to the expression T i j = { 0 if i < j − t 1 if i − j ≤ t 2 if i > j + t, with T ( i,j) denoting a respective comparison result, i denoting the characteristic value of the frame portion of interest in the one frame of the sequence of frames, j denoting the characteristic value of the frame portion of interest in a respective one frame of the temporally preceding frames of the sequence of frames, and t denoting a constant; generating a pattern from the respective comparison results of comparing the characteristic value of the frame portion of interest in the one frame of the sequence of frames to the respective characteristic values of the frame portion of interest in the temporally preceding frames of the sequence of frames, wherein the pattern is generated by concatenating together the respective comparison results into a string such that the leftmost character of the pattern results from the comparison of the characteristic value of the frame portion of interest in the one frame, p i, of the sequence of frames with the characteristic value of the frame portion of interest in the temporally preceding frame p i ― n, the second character from the left of the pattern results from the comparison of the characteristic values p i and p i― ( n― 1) and so on, wherein n + 1 is the number of frames in the sequence of frames; comparing the pattern to a reference pattern, wherein the reference pattern indicates the presence of an LED light source; and determining that the frame portion of interest is a candidate for representing the LED light source, if the pattern is equal to the reference pattern, wherein a frame rate of the sequence of frames is 100 frames per second or more, wherein the sequence of frames comprises at least 5 frames, and wherein the characteristic value represents a luminance or brightness of the frame portion.