To explore the effect of optical media on digital image correlation measurement, the experiments of digital image correlation measurement under different optical media conditions were carried out. By analyzing the speckle images non-special optical path medium, common ordinary glass medium and quartz glass medium in the optical path, the effect of medium change in the optical path on digital image correlation measurement is discussed. The results show that the effect of different optical media on the accuracy of digital image correlation measurement is different, and the effect of optical media on absolute displacement measurement is much greater than that of rigid body displacement measurement. The effect of optical medium on different measuring areas is also different. The effect of quartz glass state on strain measurement is greater than that of ordinary glass. The effect of optical medium on the measurement of vertical optical axis displacement is much less than that of optical axis displacement measurement. Whether ordinary glass or quartz glass is added, the measurement error of camera optical axis direction is much larger than that of vertical optical axis direction; the stability of DIC displacement measurement in different optical path media is in turn ordinary glass medium, quartz glass medium and non-special optical path medium.