Raindrops adhering to a window or camera lens present a significant challenge for computer vision systems, particularly in critical applications like autonomous driving and outdoor surveillance. These droplets act as complex, miniature lenses that distort or completely occlude background information. While deep learning has advanced single-image "deraining," these methods often struggle with the unpredictable shapes and textures of real-world raindrops.
Researchers from the Tokyo Institute of Technology have introduced a novel hardware-software co-design in their paper, "Dual-Pixel Raindrop Removal." By utilizing the unique properties of Dual-Pixel (DP) sensors—standard hardware in most modern smartphones—the team demonstrates a method to detect and remove raindrops with unprecedented physical accuracy and robustness.
The Problem: The Limitations of Single-Image Deraining
Traditional raindrop removal algorithms rely on a single RGB image. This approach is fundamentally ill-posed for two reasons:
- The Domain Gap: Algorithms trained on synthetic raindrops often fail when encountering real-world droplets with irregular shapes, varying thicknesses, or dynamic flow patterns.
- Information Loss: A raindrop physically blocks the light from the background. Once a drop is detected, a single-image algorithm must "hallucinate" or guess the missing texture. For large or dense droplets, there is often insufficient local information to reconstruct a sharp, accurate scene.
The Dual-Pixel Advantage
Dual-Pixel (DP) sensors provide a unique solution. In a DP sensor, each pixel is split into two photodiodes (left and right). This configuration allows the camera to capture two slightly different sub-aperture views of the scene simultaneously. The researchers exploit two key physical properties of this setup:
1. Disparity as a Detection Cue
Because raindrops on a glass surface are typically very close to the lens, they are heavily out-of-focus. In DP sensors, out-of-focus objects exhibit a noticeable horizontal shift (disparity) between the left and right sub-images. Conversely, the in-focus background has nearly zero disparity. This physical cue allows the system to pinpoint raindrops based on their depth rather than just their visual appearance, making the detection stage highly robust to "unseen" raindrop shapes.
2. Redundancy for Background Restoration
The DP sensor provides a micro-stereo view of the world. Because the raindrops are shifted between the left and right views, a background region occluded by a drop in the "left" image may be partially or fully visible in the "right" image. By fusing these two views, the system can "see around" the raindrop, using real captured data to restore textures rather than relying on generative guesswork.
The DPRRN Architecture
The proposed DP Raindrop Removal Network (DPRRN) operates in a two-stage pipeline:
- DP Raindrop Detection: The network analyzes the disparity between the DP pairs to generate an accurate raindrop mask. This stage leverages the physical property that raindrops are closer to the sensor than the intended focal plane.
- DP Fused Raindrop Removal: The network processes both the left and right views to remove the droplets. It then fuses the results, utilizing the redundant information from the two sub-images to restore high-frequency background details that would be lost in a single-view approach.
Data and Methodology
To train the network, the authors developed a hybrid Synthetic-to-Real Pipeline. Since no large-scale DP raindrop dataset existed, they captured 613 real-world clean backgrounds using a Google Pixel 4. They then applied a refraction model and calibrated Point Spread Functions (PSFs) to render synthetic raindrops that realistically mimic the behavior of DP sensors. This resulted in a training set of 2,452 image pairs. For evaluation, they created a real-world test set of 82 high-quality DP image pairs using real raindrops sprayed onto a glass panel.
Key Results
The DPRRN was benchmarked against state-of-the-art (SOTA) single-image restoration models, including MPRNet and Restormer, as well as existing DP-based deblurring methods.
- Quantitative Performance: On synthetic data, DPRRN achieved a PSNR of 42.70 dB, outperforming Restormer by 0.76 dB. On real-world data, the performance gap widened to 1.29 dB, highlighting the model's superior generalization to physical raindrops.
- Qualitative Quality: Visually, the DPRRN is significantly more effective at preserving fine structural details, such as window frames and distant foliage. It excels at removing long, flowing raindrops—a common failure point for standard algorithms that expect circular or elliptical drop shapes.
Conclusion and Future Directions
By shifting the problem from pure image processing to a sensor-aware approach, the authors have provided a more robust solution for all-weather vision. While the current implementation focuses on the green channel (due to specific hardware constraints of the Google Pixel 4 sensor), the researchers aim to extend this to full RGB processing in future iterations. Additionally, they suggest that combining this DP-based raindrop removal with rain streak (falling rain) removal could lead to a truly comprehensive solution for outdoor computer vision systems.
Summary updated