The measurement of the diopters of spectacle lenses using an artificial neural network is proposed in this paper. A diopter is measured by obtaining the distances between the spots imaged by a charge-coupled device (CCD) during a Hartmann test. Backpropagation (BP) and a radial basis function (RBF) algorithm are applied to train the BP and RBF neural networks, respectively. A set of
−
20
D
to
20
D
spectacle lenses is used to test the proposed method. When comparing the diopter measurement results of the RBF neural network with those of the BP neural network, the former exhibited higher stability and lower errors. In addition, the errors of diopter measurement are not against the system error measured by an auto-focimeter due to the increase of curvature of spectacle lenses. These results indicated that RBF neural network has better performance in diopter detection, and it can overcome the system error caused by the change of lens curvature in auto-focimeter measurement.