The realization of strain measurement based on digital image processing technique is discussed. Combined with the strain measurement principle and the optical imaging feature, considered the axisymmetrical and non-axisymmetrical distortion, the automatic surface-fitting calibration method based on region growing is adopted. Cubic polynomial is applied to establish the relationship between the object space and pixel coordinate system. The expectations based on wavelet coefficients are used for sub-pixel edge detection, measurement accuracy can reach 0.02 pixels. Accuracy of displacement for strain measurement achieves micrometer-level. The theoretic validity and practical feasibility of the system are proved by the strain measurement of a cantilever steel beam.