Introduction
Capturing digital screens with a camera often results in distracting "rainbow" ripples known as moiré patterns. These patterns arise from frequency aliasing between the camera's sensor and the screen's pixel grid. While single-image demoiréing has seen significant progress, video demoiréing introduces the critical challenge of temporal consistency. Processing frames independently leads to flickering or "crawling" artifacts.
Traditional temporal consistency methods rely on optical flow to align pixels across frames, but these often fail in demoiréing due to lighting changes, flow estimation errors in the presence of high-frequency moiré, and resulting motion blur. This paper introduces a framework that moves away from explicit optical flow, instead utilizing a baseline video demoiréing network paired with a novel relation-based temporal loss.
Methodology
Architecture
The network architecture consists of three primary components designed to handle alignment and restoration without the pitfalls of traditional flow:
- Pyramid Cascading Deformable (PCD) Module: This module implicitly aligns features from neighboring frames ($I^{t-1}, I^t, I^{t+1}$) without requiring explicit flow estimation.
- Pyramid Feature Aggregation (PFA) Module: PFA uses weighted sums to selectively aggregate information from aligned features. This allows the model to "borrow" clean patches from neighboring frames where moiré degradation might be less severe—a concept inspired by "lucky imaging."
- Demoire Module: A multi-scale CNN-based restoration network that produces the final demoiréd outputs across different scales ($O^t_{s_1}, O^t_{s_2}, O^t_{s_3}$).
Relation-Based Temporal Consistency Loss
The core innovation is the Relation-Based Temporal Consistency Loss. Instead of forcing pixel-wise identity between aligned frames (which causes blurring), this loss ensures that the relative change between frames in the restored video matches the relative change in the ground truth. By matching temporal relationships rather than absolute values, the model maintains high-frequency details while ensuring stability. Furthermore, a multi-scale region-level loss mimics human visual perception by looking at mean intensities of patches, making the model robust to minor misalignments.
The Video Demoiréing Dataset
To support this research, the authors curated the first dedicated video demoiréing dataset. It contains 290 videos (60 frames each) covering diverse scenes like landscapes, text, and animals. The data was collected by recording high-quality source videos on professional monitors using smartphones. A rigorous alignment pipeline involving homography and RANSAC was employed to ensure spatial and temporal synchronization between the recorded moiré frames and the original source frames.
Results and Evaluation
The proposed method achieves state-of-the-art performance both quantitatively and qualitatively. On the perceptual LPIPS metric, the model showed a 22% improvement over the leading image-based method, MBCNN.
Qualitatively, the results exhibit significantly sharper textures—such as blades of grass or fine text—and reduced flickering compared to flow-based or single-image baselines. In a blind user study, over 75% of participants preferred the results of this relation-based approach. The model also demonstrated strong generalizability when tested on hardware configurations (different cameras and screens) not seen during training.
Conclusion
By shifting the focus from pixel identity to temporal relations, this work provides a robust solution for video demoiréing. The combination of implicit alignment via PCD and the novel relation-based loss effectively eliminates moiré patterns while preserving fine details and ensuring temporal stability. This approach holds potential for other video restoration tasks where traditional flow-based consistency remains a bottleneck.
Summary updated