“…Nevertheless, it's crucial to acknowledge that the optics-based autofocus method might be susceptible to environmental factors that could potentially impact the accuracy of the focus, as indicated by some studies [15]. Currently, numerous researchers are dedicated to enhancing the accuracy of optical autofocus, whether through improving hardware components [16,17] or employing advanced image processing techniques [1,[18][19][20][21][22]. Despite the beneficial aspects of various methods, it has been observed that, regardless of the means used to improve autofocus accuracy, the light spot detected by the light sensor may undergo significant distortion when the test object is near the focus point.…”