Abstract
Detecting transparent glass surfaces is a significant challenge in computer vision due to their lack of intrinsic color and texture. This paper introduces NFGlassNet, a novel deep learning framework that identifies glass by analyzing "reflection dynamics"—the predictable changes in reflection patterns between standard and flash-illuminated image pairs. Utilizing a newly curated dataset of 3,312 flash/no-flash pairs (NFGD), the authors demonstrate that NFGlassNet achieves state-of-the-art performance, significantly outperforming existing single-modality and multi-modal methods in glass surface segmentation.
Introduction
Glass is a ubiquitous material in modern environments, yet it remains largely "invisible" to standard computer vision algorithms. Because glass is transparent and colorless, AI models typically rely on indirect cues such as boundary frames or ghosting reflections. However, these cues are often unreliable; a frameless window may disappear entirely from an algorithm's view, while a simple rectangular opening might be misidentified as a window.
Existing methods fail to exploit the intrinsic physical properties of glass. This research addresses this gap by proposing the use of a camera flash as an active probe. By comparing a standard photo with one taken with a flash, the system can observe how reflections appear, disappear, or shift—a phenomenon termed "reflection dynamics"—to accurately locate glass surfaces.
Methodology: NFGlassNet
The authors propose NFGlassNet, a dual-branch architecture designed to process flash/no-flash image pairs. The network incorporates two primary modules to extract and refine glass-related features:
- Reflection Contrast Mining Module (RCMM): This module isolates reflection dynamics by analyzing the differences between the two input images. While the background remains static, reflections on the glass surface change significantly under flash illumination. RCMM uses dilated convolutions to capture these dynamic reflections across various scales.
- Reflection Guided Attention Module (RGAM): This module employs a dual cross-attention mechanism to refine the detected regions. It cross-references suspected glass surfaces with isolated reflection features to filter out noise and focus on actual glass panes.
To facilitate training, the authors utilized an existing reflection-removal model (LANet) to generate pseudo-ground truth labels for the reflection layers within their dataset.
The No-flash and Flash Glass Dataset (NFGD)
To support this research, the authors introduced the No-flash and Flash Glass Dataset (NFGD). It contains 3,312 pairs of images captured with a Canon 80D DSLR in diverse real-world settings, including malls, hospitals, and bathrooms. The dataset covers a wide range of lighting conditions and flash intensities, providing a robust benchmark for multi-modal glass detection.
Results and Discussion
NFGlassNet demonstrates superior performance over 17 state-of-the-art methods. On the NFGD dataset, it achieved an Intersection over Union (IoU) of 86.17%, surpassing the best previous multi-modal method (RGB-T) by 2.24%. It also achieved the lowest Balanced Error Rate (BER) of 0.053.
Qualitatively, NFGlassNet excels in "frameless" situations where traditional models like GSDNet often fail. The model effectively leverages the physical "flip" of reflections: when a flash illuminates a dark room behind glass, reflections often diminish as transmitted light increases; conversely, in dark environments, the flash creates new reflections.
Limitations
A primary limitation of the current approach is the "Tile Problem." Highly polished surfaces, such as marble or ceramic tiles, can exhibit reflection dynamics similar to glass, leading to occasional over-detection. Future work may involve incorporating polarimetric sensors or temporal data from video to distinguish these surfaces through motion parallax.
Conclusion
By treating the camera flash as an active probe rather than just an illumination tool, NFGlassNet successfully "sees" the invisible. This approach marks a significant step forward in robust glass detection, with potential applications in robotics, autonomous navigation, and augmented reality.
Summary updated