IP Library Granted Patent US 12,412,255
Granted Patent B2
US 12,412,255 · App. 18/028,930 · Granted Sep 9, 2025

Enhanced photo relighting based on machine learning models

Inventors: Sean Ryan Francesco Fanello (San Francisco, CA); Yun-Ta Tsai (Los Gatos, CA); Rohit Kumar Pandey (Mountain View, CA); Paul Debevec (Culver City, CA); Michael Milne (San Mateo, CA); Chloe LeGendre (Culver City, CA); Jonathan Tilton Barron (Alameda, CA); Christoph Rhemann (Marina Del Rey, CA); Sofien Bouaziz (Los Gatos, CA); Navin Padman Sarma (Palo Alto, CA)
Assignee: Google LLC
G06T5/92G06T7/60G06T7/70G06T15/506G06T2200/24G06T2207/20081G06T2207/20084G06T2207/20092G06T2207/20208G06T2207/30201
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,412,255
App. No.
18/028,930
Filed
Mar 28, 2023
Granted
Sep 9, 2025
Kind
B2
Art Unit
2612
USPC
345/426
Abstract

Apparatus and methods related to applying lighting models to images of objects are provided. An example method includes applying a geometry model to an input image to determine a surface orientation map indicative of a distribution of lighting on an object based on a surface geometry. The method further includes applying an environmental light estimation model to the input image to determine a direction of synthetic lighting to be applied to the input image. The method also includes applying, based on the surface orientation map and the direction of synthetic lighting, a light energy model to determine a quotient image indicative of an amount of light energy to be applied to each pixel of the input image. The method additionally includes enhancing, based on the quotient image, a portion of the input image. One or more neural networks can be trained to perform one or more of the aforementioned aspects.

Claims (54)

1. A computer-implemented method, comprising:

determining, by a geometry model of a computing device, a surface orientation map based on a prediction of lighting on an object in an input image based on a surface geometry of the object;

determining, by an environmental light estimation model of the computing device, a direction of synthetic lighting to be applied to the input image to modify at least a portion of the input image;

determining, by a light energy model of the computing device and based on the surface orientation map and the direction of synthetic lighting, a quotient image indicative of an amount of light energy to be applied to each pixel of the input image; and

modifying, based on a product of the quotient image and the input image, the portion of the input image.

2. The computer-implemented method of claim 1 , wherein the determining of the direction of synthetic lighting comprises:

detecting, by the computing device, a pose of the object in the input image, and

wherein the determining of the direction of the synthetic lighting is based on the pose.

3. The computer-implemented method of claim 1 , further comprising:

generating, by the computing device and based on the surface orientation map and the direction of synthetic lighting, a light visibility map, and

wherein the determining of the quotient image is based on the light visibility map.

4. The computer-implemented method of claim 1 , wherein the modifying of the portion of the input image comprises:

determining, by the computing device, a request to modify the portion of the input image;

sending the request to request to modify the portion of the input image from the computing device to a second computing device, the second computing device comprising a trained neural network; and

after sending the request, the computing device receiving, from the second computing device, an output image that applies the quotient image to modify the portion of the input image.

5. The computer-implemented method of claim 1 , wherein the determining of the direction of synthetic lighting comprises:

receiving, by the computing device, a user preference for the direction of the synthetic lighting to be applied to the input image.

6. The computer-implemented method of claim 1 , wherein the object has a characteristic of diffusely reflecting light.

7. The computer-implemented method of claim 1 , wherein the computing device comprises a camera, and the method further comprising:

generating the input image of the object using the camera; and

receiving, at the computing device, the generated input image from the camera.

8. The computer-implemented method of claim 1 , further comprising:

providing the portion of the modified input image using the computing device.

9. The computer-implemented method of claim 1 , further comprising:

predicting an illumination profile of the input image using the environmental light estimation model; and

providing the predicted illumination profile using the computing device.

10. The computer-implemented method of claim 9 , wherein the prediction of the illumination profile comprises:

generating a high dynamic range (HDR) lighting environment based on low dynamic range (LDR) images of a plurality of reference objects, each of the reference objects having a respective bidirectional reflectance distribution function (BRDF).

11. The computer-implemented method of claim 10 , wherein the set of reference objects includes one or more of a mirror ball, a matte silver ball, or a gray diffuse ball.

12. The computer-implemented method of claim 1 , further comprising:

