The invention relates to an automatic
digital slide focusing device and method based on a
microscope. The automatic focusing device comprises the trinocular
microscope and a computer, and the trinocular
microscope is provided with an automatic objective table, a scanning ocular lens and a focusing turn button, wherein the automatic objective table can freely move along the axis-Z direction, the scanning ocular lens is provided with a
digital camera that is connected with of the computer, and the focusing turn button plays the role of focusing. Clear visual images are obtained in the focusing method, namely an improved over-peaked step-variable hill-climbing focusing search method. The focusing device uses the high-precision automatic objective table, instruction is emitted by the computer, the automatic objective table is controlled to move along the axis-Z direction, the improved over-peaked step-variable hill-climbing focusing search method is used, the high-speed
digital camera cooperates with the high-precision automatic objective table, the scanning time of the
digital slide is reduced, influence of mechanical error on the focusing effect is reduced, the problem that a traditional step-fixed focusing method leads to oscillation is overcome, and the optimal focal plane can be rapidly and accurately determined.