Gaze-tracking technology is a new type of HCI (human-computer interaction) technology that has great application potential in the field of intelligent control. According to the characteristics of the reflected spot formed by the human eye under the irradi ation of infrared light, a gaze-tracking algorithm was designed based on the pupil corneal reflection principle. Firstly, the human eye is quickly located according to the characteristics of the reflected spot to obtain the eye sub-image, and the eye sub-image is binarized using the image segmentation method based on threshold iteration. Then, the edge detection algorithm is used to obtain the pupil and reflected spot edge, and the geometric center coordinates of the pupil and the reflected spot are obtained by ellipse fitting. Finally, the relationship between the gaze and the gaze point is obtained by viewpoint mapping based on the polynomial function, so as to realize gaze-tracking. The simulation results show that the gaze point's maximum vertical error is seven pixels and maximum horizontal error is nine pixels. It can track the gaze point in real time and has the characteristics of rapidness and high precision. It has application value in human-computer interaction.