Video switching method and apparatus, storage medium, and device

US12401836B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12401836-B2
Application numberUS-202118260192-A
CountryUS
Kind codeB2
Filing dateDec 31, 2021
Priority dateJan 5, 2021
Publication dateAug 26, 2025
Grant dateAug 26, 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 video switching method includes a target object being selected. A similarity of the target object between a first image frame and a second image frame is calculated to obtain a similarity value, where the first image frame is from a first video, and the second image frame is from a second video; to-be-switched image frames are obtained, where the to-be-switched image frames include the first image frame and the second image frame with the similarity value greater than or equal to a preset threshold; and the first image frame of the first video is switched to the second image frame of the second video or the second image frame of the second video is switched to the first image frame of the first video based on the to-be-switched image frames.

First claim

Opening claim text (preview).

What is claimed is: 1. A video switching method, comprising: recognizing a first image frame and a second image frame, wherein the first image frame is from a first video, and wherein the second image frame is from a second video; displaying an editing interface comprising an object presented after recognizing the first image frame and the second image frame; selecting a target object in response to a selection of a user; calculating a similarity of the target object between the first image frame and the second image frame to obtain a similarity value by: obtaining, in the first image frame and the second image frame, two-dimensional features of the target object, three-dimensional features of the target object, and a mesh of the target object; calculating a first distance between the two-dimensional features in the first image frame and the second image frame; calculating a second distance between the three-dimensional features in the first image frame and the second image frame; calculating a third distance between features of the mesh in the first image frame and the second image frame; and combining the first distance, the second distance, and the third distance to obtain the similarity value; obtaining to-be-switched image frames comprising the first image frame and the second image frame with the similarity value greater than or equal to a preset threshold; and switching, based on the to-be-switched image frames, the first image frame to the second image frame or switching the second image frame to the first image frame. 2. The method of claim 1 , wherein the features of the target object comprise at least one of a facial feature of the target object or a body posture feature of the target object. 3. The method of claim 1 , wherein the editing interface further comprises one or more pairs of the to-be-switched image frames for selection by the user, and wherein switching, based on the to-be-switched image frames, the first image frame to the second image frame or the second image frame to the first image frame comprises: switching, in response to the one or more pairs of the to-be-switched image frames selected by the user, the first image frame to the second image frame; or switching, in response to the one or more pairs of the to-be-switched image frames selected by the user, the second image frame to the first image frame. 4. The method of claim 1 , further comprising: obtaining a switching position between the first video and the second video based on the to-be-switched image frames; and performing video switching based on the switching position. 5. The method of claim 1 , further comprising generating a third video based on the to-be-switched image frames. 6. The method of claim 1 , further comprising performing alignment of the target object in the to-be-switched image frames. 7. The method of claim 6 , wherein performing the alignment comprises aligning a position of the target object in the first image frame and a position of the target object in the second image frame in an image picture. 8. An electronic device, comprising: a memory configured to store computer instructions; and one or more processors coupled to the memory and configured to execute the computer instructions to cause the electronic device to: recognize a first image frame and a second image frame, wherein the first image frame is from a first video, and wherein the second image frame is from a second video; display an editing interface comprising an object presented after recognizing the first image frame and the second image frame; select a target object in response to a selection of a user; calculate a similarity of the target object between the first image frame and the second image frame to obtain a similarity value by: obtaining, in the first image frame and the second image frame, two-dimensional features of the target object, three-dimensional features of the target object, and a mesh of the target object; calculating a first distance between the two-dimensional features in the first image frame and the second image frame; calculating a second distance between the three-dimensional features in the first image frame and the second image frame; calculating a third distance between features of the mesh in the first image frame and the second image frame; and combining the first distance, the second distance, and the third distance to obtain the similarity value; obtain to-be-switched image frames comprising the first image frame and the second image frame with the similarity value greater than or equal to a preset threshold; and switch, based on the to-be-switched image frames, the first image frame to the second image frame or switch the second image frame to the first image frame. 9. The electronic device of claim 8 , wherein the features of the target object comprise at least one of a facial feature of the target object or a body posture feature of the target object. 10. The electronic device of claim 8 , wherein the editing interface further comprises one or more pairs of the to-be-switched image frames for selection by the user, and wherein the one or more processors are further configured to execute the computer instructions to cause the electronic device to: switch, in response to the one or more pairs of the to-be-switched image frames selected by the user, the first image frame to the second image frame; or switch, in response to the one or more pairs of the to-be-switched image frames selected by the user, the second image frame to the first image frame. 11. The electronic device of claim 8 , wherein the one or more processors are further configured to execute the computer instructions to cause the electronic device to: obtain a switching position between the first video and the second video based on the to-be-switched image frames; and perform video switching based on the switching position. 12. The electronic device of claim 8 , wherein the one or more processors are further configured to execute the computer instructions to cause the electronic device to generate a third video based on the to-be-switched image frames. 13. The electronic device of claim 8 , wherein the one or more processors are further configured to execute the computer instructions to cause the electronic device to perform alignment of the target object in the to-be-switched image frames. 14. The electronic device of claim 13 , wherein the one or more processors are further configured to execute the computer instructions to cause the electronic device to perform the alignment by aligning a position of the target object in the first image frame and a position of the target object in the second image frame in an image picture. 15. A computer program product comprising instructions that are stored on a non-transitory computer-readable medium and that, when executed by one or more processors, cause an electronic device to: recognize a first image frame and a second image frame; display an editing interface comprising an object presented after recognizing the first image frame and the second image frame; select a target object in response to a selection of a user; calculate a similarity of the target object between the first image frame and the second image frame to obtain a similarity value by: obtaining, in the first image frame and the second image frame, two-dimensional features of the target object, three-dimensional features of the target object, and a mesh of the target object; calculating a first distance between the two-dimensional features in the first image frame and the second image frame; ca

Assignees

Inventors

Classifications

  • by locating a pattern; Special marks for positioning · CPC title

  • Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components · CPC title

  • Proximity, similarity or dissimilarity measures · CPC title

  • Local features and components; Facial parts (eye characteristics G06V40/18); Occluding parts, e.g. glasses; Geometrical relationships · CPC title

  • Determining position or orientation of objects or cameras (camera calibration G06T7/80) · CPC title

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 US12401836B2 cover?
A video switching method includes a target object being selected. A similarity of the target object between a first image frame and a second image frame is calculated to obtain a similarity value, where the first image frame is from a first video, and the second image frame is from a second video; to-be-switched image frames are obtained, where the to-be-switched image frames include the first …
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04N21/23424. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Aug 26 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).