CN113727147A - Gift presenting method and device for live broadcast room - Google Patents

Gift presenting method and device for live broadcast room Download PDF

Info

Publication number
CN113727147A
CN113727147A CN202110998538.6A CN202110998538A CN113727147A CN 113727147 A CN113727147 A CN 113727147A CN 202110998538 A CN202110998538 A CN 202110998538A CN 113727147 A CN113727147 A CN 113727147A
Authority
CN
China
Prior art keywords
action
anchor
gift
executed
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110998538.6A
Other languages
Chinese (zh)
Inventor
朱德江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202110998538.6A priority Critical patent/CN113727147A/en
Publication of CN113727147A publication Critical patent/CN113727147A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a gift presenting method and device for a live broadcast room, wherein the gift presenting method for the live broadcast room comprises the following steps: receiving a gift giving request sent by a user side, wherein the gift giving request comprises a to-be-executed action of a virtual gift obtained by a main broadcast; generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal, wherein the action task carries an action to be executed; receiving a video stream sent by a main broadcasting end, detecting a main broadcasting action in the video stream, and obtaining the main broadcasting action in the video stream; and if the anchor action is matched with the action to be executed, adding the virtual gift corresponding to the gift giving request to the anchor account. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.

Description

Gift presenting method and device for live broadcast room
Technical Field
The application relates to the technical field of internet, in particular to a gift presentation method for a live broadcast room. The application also relates to a gift presentation device of the live broadcast room, a computing device and a computer readable storage medium.
Background
With the rapid development of computer technology and internet technology, various live broadcasts come out endlessly, and in the live broadcast process, a user and a main broadcast can interact, for example, the user can be attracted by live highlight content in the live broadcast process, and gifts are given to the main broadcast in the live broadcast room.
In the prior art, when a user wants to give a gift to a main broadcast, the user can click a gift selection control in a live broadcast interface, then select a certain gift in a popped gift backpack, and give the gift to the main broadcast after clicking confirmation. However, in the above process, the user presents the gift to the anchor after selecting the gift, the interactivity between the user and the anchor is poor, the user cannot experience the interest of presenting the gift, and the user experience is affected.
Disclosure of Invention
In view of this, the present application provides a method for presenting gifts in a live broadcast room. The application also relates to a gift presenting device of a live broadcast room, a computing device and a computer readable storage medium, which are used for solving the problems of poor interactivity and interestingness when a user presents gifts to a main broadcast in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a method for presenting gifts in a live broadcast room, which is applied to a server and includes:
receiving a gift giving request sent by a user side, wherein the gift giving request comprises a to-be-executed action of a virtual gift obtained by a main broadcast;
generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal, wherein the action task carries an action to be executed;
receiving a video stream sent by a main broadcasting end, detecting a main broadcasting action in the video stream, and obtaining the main broadcasting action in the video stream;
and if the anchor action is matched with the action to be executed, adding the virtual gift corresponding to the gift giving request to the anchor account.
According to a second aspect of the embodiments of the present application, there is provided a method for presenting gifts in a live broadcast room, which is applied to a client, and includes:
receiving an action task issued by a server, wherein the action task carries an action to be executed for obtaining a corresponding virtual gift;
collecting a main broadcasting picture to generate a video stream and pushing the video stream to a server;
and under the condition that the server detects that the gift acquisition condition is met, displaying the virtual gift corresponding to the action task acquired by the anchor on an anchor interface, wherein the gift acquisition condition is that the anchor action is matched with the action to be executed in the video stream.
According to a third aspect of the embodiments of the present application, there is provided a live broadcast gift giving device, applied to a server, including:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is configured to receive a gift giving request sent by a user side, and the gift giving request comprises a to-be-executed action of an anchor broadcast for obtaining a corresponding virtual gift;
the issuing module is configured to generate a corresponding action task according to the gift giving request and issue the action task to the anchor terminal, wherein the action task carries an action to be executed;
the detection module is configured to receive a video stream sent by a main broadcasting end, detect a main broadcasting action in the video stream and obtain the main broadcasting action in the video stream;
and the adding module is configured to add the virtual gift corresponding to the gift giving request to the anchor account if the anchor action is matched with the action to be executed.
According to a fourth aspect of the embodiments of the present application, there is provided a gift giving device in a live broadcast room, applied to a main broadcast end, including:
the second receiving module is configured to receive an action task issued by the server, and the action task carries an action to be executed for obtaining the corresponding virtual gift;
the pushing module is configured to collect the anchor picture to generate a video stream and push the video stream to the server;
and the display module is configured to display the virtual gift corresponding to the action task obtained by the anchor on the anchor interface under the condition that the server detects that the gift obtaining condition is met, wherein the gift obtaining condition is that the anchor action is matched with the action to be executed in the video stream.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is for storing computer-executable instructions and the processor is for executing the computer-executable instructions to implement the steps of any live room gift-giving method.
According to a sixth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of any live room gift giving method.
According to the method for presenting the gift in the live broadcast room, a server can receive a gift presenting request sent by a user side, wherein the gift presenting request comprises a to-be-executed action of a virtual gift obtained by a main broadcast; then generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal, wherein the action task carries the action to be executed; and then, receiving a video stream sent by the anchor terminal, detecting the anchor action in the video stream to obtain the anchor action in the video stream, and if the anchor action is matched with the action to be executed, adding a virtual gift corresponding to the gift giving request to an anchor account. In this case, after the user selects a gift in the live interface of the user side, the server may generate a corresponding action task according to the gift selected by the user, and issue the action task to the anchor side, so that the anchor makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for presenting gifts in a live broadcast room according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a prompt icon according to an embodiment of the present application;
fig. 3 is a schematic diagram of an anchor interface of an anchor terminal according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for gifting a gift from a live broadcast room provided by an embodiment of the present application;
FIG. 5 is a flow chart of yet another method for presenting gifts from a live broadcast room according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a gift-giving device in a live broadcast room according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another embodiment of a gift-giving device for a live broadcast room;
fig. 8 is a schematic structural diagram of a gift-giving system in a live broadcast room according to an embodiment of the present application;
fig. 9 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The present application provides a method for presenting a gift in a live broadcast room, and relates to a device for presenting a gift in a live broadcast room, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 is a flowchart illustrating a method for gifting a gift in a live broadcast room according to an embodiment of the present application, and the method is applied to a server and specifically includes the following steps:
step 102: and receiving a gift giving request sent by a user side, wherein the gift giving request comprises a to-be-executed action of the anchor for obtaining the corresponding virtual gift.
Specifically, the user side may refer to a client side used when the user watches live broadcasting, for example, the user side may be a mobile terminal, a computer, or other equipment used when the user watches live broadcasting; the gift-giving request may refer to a request for a gift to be given to a main broadcast of a live broadcast room by a user, and the gift-giving request may be triggered by the user in a live broadcast interface of a user terminal used when watching the live broadcast. In addition, the action to be executed may be an action corresponding to the virtual gift to be presented by the gift presentation request, that is, an action that the anchor acquires the virtual gift to be executed, for example, the action to be executed may be a gesture action, a yoga action, or the like.
In practical application, when a user wants to give a gift to a main broadcast, the user can click a gift selection control in a live interface of the user side, then select a certain gift in a popped gift backpack, and after the user clicks confirmation, the user side can send a gift giving request to a server.
In an optional implementation manner of this embodiment, before receiving the gift-giving request sent by the user, an action to be performed to obtain the virtual gift may be configured in advance in the server, that is, before receiving the gift-giving request sent by the user, the method may further include:
receiving a virtual gift configuration request, wherein the virtual gift configuration request carries a gift identifier and a corresponding action to be executed;
and correspondingly storing the gift identification and the corresponding action to be executed to generate a preset gift task table.
Specifically, the virtual gift configuration request may be a request for configuring an action to be executed to acquire a virtual gift, the virtual gift configuration request may be triggered by a configuration operation performed by a worker in the server in advance, and the virtual gift configuration request may carry a gift identifier and a corresponding action to be executed, so that the gift identifier and the corresponding action to be executed may be stored correspondingly, and a preset gift task may be generated. The gift identification may be used to uniquely identify one virtual gift, for example, the gift identification may be a gift ID, and one gift identification may correspond to more than one action to be performed, that is, for one virtual gift, at least one corresponding action to be performed may be configured.
In practical applications, since the number of the virtual gifts to be configured with the corresponding actions to be executed is generally multiple, a worker needs to configure the actions to be executed corresponding to each virtual gift in the server in advance. Or, an action to be executed corresponding to a virtual gift may also be configured through a virtual gift configuration request, that is, the virtual gift configuration request may carry a gift identifier and a corresponding action to be executed, which is not limited in this application.
For example, assuming that a virtual gift configuration request received by the server carries 4 gift identifiers, which are gift 1, gift 2, gift 3, and gift 4, respectively, and an action to be performed corresponding to the gift 1 is action 1, an action to be performed corresponding to the gift 2 is action 2, an action to be performed corresponding to the gift 2 is action 3, and an action to be performed corresponding to the gift 4 is action 4, at this time, the gift identifiers and the corresponding actions to be performed may be stored correspondingly, so as to generate a preset gift task table shown in table 1 below.
TABLE 1 Preset Gift task Table
Gift identification Action to be performed
Gift 1 Action 1
Gift 2 Action 2
Gift 3 Action 3
Gift 4 Action 4
It should be noted that, after a user selects a certain gift in the live interface of the user side, the to-be-executed action that needs to be executed by the anchor broadcast can be found in the preset gift task table (acquired from the server) according to the gift identifier of the gift selected by the user, and is displayed at the user side, where the to-be-executed action is the action that needs to be executed by the anchor broadcast to acquire the corresponding virtual gift, so that the user can know what action the anchor broadcast will execute when the gift is given to the anchor broadcast, and interactivity and interestingness when the user sends the gift are improved.
In an example, assuming that a gift identifier of a gift selected by a user in a live interface of a user side is a gift 2, the gift 2 is found in a preset gift task table shown in the above table 1, and then the to-be-executed action corresponding to the gift 2 is obtained as an action 2, at this time, it may be determined that the to-be-executed action of the anchor broadcast obtaining the corresponding virtual gift is an action 2.
In addition, the user selects a certain gift in the live broadcast interface of the user side, and after the user side determines the action to be executed which needs to be executed by the anchor broadcast based on the gift selected by the user, the action to be executed can be carried in the gift presentation request and sent to the server, so that the subsequent server can send an action task to the anchor broadcast based on the action to be executed carried in the gift presentation request, and the anchor broadcast is prompted to execute the corresponding action.
It should be noted that, after the user triggers the gift-giving request at the user end, the server may receive the gift-giving request sent by the user end, and the gift-giving request may include an action to be executed by the anchor to obtain the corresponding virtual gift, so that the subsequent server may determine, according to the received gift-giving request, the action to be executed by the anchor to obtain the corresponding virtual gift, and further generate the corresponding action task, thereby improving interactivity and interestingness when giving the gift.
Step 104: and generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal, wherein the action task carries the action to be executed.
Specifically, on the basis that the server receives the gift giving request sent by the user side, further, the server may generate a corresponding action task according to the gift giving request, and issue the action task to the anchor side, where the action task carries an action to be executed. Wherein the action task may be a task instructing the anchor to make an action to be performed.
It should be noted that, when the server receives the gift-giving request, because the gift-giving request includes the to-be-executed action of the anchor to obtain the corresponding virtual gift, the server can generate the corresponding action task according to the to-be-executed action, and issue the action task to the anchor, so that the anchor can make the corresponding to-be-executed action to obtain the gift given by the user, thereby improving interactivity and interestingness when giving the gift.
Certainly, in practical applications, the gift presentation request sent by the user side to the server may further include a gift identifier of a virtual gift presented by the user to the anchor, and after receiving the gift presentation request, the server may determine a corresponding action to be executed based on a preset gift task table stored in the server, and then generate and issue an action task according to the determined action to be executed, which is not limited in the present application.
In addition, after the server acquires the to-be-executed action included in the gift presentation request, the server can directly carry the to-be-executed action in the action task when generating the action task according to the to-be-executed action; or, the gift presentation request sent by the user to the server may further include a gift identifier of a virtual gift presented by the user to the anchor, and at this time, the server may further generate a corresponding task description according to the gift identifier and the action to be executed included in the gift presentation request, and carry the task description in the action task. Of course, in the specific implementation, when the task description is generated, other information of the gift presentation request may also be combined, such as the user account and the user identity of the presentation user.
Along the above example, the gift identifier included in the gift giving request is gift 2, and the action to be executed is action 2, and assuming that the gift giving request is initiated by user a, at this time, according to user a, gift 2 and corresponding action 2, a task description is generated, that user a gives gift 2 to you, and the gift needs you to complete action 2, and the task description is carried in the action task, so as to generate an action task which is finally issued to the main broadcast terminal.
Further, when the action task is generated according to the action to be performed, in addition to carrying the action to be performed or the task description of the action to be performed in the action task, gift information of the virtual gift to be presented in the request for presenting the gift, such as a gift name, a gift icon, a gift price, etc., may also be carried.
According to the method and the system, the action task can be generated and issued to the anchor terminal according to the gift identification, the action to be executed or other information and the like included in the gift presenting request, so that the anchor terminal can complete corresponding actions according to the received action task, obtain the virtual gift presented by the user, and interactivity and interestingness in the process of presenting the gift are improved.
In an optional implementation manner of this embodiment, an action may be often represented by coordinates of a key point, that is, coordinates of a key point in a human body gesture are detected, to determine whether the human body gesture is a gesture of a corresponding action, so that the action to be performed may include reference coordinates of at least one preset key point, so that the anchor may quickly know what action needs to be performed for the anchor, and after issuing a textual action task to the anchor, a prompt icon of the action to be performed may be generated to prompt the anchor what action needs to be performed, that is, after issuing the action task to the anchor, the method may further include:
generating a prompt icon of the action to be executed according to the reference coordinate of at least one preset key point included in the action to be executed;
and controlling the anchor terminal to display a prompt icon.
Specifically, the prompt icon may refer to a shape identifier capable of indicating an action to be performed. It should be noted that the reference coordinates of at least one preset key point included in the action to be performed may represent coordinates of each preset key point of the human body when the action to be performed is performed, and therefore, based on the reference coordinates of the at least one preset key point, a shape of the approximate posture of the human body when the action to be performed is performed may be determined, so that a prompt icon of the action to be performed may be generated according to the reference coordinates of the at least one preset key point included in the action to be performed, and displayed at the anchor terminal. The reference coordinates of the at least one preset key point may refer to coordinates in a coordinate system established with the center of the human body as the origin of coordinates.
In practical application, when the prompt icon of the action to be executed is generated according to the reference coordinate of the at least one preset key point included in the action to be executed, the position of the reference coordinate of the at least one preset key point can be determined, and then the corresponding preset key point is connected according to the shape of the human body, so that the prompt icon of the action to be executed can be obtained.
For example, fig. 2 is a schematic diagram of a prompt icon according to an embodiment of the present application, where the preset key points are assumed to be a head, two hands, and two feet, the action to be performed is to open the two hands and the two feet, and the whole action to be performed is in a large font shape, and reference coordinates of at least one preset key point included in the action to be performed are: { head, (0, 7) }, { left hand, (-4, 3) }, { right hand, (4, 3) }, { left foot, (-3, -7) }, { right foot, (3, 7) }, connecting the head, foot and the coordinate origin, and connecting both hands, i.e. connecting the respective key points in the shape of a "big" word, can obtain the hint icon as shown in fig. 2.
In the method and the device, the prompt icon of the action to be executed can be generated besides the character action task issued to the anchor terminal, the prompt icon can prompt the action required to be made by the anchor, so that the anchor can refer to the prompt icon to make the corresponding action, the anchor can conveniently understand the action required to be made by the anchor through the prompt icon, and the efficiency and the accuracy of executing the action task are improved.
Step 106: and receiving the video stream sent by the anchor terminal, detecting the anchor action in the video stream, and acquiring the anchor action in the video stream.
Specifically, the server generates a corresponding action task according to the gift giving request, and sends the action task to the anchor terminal, and further, the server may receive the video stream sent by the anchor terminal, detect the anchor action in the video stream, and obtain the anchor action in the video stream, so as to determine whether the anchor makes an action to be executed. The server can receive the video stream sent by the anchor terminal in real time and perform image recognition on the received current video stream in real time so as to detect the anchor action in the current video stream.
For example, fig. 3 is a schematic view of an anchor interface of an anchor terminal provided in an embodiment of the present application, and as shown in fig. 3, the anchor terminal may receive and display an action task "user a gives a bunch of flowers to you and the gift requires you to complete an action: the two hands and the two feet are opened, the two hands and the two feet are integrally in a big character shape ", and a prompt icon of the action can be displayed in a main broadcasting interface of the main broadcasting end, at the moment, the main broadcasting end can refer to the prompt icon, the two hands and the two feet are opened, so that the main broadcasting end integrally takes the big character shape, after the server issues an action task to the main broadcasting end, the server can receive a video stream sent by the main broadcasting end, a current main broadcasting picture is obtained, and the main broadcasting action in the video stream is detected.
In an optional implementation manner of this embodiment, after issuing the action task to the anchor terminal, the server may immediately start detecting an anchor action in the received video stream, or may restart detecting the anchor action in the received video stream when the detection condition is met, that is, before detecting the anchor action in the video stream, further include:
and executing an operation step of detecting the main broadcasting action in the video stream under the condition that a confirmation instruction returned by the main broadcasting end based on the action task is received or a cancel instruction is not received within a preset time after the action task is issued to the main broadcasting end.
It should be noted that, after the server issues the action task to the anchor, the anchor may click the confirmation control when confirming to receive the action task, at this time, the anchor may return a confirmation instruction to the server, and the server starts to detect the anchor action in the received video stream. In addition, after the server issues the action task to the anchor terminal, if a cancel instruction is not received within a preset time length, the anchor can be defaulted to receive the action task, and then the detection of the anchor action in the received video stream is started. The preset duration may be a preset duration, which is used for the anchor to determine whether to receive the action task, and to prepare for executing the task, where the preset duration may be 10 seconds, 30 seconds, and the like.
It should be noted that, if the anchor does not want to receive the action task, the reject control may be clicked within a preset duration, at this time, the anchor may return a cancel instruction to the server, and the server does not detect the anchor action in the received video stream; if the anchor wants to receive the action task, the operation can not be executed, and the server does not receive the canceling instruction within the preset time length, and the detection of the anchor action in the received video stream can be started.
According to the method and the device, the anchor can independently select whether to receive the action task issued by the server or not, and only when the anchor receives the action task, the anchor action in the video stream is detected, so that useless detection operation is avoided, and processing resources are saved.
Step 108: and if the anchor action is matched with the action to be executed, adding the virtual gift corresponding to the gift giving request to the anchor account.
Specifically, the server receives a video stream sent by the anchor terminal, detects an anchor action in the video stream, and on the basis of obtaining the anchor action in the video stream, further, matches the detected anchor action with an action to be executed, and adds a virtual gift corresponding to the gift giving request to an anchor account if the anchor action is matched with the action to be executed.
In practical application, after detecting the anchor action in the video stream, the similarity between the anchor action and the action to be executed can be calculated, so as to determine whether the anchor action is matched with the action to be executed, if the anchor action is matched with the action to be executed, the anchor has completed the corresponding action, and at this time, the virtual gift corresponding to the gift giving request can be given to the anchor, that is, added to the anchor account.
In an optional implementation manner of this embodiment, an action may be often represented by coordinates of a key point, that is, coordinates of a preset key point may be used to determine whether an anchor action and an action to be executed are matched, that is, the action to be executed includes reference coordinates of at least one preset key point, and at this time, if the anchor action and the action to be executed are matched, before adding a virtual gift corresponding to the gift presentation request to an anchor account, the method may further include:
determining at least one preset key point in the anchor action, and determining a posture coordinate of the at least one preset key point;
calculating the coordinate distance between the posture coordinate and the reference coordinate of each preset key point;
and determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance.
It should be noted that the action to be executed includes a reference coordinate of at least one preset key point, so that the gesture coordinate of the at least one preset key point in the anchor action can be determined, thereby calculating a coordinate distance between the gesture coordinate of each preset key point and the reference coordinate, that is, a difference value between the coordinate of the preset key point in the anchor action and the coordinate of the preset key point in the action to be executed, and determining whether the anchor action and the action to be executed are matched according to the difference value.
For example, assume that the action to be performed includes at least one preset key point with reference coordinates of { head, (0, 7) }, { left hand, (-4, 3) }, { right hand, (4, 3) }, { left foot, (-3, -7) }, { right foot, (3, 7) }, and that the anchor action is as shown in fig. 3, when the gesture coordinates of the head, left hand, right hand, left foot, and right foot of the anchor in the anchor action are determined, the gesture coordinates of the head are (0, 6), the gesture coordinates of the left hand are (-3.5, 3), the gesture coordinates of the right hand are (3.5, 3), the gesture coordinates of the left foot are (-3, 6), and the gesture coordinates of the right foot are (3, 6). Then, for the preset key point "head", the coordinate distance between the reference coordinate (0, 7) and the gesture coordinate (0, 6) may be calculated, for the preset key point "left hand", the coordinate distance between the reference coordinate (-4, 3) and the pose coordinate (-3.5, 3) may be calculated, for a preset key point "right hand", the coordinate distance between the reference coordinates (4, 3) and the pose coordinates (3.5, 3) can be calculated, for a preset key point "left foot", the coordinate distance between the reference coordinates (-3, -7) and the pose coordinates (-3, 6) can be calculated, for a preset key point "right foot", the coordinate distance between the reference coordinates (3, 7) and the pose coordinates (3, 6) can be calculated, and then determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance of each key point.
According to the method and the device, whether the anchor action is matched with the action to be executed or not can be calculated by presetting the coordinates of the key points in the action to be executed and the coordinates in the anchor action, the complex action matching is realized by simply calculating the distance between the two coordinates, and the action matching efficiency is greatly improved.
In an optional implementation manner of this embodiment, it is determined whether the anchor action and the action to be executed are matched according to the coordinate distance, and a specific implementation process may be as follows:
under the condition that the coordinate distance between the posture coordinate and the reference coordinate of each preset key point is smaller than a distance threshold, determining that the anchor action is matched with the action to be executed; alternatively, the first and second electrodes may be,
and under the condition that the number of key points with the coordinate distance between the posture coordinate and the reference coordinate in each preset key point being smaller than the distance threshold reaches the number threshold, determining that the anchor action is matched with the action to be executed.
Specifically, the distance threshold may be a preset value, and the distance threshold is used to determine whether a coordinate distance between the gesture coordinate and the reference coordinate is too large, so as to determine whether a difference between a position of a preset key point in the anchor action and a position of a preset key point in the action to be executed is too large. In addition, the number threshold may be a preset number, and the number threshold is used to determine whether there is a large part of key points in each preset key point in the anchor action, and the position difference between the preset key points in the action to be executed is small.
It should be noted that, if the coordinate distance between the gesture coordinate and the reference coordinate of each preset key point is smaller than the distance threshold, it indicates that the difference between the position of each preset key point in the anchor action and the position of the preset key point in the action to be executed is not large, and at this time, it may be determined that the anchor action is matched with the action to be executed.
In addition, the number of the key points of which the coordinate distance between the posture coordinate and the reference coordinate in each preset key point is smaller than the distance threshold value can be determined, then whether the number of the key points reaches the number threshold value is determined, if the number threshold value is reached, the difference between the positions of most preset key points in the anchor action and the preset key points in the action to be executed is smaller, and at this time, the anchor action and the action to be executed can be determined to be matched.
In an optional implementation manner of this embodiment, an action to be performed may include at least two consecutive gestures in addition to one gesture, and thus the action to be performed may include at least one consecutive reference coordinate of a preset key point, where the consecutive reference coordinate is the consecutive at least two reference coordinates, and at this time, if the anchor action and the action to be performed match, before adding the virtual gift corresponding to the gift-giving request to the anchor account, the method may further include:
determining at least one preset key point in the anchor action, and determining continuous posture coordinates of the at least one preset key point, wherein the continuous posture coordinates comprise at least two continuous posture coordinates;
calculating a coordinate distance between each posture coordinate of each preset key point and a corresponding reference coordinate;
and determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance.
In practical application, when the action to be executed is a static action, one action to be executed comprises one gesture; in addition, the action to be performed may also be a dynamic action, where one action to be performed may include at least two consecutive gestures, for example, if the action to be performed is a jump-and-open state, the action to be performed includes one gesture being an open state of both hands and feet, and one gesture being a closed state of both hands and feet.
It should be noted that, when one action to be performed includes at least two consecutive gestures, the reference coordinates of the preset key points are also at least two consecutive, each reference coordinate corresponds to one gesture, and the detected anchor action should also include at least two consecutive gestures, so that the continuous gesture coordinates of at least one preset key point in the anchor action can be determined, which also includes at least two consecutive gesture coordinates, each gesture coordinate corresponding to one gesture in the anchor action.
That is, one preset key point in one action to be executed should have at least two continuous reference coordinates, and one preset key point in one anchor action should have at least two continuous gesture coordinates, so that for each preset key point, the coordinate distance between each gesture coordinate and the corresponding reference coordinate can be calculated, and thus, according to the coordinate distance, whether the anchor action and the action to be executed are matched or not is determined.
For example, assume that the action to be performed includes consecutive reference coordinates of at least one preset key point as { head, (0, 7), (0, 8) }, { left hand, (-4, 3), (0, 9) }, { right hand, (4, 3), (0, 9) }, { left foot, (-3, -7), (0, -8) }, { right foot, (3, 7), (0, 8) }, and assume that the consecutive pose coordinates of the head in the determined anchor action are (0, 6), (0, 7), the pose coordinates of the left hand are (-3.5, 3), (0, 8.5), the pose coordinates of the right hand are (3.5, 3), (0, 8.5), the pose coordinates of the left foot are (-3, 6), (0, 7), and the pose coordinates of the right foot are (3, 6), (0, 7).
Then, for a preset key point "head", a coordinate distance between the reference coordinate (0, 7) and the pose coordinate (0, 6), (0, 8) and the pose coordinate (0, 7) may be calculated; for a preset key point 'left hand', the coordinate distance between a reference coordinate (-4, 3) and a gesture coordinate (-3.5, 3), and between a reference coordinate (0, 9) and a gesture coordinate (0, 8.5) can be calculated; for a preset key point "right hand", the coordinate distance between the reference coordinate (4, 3) and the pose coordinate (3.5, 3), the reference coordinate (0, 9) and the pose coordinate (0, 8.5) may be calculated; for a preset key point 'left foot', coordinate distances between a reference coordinate (-3, -7) and a posture coordinate (-3, 6), a reference coordinate (0, -8) and a posture coordinate (0, 7) can be calculated; for the preset key point "right foot", the coordinate distances between the reference coordinates (3, 7) and the pose coordinates (3, 6), the reference coordinates (0, 8) and the pose coordinates (0, 7) may be calculated. And then determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance of each key point.
It should be noted that, the above is only described by taking the example of determining whether the broadcast action and the action to be executed are matched by calculating the difference between the coordinates of the preset key points in the anchor action and the coordinates of the preset key points in the action to be executed, and in practical applications, it may also be determined whether the broadcast action and the action to be executed are matched by using the relative position relationship between the reference coordinates of the preset key points in the action to be executed and the relative position relationship between the reference coordinates of the preset key points in the anchor action without calculating the difference.
In addition, whether the anchor action is matched with the action to be executed or not can be determined by presetting the coordinates of the key points, and whether the anchor action is matched with the action to be executed or not can be determined by a pre-trained model, which is not limited in the present application.
In an optional implementation manner of this embodiment, the server may further feed back a progress reminder to the anchor terminal and the user terminal according to a real-time matching result, that is, after determining whether the anchor action and the action to be executed are matched according to the coordinate distance, the method may further include:
generating a completion progress prompt of the anchor action according to a matching result between the anchor action and the action to be executed;
and returning a progress completion prompt to the user side and the anchor side.
It should be noted that the server may receive the video stream sent by the anchor terminal in real time, detect the anchor action in the received video stream in real time to obtain the current anchor action, then determine whether the current anchor action matches the action to be executed according to the calculated coordinate distance, if so, determine that the anchor completes the action to be executed, and may present the corresponding virtual gift to the anchor; if not, the anchor does not complete the action to be executed, and the completion progress of the anchor can be determined and fed back to the anchor terminal and the user terminal.
In practical application, when the completion progress reminder of the anchor action is generated according to the matching result between the anchor action and the action to be executed, the matching result can be directly used as the completion progress reminder, for example, the anchor does not complete the action to be executed currently. In addition, which preset key points do not meet the requirements can be determined according to the calculated coordinate distance, and a progress reminding is generated according to the preset key points which do not meet the requirements, if the positions of the feet are not consistent with the positions of the feet in the action to be executed.
According to the method and the device, the completion progress prompt of the anchor action can be generated according to the matching result between the anchor action and the action to be executed, the completion progress prompt is returned to the user side and the anchor side, the action completion condition of the anchor can be seen by a user giving a gift, the anchor can adjust the posture of the anchor according to the completion progress prompt, the action to be executed can be completed quickly, the difficulty is reduced, and the experience of the anchor and the user is improved.
In addition, if the anchor action and the action to be executed are not matched, the server can continue to receive the video stream sent by the anchor end, detect the anchor action in the video stream, obtain the anchor action in the video stream, match the anchor action with the action to be executed until the detected anchor action and the action to be executed are matched, and add the virtual gift corresponding to the gift giving request to the anchor account. However, in practical applications, matching cannot be performed endlessly, so that an execution duration may also be set in advance, the server may detect the anchor action in the received video stream in real time within the execution duration, obtain the anchor action in the video stream, match the anchor action with the action to be executed, and cancel the action task without presenting the virtual gift corresponding to the gift-presenting request to the anchor if the detected anchor action still does not match the action to be executed after the execution duration is reached.
Further, when determining that the anchor action matches the action to be executed, the server may add the virtual gift corresponding to the gift giving request to the anchor account, and may also feed back a task completion reminder to the anchor terminal to notify that the anchor task is completed and the virtual gift given by the user has been obtained. Meanwhile, gift-sending confirmation information can be fed back to the user side to inform the user that the corresponding virtual gift is successfully given to the anchor.
According to the method for presenting the gift in the live broadcast room, a server can receive a gift presenting request sent by a user side, wherein the gift presenting request comprises a to-be-executed action of a virtual gift obtained by a main broadcast; then generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal, wherein the action task carries an action to be executed; and then, receiving a video stream sent by the anchor terminal, detecting the anchor action in the video stream to obtain the anchor action in the video stream, and if the anchor action is matched with the action to be executed, adding a virtual gift corresponding to the gift giving request to an anchor account. In this case, after the user selects a gift in the live interface of the user side, the server may generate a corresponding action task according to the gift selected by the user, and issue the action task to the anchor side, so that the anchor makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
Fig. 4 is a flowchart illustrating another method for gifting a gift in a live broadcast room according to an embodiment of the present application, which is applied to a main broadcast end and specifically includes the following steps:
step 402: and receiving an action task issued by the server, wherein the action task carries the action to be executed for obtaining the corresponding virtual gift.
It should be noted that, when the server receives the gift-giving request, the server may generate a corresponding action task according to the to-be-executed action included in the gift-giving request, and issue the action task to the anchor terminal, so that the to-be-executed action for obtaining the corresponding virtual gift is carried in the action task received by the anchor terminal, that is, the anchor terminal obtains the action to be executed for the corresponding virtual gift, so that the anchor terminal may make the corresponding to-be-executed action based on the action task received by the anchor terminal, so as to obtain the virtual gift given by the user, thereby improving interactivity and interestingness when giving the gift.
In an optional implementation manner of this embodiment, after the anchor receives the action task issued by the server, the anchor may further determine whether to receive the action task by itself, and when receiving is determined, return a determination instruction, that is, after receiving the action task issued by the server, the method may further include:
detecting a confirmation instruction for the action task;
a confirmation instruction is returned to the server.
It should be noted that, after the anchor receives the action task issued by the server, the anchor can determine whether the anchor receives the action task, and if the anchor determines to receive the action task, the anchor can trigger a determination instruction for the action task through the anchor, for example, click a determination receiving control, at this time, the anchor can detect the determination instruction for the action task and return the determination instruction to the server to inform the server that the anchor determines to receive the action task, and start to execute a corresponding action, so that the server can start to detect the received video stream to obtain the anchor action executed by the anchor.
In an optional implementation manner of this embodiment, after the anchor receives the action task issued by the server, the anchor may further determine whether to receive the action task by itself, and return a cancel instruction when not receiving the action task, that is, after receiving the action task issued by the server, the method may further include:
determining whether a cancel instruction is detected within a preset time after the action task is received;
and if the cancel instruction is detected, returning the cancel instruction to the server.
It should be noted that, if the anchor does not want to receive the action task, the reject control may be clicked within a preset time duration, at this time, the anchor may detect a cancel instruction for the action task and return the cancel instruction to the server, and after receiving the cancel instruction, the server may know that the anchor does not receive the action task, so the server may not detect the anchor action in the received video stream, and save processing resources. If the anchor wants to receive the action task, no operation can be executed, and the server does not receive a cancel instruction within a preset time length, the anchor can receive the action task by default and starts to detect the anchor action in the received video stream.
The anchor can independently select whether to receive the action task issued by the server or not, and only when the anchor receives the action task, the follow-up server starts to detect the anchor action in the received video stream, so that useless detection operation is avoided, and processing resources are saved.
In an optional implementation manner of this embodiment, an action may be often represented by coordinates of a key point, that is, coordinates of a key point in a human body gesture are detected, to determine whether the human body gesture is a gesture of a corresponding action, so that the action to be performed may include reference coordinates of at least one preset key point, so that the anchor may quickly know what action needs to be performed for the anchor, after the server issues a textual action task to the anchor, the server may further generate and issue a prompt icon of the action to be performed to prompt the anchor what action needs to be performed, and therefore after receiving the action task issued by the server, the method may further include:
and receiving and displaying the prompt icon sent by the server.
According to the method and the system, the server can issue the prompt icon of the action to be executed besides issuing the literal action task to the anchor terminal, the prompt icon can prompt the action required to be made by the anchor, so that the anchor can refer to the prompt icon to make the corresponding action, the anchor can conveniently understand the action required to be made by the anchor through the prompt icon, and the efficiency and the accuracy of executing the action task are improved.
Step 404: and collecting the main broadcasting picture to generate a video stream and pushing the video stream to a server.
It should be noted that, on the basis that the anchor terminal receives the action task issued by the server, the anchor terminal may further collect an anchor picture to generate a video stream and push the video stream to the server. In practical application, after the anchor terminal receives the action task issued by the server, the anchor terminal can perform corresponding actions according to the actions to be executed carried in the action task to obtain the virtual gifts given by the user, so that the anchor terminal can acquire the images of the anchor terminal to generate video streams and push the video streams to the server, the server can detect whether the anchor terminal completes the actions to be executed, and the corresponding virtual gifts are given to the anchor terminal.
In an optional implementation manner of this embodiment, after the anchor terminal collects an anchor picture to generate a video stream and pushes the video stream to the server, the server may detect an anchor action in the received video stream in real time, and match the detected anchor action with an action to be executed, and the server may also feed a progress prompt back to the anchor terminal according to a real-time matching result, so that after the anchor picture is collected to generate the video stream and pushes the video stream to the server, the method may further include:
and receiving and displaying a completion progress prompt returned by the server.
According to the method and the system, the anchor terminal can receive the completion progress prompt returned by the server, so that the anchor can adjust the posture of the anchor according to the completion progress prompt, the action to be executed is completed quickly, the difficulty is reduced, and the experience of the anchor and the user is improved.
Step 406: and under the condition that the server detects that the gift acquisition condition is met, displaying the virtual gift corresponding to the action task acquired by the anchor on an anchor interface, wherein the gift acquisition condition is that the anchor action is matched with the action to be executed in the video stream.
It should be noted that, on the basis that the anchor terminal collects an anchor picture to generate a video stream and pushes the video stream to the server, the server may further detect an anchor action in the received video stream to obtain the anchor action in the video stream, and match the detected anchor action with an action to be executed, when the server determines that the anchor action is matched with the action to be executed in the video stream, the anchor terminal may indicate that the anchor terminal has completed a corresponding action, and at this time, the server may give a virtual gift corresponding to the gift-giving request to the anchor terminal, so that the anchor terminal may show the virtual gift corresponding to the action task obtained by the anchor terminal on an anchor interface to inform that the anchor terminal has successfully obtained the corresponding gift.
According to the method for presenting the gifts in the live broadcast room, after a user selects a certain gift in a live broadcast interface of a user side, a server can generate a corresponding action task according to the gift selected by the user, the action task is issued to an anchor terminal, after the anchor terminal receives the action task, the anchor terminal can make a corresponding action, the anchor terminal can collect an anchor picture to generate a video stream to be pushed to the server, when the server detects that the anchor action in the video stream is matched with an action to be executed in the action task, the anchor has completed an action to be executed, and at the moment, the gift selected by the user is presented to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
Fig. 5 is a flowchart illustrating a gift giving method in a live broadcast room according to an embodiment of the present application, which includes the following steps:
step 502: the server receives a virtual gift configuration request, the virtual gift configuration request carries a gift identification and a corresponding action to be executed, the gift identification and the corresponding action to be executed are correspondingly stored, and a preset gift task table is generated.
Step 504: the user selects the gifts to be presented through the user side, the user side determines the corresponding actions to be executed according to the gifts to be presented and the preset gift task table, and sends gift presenting requests including the actions to be executed to the server.
Step 506: the server receives a gift giving request sent by the user side, generates a corresponding action task according to the action to be executed included in the gift giving request, and sends the action task to the anchor side, wherein the action task carries the action to be executed.
Step 508: the anchor terminal receives and displays the action task, after the anchor receives the action task through the anchor terminal, the anchor terminal returns a confirmation instruction to the server, the anchor can make a corresponding action to be executed, and the anchor terminal can acquire an anchor picture to generate a video stream and push the video stream to the server.
Step 510: and the server receives the video stream pushed by the anchor terminal, and detects the anchor action in the video stream after receiving the confirmation instruction to obtain the anchor action in the video stream.
Step 512: and the server determines whether the detected anchor action is matched with the action to be executed, generates a completion progress prompt according to a matching result, and returns the completion progress prompt to the user side and the anchor side.
Step 514: the anchor end and the user end display the completion progress prompt.
Step 516: and the server adds the virtual gift corresponding to the gift giving request to the anchor account under the condition that the detected anchor action is matched with the action to be executed, feeds back a task completion prompt to the anchor terminal, and feeds back gift giving confirmation information to the user terminal.
According to the method for presenting the gifts in the live broadcast room, after a user selects a certain gift in a live broadcast interface of a user side, a server can generate a corresponding action task according to the gift selected by the user, and the action task is issued to a main broadcast side, so that the main broadcast makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a gift giving device in a live broadcast room, and fig. 6 shows a schematic structural diagram of the gift giving device in the live broadcast room provided in the embodiment of the present application, which is applied to a server. As shown in fig. 6, the apparatus includes:
a first receiving module 602, configured to receive a gift-giving request sent by a user side, where the gift-giving request includes an action to be performed by an anchor to obtain a corresponding virtual gift;
the issuing module 604 is configured to generate a corresponding action task according to the gift giving request, and issue the action task to the anchor terminal, where the action task carries an action to be executed;
the detection module 606 is configured to receive a video stream sent by a anchor terminal, detect an anchor action in the video stream, and obtain the anchor action in the video stream;
an adding module 608 configured to add a virtual gift corresponding to the gift-giving request to the anchor account if the anchor action and the action to be performed match.
Optionally, the live room gift-giving apparatus further comprises a generation module configured to:
receiving a virtual gift configuration request, wherein the virtual gift configuration request carries a gift identifier and a corresponding action to be executed;
and correspondingly storing the gift identification and the corresponding action to be executed to generate a preset gift task table.
Optionally, the live room gift-giving apparatus further comprises an execution module configured to:
the detection module 606 is executed when a confirmation instruction returned by the anchor based on the action task is received, or when a cancel instruction is not received within a preset time after the action task is issued to the anchor.
Optionally, the action to be performed includes a reference coordinate of at least one preset key point; the live-air gift-giving apparatus further includes a first determining module configured to:
determining at least one preset key point in the anchor action, and determining a posture coordinate of the at least one preset key point;
calculating the coordinate distance between the posture coordinate and the reference coordinate of each preset key point;
and determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance.
Optionally, the first determining module is further configured to:
under the condition that the coordinate distance between the posture coordinate and the reference coordinate of each preset key point is smaller than a distance threshold, determining that the anchor action is matched with the action to be executed; alternatively, the first and second electrodes may be,
and under the condition that the number of key points with the coordinate distance between the posture coordinate and the reference coordinate in each preset key point being smaller than the distance threshold reaches the number threshold, determining that the anchor action is matched with the action to be executed.
Optionally, the action to be executed includes continuous reference coordinates of at least one preset key point, and the continuous reference coordinates are continuous at least two reference coordinates; the live-air gift-giving apparatus further includes a second determining module configured to:
determining at least one preset key point in the anchor action, and determining continuous posture coordinates of the at least one preset key point, wherein the continuous posture coordinates comprise at least two continuous posture coordinates;
calculating a coordinate distance between each posture coordinate of each preset key point and a corresponding reference coordinate;
and determining whether the anchor action is matched with the action to be executed or not according to the coordinate distance.
Optionally, the action to be performed includes a reference coordinate of at least one preset key point; the live room gift-giving apparatus further includes a control module configured to:
generating a prompt icon of the action to be executed according to the reference coordinate of at least one preset key point included in the action to be executed;
and controlling the anchor terminal to display a prompt icon.
Optionally, the live room gift-giving apparatus further comprises a first returning module configured to:
generating a completion progress prompt of the anchor action according to a matching result between the anchor action and the action to be executed;
and returning a progress completion prompt to the user side and the anchor side.
According to the gift giving device of the live broadcast room, after a user selects a certain gift in a live broadcast interface of a user side, the server can generate a corresponding action task according to the gift selected by the user, and sends the action task to the anchor side, so that the anchor makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
The above is an illustrative scheme of a gift-giving device of a live broadcast room of the present embodiment. It should be noted that the technical solution of the present presentation device in the live broadcast room and the technical solution of the present presentation method in the live broadcast room belong to the same concept, and details of the technical solution of the present presentation device in the live broadcast room, which are not described in detail, can be referred to the description of the technical solution of the present presentation method in the live broadcast room.
Corresponding to the above method embodiment, the present application further provides another live broadcast room gift giving device embodiment, and fig. 7 shows a schematic structural diagram of a live broadcast room gift giving device provided in the embodiment of the present application, which is applied to a main broadcast end. As shown in fig. 7, the apparatus includes:
a second receiving module 702, configured to receive an action task issued by a server, where the action task carries an action to be executed to obtain a corresponding virtual gift;
a pushing module 704 configured to collect the anchor picture to generate a video stream to be pushed to the server;
and the display module 706 is configured to display the virtual gift corresponding to the action task obtained by the anchor on the anchor interface when the server detects that a gift obtaining condition is met, where the anchor action is matched with the action to be executed in the video stream.
Optionally, the live room gift-giving apparatus further comprises a second returning module configured to:
detecting a confirmation instruction for the action task;
a confirmation instruction is returned to the server.
Optionally, the live room gift-giving apparatus further comprises a third returning module configured to:
determining whether a cancel instruction is detected within a preset time after the action task is received;
and if the cancel instruction is detected, returning the cancel instruction to the server.
Optionally, the live room gift-giving apparatus further comprises a first display module configured to:
and receiving and displaying the prompt icon sent by the server.
Optionally, the live room gift-giving apparatus further comprises a second display module configured to:
and receiving and displaying a completion progress prompt returned by the server.
According to the gift giving device of the live broadcast room, after a user selects a certain gift in a live broadcast interface of a user side, the server can generate a corresponding action task according to the gift selected by the user, and sends the action task to the anchor side, so that the anchor makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
The above is an illustrative scheme of a gift-giving device of a live broadcast room of the present embodiment. It should be noted that the technical solution of the present presentation device in the live broadcast room and the technical solution of the present presentation method in the live broadcast room belong to the same concept, and details of the technical solution of the present presentation device in the live broadcast room, which are not described in detail, can be referred to the description of the technical solution of the present presentation method in the live broadcast room.
Corresponding to the above method embodiment, the present application further provides an embodiment of a gift giving system in a live broadcast room, and fig. 8 shows a schematic structural diagram of the gift giving system in the live broadcast room provided in the embodiment of the present application. As shown in fig. 8, the system includes: a user end 802, a server 804, and an anchor end 806.
A server 804 configured to receive a gift-giving request sent by the user end 802, where the gift-giving request includes an action to be performed by the anchor to obtain a corresponding virtual gift; generating a corresponding action task according to the gift presentation request, and issuing the action task to the anchor terminal 806, wherein the action task carries an action to be executed; receiving a video stream sent by the anchor terminal 806, detecting an anchor action in the video stream, and obtaining the anchor action in the video stream; if the anchor action is matched with the action to be executed, adding the virtual gift corresponding to the gift presentation request to the anchor account;
the anchor terminal 806 is configured to receive an action task issued by the server 804, where the action task carries an action to be executed to obtain a corresponding virtual gift; collecting a main broadcasting picture to generate a video stream and pushing the video stream to a server 804; and under the condition that the server 804 detects that the gift acquisition condition is met, displaying a virtual gift corresponding to the action task acquired by the anchor on an anchor interface, wherein the gift acquisition condition is that the anchor action is matched with the action to be executed in the video stream.
According to the gift presenting system of the live broadcast room, after a user selects a certain gift in a live broadcast interface of a user side, a server can generate a corresponding action task according to the gift selected by the user, and the action task is issued to a main broadcast side, so that the main broadcast makes a corresponding action; when the server detects that the anchor action is matched with the action to be executed in the action task, the anchor shows that the anchor has finished the action required to be executed, and then the gift selected by the user is given to the anchor. Therefore, after the user selects a certain gift, the host needs to execute corresponding actions to give the gift to the host, and interactivity between the user and the host is improved when the gift is given, so that the user experiences the interest of giving the gift, and the user experience is improved.
The above is an illustrative scheme of a gift giving system of a live broadcast room of the present embodiment. It should be noted that the technical solution of the present presentation system in the live broadcast room and the technical solution of the present presentation method in the live broadcast room belong to the same concept, and details of the technical solution of the present presentation system in the live broadcast room, which are not described in detail, can be referred to in the description of the technical solution of the present presentation method in the live broadcast room.
Fig. 9 illustrates a block diagram of a computing device 900 provided in accordance with an embodiment of the present application. Components of the computing device 900 include, but are not limited to, a memory 910 and a processor 920. The processor 920 is coupled to the memory 910 via a bus 930, and a database 950 is used to store data.
Computing device 900 also includes access device 940, access device 940 enabling computing device 900 to communicate via one or more networks 960. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 940 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 900 and other components not shown in FIG. 9 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 9 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 900 may also be a mobile or stationary server.
Processor 920 is configured to execute the following computer-executable instructions to implement the steps of any live room gift giving method.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the method for presenting a gift in a live broadcast room belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the method for presenting a gift in a live broadcast room.
An embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform steps for implementing any live room gift giving method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the method for presenting a gift in a live broadcast room belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the method for presenting a gift in a live broadcast room.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive or limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (17)

