The application discloses a high-efficiency automatic focusing method and
system, and relates to the field of automatic focusing. The method is applied to an off-axis automatic focusing device comprising a
ranging module and an imaging module, and comprises the following steps: detecting height values of multiple measuring points by using the
ranging module, and screening fixed-interval focusing points; based on a first
height difference between adjacent focusing points, adjusting the height of an objective lens focal point in the imaging module at a
constant speed, so that the height of the objective lens focal point is consistent with the horizontal plane position of the focusing point; when the horizontal plane position of the objective lens focal point coincides with that of any correction point, determining a corresponding blur kernel matrix according to a second
height difference between the objective lens focal point and the correction point; and based on the blur kernel matrix, performing
deblurring processing on an image generated by an
image sensor to obtain a measured object image. Based on the above
processing, the image blurring problem caused by poor real-time focusing performance is improved, and the
detection rate of the automatic focusing device is improved.