IP Library Granted Patent US 10,403,036
Granted Patent B2
US 10,403,036 · App. 15/985,882 · Granted Sep 3, 2019

Rendering glasses shadows

Inventors: Dmitry Kornilov (Menlo Park, CA); Robert Charlie Daugherty (Seattle, WA); Robert Curtis Randolph (Portland, OR); Sergey Surkov (Foster City, CA)
Assignee: Ditto Technologies, Inc.
G06T15/60G06K9/00281G06Q30/0643G06T17/00G06T19/00
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 10,403,036
App. No.
15/985,882
Granted
Sep 3, 2019
Kind
B2
Abstract

Rendering glasses with shadows is disclosed, including: generating a face image corresponding to an image of a set of images based at least in part on a face model, wherein the set of images is associated with a user's face; generating a face with shadows image corresponding to the image based at least in part on shadows casted by a glasses model on the face model; generating a shadow transform based at least in part on a difference determined based at least in part on the face image and the face with shadows image; generating a shadowed image based at least in part on applying the shadow transform to the image; and presenting the shadowed image including by overlaying a glasses image associated with the glasses model over the shadowed image.

Claims (52)

1. A system, comprising:

a processor; and

a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions which when executed cause the processor to:

generate a face image corresponding to an image of a set of images based at least in part on a face model, wherein the set of images is associated with a user's face, wherein the generating of the face image corresponding to the image of the set of images comprises to transform the face model using a set of extrinsic information corresponding to the image;

generate a face with shadows image corresponding to the image based at least in part on shadows casted by a glasses model on the face model;

generate a shadow transform based at least in part on a difference determined based at least in part on the face image and the face with shadows image, comprises to:

generate a difference image by subtracting the face image from the face with shadows image;

invert colors associated with the difference image to obtain an inverted difference image; and

determine the inverted difference image as the shadow transform;

generate a shadowed image based at least in part on applying the shadow transform to the image; and

present the shadowed image including by overlaying a glasses image associated with the glasses model over the shadowed image.

2. The system of claim 1 , wherein the processor is further configured to:

obtain a three-dimensional (3D) model associated with the user's face; and

generate a modified 3D generic face model by modifying a 3D generic face model to match the 3D model associated with the user's face, wherein the face model comprises the modified 3D generic face model.

3. The system of claim 2 , wherein the 3D model associated with the user's face is determined from the set of images associated with the user's face.

4. The system of claim 1 , wherein to generate the face with shadows image corresponding to the image based at least in part on shadows casted by the glasses model on the face model comprises to:

transform the glasses model using the set of extrinsic information corresponding to the image;

generate a combination of the transformed face model with the transformed glasses model; and

apply a lighting model to the combination to cause the transformed glasses model to cast shadows onto the transformed face model.

5. The system of claim 4 , wherein the lighting model is determined based at least in part on the set of images associated with the user's face.

6. The system of claim 1 , wherein to generate the shadow transform further comprises to apply a Despeckle filter to the inverted difference image.

7. The system of claim 1 , wherein to generate the shadow transform further comprises to apply a blur filter to the inverted difference image.

8. The system of claim 1 , wherein to generate the shadow transform further comprises to apply a Red Green Blue (RGB) curves filter to the inverted difference image.

9. The system of claim 1 , wherein to generate the shadow transform further comprises to apply a Hue Saturation Value (HSV) filter adjustment to the inverted difference image.

10. The system of claim 1 , wherein to generate the shadowed image based at least in part on applying the shadow transform to the image comprises multiplying the image with the shadow transform.

11. The system of claim 1 , wherein the glasses model is associated with a pair of glasses selected by a user.

12. A method, comprising:

generating a face image corresponding to an image of a set of images based at least in part on a face model, wherein the set of images is associated with a user's face, wherein the generating of the face image corresponding to the image of the set of images comprises transforming the face model using a set of extrinsic information corresponding to the image;

generating a face with shadows image corresponding to the image based at least in part on shadows casted by a glasses model on the face model;

generating, using a processor, a shadow transform based at least in part on a difference determined based at least in part on the face image and the face with shadows image, comprising:

generating a difference image by subtracting the face image from the face with shadows image;

inverting colors associated with the difference image to obtain an inverted difference image; and

determining the inverted difference image as the shadow transform;

generating a shadowed image based at least in part on applying the shadow transform to the image; and

presenting the shadowed image including by overlaying a glasses image associated with the glasses model over the shadowed image.

13. The method of claim 12 , further comprising:

obtaining a three-dimensional (3D) model associated with the user's face; and

generating a modified 3D generic face model by modifying a 3D generic face model to match the 3D model associated with the user's face, wherein the face model comprises the modified 3D generic face model.

14. The method of claim 13 , wherein the 3D model associated with the user's face is determined from the set of images associated with the user's face.

15. The method of claim 12 , wherein generating the face with shadows image corresponding to the image based at least in part on shadows casted by the glasses model on the face model comprises:

transforming the glasses model using the set of extrinsic information corresponding to the image;

generating a combination of the transformed face model with the transformed glasses model; and

applying a lighting model to the combination to cause the transformed glasses model to cast shadows onto the transformed face model.

16. A computer program product, the computer program product being embodied in a non-transitory computer-readable storage medium and comprising computer instructions for:

generating a face image corresponding to an image of a set of images based at least in part on a face model, wherein the set of images is associated with a user's face, wherein the generating of the face image corresponding to the image of the set of images comprises transforming the face model using a set of extrinsic information corresponding to the image;

generating a face with shadows image corresponding to the image based at least in part on shadows casted by a glasses model on the face model;

generating a shadow transform based at least in part on a difference determined based at least in part on the face image and the face with shadows image, comprising:

generating a difference image by subtracting the face image from the face with shadows image;

inverting colors associated with the difference image to obtain an inverted difference image; and

determining the inverted difference image as the shadow transform;

generating a shadowed image based at least in part on applying the shadow transform to the image; and

presenting the shadowed image including by overlaying a glasses image associated with the glasses model over the shadowed image.

Assignments (2)
RELEASE OF SECURITY INTEREST Recorded Jun 26, 2023
From: MATERIALISE NV
To: DITTO TECHNOLOGIES, INC.
Reel/Frame 064064/0210 →
SECURITY INTEREST Recorded Aug 14, 2020
From: DITTO TECHNOLOGIES, INC
To: MATERIALISE NV
Reel/Frame 053504/0150 →
Continuity (2)
Continuation 14603207 · Jan 22, 2015
Related Publication 20180374261A1 · Dec 27, 2018