The invention belongs to the technical field of industrial cameras, and particularly relates to an automatic focusing method and device for a
microscope, and the device comprises a zooming mechanism which is located at the front side of an automatic focusing sensor, replaces an original focus detection lens in the automatic focusing mechanism, and is used for enabling the
magnification of the zooming mechanism to be reduced through increasing the
focal length of the zooming mechanism, thereby achieving the automatic focusing of the
microscope. Therefore, a
laser image of the reflected
light beam incident to the automatic focusing sensor is reduced, the defocused
light beam is more concentrated, the
luminous flux in unit area is increased, the brightness of the
laser image is higher, and the gray average value of the
laser image on the photosensitive surface of the automatic focusing sensor is greater than a threshold value. Effective information is extracted through an
image signal corresponding to a laser image on the automatic focusing sensor so as to carry out
centroid calculation, so that the defocusing amount of the focus of the objective lens and the surface of the sample to be detected is obtained; the problem that in the prior art, in the aspect of the anti-interference capability of a focusing environment, the focusing range is small, and the surface of a to-be-detected sample is prone to disengaging from the focusing range is solved.