Detecting motion by means of 2D and 3D information