DOI: 10.3390/s26154879 ISSN: 1424-8220

An Adaptive Edge-Guided Dual-Network Framework for Fast QR Code Motion Deblurring

Jianping Li, Dongyang Guo, Wenjie Li, Wei Zhao

Unlike natural image deblurring, which primarily emphasizes perceptual quality and pixel-level fidelity, Quick Response (QR) code deblurring must retain decoding-critical structures to guarantee successful decoding. QR codes contain regular binary module grids and functional patterns with sharp boundaries, providing a strong structural prior for restoration. However, most existing learning-based QR restoration methods capture QR-specific structural information via implicit feature learning. To address this limitation, we propose an Edge-Guided Attention Block (EGAB), which explicitly extracts multi-directional edge priors and injects them into the query–key correlations of Transformer attention. Based on EGAB, we develop an Edge-Guided Restormer (EG-Restormer) for restoring severely blurred QR codes. For mildly blurred inputs, we introduce a Lightweight and Efficient Network (LENet) that performs fast restoration with low computational overhead. We further integrate EG-Restormer and LENet into an Adaptive Dual-network (ADNet), which selects the appropriate restoration branch according to the input blur level. Extensive experiments demonstrate the effectiveness of the proposed framework. EG-Restormer boosts the decoding rate by 8.67 percentage points under GoPro-only training and achieves the highest decoding rate among the evaluated methods after QRData fine-tuning. Moreover, ADNet reduces average inference latency by 19% while maintaining comparable decoding performance. These results suggest that explicit edge prior modeling enhances the recovery of structures critical for decoding, while adaptive routing provides an effective balance between decoding accuracy and computational efficiency.

More from our Archive