Google Files Patent for Removing Lens Flare Without Deleting the Sun
Lens flare, those streaks and blobs that cut across a sunset photo, is usually fixed by hand. Google's filing teaches an AI to erase it, then put the sun back where it belongs.

- Publication number
- US 2026/0390600 A1(US20260390600A1)
- USPTO patent title:
- Learning-Based Lens Flare Removal
- Applicant
- Google LLC
- Filed · Published
- Aug 17, 2026 · Dec 3, 2026
- Inventors
- Yicheng Wu, Qiurui He, Tianfan Xue, Rahul Garg, Jiawen Chen, Jonathan T. Barron
- Status when we published
- Waiting for an examiner
- Document
- 20 claims
- US classification
- 382/157
- Parent application
- Continuation of 18/734,000 (filed Jun 5, 2024)(18734000)
What Google's lens flare remover does
Imagine you're photographing a sunset, and bright streaks and blobs slash across the frame, right over the mountains you wanted to show off. That's lens flare, and it shows up whenever a camera points at a strong light.
Google's patent application describes a way to erase it automatically, so nobody has to fix it by hand in an editing app. The AI behind it practices on clean photos with fake flare layered on top, so it always knows what the right answer looks like.
There's a catch: an AI that wipes out flare can wipe out the sun too. So the system also finds the brightest spots in your photo and pastes the original light back in. And if you'd rather keep a little glow, it can turn the flare down or change its color instead of deleting it.
… generating a modified version of the input image by combining (i) first masked image data generated based on the input image and the light source mask and (ii) second masked image data generated based on the de-flared image and an inverse of the light source mask …
Translation: The system blends the original sun back into the cleaned photo so the bright light source is not erased.
How the AI learns flare and keeps the sun
The system takes a photo with lens flare (streaks and blobs caused by light bouncing around inside the lens or scattering off dust and scratches) and runs it through an AI image model, a convolutional neural network. The output is a de-flared copy of the photo.
Training uses a shortcut. You can't switch a lens's flare off to shoot matched pairs, so the filing adds flare-only images (shot on a black background) to clean photos, then scores the AI's cleanup against the original clean photo with a loss function (a measure of how far off the answer is). The flare comes from two places:
- Computer simulations of a camera with imagined dust and scratches.
- Real photos of a light, taken as the camera swings from -50 to +50 degrees, one shot per degree.
Claim 1 covers the final step. The AI can erase the light itself too, so a light source mask (a map of pixels brighter than a cutoff, with soft edges) keeps the original sun and uses the cleaned image everywhere else. The filing also describes dialing flare up, down or recoloring it.
The machine learning (ML) model may be trained by generating training images that combine respective baseline images with corresponding lens flare images.
Translation: The AI is taught by feeding it clean pictures and artificially adding bright glare to them.
Why cleaner flare fixes matter for phone cameras
If this ended up in a phone camera, you could shoot toward a sunset or a street light and get a photo without the streaks, with no editing app and no skill required. The filing describes the manual fix as slow and demanding, and says older automatic approaches that look for flare shapes perform poorly. The flare dial is also handy if you like a bit of glow but want it softer or a different color.
The filing traces back to an application from 2020, and it says the method needs no special hardware such as stereo cameras: it works on a single ordinary photo. That keeps it open to any camera, from phones to laptops, and to software that fixes photos after they're taken.
Google has filed its 92nd application we've tracked since May in the AI photo editing race, following work like fixing blur in video and removing strangers from photos.
Source: US 2026/0390600 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.
Get our take in your Top Stories
Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time Google patent news breaks.
We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.
The drawings · 9 sheets
9 drawing sheets from US 2026/0390600 A1 · click any drawing to enlarge

No comments yet