Detecting objects, shadows and ghosts in video streams by exploiting color and motion information