基于YOLOv5s的精密視覺檢測系統(tǒng)快速調(diào)焦方法

打開文本圖片集
Fast Focusing Method for Precision Vision Detection System Based on YOLOv5s
HU Xinyu LIU Xiyang*ZHANG Junwei YAN Shuang LI Yunxiang YE Xuhui School of Mechanical Engineering,Hubei University of Technology,Wuhan,430068
Abstract: During measurement,the visual inspection system was influenced by factors such as production accuracy and assembly errors, leading to defocused and blurred images. Consequently,a rapid focusing method for the precision visual inspection system was developed based on YOLOv5s. This method employed a combination of coarse and fine focusing strategies. Initially,the trained YOLOv5s models were utilized to search for clear imaging depth ranges with an accuracy of 97.6% , completed the coarse focusing processes within 900ms . Subsequently,the clarity evaluation function and an improved search algorithm were applied for precise focusing, swiftly identified the optimal imaging plane within the depth range. Experimental results indicate that within a defocus range of ±4 mm ,the focusing accuracy reaches 0.04mm ,with an average time not exceeding 1600ms ,which reaches a 47.6% reduction compared to existing methods. This method offers rapid speed, high accuracy, and strong adaptability,making it ideally suited for online precision measurements in visual inspection systems.
Key words: autofocus; visual inspection; interval search; clarity evaluation function
0 引言
在光學系統(tǒng)中,正焦位置是指物體在圖像平面上形成最清晰焦點的位置[1]。(剩余13951字)