Defect detection method for printed labels based on adaptive dynamic thresholding
In defect detection for color printed labels, traditional fixed-threshold methods are prone to false alarms and missed detections under illumination variation and complex textures, owing to mechanical vibration, positional offsets, uneven illumination, and local brightness fluctuations. To address this problem, this paper proposes a printed label defect detection method based on adaptive dynamic thresholding. First, a local adaptive dynamic threshold calculation mechanism is constructed from local gray-level differences, structural similarity, and frequency-domain differences, enabling the decision threshold to adapt to local image responses. This suppresses pseudo-anomalous responses in regions with brightness fluctuations or complex textures while enhancing sensitivity to local abnormal variations. Second, a detection model is constructed on the basis of a dual-difference template set consisting of bright and dark templates, and the proposed adaptive dynamic thresholding mechanism is incorporated into this model, enabling adaptive defect discrimination according to local image characteristics. Finally, the dynamic threshold and a static threshold are jointly used for anomalous-pixel discrimination, thereby achieving defect segmentation and localization. Experimental results on 1672 test images from five layout types show that the proposed method achieves an image-level detection accuracy above 99% and a pixel-level mean intersection over union (mIoU) of 46.89%, demonstrating improved accuracy and robustness of printed label defect detection.
Authors
- Jiale Song (ORCID: https://orcid.org/0009-0006-1782-6433)
- Songxiao Cao (ORCID: https://orcid.org/0000-0001-5122-3472)
- Tao Song (ORCID: https://orcid.org/0000-0002-9146-9386)
- Zhipeng Xu (ORCID: https://orcid.org/0000-0003-2543-3091)
- Linfeng Zhou (ORCID: https://orcid.org/0000-0003-4520-5344)
- Bin Zhou
- Xiaoyuan Mao
Institutions
- Shaoxing University (CN)
- China Jiliang University (CN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1038/s41598-026-81368-2
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Natural Science Foundation of Zhejiang Province