There is provided a method for detecting modulated light comprising: receiving a set of images acquired by means of a rolling shutter camera having image acquisition settings comprising a frame rate, fframe, and a line rate, fline; identifying in consecutive frames of said images—a pattern governed by the ratio between a modulation frequency, fc, of a modulated light source and the line rate, fline, and—between consecutive frames a spatial shift of said pattern governed by the ratio between said modulation frequency fc, and said frame rate, fframe; and providing based on said pattern and spatial shift thereof, an estimate of the modulated light amplitude from said light source.