adjusting the quotient image to apply one or more of: (i) a first compensation for an exposure level in the input image, (ii) a second compensation for a brightness level in the input image, or (iii) a matting refinement to the input image.

13. A computing device, comprising:

one or more processors; and

data storage, wherein the data storage has stored thereon computer-executable instructions that, when executed by the one or more processors, cause the computing device to carry out functions comprising:

determining, by a geometry model of the computing device, a surface orientation map based on a prediction of lighting on an object in an input image based on a surface geometry of the object;

determining, by an environmental light estimation model of the computing device, a direction of synthetic lighting to be applied to the input image to modify at least a portion of the input image;

determining, by a light energy model of the computing device and based on the surface orientation map and the direction of synthetic lighting, a quotient image indicative of an amount of light energy to be applied to each pixel of the input image; and

modifying, based on a product of the quotient image and the input image, the portion of the input image.

14. An article of manufacture comprising one or more computer readable media having computer-readable instructions stored thereon that, when executed by one or more processors of a computing device, cause the computing device to carry out functions comprising:

determining, by a geometry model of the computing device, a surface orientation map based on a prediction of lighting on an object in an input image based on a surface geometry of the object;

determining, by an environmental light estimation model of the computing device, a direction of synthetic lighting to be applied to the input image to modify at least a portion of the input image;

determining, by a light energy model of the computing device and based on the surface orientation map and the direction of synthetic lighting, a quotient image indicative of an amount of light energy to be applied to each pixel of the input image; and

modifying, based on a product of the quotient image and the input image, the portion of the input image.

15. The computer-implemented method of claim 1 , wherein at least a part of one or more of the geometry model, the environmental light estimation model, or the light energy model is part of a machine learning model.

16. The computer-implemented method of claim 15 , further comprising:

training the machine learning model to perform one or more of: (1) predict the surface orientation map, (2) predict the direction of the synthetic lighting, or (3) predict the quotient image.

17. The computer-implemented method of claim 15 , wherein the machine learning model is trained to predict the surface orientation map, and the method further comprising:

predicting the surface orientation map by using the trained machine learning model.

18. The computer-implemented method of claim 15 , wherein the machine learning model is trained to predict the direction of the synthetic lighting, and the method further comprising:

predicting the direction of the synthetic lighting by using the trained machine learning model.

19. The computer-implemented method of claim 15 , wherein the machine learning model is trained to predict the quotient image, and the method further comprising:

predicting the quotient image by using the trained machine learning model.

20. The computer-implemented method of claim 15 , wherein the training of the machine learning model is based on a training dataset comprising a plurality of images of the object, wherein the plurality of images utilize a plurality of illumination profiles to illuminate the object.

