To address the problems of picking failure and decreased positioning accuracy caused by occluded targets in industrial scenarios, a visual positioning method for occluded targets was proposed based on image inpainting. Firstly, taking YOLOv8s-Seg as the basic detection model, an enhanced multi-scale attention(EMA) mechanism was introduced in the Neck part to improve the perception of local details, achieving multi-target detection under occluded scenes and extracting the region of interest(ROI) images and reference points of the targets that might be picked up first to complete the coarse positioning. Secondly, for the occluded areas, an improved EdgeConnect network was used for image restoration, and edge shape prior constraints were introduced to enhance the reconstruction ability of the target's geometric contours. Finally, a least squares method was used to fit the target contours based on Tukey function reweighting, accurately calculating the center positions and deflection angles to achieve fine positioning. Experimental results show that the recognition accuracy of proposed method reaches 97%. When the occlusion area is less than 50%, the center coordinate error is less than 1 pixel, and the angle error is less than 0.98°. The positioning time is less than 1000 ms, which is 42.12% shorter than that of the traditional method. This method may be applied to the positioning of occluded targets undel complex backgrounds.
SAM 在特征编码阶段通过动态生成空间维度上的注意力权重,引导网络聚焦关键区域、抑制无关信息来提高模型对图像语义的理解能力。首先,通过全局平均池化和最大池化提取全局背景与边缘信息,将两者在通道维度拼接后经7×7卷积融合生成空间注意力图;然后,该图经Sigmoid归一化后对输入特征进行加权,以实现对关键区域的精确聚焦和上下文信息增强,从而提高网络对图像中矩形轮廓的感知能力。
WANGY, YUX. Industrial Chip Positioning Method in Surface Mount Technology[C]∥49th Annual Conference of the IEEE Industrial Electronics Society. Singapore: IEEE, 2023: 1-4.
[2]
钱维凤. 基于多阈值分割的高精度贴片元件定位方法研究[D]. 大庆: 东北石油大学, 2024.
[3]
QIANWeifeng. Research on High Precision Chip Element Positioning Method Based on Multi-threshold Segmentation[D]. Daqing: Northeast Petroleum University, 2024.
[4]
寸毛毛. 典型封装芯片表面贴装在线视觉识别与定位的研究[D]. 西安: 陕西科技大学, 2018.
[5]
MaomaoCUN. Research on On-line Visual Identification and Location of Typical Package Chip Surface Mount[D]. Xi'an: Shaanxi University of Science & Technology, 2018.
[6]
岑誉. 多吸嘴贴片机的飞行视觉检测算法研究与系统开发[D]. 广州: 广东工业大学, 2015.
[7]
CENYu. On-the-fly Vision Based Detection Algorithm and System Development for Multi-nozzle Chip Mounter[D]. Guangzhou: Guangdong University of Technology, 2015.
YANGMintong. Research on Sub-pixel Accuracy Measurement and Localization Algorithm of Patch Components Based on Machine Vision[D]. Harbin: Harbin Institute of Technology, 2023.
[10]
刘茂霖. 面向多功能贴片机的机器视觉定位关键技术研究[D]. 杭州: 浙江大学, 2023.
[11]
LIUMaolin. Research on Key Technologies of Machine Vision Positioning for Multi-functional Placement Machine[D]. Hangzhou: Zhejiang University, 2023.
[12]
熊德基. 高精度贴片机系统的视觉检测关键技术研究[D]. 广州: 广东工业大学, 2020.
[13]
XIONGDeji. Research on the Key Technology of Vision Detection of High Precision SMT System[D]. Guangzhou: Guangdong University of Technology, 2020.
XIEYangmin, LIUQiang. Research on Locating Algorithm of Vision Alignment System in Automatic High Precision Chip Mounter[J]. Optical Technique, 2008, 34(3): 449-451.
ZENGYou, GAOJian, CENYu. The Weighted Least Squares Fitting Algorithm with Hessian Normal for Rectangular of Patch Element[J]. Machinery Design & Manufacture, 2016(4): 28-31.
[22]
SONGJ, PARKD, BAEKK, et al. DefectFill: Realistic Defect Generation with Inpainting Diffusion Model for Visual Inspection[C]∥2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR). Nashville: IEEE, 2025: 18718-18727.
[23]
HEW, HUG, TANGH, et al. A Reliable Surface Defect Detection Method Based on Semantic Image Inpainting[C]∥6th International Technical Conference on Advances in Computing, Control and Industrial Engineering (CCIE 2021). Singapore: Springer, 2022: 724-733.
HUYueming, DUJuan, WUXinsheng, et al. Program Realization of High-speed and High-precision Surface Mounting System Based on Vision[J]. Computer Integrated Manufacturing Systems, 2003, 9(9): 760-764.
[26]
AYOBM, KENDALLG. A New Dynamic Point Specification Approach to Optimise Surface Mount Placement Machine in Printed Circuit Board Assembly[C]∥2002 IEEE International Conference on Industrial Technology. Bankok, 2003: 486-491.
HUXinyu, LIUXiyang, ZHANGJunwei, et al. Fast Focusing Method for Precision Vision Detection System Based on YOLOv5s[J]. China Mechanical Engineering, 2025, 36(4): 864-872.
HUXinyu, ZHANGJunwei, AIJia, et al. A Small-sample Defect Detection Method for Screen-printed Characters with Adaptive Target Region Extraction[J]. China Mechanical Engineering, 2025, 36(12): 2968-2977.
WANGZhongxuan, ZOUGuangming, GUHaowen, et al. Research on Stacked Part Instance Segmentation Based on Improved YOLOv8[J]. Machine Tool & Hydraulics, 2024, 52(19): 9-16.
ZHANGYuyu, BINGShuying, JIYuanhao, et al. Grading Method of Fresh Cut Rose Flowers Based on Improved YOLOv8s[J]. Smart Agriculture, 2024, 6(2): 118-127.
SIYongsheng, KONGDehao, WANGKejian, et al. Thinning Apple Inflorescence at Single Branch Level Using Improved YOLOv8-Seg[J]. Transactions of the Chinese Society of Agricultural Engineering, 2024, 40(14): 100-108.
[37]
YUZiping, HUANGHongbo, CHENWeijun, et al. YOLO-FaceV2: a Scale and Occlusion Aware Face Detector[J]. Pattern Recognition, 2024, 155: 110714.
[38]
NAZERIK, NGE, JOSEPHT, et al. EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning[EB/OL]. ArXiv, 2019: 1901.00212.
[39]
JADERBERGM, SIMONYANK, ZISSERMANA, et al. Spatial Transformer Networks[EB/OL]. ArXiv, 2015:1506.02025.