Residual object detection algorithm based on interframe difference and edge difference