In order to avoid the influence of end restraint on triaxial stress and strain measurements, this study combines photogrammetry and computer technology to apply to the unconsolidated undrained test of triaxial soil samples. The novel method can establish an intuitive shear band evolution model of soil samples and help attain a clear and intuitive shear band evolution law. On the basis of the conventional triaxial test, this new method needs to paste the RAD (Ringed Automatically Detected) code points on the rubber film, plexiglass cover and brackets and then take pictures of the RAD code points in the loading process in a surrounding manner, with which the 3D shape of the restored soil samples can be determined. After eliminating the influence of refraction, the coded point cloud coordinates measured in the experiment can be used to calculate the axial deformation and radial deformation of the soil sample in the deformation process and determine the local stress–strain curve and three-dimensional displacement field diagram of the soil sample. The test shows that the new method can clearly determine the peak value and inflection point of the stress–strain curve in the middle region of soil samples, enabling it to reflect the shear change process of the soil sample more accurately. In addition, the displacement field can be used to directly observe the formation, development and penetration process of the shear band in soil samples.