Halide Does Deep Dive Into iPhone SE's Software-Based Portrait Mode

Though it is a budget device with a single-lens camera, the iPhone SE features support for Portrait Mode, enabled through the powerful A13 chip in the smartphone.

iphonesehandson
It is the first of Apple's smartphones to offer Portrait Mode photos created entirely with software techniques rather than hardware, which prompted the developers behind popular iOS camera app Halide to take a deep dive into how it works.

The ‌iPhone SE‌ is equipped the same camera sensor as the iPhone 8, based on a recent teardown done by iFixit, but its camera can do more because it's using "Single Image Monocular Depth Estimation," aka generating Portrait Mode effects using a 2D image.

As Halide developer Ben Sandofsky points out, the ‌iPhone‌ XR is also a single-lens camera with Portrait Mode support, but the ‌iPhone‌ XR gets depth information through hardware. That's not possible on the ‌iPhone SE‌ because the older camera sensor doesn't support the feature.

Halide has discovered that unlike other iPhones, the ‌iPhone SE‌ can take a picture of another picture to attempt to develop a depth map. The app was even able to take a photo of an old slide film, adding depth effects to a 50 year old photo.

halideoldphoto

A picture of a picture and the resulting depth map from the ‌iPhone SE‌

The ‌iPhone SE‌'s Portrait Mode is somewhat limited because it only works with people, which is due to the neural network that powers the feature. When a Portrait Mode image without a person is captured, it fails in various ways because it can't create an accurate estimated depth map.

The ‌iPhone‌ XR also limited Portrait Mode to people alone, and using Portrait Mode with other objects requires upgrading to one of Apple's more expensive phones.

According to Halide, depth maps on the ‌iPhone SE‌ (or any phone with Portrait Mode) can be viewed by using the Halide app and then shooting in Depth mode. Halide's full breakdown of the ‌iPhone SE‌'s Portrait Mode can be read over on the Halide website.

Related Roundup: iPhone SE
Tag: Halide
Buyer's Guide: iPhone SE (Don't Buy)
Related Forum: iPhone

Top Rated Comments

luvbug Avatar
48 months ago

Could you have used a nicer pic? lol
She's probably the author's (Halide's) grandmother. Take a break, you'll be old too, sooner than you can imagine.
Score: 21 Votes (Like | Disagree)
AngerDanger Avatar
48 months ago

Could you have used a nicer pic? lol
As you wish. :)



Attachment Image
Score: 18 Votes (Like | Disagree)
NickName99 Avatar
48 months ago

This is wildly impressive.
Agreed - this is far more impressive than most people realize. The Pixel phones and the iPhone XR achieve this with a single lens by leveraging focus pixels to generate a depth map from available 3D information. The SE doesn’t have enough focus pixels for that, so it’s relying purely on machine learning, building a depth map from 2D information.

I’m surprised it was more cost effective to do it this way rather than just make the changes necessary to fit the XR rear camera module. That really speaks to the expense of retooling manufacturing.
Score: 10 Votes (Like | Disagree)
farewelwilliams Avatar
48 months ago
Theoretically, you should be able to extract frames from a video, apply neural network from Portrait Mode on to each frame, and stitch it back into a video.

Highly likely iOS 14 will have Portrait Mode for video. Would be only enhanced with Lidar too. This will take cinematography on a smartphone to a whole new level.
Score: 9 Votes (Like | Disagree)
NickName99 Avatar
48 months ago

I had assumed the criticism was because the image is low resolution and blurry, making it a poor test image.
I‘d say the worse the quality of the photo (resolution and sharpness), the more impressive that it works.
Score: 8 Votes (Like | Disagree)
JSRinUK Avatar
48 months ago

wonder if it works on pets... or if it will in the future
Hoping that no one minds a photo of me here, but I did a test photo when playing with my dog yesterday.

I'm not sure how the portrait mode works, but I was quite impressed that both myself and my dog are in focus.



Attachment Image
Score: 6 Votes (Like | Disagree)

Popular Stories

iPhone 15 General Feature Black

New iOS Features Coming in 2024 for Messages, Apple Music, and More

Thursday December 28, 2023 7:30 am PST by
2024 is just a few days away, and there are many iOS 17 and iOS 18 features that are expected to launch throughout the year. Below, we have recapped new iOS features expected in 2024, including Stolen Device Protection, collaborative Apple Music playlists, AirPlay on hotel room TVs, app sideloading in the EU, next-generation CarPlay, roadside assistance via satellite outside of the U.S., RCS ...
iOS 17

iOS 17.3 Will Add These Two Useful Features to Your iPhone

Sunday December 24, 2023 8:59 am PST by
Apple released the first beta of iOS 17.3 earlier this month, and the upcoming software update includes two new features so far. iOS 17.3 will likely be released in January like iOS 16.3 and iOS 15.3 were, but February is also a possibility if testing is prolonged. Below, we provide additional details about the new features in iOS 17.3 so far. Stolen Device Protection Earlier this...
iPhone 17 Five Features Header

iPhone 17: Five Features Apple Plans to Save for 2025

Thursday December 28, 2023 2:00 am PST by
Apple's iPhone development roadmap runs several years into the future and the company is continually working with suppliers on several successive iPhone models concurrently, which is why we sometimes get rumored feature leaks so far ahead of launch. The iPhone 17 series is no different, and already we have some idea of what to expect from Apple's 2025 smartphone lineup. If you plan to skip...
Mac Gaming

Apple Discusses Push Towards High-End Mac Gaming in New Interview

Thursday December 28, 2023 6:19 am PST by
Inverse's Raymond Wong today published an in-depth overview of Apple's increasing push towards high-end gaming on the Mac. The story includes commentary from Apple marketing managers Gordon Keppel and Leland Martin. One of the biggest reasons that gaming has improved on the Mac in recent years is the switch from Intel processors to Apple silicon, resulting in MacBooks providing...
Apple Watch Series 9

Apple Watch Series 9 and Ultra 2 Available in Apple Stores Starting Today, Online Sales to Resume Tomorrow

Wednesday December 27, 2023 2:28 pm PST by
Apple Watch Series 9 and the Apple Watch Ultra 2 are back in some of Apple's retail stores in the United States today, according to Bloomberg's Mark Gurman. Select stores will have availability today, while all stores will have the Apple Watch models back in stock by December 30. Online sales of the devices are set to resume tomorrow by 12:00 p.m. Pacific Time. Apple is able to begin selling ...
iPhone 15 Blue Three Quarters Perspective Camera Closeup Feature

6 Essential iPhone Camera Tips for Taking Great Photos

Tuesday December 26, 2023 3:00 am PST by
Apple's iPhones include several headline camera features that are worth using, such as Portrait Mode and Photographic Styles. But if all you want to use is the standard photo mode, there are still several tools and settings that can improve the composition of your pictures and help you capture the perfect shot using more traditional techniques. Whether you are the owner of a new iPhone or a...
Apple Watch Series 9

Apple Watch Series 9 and Ultra 2 Sales Ban Paused by US Appeals Court

Wednesday December 27, 2023 8:49 am PST by
The ban on imports of Apple Watch Series 9 and Apple Watch Ultra 2 models has today been temporarily paused, meaning that the devices can now go back on sale for a short while longer in the United States. Apple filed an emergency request to the United States Court of Appeals following President Biden's decision to decline a veto on the sales ban, allowing it to take effect earlier this week. ...