In the process of printing machines increasing and reduction of speed, the image collected from online detection system for different speed of printing needs picture adaptive processing. In this paper, there are two methods put forward to realize above goal. One method is sequential similarity detection algorithms and the other is ratio value. Apply with VC++ programming to realize image matching on the premise of the unique CCD detection equipment. The experiment results show that: sequential similarity algorithm on the premise of printing machine running in low speed, by comparing with threshold to realize variable-speed imaging. The ratio value method can be used for a variety of printing speed and it has high speed, high detection efficiency and wide range of application.