Independent, human-led AI journalism
AI News. Emerging Technologies.
Expert Analysis.
Big Tech

How a Pixel finds stars you can barely see on its screen

Prop a Pixel against something steady and a nearly blank viewfinder can give way to a sky full of stars. The camera has to gather faint light without turning every bright speck into a star.

Stuart Kerr ·

AI robot using a Google Pixel smartphone mounted on a tripod to photograph stars beneath a spectacular night sky.
Google's computational photography technology helps reveal faint stars that are difficult to see on a smartphone screen.

Pixel astrophotography starts with an odd experience for anyone used to trusting a phone’s screen. Frame a dark landscape and the preview may show little more than grey. Leave a supported Pixel steady in Night Sight and the finished photograph can contain stars, silhouettes and detail that were all but invisible when you pressed the shutter. The preview and the finished picture have had very different amounts of time to collect light.

There is no single trick behind that transformation. The camera has to accumulate a faint signal, keep points of light from stretching into trails, reject misleading bright dots from its own sensor and decide how bright a night sky ought to look on a screen. Google’s research account of Night Sight on early Pixel phones explains those decisions unusually clearly. Its design figures describe that generation of the feature. The practical controls depend on the phone in your hand.

Why Pixel astrophotography needs a place to rest

Start with something you can test in daylight. Aim a camera at a distant object, then move the phone while the shutter is open. Light from the same part of the scene falls in different places on the sensor as the camera moves. At night the problem becomes much harder because the camera needs time to gather light from a faint star. What feels like holding still can be quite a considerable movement at that scale.

A wall, a tripod or another stable support gives the camera a fixed view while the photographer steps back. It also changes how you compose the shot. If you lean the phone against a bench, check whether part of the bench fills the bottom of the frame. A good support can make a technically sharp photograph of something you had no intention of including. A timer gives movement from tapping the shutter a chance to settle.

Google’s current Pixel Camera instructions recommend moving away from artificial lights, choosing a clear sky and keeping the device steady. Those choices solve different problems. A support limits camera movement. A darker site improves the contrast between stars and the sky around them. Clear weather lets the light through in the first place. There is little point fine-tuning the focus on a cloud bank that hides the constellation you came to see.

The stars move even when the phone stays still

A tripod fixes the camera to the ground. The ground, of course, is moving with the rotating Earth. Leave the shutter open long enough and a star appears to trace a little line across the image. That is a perfectly legitimate photograph if trails are what you want. It is an awkward outcome when the point of the exercise is to show stars as distinct points above a recognisable landscape.

Google’s engineers described dividing a long capture into shorter exposures. For the implementation they documented, each component frame could run to sixteen seconds, with up to fifteen frames contributing to a photograph. Multiplying those figures gives four minutes at the longest setting described. It would be a mistake to take that as a promise that every Pixel exposure lasts exactly four minutes. The important distinction is between the total waiting time and how long each individual frame records the sky.

Combining frames gives the camera repeated observations of broadly the same scene. Real features recur in predictable places once the images are aligned, while some of the noise varies from frame to frame. The method is well suited to a distant landscape that holds its shape. A branch swinging against the sky or a person crossing the foreground is a different subject by the time the next frame arrives. Choose those elements for the movement they will contribute, or frame them out.

Think about what you hope to keep from the scene. A row of bare trees can provide a lovely edge to a sky photograph on a still evening. On a windy one, a stone wall or the outline of a roof may provide a much clearer foreground. That choice is available before any software gets involved. Moving a few steps can do more for the final image than changing a setting you barely understand.

Some bright dots come from inside the camera

The most interesting impostor in this process is a bright pixel that looks as though a star put it there. During a long exposure the sensor can register a signal even in darkness. Some pixels are more prone to this than their neighbours. A tiny pale mark in a night picture can therefore originate in the camera itself, a particularly awkward fault when tiny pale marks are precisely the subject of the photograph.

In the system Google described, the software looked for unusual values in relation to neighbouring pixels and across frames. A suspect value could be replaced using its neighbours. That entails a real choice about the image. Preserve every recorded value and a defect can masquerade as a star. Suppress isolated bright values too readily and the details a photographer hoped to capture become harder to preserve.

The same distinction matters when discussing what an edited photograph can prove. A photograph may be based on light that arrived from a scene while still reflecting extensive decisions about which observations to combine and which to discard. Understanding the process is more informative than dividing pictures into those that are somehow untouched and those that have been processed. Here the processing helps make a very faint observation visible at all.

One way to see why this matters is to enlarge a patch of sky until individual dots are easy to inspect. Their appearance alone gives the viewer very little to go on. The camera had access to something the person inspecting the finished file has lost, namely a sequence of observations from which to decide whether a bright point belonged in the picture.

The phone can brighten the picture too successfully

A night sky rendered unusually bright can make a landscape feel as though it was photographed in daylight. In its technical account Google describes using machine learning to distinguish sky from the rest of the scene. Once the software has identified those areas, it can darken the sky selectively or change the contrast there without treating the entire foreground in the same way.

That is a different job from locating each individual star. A system good at identifying the boundary between land and sky can influence the character of the photograph without possessing an astronomer’s knowledge of constellations. Likewise, a detailed picture gives you a record to look at, but identifying the objects in it is a separate task. The strongest clue to what a feature does is the problem its designers say they set out to solve.

It is also a different use of a sequence of images from Pixel’s Best Take for group photographs. In a family portrait the photographer may care about a particular expression captured at a particular instant. In the night landscape the aim is to assemble enough light over time to render a static scene clearly. Both can produce a single image in the gallery, yet “when was this picture taken?” has a somewhat different answer in each case.

What to try when the preview is almost blank

Frame a familiar shape against the sky, then give the camera time to show you more than its first preview. Google’s account describes displaying a longer-exposure view after capture has begun. That can reveal a roofline, a fence or an unwanted light you could not see on the initial screen. If the composition is wrong, it is reasonable to start again. A test frame has done its job if it shows where to put the next one.

If the result disappoints, examine what actually went wrong before trying again. A sharp roof under a nearly featureless bright sky suggests a different problem from a blurred roof and smeared lights. If the camera chose a nearby object to focus on, the Pixel guidance describes a far-focus option on supported devices. If the scene itself is moving or clouds are sweeping in, focus is unlikely to give you the picture you imagined.

There is a pleasing reversal here for anyone accustomed to using a phone camera as a live visual assistant. The important information comes from leaving the camera alone. Choose a patch of clear sky, give the phone somewhere solid to sit and let successive glimpses accumulate. The faint stars were in front of the lens when the preview looked empty. What the finished photograph has that the preview lacked is time.

About the Author

Stuart Kerr is Technology Correspondent at LiveAIWire, covering artificial intelligence, cybersecurity and the social impact of emerging technology. LiveAIWire is an independent, human-led technology publication using AI-assisted research, editorial production and original AI-assisted editorial illustrations under his direction.