Abstract
Blind video decaptioning is a problem of automatically removing text overlays and inpainting the occluded parts in videos without any input masks. While recent deep learning based inpainting methods deal with a single image and mostly assume that the positions of the corrupted pixels are known, we aim at automatic text removal in video sequences without mask information. In this paper, we propose a simple yet effective framework for fast blind video decaptioning. We construct an encoder-decoder model, where the encoder takes multiple source frames that can provide visible pixels revealed from the scene dynamics. These hints are aggregated and fed into the decoder. We apply a residual connection from the input frame to the decoder output to enforce our network to focus on the corrupted regions only. Our proposed model was ranked in the first place in the ECCV Chalearn 2018 LAP Inpainting Competition Track2: Video decaptioning. In addition, we further improve this strong model by applying a recurrent feedback. The recurrent feedback not only enforces temporal coherence but also provides strong clues on where the corrupted pixels are. Both qualitative and quantitative experiments demonstrate that our full model produces accurate and temporally consistent video results in real time (50+ fps).
Introduction
Video decaptioning is the process of removing text overlays—such as subtitles, logos, or news tickers—and reconstructing the underlying background. Standard inpainting techniques typically require a user-provided binary mask to identify corrupted pixels. However, in real-world video processing, manual mask creation is impractical, and subtitles often feature semi-transparent shadows that binary masks cannot adequately represent. Furthermore, frame-by-frame processing often leads to temporal flickering.
To address these issues, this paper introduces BVDNet (Blind Video Decaptioning Network), a framework that automatically detects and removes text while restoring the background in real-time. By leveraging scene dynamics—where moving objects reveal background pixels hidden in adjacent frames—the model achieves high fidelity without manual intervention.
Methodology
BVDNet utilizes a hybrid 3D-2D neural network architecture designed for temporal consistency and efficiency. Its core components include:
- Two-Stream Encoder:
- Aggregation Stream (3D CNN): This stream processes a sliding window of five frames. Using 3D convolutions, it aggregates temporal "hints" from neighboring frames to fill in occluded regions.
- Recurrence Stream (2D CNN): This stream takes the previously generated frame as input, acting as a memory buffer to ensure temporal coherence across the sequence.
- Residual Learning: Instead of reconstructing the entire frame, the network predicts a residual image representing the difference between the input and the target. This forces the model to focus exclusively on corrupted text regions, preserving the integrity of the uncorrupted background.
- Temporally-Pooled Skip Connections: These connections pass low-level structural information from the encoder to the decoder, maintaining sharp edges and textures in the output.
- Multi-Component Loss Function: The model is optimized using a combination of L1 loss (pixel accuracy), SSIM (structural similarity), Gradient loss (edge sharpness), and a Temporal Warping Loss to ensure realistic pixel motion between frames.
Experiments and Results
The model was evaluated using the ECCV Chalearn 2018 LAP Video Decaptioning Challenge dataset, which contains 70,000 training pairs of 5-second clips. The dataset features a wide variety of caption styles, positions, and transparency levels.
Quantitative Performance
BVDNet achieved first place in the ECCV competition. On the challenge benchmark, it reached a Peak Signal-to-Noise Ratio (PSNR) of 34.70 and a Mean Squared Error (MSE) of 0.0010, significantly outperforming baseline models.
Efficiency and Visual Quality
The model is highly efficient, containing only 10.5M parameters. It achieves a processing speed of 62.5 fps on an NVIDIA GTX 1080 Ti, making it suitable for real-time applications. Qualitative results demonstrate that the model successfully handles complex backgrounds and moving objects, even when text overlays include complex drop shadows.
Conclusion
BVDNet provides a robust solution for blind video decaptioning by combining temporal aggregation with recurrent feedback. While the model may produce slight blurring in cases of heavy, solid occlusions that never reveal the background, its overall performance and real-time speed set a new standard for the field. Future work may extend this architecture to other blind restoration tasks, such as removing rain streaks or film scratches.
Summary updated