The invention discloses a measuring
microscope rapid automatic focusing method based on an ISP
chip, and the method comprises the steps: obtaining an image from a
microscope camera, inputting the image into the ISP
chip, carrying out the blocking
processing of the image, calculating the definition value of each block, and aiming at the definition value of each block, combining with the center bias correction and the compensation
processing of the adjacent blocks, thereby achieving the rapid automatic focusing of a measuring
microscope. And obtaining a corrected definition value, selecting a block area with the maximum definition value, gradually adjusting the position of a microscope lens by using a
hill climbing method, dynamically adjusting the
focal length, and finally determining an optimal focusing point and completing automatic focusing. According to the method, the ISP
chip is used for
hardware acceleration processing, the focusing speed and precision are greatly improved, and the method is suitable for complex measurement environments under different illumination conditions and has wide application prospects.