Fix gray sensetive problem, use absolute difference to generate binary image. Set proper threshold value.