An automatic registration method for Surface Mount Technology (SMT) stencil image is proposed. During the registration, the minimum bounding rectangle(MBR) of the Stencil changes with the stencil’s arbitrary placement and angle, while the absolute minimum distance between the registration feature point and the rectangle vertex remains unchanged. This character can be used to solve the random error and failure rate in stencil placement. With three feature points in standard Gerber data image and in stencil image, the affine transformation is carried out. After mapping the coordinate systems of the Gerber image and the stencil image are consistent with each other. Then the internal automatic matching test and secondary registration are introduced to improve the accuracy. The results of experiment show that this method can significantly improve the efficiency and intelligence level of SMT.