Skip to main content

This is how Google uses machine learning to make Portrait Light happen

More ways to make your photos look more professional.

What you need to know

  • Portrait Light is a feature that was announced alongside newer Pixel phones.
  • Google set up a light rig to demonstrate various lighting angles.
  • Machine Learning utilized information from a large data set to learn how to emulate various lighting conditions.

Google Pixel smartphones may not have the most powerful or versatile cameras in terms of hardware, but they more than make up for it in their use of software. Google uses computational AI to help boost images, making Pixels some of the best point-and-shoot smartphone cameras on the market. The Pixel 4a 5G and Pixel 5 both upped the ante, particularly with the addition of the new Portrait Light feature.

Google details in a blog post how Portrait Light allows the user to adjust the directional lighting of an image after the photo was taken. It's a feature that's automatically applied to photos of people, including Night Sight shots. It's similar to a studio light feature on the LG G8, which relied more on the hardware of the Time-of-Flight sensor of the selfie camera. Google's approach for the Pixels is entirely software-based, relying on models and machine learning.

Google engineers first had to train their model by presenting it with various examples of photos with different light intensities and directions. Even the model's head pose was taken into consideration, which allowed their model to learn about how light is applied to different faces and in different conditions.

Taking these variables into account, the model would render spheres based on the illumination profile of a photograph, including color, intensity, and directionality. Then by applying common lighting practices in photography such as key light and fill light, engineers were able to determine where to best apply synthetic lighting within an image. But that was just the first step.

Google's engineers also had to demonstrate these different synthetic lighting sources for the model to replicate. In order to do so, they utilized a Light Stage, which is a spherical rig equipped with over 300 LED lights and more than 60 cameras all placed at different angles. By capturing different people with different genders, skin tones, face shapes, and other variables, Google's engineers were able to model hundreds of different lighting conditions by capturing a different photo per individual light. Without getting into the nitty-gritty, Google was able to use the information from the Light Stage and apply it to different simulated environments.

Google Light Stage

When applied to the Portrait Light feature, it was important that the relighting effect be as efficient as possible. Portrait Light creates a light visibility map and uses this to help construct a low-quality version of the image when adjusting the lighting. Once selected, the algorithm is then upscaled and applied to the original high-quality image. This allows the model to run smoothly on your device, taking up very little space at just under 10MB.

The depths to which Google continuously improves its Pixel camera algorithm are quite impressive. Portrait Light is automatically applied to photos taken on the Google Pixel 4 and newer, and also works for pre-existing portrait photos taken on older Pixel smartphones like the Pixel 2 and up. Jump into Google Photos and see how you can improve the look of your portrait photos!

Get More Pixel 5

Google Pixel 5

$700 at Amazon $700 at Best Buy $700 at B&H



Source: androidcentral

Popular posts from this blog

The hidden cost of food delivery

Noah Lichtenstein Contributor Share on Twitter Noah Lichtenstein is the founder and managing partner of Crossover , a diversified private technology fund backed by institutional investors, technology execs and professional athletes and entertainers. More posts by this contributor What Studying Students Teaches Us About Great Apps I’ll admit it: When it comes to food, I’m lazy. There are dozens of great dining options within a few blocks of my home, yet I still end up ordering food through delivery apps four or five times per week. With the growing coronavirus pandemic closing restaurants and consumers self-isolating, it is likely we will see a spike in food delivery much like the 20% jump China reported during the peak of its crisis. With the food delivery sector rocketing toward a projected $365 billion by the end of the decade, I’m clearly not the only one turning to delivery apps even before the pandemic hit. Thanks to technology (and VC funding) we can get a ri

Cyber Monday Canada: Last-minute deals for everyone on your list

Best Cyber Monday Canada deals: Smart Home Audio Phones, Tablets & Accessories Wearables Laptops & PC Components Amazon products Gaming Televisions Cameras Lifestyle & Kitchen Toys & Kids Cyber Monday Canada is here, and retailers are rolling out the red carpet for customers who want to shop for everything from tech to kitchenware to games and everything in between. Unlike years past, Cyber Monday Canada deals look a bit different than normal. Instead of retailers trying to pack their stores with as many shoppers as possible, we're seeing tons of online deals that you can take advantage of from the comfort of your home. We've rounded up our favorites below, so feel free to browse through the best of what Canada Cyber Monday has to offer! This list is being updated with new Cyber Monday deals all the time, so check back often. Spotlight deals It's a Switch Nintendo Switch Fortnite Edition bundle $399.95 at Amazon It's a Switch.

iPhone 13 Pro vs. iPhone 15 Pro Buyer's Guide: 50+ Differences Compared

The iPhone 15 Pro brings over 50 new features and improvements to Apple's high-end smartphones compared to the iPhone 13 Pro, which was released two years prior. This buyer's guide breaks down every major difference you should be aware of between the two generations and helps you to decide whether it's worth upgrading. The ‌iPhone 13‌ Pro debuted in 2021, introducing a brighter display with ProMotion technology for refresh rates up to 120Hz, the A15 Bionic chip, a telephoto camera with 3x optical zoom, Macro photography and photographic styles, Cinematic mode for recording videos with shallow depth of field, ProRes video recording, a 1TB storage option, and five hours of additional battery life. The ‌iPhone 13‌ Pro was discontinued upon the announcement of the iPhone 14 Pro in 2022, but it is still possible to get hold of it second-hand. Our guide helps to answer the question of how to decide which of these two iPhone models is best for you and serves as a way to c

Slack’s new integration deal with AWS could also be about tweaking Microsoft

Slack and Amazon announced a big integration late yesterday afternoon. As part of the deal, Slack will use Amazon Chime for its call feature, while reiterating its commitment to use AWS as its preferred cloud provider to run its infrastructure. At the same time, AWS has agreed to use Slack for internal communications. Make no mistake, this is a big deal as the SaaS communications tool increases its ties with AWS, but this agreement could also be about slighting Microsoft and its rival Teams product by making a deal with a cloud rival. In the past Slack CEO Stewart Butterfield has had choice words for Microsoft saying the Redmond technology giant sees his company as an “existential threat.” Whether that’s true or not — Teams is but one piece of a huge technology company — it’s impossible not to look at the deal in this context. Aligning more deeply with AWS sends a message to Microsoft, whose Azure infrastructure services compete with AWS. Butterfield didn’t say that of course