Abstract
Capturing clear photographs through chain-link fences is a common challenge in photography, particularly at zoos or historical sites. Traditional image inpainting often fails to reconstruct complex backgrounds accurately, leaving blurry artifacts. This paper introduces an automated pipeline for "de-fencing" that utilizes short video sequences to recover occluded information. By combining a deep-learning-based fence segmentation tool with a novel occlusion-aware optical flow method, the system effectively reconstructs dynamic backgrounds with high fidelity using as few as three frames.
Introduction
The presence of foreground occlusions like fences significantly degrades the quality of images. While single-image inpainting techniques attempt to fill these gaps using surrounding spatial information, they frequently introduce artifacts in complex textures. Video-based approaches offer a superior alternative by leveraging temporal information: as the camera moves, background pixels hidden in one frame become visible in another. However, previous video-based methods often required manual fence masking and struggled with dynamic scenes where the background objects were in motion.
This research addresses these limitations by providing a fully automated segmentation process and a robust reconstruction framework capable of handling non-global motion in dynamic environments.
Automated Fence Segmentation
A core contribution of this work is the transition from manual to automated fence masking. The authors propose a CNN-SVM hybrid approach for detecting "fence texel joints"—the intersection points of the fence wires.
Instead of attempting to segment thin, irregular wire lines directly, the system uses a pre-trained Convolutional Neural Network (CNN) as a feature extractor. A Support Vector Machine (SVM) is then trained on these features to identify the highly repetitive patterns of fence joints. These detected joints serve as "scribbles" or hints for an image matting algorithm, which generates a precise binary mask of the entire fence structure.
Occlusion-Aware Reconstruction
The reconstruction process involves two main stages: motion estimation and data fusion.
Occlusion-Aware Optical Flow
To fuse information across video frames, the system must accurately map corresponding background pixels. Standard optical flow algorithms are typically misled by the stationary or differently moving fence. The authors modified the optical flow equations to incorporate the fence mask, explicitly disabling the data fidelity term at fence locations. This forces the algorithm to rely on the motion "smoothness" of the surrounding background to estimate the trajectory of pixels behind the wires.
Data Fusion via FISTA
The final de-fenced image is reconstructed by solving an ill-posed inverse problem. The system models the observed frames as a combination of the true background, the fence mask, and noise. To solve this, the authors employ the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA) with an $l_1$ regularization prior. This approach encourages the final output to maintain the sharp edges and natural statistics of a clean photograph.
Results and Evaluation
The proposed method was evaluated against several benchmarks, including the PSU NRT dataset and a new dataset of 200 real-world fenced images.
- Segmentation Performance: The CNN-SVM method achieved an F-measure of 0.97 on the PSU NRT dataset, significantly outperforming traditional lattice detection methods (0.62).
- Visual Quality: Qualitative results demonstrate that the method produces sharper backgrounds than parallax-based techniques and avoids the smearing common in inpainting.
- Efficiency: Unlike previous methods requiring 5–15 frames, this pipeline achieves high-quality results using only three frames, reducing computational overhead.
Conclusion
This paper presents a robust, automated solution for removing fence occlusions from video sequences. By focusing on texel joints for segmentation and employing occlusion-aware motion estimation, the system handles both static and dynamic scenes effectively. Future work will focus on automating the selection of optimal frames from longer sequences to further enhance reconstruction quality.
Summary updated