Moving object detection based on interframe difference and average background method