Journal of Applied Optics, Volume. 46, Issue 4, 868(2025)

Improved YOLOv7 for dust and point defects detection of optical lens

Xiaolei LIU and Shibo XU*
Author Affiliations
  • College of Physics and Electronic Information, Henan Polytechnic University, Jiaozuo 454000, China
  • show less

    During the production and detection process of optical lens, it is inevitable that dust will adhere to the surface. Its appearance is similar to hole and pockmark defects, however it does not have a substantial impact on the performance of the lens. In order to solve this problem, a set of optical lens surface defect acquisition device was designed to collect high-contrast images and use an improved You Only Look Once version 7 (YOLOv7) network to achieve detection and classification. Firstly, the enhanced network incorporated depthwise separable convolutions within feature extraction module and improved the spatial pyramid pooling structure to decrease the parameter count and broaden the receptive area. Secondly, when integrated multi-channel fusion feature enhancement module into the backbone network, this module could enhance the accuracy of similar feature recognition and add the ability of information interaction between channels. Finally, the loss function was modified to normalized Gaussian Wasserstein Distance_Smoothed Intersection over Union (NWD_SIoU) to improve the network's attention to small targets. The experimental results show that the mean average precision for the final network's detection capabilities attains 92.9%, alongside a reduction of 11.8 MB in the model's weight and the frames per second reaches 62.4 f·s?1, which illustrates that the method can distinguish dust from pitting and sand defects quickly and effectively.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Xiaolei LIU, Shibo XU. Improved YOLOv7 for dust and point defects detection of optical lens[J]. Journal of Applied Optics, 2025, 46(4): 868

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category:

    Received: Aug. 30, 2024

    Accepted: --

    Published Online: Sep. 16, 2025

    The Author Email: Shibo XU (徐诗博)

    DOI:10.5768/JAO202546.0403007

    Topics