Patent ID: 11922720
Assignee: GOOGLE LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 18:
19. A computing device, comprising:
one or more processors; and
one or more computer readable media having computer-readable instructions stored thereon that, when executed by the one or more processors, cause the computing device to carry out functions that comprise:
determining a first image area corresponding to a first region of interest in an image;
determining a warping mesh for the image;
determining a first portion of the warping mesh associated with the first image area;
determining a cost function for the warping mesh by:
determining first costs associated with the first portion of the warping mesh, wherein the first costs comprise costs associated with at least two face-related transformations of the first image area to correct one or more geometric distortions of the first region of interest as represented in the image, and wherein the determining of the first costs comprises determining an aspect ratio for the first image area based on the at least two face-related transformations, and
determining second costs associated with the warping mesh, wherein the second costs comprise costs of one or more edge-related transformations for preserving straightness of edges of the image modified by the at least two face-related transformations;

determining an optimized mesh based on an optimization of the cost function for the warping mesh; and
modifying the first image area of the image based on the optimized mesh.