Learning to See Through Obstructions

Yu-Lun Liu, Wei-Sheng Lai, Ming-Hsuan Yang, Yung-Yu Chuang, Jia-Bin Huang

Abstract: We present a learning-based approach for removing unwanted obstructions, such as window reflections, fence occlusions or raindrops, from a short sequence of images captured by a moving camera. Our method leverages the motion differences between the background and the obstructing elements to recover both layers. Specifically, we alternate between estimating dense optical flow fields of the two layers and reconstructing each layer from the flow-warped images via a deep convolutional neural network. The learning-based layer reconstruction allows us to accommodate potential errors in the flow estimation and brittle assumptions such as brightness consistency. We show that training on synthetically generated data transfers well to real images. Our results on numerous challenging scenarios of reflection and fence removal demonstrate the effectiveness of the proposed method.

Introduction

Capturing a clear photograph through a window or a fence is a common challenge. Photographers often encounter distracting reflections or blurry grids that obscure the intended subject. While single-image tools exist, they frequently struggle with the inherent ambiguity of distinguishing between background and obstruction layers.

The proposed method effectively removes various obstructions, including reflections, fences, and raindrops.

In "Learning to See Through Obstructions," researchers from National Taiwan University and Google Research present a robust, learning-based framework that utilizes a short sequence of images from a moving camera. By leveraging motion parallax—the phenomenon where objects at different depths move at different speeds across the sensor—the system can effectively "see through" these obstacles to recover a clean background.

The Multi-Frame Challenge

Removing obstructions like window reflections, fences, or raindrops is a classic "ill-posed" problem in computer vision. In a single frame, it is often impossible to determine which pixels belong to the background and which belong to the obstruction. Multi-frame approaches attempt to solve this by using camera motion. However, traditional optimization methods are computationally expensive and rely on brittle assumptions like "brightness constancy." Conversely, earlier deep learning models often failed to produce the sharp, high-quality results required for realistic image restoration.

Proposed Methodology

The researchers developed a unified, coarse-to-fine framework that alternates between estimating motion and reconstructing layers. The pipeline consists of three primary modules:

  1. Initial Flow Decomposition: At the coarsest level, the model predicts a simple uniform motion vector for both the background and obstruction layers. This provides a stable anchor, avoiding the noise inherent in complex dense flow estimation when layers are blended.
  2. Layer Reconstruction: A Convolutional Neural Network (CNN) processes warped input frames, difference maps (to highlight misalignments), and invalid masks. It employs residual learning to reconstruct the background and reflection layers independently.
  3. Optical Flow Refinement: The model uses a pre-trained PWC-Net to estimate dense flow between the newly reconstructed layers. This refined flow is then passed to the next, finer level of the hierarchy for further processing.
The coarse-to-fine framework alternates between layer reconstruction and flow refinement across multiple levels.

Online Optimization: Bridging the Sim-to-Real Gap

To ensure the model performs well on messy real-world footage after being trained on synthetic data, the authors introduced an unsupervised "online optimization" step. When processing a new test sequence, the model fine-tunes itself for approximately 20 minutes using a warping consistency loss. This ensures that the predicted layers, when recombined according to the estimated motion, perfectly match the original input frames.

Key Results and Insights

The method demonstrates significant improvements over both traditional optimization and prior deep learning approaches. Quantitatively, on synthetic benchmarks, the method achieved a PSNR of 26.57, outperforming previous multi-frame methods (23.62) and traditional optimization (17.12).

Qualitatively, the results on real-world sequences show sharper background recovery and more complete removal of "ghosting" artifacts. One of the most significant findings is the framework's versatility; by making minimal design changes, such as adding an alpha channel for transparency, the same architecture successfully removes fences and raindrops, proving it is a general-purpose obstruction remover.

Limitations and Future Work

Despite its success, the model faces challenges in specific scenarios. Multi-layer reflections—where a window reflects multiple objects at different depths—can confuse the motion estimation. Additionally, if the motion of an obstruction is too similar to the background motion, the parallax cue disappears, making separation impossible. Future research may focus on extending this framework to dynamic scenes where the background itself is in motion or optimizing the online step for real-time applications on mobile devices.

Summary updated

BibTeX
@inproceedings{liu2020learning,
  author = {Yu-Lun Liu and Wei-Sheng Lai and Ming-Hsuan Yang and Yung-Yu Chuang and Jia-Bin Huang},
  title = {{Learning to See Through Obstructions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01422},
}
Figure