1. A gift giving method of a live broadcast room is characterized by being applied to a server and comprising the following steps:
receiving a gift giving request sent by a user side, wherein the gift giving request comprises a to-be-executed action of a virtual gift obtained by an anchor;
generating a corresponding action task according to the gift presentation request, and issuing the action task to an anchor terminal, wherein the action task carries the action to be executed;
receiving a video stream sent by the anchor terminal, and detecting an anchor action in the video stream to obtain the anchor action in the video stream;
and if the anchor action is matched with the action to be executed, adding the virtual gift corresponding to the gift giving request to an anchor account.
2. The live broadcast gift giving method of claim 1, wherein before receiving the gift-giving request sent by the user side, further comprising:
receiving a virtual gift configuration request, wherein the virtual gift configuration request carries a gift identifier and a corresponding action to be executed;
and correspondingly storing the gift identification and the corresponding action to be executed to generate a preset gift task table.
3. The live room gift giving method of claim 1 or 2, wherein prior to detecting the anchor action in the video stream, further comprising:
and executing the operation step of detecting the anchor action in the video stream under the condition that a confirmation instruction returned by the anchor terminal based on the action task is received or a cancel instruction is not received within a preset time after the action task is issued to the anchor terminal.
4. The live room gift giving method of claim 1 or 2, wherein the action to be performed includes a reference coordinate of at least one preset key point;
if the anchor action matches the action to be executed, before adding the virtual gift corresponding to the gift giving request to an anchor account, the method further includes:
determining at least one preset key point in the anchor action, and determining a posture coordinate of the at least one preset key point;
calculating the coordinate distance between the posture coordinate and the reference coordinate of each preset key point;
and determining whether the anchor action and the action to be executed are matched or not according to the coordinate distance.
5. The live room gift giving method of claim 4, wherein said determining whether the anchor action and the action to be performed match according to the coordinate distance comprises:
under the condition that the coordinate distance between the posture coordinate and the reference coordinate of each preset key point is smaller than a distance threshold, determining that the anchor action is matched with the action to be executed; alternatively, the first and second electrodes may be,
and under the condition that the number of key points with the coordinate distance between the posture coordinate and the reference coordinate in each preset key point being smaller than the distance threshold reaches the number threshold, determining that the anchor action is matched with the action to be executed.
6. The live room gift giving method of claim 1 or 2, wherein the action to be performed comprises consecutive reference coordinates of at least one preset keypoint, the consecutive reference coordinates being consecutive at least two reference coordinates;
if the anchor action matches the action to be executed, before adding the virtual gift corresponding to the gift giving request to an anchor account, the method further includes:
determining at least one preset key point in the anchor action, and determining continuous posture coordinates of the at least one preset key point, wherein the continuous posture coordinates comprise at least two continuous posture coordinates;
calculating a coordinate distance between each posture coordinate of each preset key point and a corresponding reference coordinate;
and determining whether the anchor action and the action to be executed are matched or not according to the coordinate distance.
7. The live room gift giving method of claim 1 or 2, wherein the action to be performed includes a reference coordinate of at least one preset key point; after the action task is issued to the anchor terminal, the method further comprises the following steps:
generating a prompt icon of the action to be executed according to the reference coordinate of at least one preset key point included in the action to be executed;
and controlling the anchor terminal to display the prompt icon.
8. The live room gift giving method of claim 4, wherein after determining whether the anchor action and the action to be performed match according to the coordinate distance, further comprising:
generating a completion progress prompt of the anchor action according to a matching result between the anchor action and the action to be executed;
and returning the completion progress prompt to the user side and the anchor side.
9. A gift giving method of a live broadcast room is characterized by being applied to a main broadcast end and comprising the following steps:
receiving an action task issued by a server, wherein the action task carries an action to be executed for obtaining a corresponding virtual gift;
collecting a main broadcasting picture to generate a video stream and pushing the video stream to a server;
and under the condition that the server detects that a gift obtaining condition is met, displaying a virtual gift corresponding to the action task obtained by the anchor on an anchor interface, wherein the gift obtaining condition is that the anchor action in the video stream is matched with the action to be executed.
10. The method of claim 9, wherein the receiving the action task from the server is followed by:
detecting a confirmation instruction for the action task;
and returning the confirmation instruction to the server.
11. The method of claim 9, wherein the receiving the action task from the server is followed by:
determining whether a cancel instruction is detected within a preset time after the action task is received;
and if the cancel instruction is detected, returning the cancel instruction to the server.
12. The live room gift giving method of any one of claims 9-11, wherein after receiving the action task issued by the server, further comprising:
and receiving and displaying the prompt icon sent by the server.
13. The live room gift giving method of any one of claims 9-11, wherein after the capturing the main frame generation video stream is pushed to a server, further comprising:
and receiving and displaying the completion progress prompt returned by the server.
14. A device for presenting gifts in a live broadcast room, applied to a server, comprising:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is configured to receive a gift giving request sent by a user side, and the gift giving request comprises a to-be-executed action of an anchor broadcast for obtaining a corresponding virtual gift;
the issuing module is configured to generate a corresponding action task according to the gift giving request and issue the action task to an anchor terminal, wherein the action task carries the action to be executed;
the detection module is configured to receive a video stream sent by the anchor terminal, detect an anchor action in the video stream, and obtain the anchor action in the video stream;
and the adding module is configured to add the virtual gift corresponding to the gift giving request to the anchor account if the anchor action is matched with the action to be executed.
15. A gift-giving device for a live broadcast room, applied to a main broadcast terminal, comprising:
the second receiving module is configured to receive an action task issued by the server, wherein the action task carries an action to be executed for obtaining the corresponding virtual gift;
the pushing module is configured to collect the anchor picture to generate a video stream and push the video stream to the server;
and the display module is configured to display a virtual gift corresponding to the action task obtained by the anchor on an anchor interface under the condition that the server detects that a gift obtaining condition is met, wherein the gift obtaining condition is that the anchor action in the video stream is matched with the action to be executed.
16. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions that the processor is configured to execute to perform the steps of the live air gift giving method of any one of claims 1-8 or claims 9-13.
17. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the steps of the live room gift giving method of any one of claims 1 to 8 or claims 9 to 13.
CN202110998538.6A 2021-08-27 2021-08-27 Gift presenting method and device for live broadcast room Pending CN113727147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110998538.6A CN113727147A (en) 2021-08-27 2021-08-27 Gift presenting method and device for live broadcast room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110998538.6A CN113727147A (en) 2021-08-27 2021-08-27 Gift presenting method and device for live broadcast room

