Abstract
This paper introduces a learning-based framework designed to remove unwanted obstructions—such as window reflections, fences, or raindrops—from short video sequences. By leveraging the subtle motion differences (parallax) between the background and the obstruction, the model iteratively refines both optical flow and reconstructed layers to produce clean, unobstructed images. The approach combines the structural logic of traditional optimization with the robustness and speed of deep learning.
Problem Statement
Capturing a clear photo through a window or a fence is a common challenge because these "obstructions" are physically mixed with the background scene in the captured image. While single-image removal is possible, it is a fundamentally ill-posed problem, often requiring high-level semantic guessing. Multi-frame approaches are more robust because they exploit parallax: as a camera moves, objects at different depths move at different speeds across the frame. However, traditional optimization-based methods are computationally expensive and rely on brittle assumptions like brightness constancy. This research aims to bridge this gap with a more efficient, learning-based pipeline.
Proposed Method
The authors propose a coarse-to-fine neural network architecture that treats layer separation as an iterative process. The pipeline consists of three main modules:
- Initial Flow Decomposition: At the coarsest level, the model estimates a simple uniform motion vector for both the background and the obstruction to provide a stable starting point.
- Layer Reconstruction: A CNN takes warped frames from the sequence and fuses them. Unlike simple averaging, this network learns to ignore warping artifacts and occlusions to reconstruct a clean background and a separate obstruction layer.
- Optical Flow Refinement: Using the reconstructed layers, the model employs a pre-trained PWC-Net to refine the dense optical flow, which is then fed back into the next level of the hierarchy.
To bridge the gap between synthetic training data and real-world footage, the model includes an Online Optimization step. For any new test sequence, the model performs a few iterations of unsupervised fine-tuning to minimize a warping consistency loss, ensuring the predicted layers correctly recompose into the original input frames.
Key Results
The method was evaluated on both synthetic benchmarks and real-world "in-the-wild" sequences. On synthetic benchmarks, the proposed method achieved a PSNR of 26.57 for background reconstruction, significantly outperforming previous optimization methods (PSNR 17.12) and prior learning-based attempts (PSNR 23.62).
Qualitatively, the method produces visibly sharper results with fewer ghosting artifacts. It successfully handles complex occluders like chain-link fences and raindrops on a lens. Furthermore, without the online optimization step, the model processes a VGA sequence in approximately 2.2 seconds, making it orders of magnitude faster than traditional optimization-based algorithms.
Limitations and Future Work
A primary failure case occurs when there are multiple layers of reflections (e.g., double-paned windows) or when the motion of the obstruction is nearly identical to the background. In these scenarios, the parallax is insufficient for the model to distinguish between layers. Future work may involve extending the architecture to multi-layer scenarios or integrating advanced semantic priors to better distinguish background elements from reflections.
Summary updated