Stationary foreground detection using background subtraction and temporal difference in video surveillance