Publications (1)

Publication Number Publication Date
CN113727147A true CN113727147A (en) 2021-11-30

Family

ID=78678659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110998538.6A Pending CN113727147A (en) 2021-08-27 2021-08-27 Gift presenting method and device for live broadcast room

Country Status (1)

Country Link
CN (1) CN113727147A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703913A (en) * 2019-09-27 2020-01-17 腾讯科技(深圳)有限公司 Object interaction method and device, storage medium and electronic device
CN110830811A (en) * 2019-10-31 2020-02-21 广州酷狗计算机科技有限公司 Live broadcast interaction method, device, system, terminal and storage medium
CN111010612A (en) * 2019-12-19 2020-04-14 广州华多网络科技有限公司 Method, device and equipment for presenting voice gift and storage medium
CN111355974A (en) * 2020-03-12 2020-06-30 广州酷狗计算机科技有限公司 Method, apparatus, system, device and storage medium for virtual gift giving processing
CN112163479A (en) * 2020-09-16 2021-01-01 广州华多网络科技有限公司 Motion detection method, motion detection device, computer equipment and computer-readable storage medium
CN112383786A (en) * 2020-11-03 2021-02-19 广州繁星互娱信息科技有限公司 Live broadcast interaction method, device, system, terminal and storage medium
CN112560605A (en) * 2020-12-02 2021-03-26 北京字节跳动网络技术有限公司 Interaction method, device, terminal, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703913A (en) * 2019-09-27 2020-01-17 腾讯科技(深圳)有限公司 Object interaction method and device, storage medium and electronic device
CN110830811A (en) * 2019-10-31 2020-02-21 广州酷狗计算机科技有限公司 Live broadcast interaction method, device, system, terminal and storage medium
CN111010612A (en) * 2019-12-19 2020-04-14 广州华多网络科技有限公司 Method, device and equipment for presenting voice gift and storage medium
CN111355974A (en) * 2020-03-12 2020-06-30 广州酷狗计算机科技有限公司 Method, apparatus, system, device and storage medium for virtual gift giving processing
CN112163479A (en) * 2020-09-16 2021-01-01 广州华多网络科技有限公司 Motion detection method, motion detection device, computer equipment and computer-readable storage medium
CN112383786A (en) * 2020-11-03 2021-02-19 广州繁星互娱信息科技有限公司 Live broadcast interaction method, device, system, terminal and storage medium
CN112560605A (en) * 2020-12-02 2021-03-26 北京字节跳动网络技术有限公司 Interaction method, device, terminal, server and storage medium

