Joint fuzzy background and adaptive foreground model for moving target detection