Video call method and apparatus, electronic device, and storage medium
By analyzing the action matching between user videos and standard videos during video calls, and generating and displaying special effects animations, the problem of lack of interactivity and interest in video calls in the existing technology is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/081403
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-13
- Publication Date
- 2024-09-26
AI Technical Summary
The existing video calling methods lack interactivity and fun, and the interaction method is single, resulting in insufficient user experience.
By responding to user operations during the video call, special effects animations are generated, and human posture extraction algorithms are used to analyze the action matching between user videos and standard videos. Special effects animations are displayed on the target interactive page in real time to enhance user interactivity and interest.
It improves the interactivity and fun during video calls, displays the user's action matching and game results through special effects animation, and enhances the user's sense of participation.
Smart Images

Figure CN2024081403_26092024_PF_FP
Abstract
Description
Video call method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 20, 2023, with application number 202310275058.6 and invention name “Video Call Method, Device, Electronic Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to computer technology, and more particularly to a video calling method, apparatus, electronic device, and storage medium. Background Art
[0004] Video calling is a real-time communication service that allows users to establish multimedia groups on the Internet. Users can make video calls conveniently and quickly through instant messaging software.
[0005] Currently, the interaction methods of users during video calls are relatively simple, usually including voice and video methods, resulting in the lack of interactivity and fun in the existing video call process.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a video calling method, apparatus, electronic device, and storage medium, which can improve the interactivity and fun of a video call.
[0008] In a first aspect, an embodiment of the present disclosure provides a video calling method, including:
[0009] In response to a first operation on a target page, playing a standard video and a user video through the target interactive page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0010] A special effects animation is generated according to the action matching degree between the user video and the standard video, and the special effects animation is displayed through the target interactive page.
[0011] In a second aspect, an embodiment of the present disclosure further provides a video calling device, the device comprising:
[0012] a video playback module, configured to play a standard video and a user video via a target interactive page in response to a first operation on the target page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0013] The special effect generation module is used to generate a special effect animation according to the action matching degree between the user video and the standard video, and display the special effect animation through the target interactive page.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the video calling method as described in the embodiment of the present disclosure.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the video call method as described in the embodiment of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0020] FIG1 is a flow chart of a video calling method provided by an embodiment of the present disclosure;
[0021] FIG2 is a schematic diagram of a target interaction page provided by an embodiment of the present disclosure;
[0022] FIG3 is a schematic diagram of a video upload page provided by an embodiment of the present disclosure;
[0023] FIG4 is a schematic diagram of another target interaction page provided by an embodiment of the present disclosure;
[0024] FIG5 is a schematic diagram of another target interaction page provided by an embodiment of the present disclosure;
[0025] FIG6 is a flow chart of another video calling method provided by an embodiment of the present disclosure;
[0026] FIG7 is a schematic diagram of a connection page between a local device and a mobile terminal provided by an embodiment of the present disclosure;
[0027] FIG8 is a schematic diagram of another connection page between a local device and a mobile terminal provided by an embodiment of the present disclosure;
[0028] FIG9 is a schematic diagram of a video interaction system provided by an embodiment of the present disclosure;
[0029] FIG10 is a schematic diagram of another target interaction page provided by an embodiment of the present disclosure;
[0030] FIG11 is a flow chart of another video calling method provided by an embodiment of the present disclosure;
[0031] FIG12 is a schematic diagram of posture extraction provided by an embodiment of the present disclosure;
[0032] FIG13 is a schematic diagram of implementing an interactive game during a video call according to an embodiment of the present disclosure;
[0033] FIG14 is a schematic diagram of a pop-up window provided by an embodiment of the present disclosure;
[0034] FIG15 is a schematic structural diagram of a video call device provided by an embodiment of the present disclosure;
[0035] FIG16 is a structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0038] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0039] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0040] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0042] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0044] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0046] FIG1 is a flow chart of a video calling method provided by an embodiment of the present disclosure. The method can be executed by a video calling device, wherein the device can be implemented by software and / or hardware and can be configured in an electronic device. Typically, the electronic device can include a personal computer, laptop, or other computer terminal. The video calling method provided by an embodiment of the present disclosure is used in a video calling scenario. As shown in FIG1 , the video calling method provided by this embodiment may include:
[0047] S110. In response to a first operation in a target page, play a standard video and a user video through the target interactive page.
[0048] In the disclosed embodiment, the first operation is an operation that triggers a video interaction. For example, the first operation may be an operation by the interaction event initiator, through the server, notifying the invitee to start a game. Specifically, the first operation may be an operation by the interaction event initiator clicking a start control on a target interaction page. Alternatively, the first operation may be a user operation on the target interaction page. Alternatively, the first operation may be a countdown operation after all participants in the video call are ready.
[0049] The target interactive page can be a page that displays interactive content. For example, by entering a set URL in a browser, the target interactive page is displayed, and the target interactive page includes controls for starting an interactive game. The target interactive page also includes a first area, a second area, a third area, and a fourth area. The first area displays standard videos, the second area displays user videos, and the third and fourth areas display special effects animation areas. In some embodiments, the first area can be named the standard video area, the second area can be named the user video area, and the third and fourth areas can be named the special effects animation areas.
[0050] For example, the target interaction page can be a page that displays a video call screen when the initiator of the interaction event makes a video call with the invitee (hereinafter referred to as other users). The initiator of the interaction event can be the user of the electronic device that initiates the interaction action. Correspondingly, other users can be users who make a video call with the initiator of the interaction event. The video call can be a video call in any scenario, such as a two-person video call (such as a scenario in which the initiator of the interaction event makes a real-time video connection with another user in a closed room) or a multi-person video call (such as a scenario in which the initiator of the interaction event makes a real-time video connection with two or more other users in a closed room). The closed room is a room for game interaction created by the initiator of the interaction event through instant messaging software. The initiator of the interaction event can invite other users to enter the closed room by sending an invitation message.
[0051] Figure 2 is a schematic diagram of a target interaction page provided by an embodiment of the present disclosure. As shown in Figure 2, the target interaction page may include a creation control 21 and a video control 22. In response to the sixth operation of the interaction event initiator on the creation control 21, a video call group is created according to the user identifier in the creation operation. The video control 22 can also be displayed through the target interaction page, and in response to the fourth operation of the interaction event initiator on the video control 22, the video upload page is displayed. In response to the fifth operation on the video upload page, a standard video is uploaded to the server. Figure 3 is a schematic diagram of a video upload page provided by an embodiment of the present disclosure. As shown in Figure 3, all uploaded standard videos are displayed through the video upload page. According to the seventh operation of the interaction event initiator on the standard video in the video upload page, the standard video displayed on the target interaction page is determined. The server analyzes the standard video and generates a correspondence table between time and preset postures.
[0052] In some embodiments, after detecting that other users respond to the invitation of the initiator of the interaction event and enter the closed room, the server sends the access address of the standard video to all users related to the video call, so that the standard video can be displayed through the target interaction page of each user.
[0053] FIG4 is a schematic diagram of another target interaction page provided by an embodiment of the present disclosure. As shown in FIG4 , the target interaction page in the embodiment of the present disclosure includes a standard video area 41 , a user video area 42 and a special effect animation area 43 .
[0054] A standard video is a video uploaded to the server and selected by the initiator of the interactive event. For example, a standard video could be a dance video or a fitness video that includes physical movements. A user video is an interactive video associated with the standard video. For example, a user video could be a video of a user imitating the movements in the standard video and performing corresponding actions. Alternatively, a user video could be a video of a user performing pre-agreed movements based on the movements in the standard video.
[0055] In some embodiments, in response to a first operation in a target page, playing a standard video and a user video through a target interactive page includes: obtaining the first operation in the target interactive page, and obtaining the standard video and the user video according to the first operation. For example, obtaining the first operation in the target interactive page; generating an interaction start message according to the first operation, and sending the interaction start message to the server; obtaining the video stream of the standard video sent by the server. Generating a capture message according to the first operation, and sending the capture message to a video capture device; obtaining the video stream of the user video sent by the video capture device. Playing the standard video through the first area in the target interactive page, and playing the user video through the second area in the target interactive page. For example, playing the video stream through the standard video area, and playing the video stream of the user video through the user video area. The video capture device can be a mobile camera or a fixed camera, etc., which can have wide-angle and high-pixel characteristics to make up for the defects of no camera on the computer or the narrow field of view of the built-in camera that cannot capture the full body picture, as well as the low pixel.
[0056] In some embodiments, the first operation of the interaction event initiator on the target interaction page is obtained, an interaction start message is generated based on the first operation, and the interaction start message is sent to the server. The server sends a video stream of a standard video to the target interaction page of each user based on the interaction start message. The video stream is played through the standard video area of the target interaction page. The electronic device of each user generates a capture message based on the first operation, sends the capture message to the mobile camera, and the mobile camera captures the user video in real time. The video stream of the user video sent by the mobile camera is obtained, and the video stream of the user video is played through the user video area of the target interaction page.
[0057] It should be noted that the mobile terminal and the electronic device are located in the same local area network. Before responding to the first operation of the target interactive page and playing the standard video and user video through the target interactive page, it also includes establishing a wireless connection between the mobile terminal and the electronic device.
[0058] S120: Generate a special effects animation according to the action matching degree between the user video and the standard video, and display the special effects animation through the target interactive page.
[0059] The action matching degree can be the similarity between the user's posture and the preset posture in the standard video. The user video is analyzed by a human posture extraction algorithm to obtain key skeleton nodes, and the user's posture is determined based on the key skeleton nodes.
[0060] The special effect animation can be an animation display of special effect information generated by the server based on the action matching degree. For example, the special effect information includes special effect symbols, and the special effect symbols can be set to represent the action matching degree of the local user in each preset posture.
[0061] In some embodiments, a special effects animation is generated based on the action matching degree between a user video and a standard video, including: when the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video; matching the user posture in at least one video frame with the preset posture, and determining the action matching degree based on the matching result; sending the action matching degree to the server, obtaining special effects information determined by the server based on the action matching degree, and generating a special effects animation based on the special effects information.
[0062] In some embodiments, when a standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video includes: determining that the standard video is played to the preset posture based on the playback time of the standard video; obtaining the timestamp of the user posture corresponding to the preset posture in the user video, determining the timestamp interval based on the timestamp, and obtaining at least one video frame in the user video corresponding to the timestamp interval.
[0063] Specifically, the server sends a table of correspondences between time and preset postures to the electronic devices of each participating user. Based on this table, the electronic device detects the preset posture in the standard video and retrieves the N video frames before and after the associated video frame of the preset posture in the user's video. The value of N is a default value or configurable based on the application scenario. Because a user's posture may persist for multiple video frames or may have filming quality issues, the user's posture can be fully and clearly determined by parsing the N video frames near the preset posture in the user's video.
[0064] Furthermore, the user posture in at least one video frame is matched with a preset posture, and the action matching degree is determined based on the matching result, including: obtaining the first bone node corresponding to the user posture in each video frame; matching the second bone node corresponding to the preset posture with the first bone node to obtain the similarity between the user posture in each video frame and the preset posture; and determining the action matching degree based on the similarity.
[0065] The electronic device uses a human posture extraction algorithm to parse N video frames, obtain key skeletal nodes corresponding to each video frame, and determine the user's posture based on the key skeletal nodes. For each video frame, the second skeletal node of the preset posture is matched with the first skeletal node of the user posture for similarity to obtain the corresponding video frame's motion matching degree. For example, the node vectors of key skeletal nodes such as the upper arm, forearm, thigh, and calf in each video frame are obtained, and the vector distances between the key skeletal nodes such as the upper arm, forearm, thigh, and calf in the preset posture and the key skeletal nodes such as the upper arm, forearm, thigh, and calf in the corresponding video frame are calculated. The motion matching degree of each video frame is determined based on the motion matching degree of each video frame corresponding to the preset posture, and the motion matching degree corresponding to the preset posture is determined. The motion matching degree corresponding to the current preset posture is sent to a server. The server determines special effect information based on the motion matching degree of the current preset posture. The electronic device obtains the special effect information corresponding to each preset posture determined by the server and generates a special effect animation based on the special effect information corresponding to each preset posture.
[0066] It should be noted that there are many ways for the server to determine special effect information based on the action matching degree, and these are not specifically limited. For example, the server may assign special effect symbols to users in a descending order based on the action matching degree. Specifically, for the current preset posture, the server may sort the users in descending order based on the action matching degree, and assign special effect symbols to each user in descending order. After the game ends, the final ranking of each user is determined based on the number of special effect symbols corresponding to each preset posture.
[0067] In some embodiments, displaying a special effect animation through a target interactive page includes displaying the special effect animation through a special effect animation area within the target interactive page. Figure 5 is a schematic diagram of another target interactive page provided by an embodiment of the present disclosure. As shown in Figure 5, a special effect animation is displayed in a special effect animation area 50 of the target interactive page. Special effect animation area 50 includes a third area and a fourth area, wherein the third area displays a first special effect animation, and the fourth area displays a second special effect animation.
[0068] An embodiment of the present disclosure provides a video call method, which responds to a first operation on a target interaction page, plays a standard video and a user video through the target interaction page, generates a special effect animation according to the action matching degree between the user video and the standard video, and displays the special effect animation through the target interaction page, thereby enabling a user interactive game during the video call, and using the special effect animation to display the game results, thereby improving the interactivity and fun during the video call.
[0069] FIG6 is a flow chart of another video call method provided by an embodiment of the present disclosure. Based on the above embodiment, this embodiment adds a step of connecting the video capture device and the electronic device after displaying the target interaction page. As shown in FIG6 , the method includes:
[0070] S210: Establish a communication connection with a video acquisition device by setting an audio and video communication interface, and acquire the user video through the video acquisition device.
[0071] The audio and video communication interface is configured to enable a point-to-point communication connection between the electronic device and the video capture device, enabling the exchange of media resources and network information between the electronic device and the video capture device. For example, the electronic device may be a computer, laptop, smart TV, or other intelligent terminal, and the video capture device may be a smartphone or other mobile terminal camera, camera, or other capture terminal.
[0072] After establishing a communication connection between the video capture device and the electronic device, the video of the user imitating the actions in the standard video is obtained through the video capture device and pushed to the electronic device in real time, and the video pushed by the video capture device is displayed on the electronic device.
[0073] In some embodiments, a target interaction page is displayed, wherein the target interaction page includes a standard video area, a user video area, and a special effect animation area. In response to a second operation on the user video area, a connection guidance page is displayed.
[0074] The second operation may be an operation by a user to trigger the establishment of a wireless connection between the local device and the video capture device and obtain access authorization to the video capture device. For example, for the initiator of the interactive event, the second operation may be an operation by the initiator of the interactive event clicking a preset connection control in the user video area of the local device. Correspondingly, for other users of the video call (i.e., invitees), the second operation may be an operation by the invitees clicking a preset connection control in the user video area of the local device. In the disclosed embodiment, the local device may be an electronic device such as a personal computer or a notebook.
[0075] Figure 7 is a schematic diagram of a connection page between a local device and a mobile terminal according to an embodiment of the present disclosure. The local device displays the target interaction page shown in Figure 7, with a preset connection control displayed in the user video area. When the user clicks the preset connection control, a connection guidance page is displayed.
[0076] In some embodiments, a connection identifier is displayed on a connection guidance page, and the mobile terminal performs connection authentication based on the connection identifier. If the authentication is successful, a wireless connection is established between the electronic device and the mobile terminal. For example, a connection code identifier is displayed on a connection guidance page, and the connection code identifier is scanned by the mobile terminal camera. The mobile terminal displays an authorization page based on the connection code identifier, and in response to the user's authorization operation on the authorization page, the electronic device is authorized to access the mobile device camera.
[0077] After the guide page is displayed, access authorization for the mobile camera is obtained based on the third operation of the connection guide page.
[0078] The third operation may be an operation performed by a user to establish a wireless connection between the local device and the mobile device and obtain access authorization for the mobile device's camera. For example, for the initiator of the interactive event, the third operation may be an operation in which the initiator of the interactive event scans the local device's connection guidance page using the mobile device's camera. Correspondingly, for the invitee, the third operation may be an operation in which the invitee scans the local device's connection guidance page using the mobile device's camera.
[0079] Figure 8 is a schematic diagram of another connection page between a local device and a mobile terminal provided by an embodiment of the present disclosure. After the mobile terminal camera is turned on, the connection code identifier in the connection guidance page is obtained, and an authorization page is displayed based on the connection code identifier. In response to the user's authorization operation on the authorization page, the electronic device is authorized to access the mobile device camera.
[0080] For example, the mobile device uses the camera to obtain the connection code from the connection guide page, displays an authorization page in a pop-up window, and asks the user whether to authorize the electronic device to access the camera. If the operation is allowed, an access authorization message for the mobile camera is sent to the electronic device, allowing the electronic device to obtain access authorization for the mobile camera.
[0081] It's important to note that because mobile cameras have wider viewing angles and higher resolution than computer cameras, ultra-low latency transmission using a pre-defined communication protocol within a local area network (LAN) can be used to synchronize mobile camera footage with the computer. To achieve this, ensure the mobile and computer are on the same LAN. Use the real-time messaging feature of the pre-defined communication protocol to exchange media and network information between the mobile and computer, establishing a peer-to-peer (P2P) connection. The mobile device captures user video and pushes the video stream to the computer, which then displays the video stream pushed by the mobile device.
[0082] S220: Obtain a first operation in the target interactive page.
[0083] S230: Generate an interaction start message according to the first operation, send the interaction start message to the server, and send the standard video based on the interaction start message through the server.
[0084] S240: Obtain the standard video sent by the server, and play the standard video in the standard video area.
[0085] In some embodiments, when a synchronization event is triggered, the playback progress and user status of the standard video are sent to the server in real time by setting the audio and video software toolkit SDK, and the playback progress and user status are synchronized to the target interaction page of each user through the server.
[0086] The synchronization event can be an event that triggers synchronization of the video playback progress and user status on each user's target interaction page. Synchronization events can be triggered on a scheduled basis, etc. The audio and video SDK is configured to implement a multi-person video call. For example, the audio and video SDK can be configured as a Web SDK, which is used on a computer to implement browser-based multi-person video interaction. Figure 9 is a schematic diagram of a video interaction system provided by an embodiment of the present disclosure. As shown in Figure 9, the initiator of an interaction event invites two invitees to participate in an interactive game. After the invitees enter the room, the server sends a "prepare" message to the server via the Web SDK. Upon receiving a "prepare" message from an invitee, the server sends a "state change" message to the computers of each user participating in the interactive game. Based on the state change message, the status of the corresponding invitee on the target interaction page is changed to "prepare". When both invitees are in the "prepare" state, the initiator of the interaction event clicks the "start game" control, which sends an "interaction start" message to the server via the Web SDK. The server pushes a standard video stream to all users involved in the video call, which is played through the standard video area on each user's computer, achieving synchronization of the standard video playback progress.
[0087] S250: Generate a collection message according to the first operation, send the collection message to the video collection device, and use the video collection device to send the user video based on the collection message.
[0088] S260: Acquire the user video sent by the video acquisition device, and play the user video in the user video area.
[0089] In some embodiments, the computer of the initiator of the interaction event generates a capture message based on the first operation and sends the capture message to the video capture device. The server sends a trigger message based on the first operation to each computer invited to the call. The computer of the invitee generates a capture message based on the trigger message corresponding to the first operation and sends the capture message to the video capture device.
[0090] Figure 10 is a schematic diagram of another target interaction page provided by an embodiment of the present disclosure. The video capture device captures user video in real time based on the capture message. As shown in Figure 10, the user video is played in the first user video area 101 of the local terminal and sent to the server terminal. The server terminal synchronizes the user video with other users, allowing the user video to be played in the second user video area 102 of other users, thus achieving real-time synchronization of game status.
[0091] S270: Generate a special effects animation according to the action matching degree between the user video and the standard video, and display the special effects animation through the target interactive page.
[0092] The disclosed embodiment establishes a wireless connection between the video capture device and the computer through the third operation on the connection guide page, and enables the computer to obtain access authorization to the video capture device, thereby realizing real-time acquisition of user videos captured by the video capture device, solving the problems of the camera on the computer in terms of camera viewing angle and pixels, broadening the camera viewing angle, and improving the video shooting quality.
[0093] FIG11 is a flow chart of another video call method provided by an embodiment of the present disclosure. Based on the above embodiment, this embodiment specifically defines the method for generating special effect animations. As shown in FIG11 , the method includes:
[0094] S310. Display a target interaction page, wherein the target interaction page includes a first area, a second area, a third area, and a fourth area.
[0095] S320. In response to a first operation on the target interactive page, play the standard video and the user video through the target interactive page.
[0096] S330: When the standard video is played to a preset posture, obtain at least one video frame associated with the preset posture in the user video.
[0097] The preset poses are those in a server-generated table of time-to-preset pose correspondences. A standard video includes at least one preset pose. When the standard video plays to each preset pose, a motion matching calculation is performed and special effects animation is generated based on the motion matching.
[0098] In the embodiment of the present disclosure, at least one video frame associated with a preset posture may be the N video frames before and after the video frame to which the user posture corresponding to the preset posture belongs. Since the frame to which the user posture belongs may last for multiple video frames, or there may be problems with the shooting quality, by performing posture extraction on the N video frames near the user posture, the key skeletal nodes corresponding to each video frame can be obtained. Figure 12 is a schematic diagram of posture extraction provided by an embodiment of the present disclosure. Figure 12 shows the key skeletal nodes 121 corresponding to each video frame. The user posture corresponding to each video frame in the N video frames is determined based on the key skeletal nodes 121.
[0099] S340: Match the user posture in the at least one video frame with the preset posture, and determine the action matching degree according to the matching result.
[0100] For example, a first skeletal node corresponding to a user's posture in each video frame is obtained; a second skeletal node corresponding to the preset posture is matched with the first skeletal node to determine the similarity between the user's posture in each video frame and the preset posture. The degree of action matching is determined based on the similarity. A posture extraction algorithm can be used to extract the first skeletal node in the user's posture and the second skeletal node in the standard video.
[0101] In the disclosed embodiments, matching a user's posture in at least one video frame with a preset posture may include calculating a vector difference between the skeletal nodes of the user's posture and the preset posture, and determining the similarity between the user's posture and the preset posture for each video frame based on the vector difference. The similarity corresponding to the most similar video frame may be selected as the degree of matching of the user's posture with the preset posture.
[0102] When the standard video is played to each preset posture, the action matching degree between the user posture and the preset posture is calculated through the above process.
[0103] S350: Send the action matching degree to the server, obtain special effect information and ranking information determined by the server according to the action matching degree, and generate a special effect animation according to the special effect information and ranking information.
[0104] Special effect information can be information displayed on the target interactive page using special effects. For example, special effect information includes special effect symbols and special effect graphics. Ranking information can be information sorting the user's action matching degree. Both special effect information and ranking information are generated by the server based on the action matching degree corresponding to each preset posture and sent to each user.
[0105] In some embodiments, each user's computer sends the action matching degree corresponding to each preset posture to the server. The server then sorts the users in descending order based on the action matching degree. Based on the sorting results, a special effect symbol corresponding to each user is determined in descending order. Based on the special effect symbol, a special effect graphic corresponding to each user is determined. For each user, the server determines special effect information based on the special effect symbols of all users and the special effect graphic corresponding to the user, and sends the special effect information to the corresponding user's computer. The server also sends the ranking information of all users to the corresponding user's computer based on the sorting results.
[0106] Generating a special effect animation according to the special effect information and ranking information includes: for each preset posture, generating a first special effect animation according to the special effect information and ranking information of each user, and generating a second special effect animation according to the special effect information of the local user.
[0107] The first special effect animation may be an animation displayed in the first special effect animation area of the target interactive page. The first special effect animation may include information such as the user identifier, the number of special effect symbols, and the user ranking. The second special effect animation may be an animation displayed in the second special effect animation area of the target interactive page. The second special effect may include the number of special effect symbols of the local user and a special effect graphic determined based on the special effect symbols.
[0108] S360: Display the first special effect animation through the third area in the target interactive page.
[0109] S370: Display the second special effect animation through the fourth area in the target interactive page.
[0110] Before interaction begins, the first special effects animation area displays the user's nickname and status. After interaction begins, the first special effects animation area updates to display the user's nickname, special effects symbol, and ranking information. As shown in Figure 5 , during interaction, the special effects symbol and ranking information are dynamically updated as the standard video plays. During interaction, the second special effects animation area displays special effects graphics. For example, the special effects graphics can be a progress bar that dynamically displays the changes in special effects symbols as the number of special effects symbols increases.
[0111] S380: When a preset event is triggered, obtain the special effect information and ranking information of each user in the special effect animation.
[0112] The preset event may be an event indicating the end of an interaction. For example, the preset event may be a set time after the standard video has finished playing. Within the set time, the computer obtains the special effect information and ranking information determined by the server based on the last preset posture, wherein the last preset posture is determined based on the time in the table of correspondences between time and preset postures. Alternatively, the preset event may be an event that updates the special effect animation based on the special effect information and ranking information corresponding to the last preset posture.
[0113] In some embodiments, when an event indicating the end of interaction is triggered, the special effect information and ranking information of each user in the updated special effect animation are obtained. During the interaction process, the server determines the number of special effect symbols based on the degree of action matching, and accumulates the number of special effect symbols with the special effect symbols corresponding to the previous preset posture to determine the number of special effect symbols corresponding to the current preset posture. The ranking information corresponding to the current preset posture is determined based on the number of special effect symbols. Therefore, the number of special effect symbols corresponding to the last preset posture is the number of special effect symbols in the interactive game, and the ranking information corresponding to the last preset posture is the ranking information of the interactive game.
[0114] Figure 13 is a schematic diagram of an interactive game implemented during a video call provided by an embodiment of the present disclosure. As shown in Figure 13, a closed room is created for each standard video, a closed room is created by the initiator of the interactive event, and the invitees are invited to join the room. When the server detects the preparation message sent by the invitee, it sends the preparation status to the computer end of each user. The initiator of the interactive event sends an interaction start message to the server end to notify the invitee to start the interaction through the server end. During the interaction process, the server end polls the action matching degree of each user in the room, determines the special effect information and ranking information based on the action matching degree, and sends the special effect information and ranking information to the computer end. The computer end updates the special effect animation based on the special effect information and ranking information.
[0115] S390: Display the user ID, special effect information, and ranking information of each user by setting a pop-up window.
[0116] Figure 14 is a schematic diagram of a pop-up window provided by an embodiment of the present disclosure. As shown in Figure 14, at the end of an interaction, a settings pop-up window is displayed, which is located above the target interaction page. The settings pop-up window displays each user's user nickname, the number of special effect symbols, and ranking information.
[0117] The disclosed embodiment determines the action matching degree by comparing the user posture with the preset posture for each preset posture, determines the special effect information and ranking information based on the action matching degree, determines the special effect animation based on the special effect information and ranking information, and displays the special effect animation through the special effect animation area, thereby realizing the representation of user scores and rankings through the special effect animation, thereby further enhancing the fun.
[0118] Figure 15 is a schematic diagram of the structure of a video call device provided in an embodiment of the present disclosure. This device can be implemented using software and / or hardware and can be deployed in an electronic device, typically a personal computer, laptop, or other similar computer. As shown in Figure 15 , the video call device provided in this embodiment may include a video playback module 410 and a special effects generation module 420.
[0119] The video playback module 410 is configured to play a standard video and a user video via a target interactive page in response to a first operation on the target page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0120] The special effect generation module 420 is used to generate a special effect animation according to the action matching degree between the user video and the standard video, and display the special effect animation through the target interactive page.
[0121] A video call device provided by an embodiment of the present disclosure responds to a first operation in a target page, plays a standard video and a user video through a target interactive page, generates a special effect animation according to the action matching degree between the user video and the standard video, and displays the special effect animation through the target interactive page, thereby enabling user interactive games during the video call and displaying the game results using special effect animation, thereby improving the interactivity and fun during the video call.
[0122] In the above solution, the video playback module 410 is specifically used to:
[0123] Obtaining a first operation of a target interactive page, and obtaining the standard video and the user video according to the first operation;
[0124] The standard video is played through the first area in the target interaction page, and the user video is played through the second area in the target interaction page.
[0125] In the above solution, the special effect generation module 420 is specifically used to:
[0126] When the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video;
[0127] Matching the user posture in the at least one video frame with the preset posture, and determining a motion matching degree based on the matching result;
[0128] The action matching degree is sent to a server, special effect information determined by the server according to the action matching degree is obtained, and a special effect animation is generated according to the special effect information.
[0129] Furthermore, the special effect generation module 420 is further configured to:
[0130] Determining that the standard video is played to a preset posture according to the playing time of the standard video;
[0131] A timestamp of a user gesture corresponding to the preset gesture in the user video is obtained, a timestamp interval is determined according to the timestamp, and at least one video frame corresponding to the timestamp interval in the user video is obtained.
[0132] Furthermore, the special effect generation module 420 is further configured to:
[0133] Get the first bone node corresponding to the user's posture in each video frame;
[0134] Matching the second skeletal node corresponding to the preset posture with the first skeletal node to obtain the similarity between the user posture in each video frame and the preset posture;
[0135] An action matching degree is determined according to the similarity.
[0136] Furthermore, the device also includes
[0137] An information acquisition module, configured to, after sending the action matching degree to the server, acquire ranking information determined by the server according to the action matching degree;
[0138] The special effect generation module 420 is further specifically used for:
[0139] A special effect animation is generated according to the special effect information and the ranking information.
[0140] Furthermore, the special effect generation module 420 is further specifically configured to:
[0141] For each preset gesture, a first special effect animation is generated according to the special effect information and ranking information of each user, and a second special effect animation is generated according to the special effect information of the local user.
[0142] Furthermore, the special effect generation module 420 is further specifically configured to:
[0143] Displaying the first special effect animation through a third area in the target interactive page;
[0144] The second special effect animation is displayed through the fourth area in the target interactive page.
[0145] In the above solution, the device further includes:
[0146] The connection establishment module is used to establish a communication connection with a video acquisition device by setting an audio and video communication interface before playing standard video and user video through the target interactive page in response to the first operation in the target page, and to acquire the user video through the video acquisition device.
[0147] The above scheme also includes:
[0148] The status synchronization module is used to send the playback progress and user status of the standard video to the server by setting the audio and video software toolkit SDK when the synchronization event is triggered, and synchronize the playback progress and user status to the target interaction page of each user through the server.
[0149] Optionally, the device further comprises:
[0150] an upload page display module, configured to display a video control through the target interaction page before responding to a first operation in the target interaction page, and to display a video upload page in response to a fourth operation on the video control;
[0151] The video upload module is used to upload the standard video to the server in response to the fifth operation on the video upload page.
[0152] In the above solution, the solution further includes:
[0153] The information display module is used to obtain the special effect information and ranking information of each user in the special effect animation when a preset event is triggered; and to display the user identification, special effect information and ranking information of each user by setting a pop-up window.
[0154] The video calling device provided in the embodiments of the present disclosure can execute the video calling method provided in any embodiment of the present disclosure and has the corresponding functional modules and beneficial effects of executing the video calling method. For technical details not fully described in this embodiment, please refer to the video calling method provided in any embodiment of the present disclosure.
[0155] Figure 16 is a block diagram of an electronic device provided in an embodiment of the present disclosure. Referring to Figure 16 below, a schematic diagram of the structure of an electronic device 160 suitable for implementing an embodiment of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include smart terminals such as desktop computers, laptops, digital TVs, etc. The mobile terminal includes mobile terminals such as mobile phones, PADs (tablet computers), etc. The electronic device shown in Figure 16 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
[0156] As shown in FIG16 , the electronic device 160 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 161, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 162 or a program loaded from a storage device 166 into a random access memory (RAM) 163. Various programs and data required for the operation of the electronic device 160 are also stored in the RAM 163. The processing device 161, the ROM 162, and the RAM 163 are connected to each other via a bus 164. An input / output (I / O) interface 165 is also connected to the bus 164.
[0157] Typically, the following devices may be connected to the I / O interface 165: an input device 166 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 167 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 166 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 169. The communication device 169 may allow the electronic device 160 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 16 shows the electronic device 160 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0158] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 169, or installed from the storage device 166, or installed from the ROM 162. When the computer program is executed by the processing device 161, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0159] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0160] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0161] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0162] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0163] In response to a first operation on a target page, playing a standard video and a user video through a target interactive page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0164] A special effects animation is generated according to the action matching degree between the user video and the standard video, and the special effects animation is displayed through the target interactive page.
[0165] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0168] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0169] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0170] According to one or more embodiments of the present disclosure, Example 1 provides a video calling method, characterized by including:
[0171] In response to a first operation in a target interactive page, playing a standard video and a user video through the target interactive page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0172] A special effects animation is generated according to the action matching degree between the user video and the standard video, and the special effects animation is displayed through the target interactive page.
[0173] According to one or more embodiments of the present disclosure, Example 2 is the method according to Example 1, wherein, in response to a first operation on a target page, playing a standard video and a user video through the target interactive page includes:
[0174] Obtaining a first operation of a target interactive page, and obtaining the standard video and the user video according to the first operation;
[0175] The standard video is played through the first area in the target interaction page, and the user video is played through the second area in the target interaction page.
[0176] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 1, wherein generating a special effect animation based on a motion matching degree between the user video and a standard video includes:
[0177] When the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video;
[0178] Matching the user posture in the at least one video frame with the preset posture, and determining a motion matching degree based on the matching result;
[0179] The action matching degree is sent to a server, special effect information determined by the server according to the action matching degree is obtained, and a special effect animation is generated according to the special effect information.
[0180] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 3, wherein, when the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video includes:
[0181] Determining that the standard video is played to a preset posture according to the playing time of the standard video;
[0182] A timestamp of a user gesture corresponding to the preset gesture in the user video is obtained, a timestamp interval is determined according to the timestamp, and at least one video frame corresponding to the timestamp interval in the user video is obtained.
[0183] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 3, wherein matching the user gesture in the at least one video frame with the preset gesture and determining the action matching degree based on the matching result includes:
[0184] Get the first bone node corresponding to the user's posture in each video frame;
[0185] Matching the second skeletal node corresponding to the preset posture with the first skeletal node to obtain the similarity between the user posture in each video frame and the preset posture;
[0186] The action matching degree is determined according to the similarity.
[0187] According to one or more embodiments of the present disclosure, Example 6, according to the method of Example 3, further includes:
[0188] Obtaining ranking information determined by the server according to the action matching degree;
[0189] Generating a special effect animation according to the special effect information includes:
[0190] A special effect animation is generated according to the special effect information and the ranking information.
[0191] According to one or more embodiments of the present disclosure, Example 7 is the method according to Example 6, wherein generating a special effect animation according to the special effect information and ranking information includes:
[0192] For each preset gesture, a first special effect animation is generated according to the special effect information and ranking information of each user, and a second special effect animation is generated according to the special effect information of the local user.
[0193] According to one or more embodiments of the present disclosure, Example 8, according to the method of Example 7, wherein displaying the special effect animation through the target interactive page includes:
[0194] Displaying the first special effect animation through a third area in the target interactive page;
[0195] The second special effect animation is displayed through the fourth area in the target interactive page.
[0196] According to one or more embodiments of the present disclosure, Example 9, according to the method of Example 1, further includes, before playing the standard video and the user video through the target interactive page in response to the first operation on the target page:
[0197] A communication connection with a video acquisition device is established by setting an audio and video communication interface, and the user video is acquired by the video acquisition device.
[0198] According to one or more embodiments of the present disclosure, Example 10 is the method according to Example 1, and further includes:
[0199] The audio and video software toolkit SDK is set to send the playback progress and user status of the standard video to the server, and the server synchronizes the playback progress and user status to the target interaction page of each user.
[0200] According to one or more embodiments of the present disclosure, Example 11 is the method according to Example 1, further comprising:
[0201] When a video upload event is triggered, displaying a video control through the target interactive page, and displaying a video upload page in response to a fourth operation of the video control;
[0202] In response to the fifth operation on the video upload page, the standard video is uploaded to the server.
[0203] According to one or more embodiments of the present disclosure, Example 12: According to any one of Examples 1-11, the method further includes:
[0204] When a preset event is triggered, obtaining the special effect information and ranking information of each user in the special effect animation;
[0205] Display each user's user ID, special effect information and ranking information by setting pop-up windows.
[0206] According to one or more embodiments of the present disclosure, Example 13 provides a video calling device, including:
[0207] a video playback module, configured to play a standard video and a user video via a target interactive page in response to a first operation on the target page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content;
[0208] The special effect generation module is used to generate a special effect animation according to the action matching degree between the user video and the standard video, and display the special effect animation through the target interactive page.
[0209] According to one or more embodiments of the present disclosure, Example 14 provides an electronic device, the electronic device including:
[0210] one or more processors;
[0211] a storage device for storing one or more programs,
[0212] When the one or more programs are executed by the one or more processors, the one or more processors implement the video calling method as described in any one of Examples 1-12.
[0213] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video calling method as described in any one of Examples 1-12.
[0214] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0215] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0216] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A video calling method, comprising: In response to a first operation in a target interactive page, a standard video and a user video are played through the target interactive page, wherein the first operation is an operation that triggers video interaction, the user video is an interactive video associated with the standard video, and the target interactive page is a page that displays interactive content; A special effects animation is generated according to the action matching degree between the user video and the standard video, and the special effects animation is displayed through the target interactive page.
2. The method according to claim 1, wherein: In response to the first operation in the target page, playing the standard video and the user video through the target interactive page includes: Acquire a first operation in a target interactive page, and acquire the standard video and the user video according to the first operation; The standard video is played through the first area in the target interaction page, and the user video is played through the second area in the target interaction page.
3. The method according to claim 1, wherein: The generating of special effect animation according to the action matching degree between the user video and the standard video includes: When the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video; Matching the user posture in the at least one video frame with the preset posture, and determining the action matching degree according to the matching result; The action matching degree is sent to a server, special effect information determined by the server according to the action matching degree is obtained, and a special effect animation is generated according to the special effect information.
4. The method according to claim 3, wherein: When the standard video is played to a preset posture, obtaining at least one video frame associated with the preset posture in the user video includes: Determining that the standard video is played to a preset posture according to the playing time of the standard video; A timestamp of a user gesture corresponding to the preset gesture in the user video is obtained, a timestamp interval is determined according to the timestamp, and at least one video frame corresponding to the timestamp interval in the user video is obtained.
5. The method according to claim 3, wherein: The step of matching the user posture in the at least one video frame with the preset posture and determining the action matching degree according to the matching result includes: Get the first bone node corresponding to the user's posture in each video frame; Matching the second skeletal node corresponding to the preset posture with the first skeletal node to obtain the similarity between the user posture in each video frame and the preset posture; The action matching degree is determined according to the similarity.
6. The method according to claim 3, wherein: After sending the action matching degree to the server, the method further includes: Obtaining ranking information determined by the server according to the action matching degree; Generating the special effect animation according to the special effect information includes: Generate a special effect animation according to the special effect information and ranking information.
7. The method according to claim 6, wherein: Generating a special effect animation according to the special effect information and the ranking information includes: For each preset posture, a first special effect animation is generated according to the special effect information and ranking information of each user, and a second special effect animation is generated according to the special effect information of the local user.
8. The method according to claim 7, wherein: The displaying the special effect animation through the target interactive page includes: Displaying the first special effect animation through a third area in the target interactive page; The second special effect animation is displayed through the fourth area in the target interactive page.
9. The method according to claim 1, wherein: In response to the first operation in the target page, before playing the standard video and the user video through the target interactive page, the method further includes: A communication connection with a video acquisition device is established by setting an audio and video communication interface, and the user video is acquired through the video acquisition device.
10. The method according to claim 1, wherein: When a synchronization event is triggered, it also includes: The audio and video software toolkit SDK is set to send the playback progress and user status of the standard video to the server, and the playback progress and user status are synchronized to the target interaction page of each user through the server.
11. The method according to claim 1, wherein: Before responding to the first operation in the target interactive page, the method further includes: Displaying a video control through the target interactive page, and displaying a video upload page in response to a fourth operation of the video control; In response to the fifth operation of the video upload page, the standard video is uploaded to the server.
12. The method according to any one of claims 1 to 11, wherein: Also includes: When a preset event is triggered, obtaining special effect information and ranking information of each user in the special effect animation; The user ID, special effect information and ranking information of each user are displayed by setting pop-up windows.
13. A video calling device, comprising: The video playing module is used to respond to a first operation in a target interactive page and play a standard video and a user video through the target interactive page, wherein the first operation is an operation that triggers video interaction, and the user video is an operation that interacts with the standard video. The interactive video associated with the quasi-video, the target interactive page is a page displaying the interactive content; The special effect generation module is used to generate a special effect animation according to the action matching degree between the user video and the standard video, and display the special effect animation through the target interactive page.
14. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video calling method as described in any one of claims 1-12.
15. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the video calling method as described in any one of claims 1-12 when executed by a computer processor.
Citation Information
Patent Citations
Video playing method and electronic equipment
CN111641861A
Follow-up practice mode control method and display equipment
CN112272324A
Display method and device, electronic equipment and storage medium
CN113342439A
Video processing method and device, electronic equipment and storage medium
CN115393766A
Video call method and device, electronic equipment and storage medium
CN116320583A
