In structured light visual measurement, the reflective characteristics of highly reflective surfaces directly affect the gray scale distribution of light stripes in the image, leading to a significant reduction in measurement accuracy. To address the impact of highly reflective surfaces on the accuracy of structured light measurements, this paper utilizes the RANSAC algorithm to process the scanned point clouds of highly reflective surfaces. By removing error points in the point cloud according to the shape characteristics of the scanned surface, the final measurement accuracy is improved. In the experiments, a highly reflective plane and a highly reflective spherical surface were selected as experimental objects. The measurement accuracy of flatness and the diameter of the measured sphere were compared before and after point cloud processing. The experimental results indicate that the measurement accuracy of flatness improved by 0.171mm, and the diameter measurement accuracy of the sphere improved by 0.103mm.