Real-time detection of multiple moving objects in complex image sequences