Similar Documents

Publication Publication Date Title
CN104992709B (en) Voice instruction execution method and voice recognition equipment
US11335088B2 (en) Augmented reality item collections
US20210334325A1 (en) Method for displaying information, electronic device and system
CN110333836B (en) Information screen projection method and device, storage medium and electronic device
CN106598998B (en) Information acquisition method and information acquisition device
CN104202718A (en) Method and device for providing information for user
CN108304762B (en) Human body posture matching method and device, storage medium and terminal
WO2015172359A1 (en) Object search method and apparatus
CN107368550B (en) Information acquisition method, device, medium, electronic device, server and system
JP6986187B2 (en) Person identification methods, devices, electronic devices, storage media, and programs
CN109462632B (en) Page jump method, page jump device, computer equipment and computer readable storage medium
US20140333746A1 (en) Method and apparatus for inquiring information
WO2020044099A1 (en) Service processing method and apparatus based on object recognition
CN104866275B (en) Method and device for acquiring image information
CN110740389A (en) Video positioning method and device, computer readable medium and electronic equipment
CN114466216B (en) Live broadcast room display method, server side and live broadcast client side
CN105893613B (en) image identification information searching method and device
CN116095266A (en) Simultaneous interpretation method and system, storage medium and electronic device
CN111127123A (en) Invoice information processing method and device
CN109922457B (en) Information interaction method, device and system
CN111741321A (en) Live broadcast control method, device, equipment and computer storage medium
CN115202599A (en) Screen projection display method and related device
CN110049094B (en) Information pushing method and offline display terminal
CN113034221A (en) Information processing method and device, client and server
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination