Moving pixels in static cameras: detecting dangerous situations due to environment or people