China Mechanical Engineering ›› 2025, Vol. 36 ›› Issue (12): 2968-2977.DOI: 10.3969/j.issn.1004-132X.2025.12.020

Previous Articles    

A Small-sample Defect Detection Method for Screen-printed Characters with Adaptive Target Region Extraction

Xinyu HU1(), Junwei ZHANG1, Jia AI2(), Yunling LI1, Shuang YAN1   

  1. 1.School of Mechanical Engineering,Hubei University of Technology,Wuhan,430068
    2.School of Mechanical and Electrical Engineering,Wuhan University of Technology,Wuhan,430070
  • Received:2024-11-19 Online:2025-12-25 Published:2025-12-31
  • Contact: Jia AI

一种自适应目标区域提取的小样本丝印字符缺陷检测方法

胡新宇1(), 张骏巍1, 艾佳2(), 李云翎1, 严爽1   

  1. 1.湖北工业大学机械工程学院, 武汉, 430068
    2.武汉理工大学机电工程学院, 武汉, 430070
  • 通讯作者: 艾佳
  • 作者简介:胡新宇,男,1975年生,教授、博士研究生导师。研究方向为机器视觉。E-mail:19991012@hbut.edu.com
  • 基金资助:
    湖北省自然科学基金(2022CFB301);湖北省重点研发计划(2022BBA0016)

Abstract:

The defect detection of screen-printed characters on electronic devices faced problems such as poor segmentation accuracy caused by reflective materials, difficulty in adaptively locating and extracting target regions due to uncertain image poses, and low recognition accuracy caused by small defect detection targets and insufficient samples, an adaptive target region extraction method for few-shot screen-printed character defect detection was proposed. Based on OTSU method an adaptive dual-threshold segmentation algorithm was designed to reduce information loss in bright target regions on reflective material surfaces, achieving accurate segmentation of images with uneven illumination. An adaptive target region localization, extraction, and angle correction algorithm was proposed to solve the problems of precisely locating and extracting adaptive target regions despite variations in character sizes and poses. A method involving preliminary defect target recognition and secondary fine recognition for low-confidence small target characters was studied, achieving accurate recognition for small-target, few-sample defect detection targets. Experimental results demonstrate that: the dual-threshold segmentation algorithm achieves accurate segmentation of character images under uneven illumination; the accuracy of adaptive target region localization and angle correction reaches 99.5%; the character classification recognition rate of the lightweight deep learning model reaches 99.1%; the character defect detection accuracy reaches 98.6%; and the detection speed is as 0.083 seconds per image. These results meet the requirements for both of precision and speed in industrial online detections.

Key words: defect detection, screen printing, non-uniform lighting, pose variation, small sample recognition

摘要:

针对因电子器件丝印字符材质反光引起分割精度差、检测图像位姿不确定难以自适应定位提取目标区域、缺陷检测目标小及样本少导致识别准确率低的问题,提出自适应目标区域提取的小样本丝印字符缺陷检测方法。设计基于大津阈值法的自适应二次阈值分割算法,减少反光材质表面光亮目标区域信息损失,实现光照不均匀图像的准确分割;提出自适应目标区域定位提取与角度矫正算法,解决因字符大小及位姿变化难以实现自适应目标区域的精确定位与提取问题;研究了缺陷检测目标初识别、置信度低小目标字符二次精识别方法,实现了小目标、少样本缺陷检测目标的准确识别。实验结果表明:二次阈值分割算法能够实现光照不均字符图像的准确分割,自适应目标区域定位与角度矫正准确率达99.5%,轻量化深度学习模型的字符分类识别率达99.1%,字符缺陷检测准确率达98.6%,检测速度为0.083 s/张,满足工业生产中在线检测精度与速度的需求。

关键词: 缺陷检测, 丝网印刷, 光照不均匀, 位姿不确定, 小样本识别

CLC Number: