Xiaokang Ma , Zhengshui Kang , Chenghan Pu , Ziyu Lin , Muyuan Niu , Jun Wang
{"title":"Stamping part surface crack detection based on machine vision","authors":"Xiaokang Ma , Zhengshui Kang , Chenghan Pu , Ziyu Lin , Muyuan Niu , Jun Wang","doi":"10.1016/j.measurement.2025.117168","DOIUrl":null,"url":null,"abstract":"<div><div>Cracks are the most common defects on the surface of stamping parts. Given the complex and varied structures of automotive stamping parts and their highly reflective surfaces, the current state-of-the-art methods lack effective automated inspection systems capable of precise online detection. Consequently, the identification of surface cracks in stamping parts on active stamping lines predominantly relies on manual visual inspection. However, this method is subjective, inefficient, and insufficient to meet the requirements for higher accuracy and detection rates. Therefore, this paper proposes a stamping part surface crack detection system based on machine vision. By devising an image acquisition module, high-resolution images of stamping parts are captured. Considering the strong reflectivity of the stamping part surface, an innovative gray-based contrast enhancement algorithm is proposed to adaptively balance the image contrast by comparing the grayscale values of the local window with the global image. To precisely locate and detect cracks, we design a novel crack online detection network (COD-Net), which is based on YOLOv9 as the backbone to improve detection efficiency and accuracy. This network incorporates the multi-scale crack attention (MCA) mechanism to obtain richer semantic information and more accurate feature representation. Notably, the crack detection context decoupling (CDCD) head is exploited in the detection head to improve localization accuracy and convergence speed. Moreover, we propose the CD-Loss, which introduces <span><math><mi>α</mi></math></span>-WIoU in the detection box loss function to enhance model performance and speed up convergence. Our method significantly improves recall and achieves an [email protected] of 99.3% on the test set compared with other state-of-the-art methods. Furthermore, our detection system has been successfully applied to an automotive stamping lines.</div></div>","PeriodicalId":18349,"journal":{"name":"Measurement","volume":"251 ","pages":"Article 117168"},"PeriodicalIF":5.2000,"publicationDate":"2025-03-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Measurement","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0263224125005275","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Cracks are the most common defects on the surface of stamping parts. Given the complex and varied structures of automotive stamping parts and their highly reflective surfaces, the current state-of-the-art methods lack effective automated inspection systems capable of precise online detection. Consequently, the identification of surface cracks in stamping parts on active stamping lines predominantly relies on manual visual inspection. However, this method is subjective, inefficient, and insufficient to meet the requirements for higher accuracy and detection rates. Therefore, this paper proposes a stamping part surface crack detection system based on machine vision. By devising an image acquisition module, high-resolution images of stamping parts are captured. Considering the strong reflectivity of the stamping part surface, an innovative gray-based contrast enhancement algorithm is proposed to adaptively balance the image contrast by comparing the grayscale values of the local window with the global image. To precisely locate and detect cracks, we design a novel crack online detection network (COD-Net), which is based on YOLOv9 as the backbone to improve detection efficiency and accuracy. This network incorporates the multi-scale crack attention (MCA) mechanism to obtain richer semantic information and more accurate feature representation. Notably, the crack detection context decoupling (CDCD) head is exploited in the detection head to improve localization accuracy and convergence speed. Moreover, we propose the CD-Loss, which introduces -WIoU in the detection box loss function to enhance model performance and speed up convergence. Our method significantly improves recall and achieves an [email protected] of 99.3% on the test set compared with other state-of-the-art methods. Furthermore, our detection system has been successfully applied to an automotive stamping lines.
期刊介绍:
Contributions are invited on novel achievements in all fields of measurement and instrumentation science and technology. Authors are encouraged to submit novel material, whose ultimate goal is an advancement in the state of the art of: measurement and metrology fundamentals, sensors, measurement instruments, measurement and estimation techniques, measurement data processing and fusion algorithms, evaluation procedures and methodologies for plants and industrial processes, performance analysis of systems, processes and algorithms, mathematical models for measurement-oriented purposes, distributed measurement systems in a connected world.