US 12,406,342 B2
Systems and methods for performing inpainting
Alexander Tack, Vienna (AT); Stefan Sietzen, Salzburg (AT); and David Fankhauser, Vienna (AT)
Assigned to Canva Pty Ltd, Surry Hills (AU)
Filed by Canva Pty Ltd, Surry Hills (AU)
Filed on Jun. 27, 2024, as Appl. No. 18/757,484.
Claims priority of application No. 2023901771 (AU), filed on Jun. 5, 2023; and application No. 2023204097 (AU), filed on Jun. 27, 2023.
Prior Publication US 2024/0404027 A1, Dec. 5, 2024
Int. Cl. G06T 5/77 (2024.01); G06T 7/194 (2017.01)
CPC G06T 5/77 (2024.01) [G06T 7/194 (2017.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method for performing inpainting, the method comprising:
accessing a first image;
receiving a selected area of the first image;
identifying a foreground area of the first image;
generating a merged mask that covers the entirety of a union of the selected area and the foreground area;
performing an inpainting process on an area of the first image corresponding to the merged mask to generate a second image, being an inpainted image;
generating a reduced mask based on the selected area of the first image reduced by the foreground area of the first image; and
combining the first image with an area of the second image corresponding to the reduced mask to produce an output image, wherein areas of the first image corresponding to the reduced mask are replaced with the inpainted image.