Aiming at the complex problem of solving the positional relationship between the line laser sensor at the end of the robot wrist and the coordinate system of the end flange, a line laser hand-eye calibration method based on a double ball fixed target is proposed. Firstly, a double standard ball with known radius and center distance is used as a reference tool, and the point cloud data of a single contour line is collected several times, and the coordinates of the two ball centers under the camera coordinate system can be obtained according to the center coordinates of the circle obtained from the fitted circle combined with the Pythagoras theorem. Then, according to the principle that the two spherical centers are fixed under the robot base coordinate system, the rigid transformation matrix between the line laser sensor and the robot is successively solved. When solving the rotation matrix, the constraint of the distance between the spherical centers of the two balls is introduced to obtain a solution with better accuracy. Experimental results show that the method has better overall performance compared with the traditional single-ball hand-eye calibration method.