TL;DR
This paper tackles the challenge of removing moiré patterns from videos, a common artifact when filming screens. They introduce the first dedicated dataset for video demoiréing and propose a novel "relation-based temporal consistency loss" that significantly improves video quality by ensuring smooth transitions between frames without sacrificing detail.
What Problem Does This Paper Address?
When you film a screen (like a TV or monitor) with a digital camera, you often encounter "moiré patterns." These are those annoying, colorful, wavy lines that appear as a result of interference between the screen's pixel grid and the camera's sensor. While there's been progress in removing these patterns from still images, doing so for videos is a much harder problem. Videos have the added complexity of needing to be temporally consistent – meaning the frames should flow smoothly from one to the next without flickering or sudden changes. Existing methods often struggle with this, either by sacrificing image quality for temporal smoothness or by relying on potentially error-prone techniques like optical flow.
Methods
The authors propose a two-pronged approach:
- Baseline Video Demoiréing Model: They build a model that leverages information from multiple adjacent video frames. This involves:
- Implicit Feature Alignment: Using a "Pyramid Cascading Deformable (PCD)" module to align features from different frames in a learned way, rather than relying on explicit optical flow.
- Selective Feature Aggregation: A "Pyramid Feature Aggregation (PFA)" module that intelligently combines features from these aligned frames, learning which information is most valuable from each.
- Deep Supervision: Applying loss functions at multiple scales within the network to aid training.
- Relation-Based Temporal Consistency Loss: This is the core innovation. Instead of trying to match pixel intensities between aligned frames (which can be problematic due to natural video changes and optical flow errors), they propose a loss that encourages the relationship between consecutive frames in the predicted video to match the relationship in the ground-truth video. This is done in two ways:
- Basic Relation Loss: Matching the difference in pixel intensities between consecutive frames.
- Multi-Scale Region-Level Relation Loss: Extending this to consider statistics (like mean intensity) within patches of different sizes, mimicking how humans perceive visual information. This helps to better capture temporal consistency across regions.
Datasets
- New Dataset: The paper introduces the first hand-held video demoiréing dataset. This dataset was collected using a dedicated pipeline to ensure spatial and temporal alignment between the captured moiré videos and their corresponding clean ground-truth videos. They collected 290 videos, each with 60 frames, simulating real-world scenarios.
- Existing Datasets: They also mention using videos from REDS [29] and MOCA [19] for their dataset collection.
Key Insights and Ideas
- Temporal Consistency is More Than Just Pixel Matching: The paper argues that forcing identical pixel values in aligned frames is too restrictive and can lead to artifacts. Instead, matching the temporal relationships (how things change from frame to frame) is a more robust approach.
- Human Perception as Inspiration: The relation-based loss is inspired by how humans perceive temporal consistency – by observing consecutive frames directly, not by analyzing optical flow.
- Leveraging "Lucky" Frames: The paper notes that moiré patterns can vary in strength across frames. Their approach can leverage frames with less severe moiré to help restore frames with more significant artifacts.
- Multi-Scale Analysis is Crucial: The multi-scale region-level relation loss is shown to be more effective than a simple pixel-level loss, suggesting that considering different spatial contexts is important for robust temporal consistency.
Key Results
- Frame-Level Performance: Their baseline model (Ours_S) outperforms single-image demoiréing methods like MBCNN [55] and DMCNN [40] in terms of LPIPS, PSNR, and SSIM.
- Video-Level Performance:
- The full method (Ours) significantly improves temporal consistency compared to single-frame methods (Ours_S) and methods without temporal constraints.
- Their relation-based temporal consistency loss (Ours+M) achieves better results than flow-based consistency regularization (Ours+F), which often degrades frame-level quality.
- In user studies, a significant majority of participants preferred the results from their proposed method (Ours+M) over other baselines. For example, 42% preferred Ours+M over the basic relation-based loss (Ours+R), and only 9% preferred the flow-based method (Ours+F) over Ours+M.
- The multi-scale relation-based loss (Ours+M) maintains frame-level quality (LPIPS) while improving temporal consistency.
Limitations and Future Work
- Alignment Challenges: Perfectly aligning videos captured with different camera viewpoints remains difficult.
- Generalization Issues: The model might struggle with data from new devices (different ISPs, Bayer filters) or screens (different resolutions).
- Dataset Expansion: The authors suggest that expanding the dataset to include more diverse capture conditions would be a valuable future direction.
- Application to Other Tasks: They note that the relation-based loss is generic and could potentially be applied to other video tasks like stabilization.
Summary updated