Image processing method and electronic device

US12499572B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12499572-B2
Application numberUS-202118267260-A
CountryUS
Kind codeB2
Filing dateDec 2, 2021
Priority dateDec 15, 2020
Publication dateDec 16, 2025
Grant dateDec 16, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Embodiments of this application provide an image processing method. The method includes: A plurality of images that meet a first condition are determined, where the first condition includes that a similarity between any two images in the plurality of images is greater than or equal to a first threshold. A first image that meets a second condition is determined from the plurality of images, where the first image includes a first object, and the first object is a to-be-eliminated object in the first image. A second image is determined from the plurality of images, where the second image includes a second object, and a position of the second object in the second image corresponds to a position of the first object in the first image. The first object is covered by or replaced with the second object, to obtain a target image.

First claim

Opening claim text (preview).

What is claimed is: 1 . An electronic device, wherein the electronic device comprises at least one memory and at least one processor, the at least one memory is coupled to the at least one processor, the at least one memory is configured to store a computer program, the at least one processor is configured to invoke the computer program, the computer program comprises instructions, and when the instructions are executed by the at least one processor, the electronic device is enabled to perform: determining a plurality of images that meet a first condition, wherein the first condition comprises that a similarity between any two images in the plurality of images is greater than or equal to a first threshold; determining, from the plurality of images, a first image that meets a second condition, wherein the first image comprises a photographed subject and a first object, and the first object is a to-be-eliminated object in the first image; determining a second image from the plurality of images, wherein the second image comprises a second object, and a position of the second object in the second image corresponds to a position of the first object in the first image; and covering or replacing the first object with the second object, to obtain a target image, wherein the determining the first image that meets the second condition comprises: determining a first distance between the photographed subject and a third object, wherein the third object comprises an object included in the first image other than the photographed subject; and determining the third object as the first object when the first distance is greater than a preset threshold. 2 . The electronic device according to claim 1 , wherein the first condition further comprises at least one of the following: a photographing time of any one of the plurality of images is within a first range, or a photographing location of any one of the plurality of images is within a second range. 3 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: receiving a first operation, wherein the first operation is used to select the plurality of images. 4 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: performing semantic segmentation on the plurality of images to identify one or multiple objects included in the plurality of images. 5 . The electronic device according to claim 4 , wherein the electronic device is further enabled to perform: determining, from the one or multiple objects, the photographed subject that meets a third condition, wherein the third condition comprises at least one of the following: a definition of the photographed subject in any one of the plurality of images is greater than or equal to a fifth threshold, a focus point of any one of the plurality of images is located in a region of the photographed subject, an area of the photographed subject in any one of the plurality of images is greater than or equal to a sixth threshold, the photographed subject belongs to a preset category, or a third operation is received, wherein the third operation is used to select the photographed subject. 6 . The electronic device according to claim 5 , wherein the second condition comprises at least one of the following: a definition of the photographed subject in the first image is greater than or equal to a second threshold, a quantity of other objects than the photographed subject in the first image is less than a third threshold, or a second operation is received, wherein the second operation is used to select the first image. 7 . The electronic device according to claim 1 , wherein the second image is any image other than the first image in the plurality of images, and a similarity between the second image and the first image is greater than or equal to a fourth threshold. 8 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: receiving a fourth operation, wherein the fourth operation is used to select the first object. 9 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: determining a central point of a third object in the first image, a central point of a fourth object in the first image, a central point of a fifth object in a third image, and a central point of a sixth object in the third image, wherein the third image is any image other than the first image in the plurality of images, the third object and the fifth object have a same attribute, and the fourth object and the sixth object have a same attribute; placing the central point of the third object and the central point of the fifth object in a same coordinate system with a same coordinate origin, and establishing a first coordinate system based on the coordinate origin; determining a first distance between the central point of the fourth object and the central point of the sixth object based on the first coordinate system; and determining the fourth object as the first object when the first distance is greater than or equal to a seventh threshold. 10 . The electronic device according to claim 9 , wherein objects represented by the third object and the fifth object are at a same location at any time point. 11 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: receiving a fifth operation; and displaying a first interface in response to the fifth operation, wherein the plurality of images and the target image are displayed in the first interface. 12 . The electronic device according to claim 1 , wherein the electronic device is further enabled to perform: determining the third object as the first object when the third object does not exist in the plurality of images other than the first image. 13 . An image processing method, applied to an electronic device, the method comprising: determining a plurality of images that meet a first condition, wherein the first condition comprises that a similarity between any two images in the plurality of images is greater than or equal to a first threshold; determining, from the plurality of images, a first image that meets a second condition, wherein the first image comprises a photographed subject and a first object, and the first object is a to-be-eliminated object in the first image; determining a second image from the plurality of images, wherein the second image comprises a second object, and a position of the second object in the second image corresponds to a position of the first object in the first image; and covering or replacing the first object with the second object, to obtain a target image, wherein the determining the first image that meets the second condition comprises: determining a first distance between the photographed subject and a third object, wherein the third object comprises an object included in the first image other than the photographed subject; and determining the third object as the first object when the first distance is greater than a preset threshold. 14 . The method according to claim 13 , further comprising: performing semantic segmentation on the plurality of images to identify one or multiple objects included in the plurality of images. 15 . The method according to claim 14 , further comprising: determining, from the one or multiple objects, the photographed subject that meets a third condition, wherein the third condition comprises at least one of the following: a definition of the photographed subject

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12499572B2 cover?
Embodiments of this application provide an image processing method. The method includes: A plurality of images that meet a first condition are determined, where the first condition includes that a similarity between any two images in the plurality of images is greater than or equal to a first threshold. A first image that meets a second condition is determined from the plurality of images, wher…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06T7/70. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 16 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).