Abstract
Embedding invisible hyperlinks or hidden codes in images to replace QR codes has become a significant area of research. This technology requires precise localization of the embedded region in captured photos before decoding can occur. Existing methods often struggle with localization accuracy, leading to degraded decoding performance. This limitation stems from the fact that standard Convolutional Neural Networks (CNNs) are sensitive to low-frequency signals, while embedded signals are typically high-frequency. This paper proposes the Dual-Branch Dual-Head (DBDH) neural network, specifically tailored for the precise localization of invisible embedded regions. DBDH utilizes a low-level texture branch with 62 high-pass filters to capture high-frequency signals and a high-level context branch to extract discriminative features. The architecture employs a detection head for vertex localization and an auxiliary segmentation head for pixel-level supervision during training. Extensive experiments demonstrate that DBDH achieves superior performance and computational efficiency compared to state-of-the-art methods.
Introduction
While QR codes are ubiquitous, their visual appearance often disrupts the aesthetics of posters, packaging, and digital media. "Invisible" embedding technology offers a solution by hiding data within images in a way that is imperceptible to humans but readable by machines. However, retrieving this data from a physical photograph—the "offline-to-online" process—presents a major technical challenge.
When a user takes a photo of a printed image or a screen, the embedded signal undergoes geometric distortion, motion blur, and environmental noise. To decode the message, the system must first precisely locate the four corners of the embedded region to perform a perspective correction (un-warping). Current localization tools often fail because they are built on standard CNN architectures that prioritize low-frequency information like shapes and colors, effectively "ignoring" the high-frequency noise that constitutes an invisible watermark.
The DBDH Architecture
The Dual-Branch Dual-Head (DBDH) network is designed to bridge the gap between semantic understanding and high-frequency signal detection. The architecture is divided into two specialized branches and two functional heads.
1. Dual-Branch Feature Extraction
- Low-Level Texture Branch: To overcome the low-frequency bias of standard CNNs, this branch is initialized with 62 hand-crafted high-pass filters, including 30 Spatial Rich Model (SRM) kernels and 32 Gabor kernels. These filters are specifically tuned to detect the tiny, high-frequency anomalies and residual patterns caused by data embedding.
- High-Level Context Branch: This branch utilizes a lightweight ResNet18 backbone to extract global semantic features. It helps the model distinguish the embedded region from the background by understanding the broader image structure.
2. Dual-Head Output Strategy
- Vertex Detection Head: This head predicts the coordinates of the four corners (vertices) of the embedded region using heatmaps. This is the primary output used during real-world inference.
- Segmentation Head: During the training phase, an auxiliary segmentation head predicts a pixel-wise mask of the entire embedded region. This provides "region-wise supervision," acting as a tutor that helps the model learn the signal's footprint more effectively. To maintain high inference speeds, this head is discarded after training.
Experimental Setup and Datasets
To evaluate DBDH under realistic conditions, the researchers constructed two specialized datasets:
- WM-SS: Based on the StegaStamp algorithm, simulating "print-and-shoot" scenarios involving physical prints.
- WM-PIMoG: Based on the PIMoG algorithm, simulating "screen-shooting" scenarios, which include unique distortions such as moiré patterns.
The training process utilized robust augmentation pipelines (Aug-SS and Aug-PIMoG), applying random perspective warps, motion blur, color jitter, and JPEG compression to ensure the model remains stable in unpredictable environments.
Key Results and Insights
DBDH demonstrates a significant leap in both accuracy and efficiency over existing baselines like BiSeNet and HRNet.
Localization Accuracy
On the WM-SS dataset under combined distortions—the most challenging test case—DBDH achieved an Intersection over Union (IoU) of 91.2%. This significantly outperforms BiSeNet (87.3%) and HRNet (65.2%). The inclusion of high-pass filters allows the model to maintain a "lock" on the embedded region where other models see only noise.
Computational Efficiency
Despite its dual-branch complexity, DBDH is highly optimized. It requires only 30.7 billion multiply-adds (GFLOPs), compared to HRNet’s 100.7 billion. On an NVIDIA 1080Ti, DBDH processes a 900x900 image in just 25ms, making it viable for real-time mobile applications.
Robustness
The model proved resilient against various degradations, including Gaussian noise and heavy JPEG compression. Its ability to handle moiré patterns—the wavy lines often seen when photographing screens—makes it particularly useful for modern digital-to-physical interactions.
Conclusion and Future Work
DBDH addresses the fundamental frequency mismatch that has hindered invisible watermark localization. By combining fixed high-pass filters with semantic context and auxiliary segmentation supervision, the model provides a robust and fast solution for the next generation of invisible "QR codes."
Future research may focus on making the high-pass filters adaptive rather than fixed, allowing the network to learn optimal kernels for different embedding algorithms dynamically. Additionally, exploring performance under extreme camera angles and ultra-low-light conditions remains a priority for making this technology truly universal.
Summary updated