21. The computer-implemented method of claim 15 , wherein the training of the machine learning model comprises training the machine learning model at the computing device.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 29, 2023
From: FANELLO, SEAN RYAN FRANCESCO; TSAI, YUN-TA; PANDEY, ROHIT KUMAR; DEBEVEC, PAUL; MILNE, MICHAEL; LEGENDRE, CHLOE; BARRON, JONATHAN TILTON; RHEMANN, CHRISTOPH; BOUAZIZ, SOFIEN; SARMA, NAVIN PADMAN
To: GOOGLE LLC
Reel/Frame 063150/0107 →
Continuity (2)
Provisional Application 63085529 · Sep 30, 2020
Related Publication 20230360182A1 · Nov 9, 2023
References Cited (36)
US 11585931B2 · Remelius · 2023 [cited by examiner]
US 20150035440A1 · Spero · 2015 [cited by examiner]
US 20150043806A1 · Karsch et al. · 2015 [cited by applicant]
US 20170262962A1 · Rad et al. · 2017 [cited by applicant]
US 20180253869A1 · Yumer · 2018 [cited by examiner]
US 20180359416A1 · Hold-Geoffroy et al. · 2018 [cited by applicant]
US 20190164261A1 · Sunkavalli et al. · 2019 [cited by applicant]
US 20190340810A1 · Sunkavalli et al. · 2019 [cited by applicant]
US 20200074674A1 · Guo et al. · 2020 [cited by applicant]
US 20200153385A1 · Mncent et al. · 2020 [cited by applicant]
US 20200273237A1 · Sunkavalli et al. · 2020 [cited by applicant]
US 20200311946A1 · Price et al. · 2020 [cited by applicant]
US 20200372284A1 · Rhemann et al. · 2020 [cited by applicant]
WO 2020068158 · 2020 [cited by applicant]
Agusanto et al., “Photorealistic rendering for augmented reality using environment illumination,” Proceedings of the Second IEEE and ACM International Symposium on Mixed and Augmented Reality, Conference Paper, IEEE, 20… [cited by applicant]
Devries et al. “Learning Confidence for Out-0f-Distribution Detection in Neural Networks,” arXiv:1802.04865v1, Feb. 13, 2018, 12 pages. [cited by applicant]
Hu et al. “FC'4: Fully Convolutional Color Constancy with Confidence-Weighted Pooling,” IEEE Conference on Computer Vision and Pattern Recognition, 2017, pp. 330-339, XP033249369. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed Jul. 29, 2019, issued in connection with International Patent Application No. PCT/US2019/025205, filed Apr. 1, 2019, 15 pages. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Jan. 25, 2022, issued in connection with International Patent Application No. PCT/US2021/029634, filed Apr. 28, 2021, 11 pages. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Jun. 28, 22, issued in connection with International Patent Application No. PCT/US2021/071986, filed Oct. 22, 2021, 15 pages. [cited by applicant]
Nestmeyer et al., “Learning Physics-guided Face Relighting under Directional Light,” CVPR, 2020, 10 pages. [cited by applicant]
Pandey et al., “Total Relighting: Learning to Relight Portraits for Background Replacement,” ACM Transactions on Graphics, 2021, 21 pages, vol. 40, No. 4, Article 1. [cited by applicant]
Sun et al., “Single Image Portrait Relighting,” arXiv.1905.00824v1, ACM Trans. Graph, 2019, 12 pages, vol. 38, No. 4, Article 79. [cited by applicant]
Tsai et al., “Portrait Light: Enhancing Portrait Lighting with Machine Learning,” Google Research, Blog, Dec. 11, 2020, 9 pages. [cited by applicant]
Wang et al., “Face Relighting from a Single Image under Arbitrary Unknown Lighting Conditions,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Nov. 2009, pp. 1968-1984, vol. 31, No. 11. [cited by applicant]
Wang et al., “Single Image Portrait Relighting via Explicit Multiple Reflectance Channel Modeling,” ACM Transactions on Graphics, 2020, 13 pages, vol. 39, No. 6, Article 220. [cited by applicant]
Wen et al., “Face Relighting with Radiance Environment Maps,” Proceedings of the 2003 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Jun. 2003, pp. 158-165, vol. 2. [cited by applicant]
Xu et al., “Deep Image-Based Relighting from Optimal Sparse Samples,” ACM Transactions on Graphics, 2018, 13 pages, vol. 37, No. 4, Article 126. [cited by applicant]
Zhang et al., “Portrait Shadow Manipulation,” arXiv:2005.008925v2, ACM Transactions on Graphics, 2020, 14 pages, vol. 39, No. 4, Article 78. [cited by applicant]
International Searching Authority, International Search Report and Written Opinion mailed on Sep. 8, 2021, issued in connection with International Patent Application No. PCT/US2021/023734, filed on May 17, 2021, 17 page… [cited by applicant]
Shashua et al., “The Quotient Image: Class-Based Re-rendering and Recognition With Varying Illuminations,” IEEE Transactions on Pattern Analysis and Machine Intelligence, IEEE Computer Society, USA, Feb. 2001, pp. 129-1… [cited by applicant]
Wu et al., “One-shot Deep Neural Network for Pose and Illumination Normalization Face Recognition,” 2016 IEEE Conference on Multimedia and Expo (ICME), IEEE, Jul. 2016, 6 pages. [cited by applicant]
Chen et al., “Live HDR+ and Dual Exposure Controls on Pixel 4 and 4a,” Google AI Blog, Aug. 3, 2020, 8 pages. [cited by applicant]
Debevec et al., “Acquiring the Reflectance Field of a Human Face,” SIGGRAPH 2000 Conference Proceedings, Jul. 2000, 12 pages. [cited by applicant]
Legendre et al., “Learning Illumination from Diverse Portraits,” arXiv:2008.02396v1, Aug. 5, 2020, 14 pages. [cited by applicant]
Zhang, Richard, “Making Convolutional Networks Shift-Invariant Again,” arXiv:1904.11486v2, Jun. 9, 2019. [cited by applicant]