The low accuracy of pixel-level edge detection leads to large errors in the measurement of light spots. For this reason, a high-precision measurement method for light spots based on sub-pixel edge detection is proposed. The method assumes that the grey value of the pixel unit through which the edge of the object passes is discontinuous, and builds a model in the rectangular neighbourhood of each edge pixel unit, which is positioned by the improved grey moment sub-pixel algorithm, which makes the accuracy improve again. The experimental results show that the detection accuracy of the improved grey moment sub-pixel algorithm is high which verifies that the method has high stability and accuracy.