Fusion of Short-term and Long-term Attention for Video Mirror Detection
Mingchen Xu, Jing Wu, Yukun Lai, Ze Ji
TL;DR
This work tackles video mirror detection by fusing short-term appearance features with long-term contextual information using a transformer-based architecture. The proposed FusionFormer, composed of Dual Gated Short-term Attention (DGSA), Long-term Attention (LA), and Short-Long Fusion (SLF), produces per-frame mirror maps by leveraging both micro-frame appearance and macro-video position cues. A new ViMirr dataset with 19,255 frames across 281 videos is introduced to evaluate robustness in diverse scenes. Experiments on ViMirr and the existing VMD dataset show state-of-the-art performance and clear ablations demonstrating the contributions of each module. The approach advances robust mirror detection in realistic video settings and has potential impact on downstream scene understanding and robotics tasks.
Abstract
Techniques for detecting mirrors from static images have witnessed rapid growth in recent years. However, these methods detect mirrors from single input images. Detecting mirrors from video requires further consideration of temporal consistency between frames. We observe that humans can recognize mirror candidates, from just one or two frames, based on their appearance (e.g. shape, color). However, to ensure that the candidate is indeed a mirror (not a picture or a window), we often need to observe more frames for a global view. This observation motivates us to detect mirrors by fusing appearance features extracted from a short-term attention module and context information extracted from a long-term attention module. To evaluate the performance, we build a challenging benchmark dataset of 19,255 frames from 281 videos. Experimental results demonstrate that our method achieves state-of-the-art performance on the benchmark dataset.
