1. A computer implemented method for capturing events of interest by performing a spatio-temporal analysis of a video, comprising: acquiring a continuous video stream containing a series of image frames over time, wherein each of said image frames is represented by horizontal spatial coordinates and vertical spatial coordinates of a two dimensional plane; assigning a temporal dimension across said image frames of said video stream, wherein said temporal dimension represents order of said image frames using predefined temporal coordinates; constructing a spatio-temporal analysis image based on a user-defined line of analysis on each of one or more of said image frames, wherein said spatio-temporal analysis image is constructed by concatenating a series of temporally-successive linear pixel arrays along said temporal dimension, each of said linear pixel arrays comprising an array of pixels along said line of analysis defined on said each of said one or more of said image frames; and segmenting said constructed spatio-temporal analysis image for capturing said events of interest.