Methods and systems for detecting activation of a virtual sensor in a scene are proposed, wherein the virtual sensor comprises data representing a geometric form, data representing a position in the scene and data representing one or several trigger conditions. A data representation of the scene is captured, and a determination of whether a virtual sensor trigger condition is fulfilled is made, based on an analysis of the captured data representation in an area corresponding to the geometric form and position of the virtual sensor.