Line-structured light calibration is an important step in the process of the visual measurement of structured light, and in the calibration process, the light plane equation is fitted by the camera coordinates of the data points on the light plane. There is error in solving the spatial coordinates of the data points, and the existing methods generally cannot effectively find the deviation points in the fitted data points, which leads to deviation when solving the parameters of the light plane equation. To correct the error caused by the deviation point in the calibration, this paper established a calibration method based on geometric constraints. In the method, the first constraint was that all fit points involved in the fitting had a certain consistency, and a part of the error points could be filtered by the distance from the data point to the light plane. In order to further improve the calibration accuracy, the laser was moved on a linear guide, the optimized objective function was established by the second geometric constraint, and the constraint was the relationship that the light plane at each position was parallel. In the experiment, a high-precision gauge block was used as the measured object, and the measurement results could be obtained. The calibration method can improve the calibration accuracy according to the experimental results.