How a Phone Decides What to Blur in a Portrait
Depth estimates and subject segmentation shape the soft edges of a computational portrait.

A phone can create portrait blur by estimating which parts of the picture lie at different distances, identifying the subject, and applying a different amount of blur to each region. Those estimates may come from a stereo pair, a depth sensor, a segmentation model, or evidence in a single image. Fine hair, glass, and a textured background can reveal where the phone was unsure.
Depth and subject identity solve different problems
Look at a person seated in front of a bright window with a cup held near their shoulder. A useful portrait effect needs to keep both the person and cup readable if they belong to the intended subject. A depth measurement can suggest that they are at approximately the same distance from the camera. Subject segmentation can independently say that the cup is a separate object, including when it appears to touch the person's outline in the picture. A phone can use both observations in deciding what looks like a useful finished portrait.
In a two-view depth system, structures shift between views depending on their distance. Hold a finger in front of a bookshelf and look at it alternately with each eye. It appears to shift against the books, with a nearby finger shifting more than a distant object. A computational camera can match features between slightly different viewpoints and use those shifts to estimate relative depth. A small baseline gives smaller shifts than the distance between your eyes, so distances and the texture available for matching affect the result.
A dual-pixel sensor can provide slightly different views through opposite sides of a lens. Another approach uses separate cameras, which may see a larger difference in position but also have different optics or exposure. Each method has to find equivalent image features across views. A blank painted wall gives relatively few anchors, while repetitive wallpaper can offer numerous plausible matches. A segmentation system contributes evidence from the apparent shapes and textures in the main image. Google's explanation of its Pixel 2 portrait implementation describes an early combination of dual-pixel depth and segmentation.
How a blur transition is put back into the picture
Think of a depth map as a layer of estimated distance values aligned with the photo. The software chooses a region to appear in focus and uses the layer to vary the amount of blur at other points. A separate mask can help handle details around the intended subject. A rendering system has to decide how pixels spread together without drawing a ring of background color around hair or allowing an out-of-focus bright backdrop to smear unnaturally over the eyes.
The scene partly determines how hard that is. A background with smooth tones can hide small defects in the boundary. Bright pinpoints can show exactly where the blur begins because each turns into a visible soft shape. A fence with repeated lines can expose a change in the distance map if one line remains sharp between two softened ones. Think about the most conspicuous features in the finished frame before making the software blur a very busy backdrop strongly.
Foreground blur also deserves attention. Holding a flower close to the lens while focusing on a person behind it gives an optical camera a foreground layer. A portrait effect oriented toward isolating the person may handle that geometry differently from a simple arrangement with only a far background. Photograph the same scene without portrait processing and match the size of the subject in both images where possible. This gives you a way to tell whether a difference follows the camera viewpoint or the simulated focus.
Find the two boundaries in the result
One boundary is between the subject and the space behind it. Another separates near and far parts of the scene. A phone can do a convincing job with the first boundary and still use a fairly uniform blur on a long background. That is enough for a clean-looking profile picture. It may become apparent in a sequence where several objects sit at different distances and remain similarly out of focus.
A dedicated lens creates transitions shaped by the aperture and optical focus. The phone can imitate some qualities of that effect, along with producing an adjustable version later. When it has a poor mask, applying more blur can exaggerate a halo. Check the edges that are important in the final crop before turning the strength up.
Make a small scene that tests depth
Put a textured subject a short distance in front of a series of objects arranged diagonally into the background. A person in front of a wall covered in fine leaves works too, although it can be harder to keep them still. Capture an ordinary reference and a portrait-mode version. Compare the pattern of blur at three distances and inspect the overlap points.
Next put a clear object in front of an opaque subject. Glass can reveal how the pipeline assigns a distance to reflected or transmitted details. If the phone smooths part of the glass in the same way as the background, the boundary may change across exposures. Separate these bright outline mistakes from general lens sharpness using the reference image.
Inspect details that cross more than one layer
Eyeglasses, a bicycle's spokes and the spaces between fingers are useful tests because they combine fine edges with gaps. A subject mask may regard a region between those outlines as part of the central object even though through the gap you see a far surface. A rendering can also soften too much of a thin edge if the subject-mask transition is broad. Look at the image at ordinary viewing size first. Then zoom in to identify which boundary caused the distracting feature.
You can test the difference between depth and segmentation with a row of objects on a table. Put a tall object approximately even with the subject and another behind that plane. Keep their shapes distinct against the backdrop. If the nearer object remains sharp and the farther one is softened, the effect preserves useful depth information for that arrangement. If both receive similar blur whenever they fall outside the subject's outline, a reader should interpret the look as a selective background effect.
Motion can add failures of its own. The phone may use more than one frame or align information from multiple sensors. Blinking, hair crossing a face, or a subject's hand moving rapidly can leave detail in a position that does not align cleanly with the rendering. Try a brief series with a steady subject and then a second series while they move. If the fault appears mainly during movement, improving light or changing timing can make more difference than adjusting the blur strength afterward.
Make the camera’s job easier with distance and light
Keep a useful separation between the subject and background and increase illumination on areas that carry fine boundaries. Hair can be easier to separate from a contrasting backdrop. A neutral uncluttered background can make a mask error much less visible, even if it does not change the result internally. Consider a small change in position first because it affects the actual scene and the reconstruction.
In casual use, your standard camera mode is a good fallback. Save an ordinary version when the outline contains unusual accessories, glass, or motion. Later choose from two intact captures instead of trying to recover areas that have been heavily altered.
Judge the effect at the size people will see it
Set the portrait preview to about the size of its actual use. A small profile image can tolerate blur estimates that look rough at one-to-one magnification. A large print with a bright rim around dark hair makes them easier to spot. Compare a modest setting with a stronger one on the same crop. Give particular attention to eyes, jawline, gaps in hair and any object edge that carries the meaning of the image.
If the portrait stays behind a background pattern you need to retain, set up the shot so the pattern is readable in an ordinary capture. Think about what that background tells the reader. The bookshelves in a portrait of a maker may matter as much as one distracting ceiling light. Choose a moderate effect when specific context belongs in the picture and inspect what happens to the recognizable objects near the subject.
A sequence intended for a single album gives another reason to control the scene. Differences in blur strength between adjacent frames can make it look as though locations changed. Set a consistent subject distance and backdrop when those images need to appear together, and check for edits that call attention to one frame.
Check what the exported photo contains
Some phone workflows preserve enough portrait information to adjust the effect inside a compatible library. A sharing app can render and flatten the image. Treat the editable library item and the delivered photo as different things. Test the export route before promising you can change blur after handing over a file.
Open the exported version in another viewing application. Inspect the dimensions and appearance, and see whether its controls offer the same editable effect as the original library. If you're relying on an alternate library format or a transfer between devices, verify that route as well. Increasing blur after export typically requires a new editing pass when the recipient only has the rendered pixels. Having the original makes it easier to change the background treatment without first overcoming an existing layer of blur.
For archival work, keep an original or unblurred photograph when it matters, and keep the version you showed alongside it. You can still use portrait mode for its speed while preserving context about what was photographed and what the processing added.




