Motion-based pixel propagation for video inpainting
AssigneeInnopeak Technology, Inc.
InventorsJenhao Hsiao, Zheng Zhang
Life of this patent
Estimating the term…
Abstract
Techniques for pixel propagation and video inpainting are described. A video processing application selects, from a sequence of video frames, a reference video frame that includes replacement pixels corresponding to a mask of an undesired object. The video processing application aligns the reference video frame with the target video frame. The video processing application identifies, in the reference video frame, pixels corresponding to the mask. The video processing application uses the pixels from the reference video frame to replace pixels in the target video frame that correspond to the undesired object.
Claims20
A method implemented by a computer system, the method comprising:
- receiving a sequence of video frames and a set of masks, wherein the sequence of video frames comprises an initial video frame including an undesired object and the set of masks comprises an initial mask corresponding to the undesired object;
- identifying from the sequence of video frames, a subset of video frames;
- creating, using the set of masks, a combined mask corresponding to the undesired object;
- selecting, from the sequence of video frames, a reference video frame that comprises replacement pixels corresponding to pixels in a target video frame that are associated with the combined mask by:
- determining that an overlap between the combined mask in the reference video frame and the combined mask in the target video frame is less than a first threshold;
- and
- determining that an optical flow metric of the combined mask in the reference video frame compared to the combined mask in the target video frame is less than a second threshold;
- aligning the reference video frame with the target video frame;
- and
- replacing, in the target video frame, pixels corresponding to the combined mask with pixels corresponding to the combined mask in the reference video frame.
A computer system, including:
- one or more processors;
- and
- one or more non-transitory computer-storage media storing instructions that, upon execution on by the one or more processors, cause the computer system to perform operations including:
- receiving a sequence of video frames and a set of masks, wherein the sequence of video frames comprises an initial video frame including an undesired object and the set of masks comprises an initial mask corresponding to the undesired object;
- identifying from the sequence of video frames, a subset of video frames;
- creating, using the set of masks, a combined mask corresponding to the undesired object;
- selecting, from the sequence of video frames, a reference video frame that comprises replacement pixels corresponding to pixels in a target video frame that are associated with the combined mask by:
- determining that an overlap between the combined mask in the reference video frame and the combined mask in the target video frame is less than a first threshold;
- and
- determining that an optical flow metric of the combined mask in the reference video frame compared to the combined mask in the target video frame is less than a second threshold;
- aligning the reference video frame with the target video frame;
- and
- replacing, in the target video frame, pixels corresponding to the combined mask with pixels corresponding to the combined mask in the reference video frame.
One or more non-transitory computer-storage media storing instructions that, upon execution on a computer system, cause the computer system to perform operations including:
- receiving a sequence of video frames and a set of masks, wherein the sequence of video frames comprises an initial video frame including an undesired object and the set of masks comprises an initial mask corresponding to the undesired object;
- identifying from the sequence of video frames, a subset of video frames;
- creating, using the set of masks, a combined mask corresponding to the undesired object;
- selecting, from the sequence of video frames, a reference video frame that comprises replacement pixels corresponding to pixels in a target video frame that are associated with the combined mask by:
- determining that an overlap between the combined mask in the reference video frame and the combined mask in the target video frame is less than a first threshold;
- and
- determining that an optical flow metric of the combined mask in the reference video frame compared to the combined mask in the target video frame is less than a second threshold;
- aligning the reference video frame with the target video frame;
- and
- replacing, in the target video frame, pixels corresponding to the combined mask with pixels corresponding to the combined mask in the reference video frame.
Dependencies are inferred from the claim text.