Optical-fiber electronic speckle pattern interferometry (ESPI) is a non-contact, non-destructive examination technique with the advantages of rapid measurement, high accuracy, and full-field measurement. The optical-fiber ESPI system used in this study was compact and portable with the advantages of easy set-up and signal acquisition. By suitably configuring the optical-fiber ESPI system, producing an image signal in a charge-coupled device camera, and periodically modulating beam phases, we obtained phase information from the speckle pattern using a four-step phase shifting algorithm. Moreover, we compared the actual defect size with that of interference fringes which appeared on a screen after calculating the pixel value according to the distance between the object and the CCD camera. Conventional methods of measuring defects are time-consuming and resource-intensive because the estimated values are relative. However, our simple method could quantitatively estimate the defect length by carrying out numerical analysis for obtaining values on the X-axis in a line profile. The results showed reliable values for average error rates and a decrease in the error rate with increasing defect length or pressure.