How AI Transformed Your Phone Camera's Portrait Mode
In this article
AI has completely changed portrait mode on your phone. Instead of relying on dual lenses and guesswork, modern phones use machine learning to detect edges, separate the subject from the background, and simulate a shallow depth-of-field effect that looks like it came from a DSLR. The result: sharper subject outlines, realistic background blur, and even the ability to adjust focus after you've taken the shot. Here's how to get the most out of it.
What You'll Need
- A smartphone with a portrait mode feature (most phones from the last 3–4 years have it, including iPhones, Samsung Galaxy, Google Pixel, and others).
- The latest operating system update installed—AI features improve with software updates.
- Good lighting—AI edge detection works best in well-lit scenes, though it can still handle low light with some noise.
Step-by-Step
- Open the camera app and swipe to the "Portrait" mode (on some phones it's called "Portrait" or "Depth"—the icon usually shows a person's silhouette). If you're using an iPhone, it's in the carousel at the bottom; on Android, it's often in the mode list above the shutter button.
- Frame your subject—a person, pet, or object—so they occupy about 60–70% of the frame. The AI needs enough pixels to analyze the subject's edges. Keep the subject at least 2–3 feet away from the camera; too close and the AI may struggle to separate the subject from the background.
- Tap on the subject's face (or the main object) on the screen to lock focus. This tells the AI what to treat as the foreground. On most phones, a yellow or white box appears, and sometimes a depth map is shown in real time.
- Wait for the AI to finish processing—you'll often see a brief "depth effect" or "portrait" indicator. Some phones show a live preview of the blur; others process it after you tap the shutter. Don't move the phone during this moment.
- Take the photo by pressing the shutter button. Hold still for a second after the shot—many phones continue capturing depth data for a few milliseconds after the shutter.
- Open the photo in your gallery and look for an "Edit" or "Adjust" option. On iPhones, tap "Edit" and then the portrait icon (f/stop symbol) to change the blur amount or switch between "Natural Light" and other lighting effects. On Android, look for "Portrait" or "Depth" controls—some allow you to move a slider for background blur, or even refocus on a different point.
- Adjust the blur level to your taste. The AI has already separated the subject, so you can increase or decrease the simulated aperture (like f/1.4 for heavy blur, or f/8 for sharper background). You can also remove the blur entirely if you prefer a sharp background.
- If your phone supports it, try the "refocus" feature—tap on a different part of the photo (like a background object) and the AI will recalculate the depth map, making that object sharp and the original subject blurry. This only works if the phone saved the depth map, which most modern phones do automatically in Portrait mode.
Common Mistakes
- Subject too close to the camera—AI needs a little distance to compute depth. If you're closer than about 2 feet, the edges get mushy and the background blur looks artificial.
- Busy backgrounds—a background with lots of similar colors or patterns (like a hedge or a crowd) confuses the AI. It may cut out parts of the subject or leave gaps in the blur.
- Shooting in low light—AI edge detection relies on contrast. In dim conditions, the subject blends into the background and you'll see halos or jagged edges.
- Forgetting to tap to focus—if you don't tap, the camera may pick the wrong subject, especially in group shots.
- Editing the wrong photo—some phones only save the depth map for the original portrait shot, not for duplicates or edited versions. Edit the original file.
Tips
- Use the AI's "portrait lighting" effects (like Studio Light or Contour Light) sparingly—they can look great but sometimes over-process the face. Start with "Natural" and adjust from there.
- For pets or objects, most modern phones support Portrait mode on non-human subjects. If your phone doesn't, try using the regular photo mode and then apply a "background blur" effect in the built-in editor—AI will still do the separation.
- Take a backup regular photo too—just switch to Photo mode and shoot the same scene. If the AI messes up the depth map, you have a clean shot.
- Update your phone's software regularly—AI algorithms improve with each update, and older photos can sometimes be re-processed with better edge detection.
- Use the "depth" or "portrait" slider in editing—even if you didn't shoot in Portrait mode, some phones (like Google Pixel) let you add blur to any photo using AI. Look for "Blur" or "Depth" in the editor.
Troubleshooting
- Portrait mode isn't available—check if your phone has the feature at all. If not, you can't enable it; but you can use third-party camera apps that simulate depth with AI, though results vary. Stick to official apps from your phone maker or well-known camera apps from the app store.
- The subject's edges look jagged or have a halo—this is a depth map error. Try retaking the photo with better lighting and a cleaner background. If the photo is already taken, you can sometimes manually erase the background in editing apps, but that's time-consuming.
- Background blur is too strong or too weak—go to the edit screen and adjust the blur slider. If the slider isn't there, your phone may have saved the photo as a regular image without depth data. Retake and check that you're in Portrait mode.
- The phone focuses on the background instead of the subject—tap directly on the subject's face before shooting. If it still fails, move the subject to a more central position.
- Portrait mode photos are blurry overall—the AI might have misread the depth and applied blur to the subject too. Check if your phone has a "focus" or "sharpness" adjustment in the editor. If not, retake with a steadier hand.
- No "refocus" option in editing—not all phones support this, even if they have Portrait mode. Check your phone's manual or help section to see if it's a feature. If not, you can't add it.
Frequently Asked Questions
Does AI portrait mode work on animals and objects?
Yes, most modern phones (iPhone, Pixel, Samsung) support Portrait mode on pets and objects. The AI detects the subject's shape and separates it from the background, though accuracy is lower than with human faces.
Can I remove the background blur after taking the photo?
Yes, if your phone saved the depth map. In the editing screen, look for a "Portrait" or "Depth" control and slide the blur to zero. This works on most phones that have Portrait mode.
Why does my portrait photo look fake?
Fake-looking blur usually comes from poor edge detection—often due to low light or a busy background. Try shooting in daylight with a simple background. Also, reduce the blur strength in editing; the AI's default is sometimes too aggressive.
Does AI portrait mode work in low light?
It works, but with reduced accuracy. The AI relies on contrast to find edges, and in low light, noise and lack of detail can cause jagged edges or missing parts. Use a flash or a well-lit area for best results.
Can I use portrait mode for a group of people?
Yes, but the AI may struggle to keep everyone in focus. It usually picks the closest person as the subject and blurs the rest. Some phones have a "group portrait" mode that tries to keep all faces sharp—look for that option.
Does editing a portrait photo reduce its quality?
No, editing the depth map (blur or refocus) doesn't reduce image resolution. However, applying filters or cropping may reduce quality depending on how much you change. The depth map is stored separately and doesn't affect the original pixels.