A method for correcting the effect of rigid body displacement for electronic speckle pattern interferometry (ESPI) is proposed. In this method, not only translation but rotation are detected using digital image correlation (DIC). Then, the position of the speckle pattern is corrected using the detected rigid body displacement. In addition, the phase is corrected through calculating the phase change distribution caused by rotation. Experiments are carried out for investigating the validity of the method. Results show that the interference fringe produced by the rotation can be eliminated and the image corrected by the proposed method shows only the interference fringe by the deformation. It is concluded that the application of ESPI measurement for deformation with rigid body displacement including rotation is possible.