In this paper, we extract for key objects of motion video images (mainly people), then do researches with the technology of object detection and tracking. First, we extract moving object edge and foreground object template with the use of the method of edge detection, and then compare the resulting object template with the original image, thus dye the positions with the colour of the corresponding point coordinates in the original image which belongs to the extent of template filled region. Simulation results show that the proposed algorithm has some advantages and robustness and could meet project needs.