crowddetector: Analyze optical flow to get the direction of movement in each roi

Change-Id: Ia15f180ad5717ca5955ad904cf770d1b8436135c