Patent ID: 11908105
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 13:
14. A computing device, comprising a memory and a processor, the memory storing computer-readable instructions that, when executed by the processor, cause the computing device to perform a plurality of operations including:
displaying an original image;
determining a to-be-inpainted first original region and a second original region different from the first original region in the original image in accordance with a user input;
identifying a target pixel and a target pixel block comprising the target pixel in the first original region;
obtaining a target search region from the second original region according to the target pixel and the target pixel block comprising the target pixel, an area of the target search region being smaller than an area of the second original region;
dividing the target pixel block along a boundary into a first region and a second region;
in accordance with a determination that a first pixel is located in the first region having a larger intersection area with a region that is not inpainted, setting the pixel value of a pixel in a reference pixel block corresponding to the first pixel as the pixel value of the first pixel after inpainting; and
in accordance with a determination that the first pixel is located in the second region, fusing the pixel value of the first pixel with the pixel value of the pixel in the reference pixel block corresponding to the first pixel as the pixel value of the first pixel after inpainting; and
searching the target search region for a reference pixel block matching the target pixel block and updating the original image by inpainting the target pixel block according to the reference pixel block, and displaying the updated image.