Performing segmentation of objects in media items based on user input
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
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
- Claim 2Depends on #1
The method of claim 1, wherein the bounding box is an axis-aligned bounding box or an oriented bounding box.
- Claim 3Depends on #1
The method of claim 1, wherein the user input includes one or more strokes made with reference to the media item.
- Claim 4Depends on #3
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.
- Claim 5Depends on #1
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.
- Claim 6Depends on #1
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.
- Claim 7Depends on #1
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.
- Claim 8Depends on #7
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.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims priority to U.S. Provisional Patent Application No. 63/257,111, filed on Oct. 18, 2021 and titled “ Translating User Annotation for Distraction Removal in Media Items, ” which is incorporated by reference herein in its entirety. BACKGROUND The user-perceived quality of visual media items such as images (static images, images with selective motion, etc.) and videos can be improved by removing certain objects that distract from the focus of the media items or otherwise affect the visual appeal of the media item. For example, users sometimes capture pictures or videos that include windmills, people in the background, fences, or other objects that are not part of the main subject that the user intends to capture. For example, a picture may be intended to capture foreground individuals, trees, buildings, landscapes, etc. but one or more distracting objects may be present in the foreground (e.g., a fence, a traffic light, or other object closer to the camera than the objects of interest); in the background (e.g., a person in the background, power lines above the object of interest, or other objects farther away from the camera than the objects of interest); or in the same plane (e.g., a person with their back to the camera, but at a similar distance to the camera as the objects of interest). Users can employ manual image or video editing techniques to remove distracting objects. However, this task can be arduous and incomplete. Further, automatic removal of a distracting object is difficult since it may result in false positives where additional objects or portions of objects are also removed or incomplete segmentation results in portions of the removed object still being visible. The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Le et al., Object removal from complex videos using a few annotations, Computational Visual Media, vol. 5, No. 3, Sep. 2019 , pp. 267-291, AAPA furnished vi alDS.
- Matsui, et al.,
- “
- Single-Image Fence Removal Using Deep Convolutional Neural Network
- ”
- , IEEE Access 8, 2019, p. 38846-38854.
- Banerjee, et al.,
- “
- Image foreground extraction
- —