Performing segmentation of objects in media items based on user input

US12437358B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12437358-B2
Application numberUS-202217968645-A
CountryUS
Kind codeB2
Filing dateOct 18, 2022
Priority dateOct 18, 2021
Publication dateOct 7, 2025
Grant dateOct 7, 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.

A media application receives user input that indicates one or more objects to be erased from a media item. The media application translates the user input to a bounding box. The media application provides a crop of the media item based on the bounding box to a segmentation machine-learning model. The segmentation machine-learning model outputs a segmentation mask for one or more segmented objects in the crop of the media item and a corresponding segmentation score that indicates a quality of the segmentation mask.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method comprising: receiving user input that indicates one or more objects to be erased from a media item; translating the user input to a bounding box; providing a crop of the media item based on the bounding box to a segmentation machine-learning model; outputting, with the segmentation machine-learning model, a segmentation mask for one or more segmented objects in the crop of the media item and a corresponding segmentation score that indicates a quality of the segmentation mask; determining that the segmentation mask is invalid based on one or more of: the corresponding segmentation score failing to meet a threshold score, a number of valid mask pixels falling below a threshold number of pixels, a segmentation mask size falling below a threshold size, or the segmentation mask being greater than a threshold distance from a region indicated by the user input; and responsive to determining that the segmentation mask is invalid, generating a different mask based on a region within the user input. 2. The method of claim 1 , wherein the bounding box is an axis-aligned bounding box or an oriented bounding box. 3. The method of claim 1 , wherein the user input includes one or more strokes made with reference to the media item. 4. The method of claim 3 , wherein the bounding box is an oriented bounding box and wherein an orientation of the oriented bounding box matches an orientation of at least one of the one or more strokes. 5. The method of claim 1 , wherein prior to the providing the crop of the media item, the segmentation machine-learning model is trained using training data that includes a plurality of training images and groundtruth segmentation masks. 6. The method of claim 1 , further comprising: providing a user interface that receives the user input, wherein the user input is selected from a group of a circle that surrounds the one or more objects, one or more lines on top of the one or more objects, a square that surrounds the one or more objects, and combinations thereof. 7. The method of claim 1 , further comprising inpainting a portion of the media item that matches the different mask to obtain an output media item, wherein the one or more objects are absent from the output media item. 8. The method of claim 7 , wherein the inpainting is performed using an inpainting machine-learning model, and wherein the media item and the different mask are provided as input to the inpainting machine-learning model. 9. The method of claim 7 , further comprising providing a user interface that includes the output media item. 10. A non-transitory computer-readable medium with instructions stored thereon that, when executed by one or more computers, cause the one or more computers to perform operations comprising: receiving user input that indicates one or more objects to be erased from a media item; translating the user input to a bounding box; providing a crop of the media item based on the bounding box to a segmentation machine-learning model; outputting, with the segmentation machine-learning model, a segmentation mask for one or more segmented objects in the crop of the media item and a corresponding segmentation score that indicates a quality of the segmentation mask; determining that the segmentation mask is invalid based on one or more of: the corresponding segmentation score failing to meet a threshold score, a number of valid mask pixels falling below a threshold number of pixels, a segmentation mask size falling below a threshold size, or the segmentation mask being greater than a threshold distance from a region indicated by the user input; and responsive to determining that the segmentation mask is invalid, generating a different mask based on a region within the user input. 11. The computer-readable medium of claim 10 , wherein the bounding box is an axis-aligned bounding box or an oriented bounding box. 12. The computer-readable medium of claim 10 , wherein the user input includes one or more strokes made with reference to the media item. 13. The computer-readable medium of claim 12 , wherein the bounding box is an oriented bounding box and wherein an orientation of the oriented bounding box matches an orientation of at least one of the one or more strokes. 14. The computer-readable medium of claim 10 , wherein the segmentation machine-learning model is trained prior to the providing using training data that includes a plurality of training images and groundtruth segmentation masks. 15. A computing device comprising: a processor; and a memory coupled to the processor, with instructions stored thereon that, when executed by the processor, cause the processor to perform operations comprising: receiving user input that indicates one or more objects to be erased from a media item; translating the user input to a bounding box; providing a crop of the media item based on the bounding box to a segmentation machine-learning model; outputting, with the segmentation machine-learning model, a segmentation mask for one or more segmented objects in the crop of the media item and a corresponding segmentation score that indicates a quality of the segmentation mask; determining that the segmentation mask is invalid based on one or more of: the corresponding segmentation score failing to meet a threshold score, a number of valid mask pixels falling below a threshold number of pixels, a segmentation mask size falling below a threshold size, or the segmentation mask being greater than a threshold distance from a region indicated by the user input; and responsive to determining that the segmentation mask is invalid, generating a different mask based on a region within the user input. 16. The computing device of claim 15 , wherein the bounding box is an axis-aligned bounding box or an oriented bounding box. 17. The computing device of claim 15 , wherein the user input includes one or more strokes made with reference to the media item. 18. The computing device of claim 17 , wherein the bounding box is an oriented bounding box and wherein an orientation of the oriented bounding box matches an orientation of at least one of the one or more strokes. 19. The computing device of claim 15 , wherein prior to the providing a crop of the media item, the segmentation machine-learning model is trained using training data that includes a plurality of training images and groundtruth segmentation masks. 20. The computing device of claim 15 , wherein the operations further comprise: providing a user interface that receives the user input, wherein the user input is selected from a group of a circle that surrounds the one or more objects, one or more lines on top of the one or more objects, a square that surrounds the one or more objects, and combinations thereof.

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 US12437358B2 cover?
A media application receives user input that indicates one or more objects to be erased from a media item. The media application translates the user input to a bounding box. The media application provides a crop of the media item based on the bounding box to a segmentation machine-learning model. The segmentation machine-learning model outputs a segmentation mask for one or more segmented objec…
Who is the assignee on this patent?
Google Llc
What technology area does this patent fall under?
Primary CPC classification G06T5/77. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 07 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 7 related publications on this page (citations in our corpus or others sharing the same primary CPC).