A keypoint-based method for background modeling and foreground detection using a PTZ camera