WO2021109652A1 - 文字虚拟礼物的赠送方法、装置、设备及存储介质 - Google Patents

文字虚拟礼物的赠送方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2021109652A1
WO2021109652A1 PCT/CN2020/113376 CN2020113376W WO2021109652A1 WO 2021109652 A1 WO2021109652 A1 WO 2021109652A1 CN 2020113376 W CN2020113376 W CN 2020113376W WO 2021109652 A1 WO2021109652 A1 WO 2021109652A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual gift
text
target
gift
text virtual
Prior art date
Application number
PCT/CN2020/113376
Other languages
English (en)
French (fr)
Inventor
曾衍
Original Assignee
广州华多网络科技有限公司
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 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2021109652A1 publication Critical patent/WO2021109652A1/zh

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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4532Management of client data or end-user data involving end-user characteristics, e.g. viewer profile, 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • 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/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards
    • 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
    • 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/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Definitions

  • This application relates to the field of live broadcast technology. Specifically, this application relates to a method, device, equipment, and storage medium for giving a text virtual gift.
  • real-time video communication such as live webcasts and video chat rooms have become an increasingly popular form of entertainment.
  • real-time video communication the interaction between users can be increased by giving virtual gifts to display special effects.
  • the traditional virtual gift has a single form of expression, usually in the form of a graphic gift.
  • the visual presentation of the graphic gift is difficult to meet the different emotional expressions of different users.
  • Some specific live broadcast scenes such as praise, funny, and scenes.
  • Graphic gifts are difficult to clearly express the user’s mood, so that users cannot choose suitable gifts to give.
  • anchors or viewers sometimes cannot understand the true meaning of graphics directly from graphic gifts. This reduces the enthusiasm of users to give gifts and affects the anchors. Interactivity with the audience.
  • the purpose of this application is to solve at least one of the above technical shortcomings, especially the problem of a single form of virtual gift in the live broadcast room.
  • an embodiment of the present application provides a method for giving a text virtual gift, which includes the following steps:
  • the target text virtual gift is synthesized into the target position of the host image of the video screen for rendering and display.
  • an embodiment of the present application provides a method for giving a text virtual gift, which includes the following steps:
  • the display template of the text virtual gift delivered to the client, and the target text virtual gift is synthesized by the client to the target position of the host image of the video screen for rendering and display.
  • an embodiment of the present application provides a text virtual gift giving device, which includes:
  • the gift receiving module is used to receive the text virtual gift issued in the live broadcast room, and display the text virtual gift through the virtual gift column;
  • the content display module is used to determine the content type of the text virtual gift selected by the user, and display a list of text content matching the content type of the text virtual gift;
  • a gift obtaining module configured to obtain the target text content selected from the text content list as a target text virtual gift, and present the target text virtual gift to the target anchor through the live broadcast room;
  • the gift synthesis module is used to synthesize the target text virtual gift into the target position of the host image of the video screen for rendering and display according to the display template of the text virtual gift issued in the live broadcast room.
  • an embodiment of the present application provides a text virtual gift giving device, including:
  • the gift issuing module is used to deliver a text virtual gift to the client, so that the client displays the text virtual gift in the virtual gift column;
  • the type receiving module is configured to receive the content type of the text virtual gift selected by the user sent by the client, and display the text content list matching the content type of the text virtual gift through the client;
  • a gift giving module configured to obtain the target text content selected from the text content list as a target text virtual gift, and present the target text virtual gift to the target anchor;
  • the template issuing module is used to deliver the display template of the text virtual gift to the client, and synthesize the target text virtual gift into the target position of the host image of the video screen through the client for rendering and display.
  • an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program, the above-mentioned The steps of the method for giving a text virtual gift of any embodiment.
  • an embodiment of the present application is a storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the text of any of the above-mentioned embodiments when the computer-executable instructions are executed by a computer processor.
  • the steps of the method of giving a virtual gift are not limited to a computer processor.
  • the method, device, device, and storage medium for giving the text virtual gift mentioned in the above embodiment receive the text virtual gift issued in the live broadcast room, and display the text virtual gift through the virtual gift bar; determine the content of the text virtual gift selected by the user Type, displaying the text content list that matches the content type of the text virtual gift; obtaining the target text content selected from the text content list as the target text virtual gift and presenting it to the target anchor; according to the display of the text virtual gift issued in the live broadcast room
  • the template synthesizes the target text virtual gift into the target position of the host image on the video screen for rendering display, so as to enrich the types of virtual gifts through text virtual gifts, more appropriately express the user's feelings, and increase the user's enthusiasm for the host's gift giving.
  • FIG. 1 is a schematic diagram of the framework of a webcast system provided by an embodiment
  • FIG. 2 is a first flowchart of a method for giving a text virtual gift provided by an embodiment
  • FIG. 3 is a schematic diagram of a live broadcast interface for text virtual gift giving provided by an embodiment
  • FIG. 4 is a schematic diagram of a text virtual gift special effect provided by an embodiment
  • FIG. 5 is a flowchart of a method for determining the target location of a text virtual gift provided by an embodiment
  • FIG. 6 is another flowchart of a method for determining the target location of a text virtual gift provided by an embodiment
  • FIG. 7 is a schematic diagram of a detection principle of a text virtual gift display position provided by an embodiment
  • FIG. 8 is a schematic diagram of a synthesis effect of a text virtual gift provided by an embodiment
  • FIG. 9 is a flowchart of a process of synthesizing a text virtual gift provided by an embodiment
  • FIG. 10 is a second flowchart of a method for giving a text virtual gift provided by an embodiment
  • FIG. 11 is a schematic diagram of a first interface for sliding gifts on a multi-person live broadcast interface provided by an embodiment
  • FIG. 12 is a schematic diagram of a second interface for sliding gifts on a multi-person live broadcast interface provided by an embodiment
  • FIG. 13 is a schematic diagram of a third interface for sliding gifts on a multi-person live broadcast interface provided by an embodiment
  • FIG. 14 is a schematic diagram of another interface of a method for giving a text virtual gift provided by an embodiment
  • 15 is a first flowchart of a method for recommending text virtual gifts provided by an embodiment
  • FIG. 16 is a second flowchart of a method for recommending a text virtual gift provided by an embodiment
  • FIG. 17 is a third flowchart of a method for recommending a text virtual gift provided by an embodiment
  • 19 is a schematic structural diagram of a text virtual gift giving device provided by an embodiment
  • 20 is a schematic structural diagram of a text virtual gift giving device provided by an embodiment.
  • FIG. 1 is a schematic diagram of the framework of the webcast system provided by an embodiment.
  • the system framework may include a server and a client.
  • the client includes one or For multiple anchor clients 10 and multiple audience clients 20, the live broadcast platform on the server may include multiple virtual live studios and servers 30, etc., wherein each anchor 110 and each viewer 120 are connected to the server 30 respectively.
  • each virtual live room correspondingly plays different live content
  • the host performs live broadcast through the host client 10, and the viewer chooses to enter a certain virtual live room through the viewer client 20 to watch the host perform live broadcast.
  • the audience client 20 and the host client 10 can enter the live broadcast platform through a live broadcast application (Application, APP) installed on the terminal device.
  • APP live broadcast application
  • the host client 10 and the audience client 20 are terminal devices, such as a smart phone, a tablet computer, an e-reader, a desktop computer, or a notebook computer, which is not limited.
  • the server 30 is a background server used to provide background services for terminal devices, and can be implemented by an independent server or a server cluster composed of multiple servers. In an embodiment, the server 30 may be a webcast platform.
  • FIG. 2 is a first flowchart of a method for giving a text virtual gift provided by an embodiment.
  • the method for giving a text virtual gift can be executed on a text virtual gift giving device.
  • This embodiment uses the text virtual gift giving device as a viewer customer.
  • the method for giving a text virtual gift may include the following steps:
  • a text virtual gift it may be a gift presented in a text style, such as a text virtual gift presented in a text style of "beautiful as a flower".
  • the user triggers the display instruction of the text virtual gift through the viewer client, and requests the text virtual gift from the live broadcast room.
  • the live broadcast receives the display instruction indirectly, it obtains the text virtual gift in the live broadcast room and sends it to the audience client.
  • the audience client receives the text virtual gift issued in the live broadcast room, and displays it through the virtual gift bar.
  • the virtual gift bar when the display instruction is not received, the virtual gift bar is hidden, and after the display instruction is received, the virtual gift bar is expanded on the live broadcast interface.
  • the virtual gift bar can support page turning. If you swipe left and right to turn pages to the left or right, slide up and down to turn pages up or down.
  • S120 Determine the content type of the text virtual gift selected by the user, and display a list of text content matching the content type of the text virtual gift.
  • the content types can be presented in the form of graphic information or text information.
  • the content type may include holiday blessings, words of praise, and everyday language, etc.
  • different content types correspond to different text content lists.
  • a selection instruction for the content type of the text virtual gift is received, and the matching text content is extracted according to the selection instruction to generate a text content list; the text content list is displayed at a designated position in the virtual gift column.
  • the user makes a selection instruction on a certain content type of the text virtual gift on the virtual gift bar by clicking or long-pressing, and according to the selection instruction, the server where the live broadcast room is located extracts the content type that matches the selected content type Integrate these text content to generate a text content list.
  • the audience client receives the text content list, a corresponding window pops up in the designated position of the virtual gift bar to display the text content list.
  • the designated position may be a window suspended above the virtual gift bar, or may be set in other positions on the live broadcast interface.
  • Fig. 3 is a schematic diagram of a live broadcast interface for text virtual gift giving provided by an embodiment.
  • the user selects one content type from among multiple different content types presented in the virtual gift bar 101, such as clicking on the content type" "Words of praise", a window pops up above the virtual gift bar 101 to display the pre-configured text content list 102 corresponding to "words of praise", such as “handsome and handsome”, “yushu linfeng”, “beautiful as flowers”” Wisdom and bravery” and so on.
  • the text content list 102 supports scrolling display, such as displaying all text content in the text content list 102 in a horizontal scrolling manner.
  • the text content list 102 may also include a custom content box. The user enters the text content by himself through the custom content box and saves the text content locally. When the user selects the content type again, the server push is displayed at the same time The text content and user-defined text content.
  • the text content list 102 can be understood as a part of the virtual gift column 101. When the content type of the text virtual gift in the virtual gift column 101 is not clicked, the text content list 102 does not pop up. When the user clicks to select any content type of the text virtual gift in the virtual gift column 101, the corresponding text content list 102 pops up .
  • the user selects one or more target text content from the text content list through touch or voice, and presents the target text content as a virtual gift of the target text to the target host through the live broadcast room.
  • the attribute information of the current live broadcast room is obtained, such as the anchor’s gender, the host’s expressions, the scene type of the live broadcast room, etc., based on the text virtual selected by the user
  • the content type of the gift analyzes the attribute information of the current live broadcast room, and automatically selects the most suitable one or more target text content from the text content list of the content type. Optionally, it can also be based on the text content list of the content type. Randomly select one or more target text content. Give the target text content as a virtual gift of the target text to the target anchor through the live broadcast room.
  • S140 According to the display template of the text virtual gift issued in the live broadcast room, synthesize the target text virtual gift into the target position of the host image of the video screen for rendering and display.
  • the display template refers to a template for displaying the text virtual gift on the video screen, which may include the color, shape, special effects, and display duration of the text during the display.
  • each type of text virtual gift corresponds to a different display template, or each type of text virtual gift may have the same display template but different text content.
  • the client After the client selects the target text virtual gift, it obtains the feature area corresponding to the target text virtual gift, recognizes the anchor image in the video screen, determines the target location of the feature area on the video screen, and then displays the target text according to the display template corresponding to the target text virtual gift
  • the virtual gift is synthesized to the target location to obtain the text virtual gift special effect, and the text virtual gift special effect is rendered in the video area, so that the user can watch the special effect of the text virtual gift.
  • Figure 4 is a schematic diagram of a text virtual gift special effect provided by an embodiment.
  • the user selects the content type of "words of praise" in the text virtual gift, and selects "beautiful as flowers” from the pop-up text content list "" as a virtual gift of the target text is presented to the host, and the text content of "beautiful as a flower” will be synthesized on the head of the host for display according to the display template of the virtual gift of the target text.
  • the method for giving a text virtual gift is to receive the text virtual gift delivered in the live broadcast room, and display the text virtual gift through the virtual gift bar; determine the content type of the text virtual gift selected by the user, and display the content of the text virtual gift A list of text content that matches the type; obtain the target text content selected from the text content list as a target text virtual gift and present it to the target anchor; according to the display template of the text virtual gift issued in the live broadcast room, synthesize the target text virtual gift
  • the target position of the host image on the video screen is rendered and displayed, so as to enrich the types of virtual gifts through text virtual gifts, express the user's feelings more appropriately, and improve the enthusiasm of the user for the host's gift giving.
  • the step S130 of synthesizing the target text virtual gift into the target position of the host image of the video screen based on the display template of the text virtual gift issued in the live broadcast room for rendering display may include the following steps:
  • the feature area of the text virtual gift on the host image can be obtained through the text virtual gift identifier, and further, the target location of the feature location on the video screen can be identified.
  • FIG. 5 is a flowchart of a method for determining a target position of a text virtual gift provided by an embodiment, and this step may include the following sub-steps:
  • S301 Obtain, according to the text virtual gift identifier, a characteristic area displayed in the live video screen corresponding to the text virtual gift.
  • the user presents a text virtual gift to the target anchor, selects the text virtual gift by triggering the relevant function button on the viewer client, and sends a text virtual gift gift instruction to the server, and the server receives the gift instruction and forwards it to the anchor client Terminal, where the gift request of the text virtual gift carries information such as the text virtual gift identifier and the target anchor identifier.
  • the host client receives the text virtual gift giving instruction sent by the viewer client, analyzes the information carried in the donation instruction, and obtains the text virtual gift corresponding to the text virtual gift identifier.
  • the text virtual gift identification it is used to distinguish different text virtual gifts.
  • the same text virtual gift has a unique text virtual gift identification.
  • the text virtual gift may be a special effect gift in the form of two-dimensional display, or a special effect gift in the form of three-dimensional display, that is, a three-dimensional special effect gift.
  • the three-dimensional special effect gift is used to create three-dimensional special effects, enhance the feeling of reality, and improve the virtual reality of the text.
  • the processing effect of gift special effects is used to create three-dimensional special effects, enhance the feeling of reality, and improve the virtual reality of the text.
  • the text virtual gift is displayed according to the characteristics of the characters, and different text virtual gifts correspond to their own characteristic areas, where the characteristic area refers to the area corresponding to the text virtual gift on the live video screen.
  • the feature area corresponding to the text virtual gift "beautiful as a flower” is the head
  • the feature area of the text virtual gift "hahahaha” is the position of the host's mouth, etc.
  • the feature area corresponding to the same type of virtual gift is fixed. According to the effect characteristics of different text virtual gifts, setting corresponding characteristic areas for different text virtual gifts for display can improve the effect expressiveness of the text virtual gifts.
  • S302 Identify at least two characteristic key points of the face image in the live video frame and their first positions.
  • the first position it may be the position coordinates corresponding to at least two characteristic key points and the position distance determined by each position coordinate.
  • the characteristic key points may be key points that outline the face of the anchor.
  • the at least two feature key points are key points with symmetrical characteristics in the face image, so that the relative size and characteristic area of the host's face can be accurately identified through their symmetrical characteristics.
  • the characteristic key points may include key points corresponding to any one of the eyes, nostrils, ears, corners of the mouth, and eyebrows.
  • the characteristic key point can be the key point at the outer corner of the eye as the characteristic key point, the key point at the inner corner of the eye as the characteristic key point, or the key point at the middle pupil of the eye. Key points and so on.
  • S303 Determine a target position where the text virtual gift is synthesized on the live video screen according to the first position and the relative position relationship between the characteristic key point and the characteristic area.
  • the characteristic area of the text virtual gift is generally set according to the physical characteristics of the host.
  • the characteristic area may include back contour, face contour, eye contour, top of the head, lips, and so on.
  • These characteristic regions can be determined by using certain characteristic key points in the face image as a reference, and determined by the relative positions of the characteristic regions and the characteristic key points.
  • the relative position relationship includes a relative direction relationship and a relative distance relationship.
  • the size of the face of the host affects the relative position of the feature area and the feature key point.
  • the position coordinates of these characteristic key points and the distance between the characteristic key points are determined.
  • the feature key point of the text virtual gift is the top of the head, which is located directly above the left eye. Then use the existing relative position relationship of the facial features of the general population to determine the distance between the top of the head and the left eye. Because different people have different face sizes, the distance from the top of the head to the left eye is also different.
  • the face is also larger, and the distance from the top of the head to the eye is larger.
  • the relative direction of the integrated feature area with respect to a feature key point can be used to determine the text virtual gift synthesis in the live broadcast
  • the target position on the video screen that is, the target position of the feature area on the live video screen.
  • FIG. 6 is another flowchart of a method for determining the target position of a text virtual gift provided in an embodiment. As shown in FIG. 6, it may include the following steps:
  • S101 Recognize the face image in the live video screen, and determine the position information of the eyes in the face image.
  • the face image in the live video screen is recognized, and some key points in the face image are determined, for example, the face image is detected, and the contour points of the eyes are recognized to determine the area where the eyes are located. Eye position information. Further, the position information of the eyes may be the position information of the pupil.
  • the determination of the position information of the eyes in the face image can be determined by an existing eye positioning algorithm, and the specific operation method can be known to those skilled in the relevant art, and will not be described in detail here.
  • FIG. 7 is a schematic diagram of the detection principle of the display position of the text virtual gift provided by an embodiment. As shown in FIG. 7, the face image in the live video screen is recognized, and the position of the user's two eyes in the live video screen is located Information is represented by point A1 and point A2 respectively.
  • the position information of the eyes includes the name of the eyes and the position coordinates of the eyes.
  • the position coordinates of the eyes may be subjected to difference processing to obtain the first position distance L1 between the two eyes.
  • the process of determining the target position of the virtual gift on the live video screen according to the first position and the relative position relationship between the characteristic key point and the characteristic area Can include the following steps:
  • the characteristic area of the virtual gift is obtained by obtaining the virtual gift identifier.
  • the relative orientation of the characteristic area corresponding to any eye is determined. If the characteristic area is the left ear, take the left eye as the reference, from the user's perspective, the relative position of the left ear relative to the left eye is: horizontal to the left; and if the characteristic area is directly above the top of the head, take the left eye as the reference From the user’s point of view, the relative orientation of the top of the head relative to the left eye is northeast.
  • S104 Based on the relative orientation and the position information of the eyes, determine the virtual target text according to the proportional relationship between the second position distance between the characteristic region and any one of the eyes and the first position distance. The target location of the gift on the live video screen.
  • the specific range of the distance from the eyes to the top of the head is about 5-15 cm, which is affected by the width between the eyes or between the brows.
  • the second position distance between the feature area and any eye is also greatly affected by the size of the user's face.
  • the first position distance between two characteristic key points such as the position distance between two eyes
  • the second position distance and the first position between the preset characteristic area and any eye are used.
  • the proportional relationship of the distance, the position distance of the characteristic area relative to the eye is obtained, and the target position of the characteristic area on the live video screen is obtained on the basis of determining the relative position of the characteristic area relative to any eye and the position information of the eye.
  • the feature area corresponding to the text virtual gift displayed in the live video screen is obtained by acquiring the text virtual gift identifier according to the text virtual gift ID; at least two key features of the face image in the live video screen are identified Point and its first position; according to the first position and the relative position relationship between the feature key point and the feature area, determine the target location of the text virtual gift synthesis on the live video screen, and realize the feature key with less detection data According to the relative position relationship between the characteristic key points and the characteristic area, the target position of the text virtual gift synthesis is determined, which reduces the amount of data processing and transmission during the virtual gift special effect display process, which is beneficial to subsequent data transmission.
  • S1302 Send the target location to the rendering layer, and display the composite at the target location according to the display template of the text virtual gift.
  • the audience client after the audience client detects the target location, it obtains the display template of the virtual gift, synthesizes the virtual gift on the target location, and displays it according to the style, color and special effects corresponding to the display template.
  • FIG. 8 is a schematic diagram of the synthesis effect of a text virtual gift provided by an embodiment.
  • the position coordinates (x1, y1) of the left eye A1 and the position coordinates (x2, y2) of the right eye A2, etc. are shown in FIG.
  • the position coordinates of the two eyes may be subjected to difference processing to obtain the first position distance L1 between the two eyes.
  • the first position distance L1 between the left eye A1 and the right eye A2 is 1000 pixels
  • the second position distance L2 between the feature area and the left eye is 1500 pixels.
  • the position of the left eye as the reference point, extend the length of 1500 pixels along the northeast direction to obtain the target position B on the top of the head.
  • the target position B corresponds to the position of the "Sweet" in "Handsome”.
  • FIG. 9 is a flowchart of the synthesis process of the text virtual gift provided by an embodiment.
  • the target text virtual gift is synthesized into the target position of the host image of the video screen in step S130.
  • Rendering display can include the following steps:
  • the text virtual gifts received by the host are too large, and they cannot be displayed one by one in time.
  • the target text virtual gifts are stored in the cache queue according to the gift time of each target text virtual gift, and the virtual gifts are displayed before and after the gift time.
  • the target text virtual gifts whose virtual value is lower than the preset value are obtained from the cache queue, and these target text virtual gifts are merged.
  • the number of target text virtual gifts in the cache queue is 20, and the 20 target text virtual gifts are sequentially numbered according to the sequence number in the cache queue, the preset number threshold is 20, and the preset value is 10YB. If the target text virtual gifts with a virtual value of less than 10YB are numbered 2, 5, 24, and 19, the four target text virtual gifts are merged into a new special effect gift, and the four virtual gifts are cleared from the cache queue. Target text virtual gift.
  • S1305 Display gift special effects corresponding to the number of virtual gifts according to the number of the combined target text virtual gifts.
  • the number of virtual gifts of the combined target text is different, and the corresponding gift special effects are also different. For example, if the number of virtual gifts of the combined target text is 4, it corresponds to gift special effect A. If the quantity is 6, it corresponds to gift special effect B. According to the combined number of the target text virtual gifts, the gift special effects corresponding to the number are invoked and displayed in the live broadcast room, thereby enhancing the performance effect of the text virtual gifts and increasing the enthusiasm of the user to give gifts.
  • a multi-person live broadcast interface is presented on the video screen at this time.
  • the multi-person live broadcast interface may include the multi-person live broadcast interface of the hosts in different live rooms in the connected state, or it may be A multi-person live broadcast interface with multiple anchors in the same live broadcast room.
  • the host here can be understood as a user who enters the live room through the host client.
  • FIG. 10 is a second flowchart of a method for giving a text virtual gift provided by an embodiment, wherein the target text virtual gift is presented to the target host through the live broadcast room, which can be It includes the following steps:
  • S210 Obtain the user's sliding operation on the target text virtual gift, and determine the target anchor from the multi-person anchors according to the sliding track.
  • a sliding operation is performed to give the text virtual gift.
  • identify and obtain the user's sliding operation on the target text virtual gift generate the corresponding sliding track, and extract the sliding parameters corresponding to the sliding track, such as the sliding speed, the sliding direction, the sliding position, the starting point and the ending point of the sliding, etc.
  • the user long presses the target text virtual gift and drags the target text virtual gift from the virtual gift bar to the video area to make a sliding operation of the target text virtual gift.
  • the target is determined from the multiplayer live broadcast interface according to the sliding track Anchor.
  • S201a Extract target key points of the sliding track, and determine the sliding direction according to the target key points.
  • the sliding trajectory is composed of a series of sliding trajectory points.
  • the pixel points passed by the sliding trajectory can be used as the sliding trajectory points.
  • the target key points of the sliding track are extracted to determine the sliding direction.
  • the sliding trajectory points of the sliding trajectory obtained by extracting every set time interval can be used as the target key points.
  • the starting point and the ending point of the sliding trajectory can be directly extracted as the target key points.
  • the direction vector between these target key points can be calculated to determine the sliding direction of the sliding track. For example, the direction vector connecting the starting point and the ending point of the sliding track is determined as the sliding direction of the sliding track.
  • S202a Based on the azimuth angle range of each anchor, use the azimuth angle range to which the sliding direction belongs to determine the target anchor.
  • the horizontal right is 0°
  • the horizontal left is 180°.
  • the azimuth angle range of the sliding direction is between (0°, 90)
  • the The anchor on the right is determined as the target anchor.
  • the azimuth angle range of the sliding direction is (90°, 180°)
  • the anchor on the left is determined as the target anchor.
  • the horizontal right is 0°
  • the horizontal left is 180°.
  • the azimuth angle range of the sliding direction is (0°, 60°)
  • the anchor on the right is determined as the target anchor.
  • the azimuth angle range of the sliding direction is (60°, 120°)
  • the anchor in the middle is determined as the target anchor.
  • the azimuth angle range of the sliding direction is within (120°, 180°)
  • the anchor on the left is determined as the target anchor.
  • FIG. 11 is a schematic diagram of the first interface for sliding gifts on the multi-person live broadcast interface provided by an embodiment.
  • the target anchor given by the target text virtual gift is determined by the sliding direction and the relative position range of each anchor on the live broadcast interface.
  • the sliding direction of the sliding track points to the angle range to which user B belongs, and user B is regarded as the target anchor.
  • the target text virtual gift is continuously dragged to the area where the target anchor is located on the live video screen, and then the sliding operation is released so that the end point of the sliding track falls on the The area where the target host is located.
  • the audience client recognizes the sliding operation, recognizes the sliding track, extracts its end point, and determines the position coordinates of the end point
  • the target anchor is determined by using the area range to which the position of the termination point belongs.
  • the termination point After obtaining the position coordinates of the termination point, determine which anchor's area the termination point belongs to, and determine the anchor corresponding to the area to which the termination point belongs as the target anchor.
  • Fig. 12 is a schematic diagram of a second interface for sliding gifts on the multi-person live broadcast interface provided by an embodiment. As shown in Fig. 12, the end point Q of the sliding track is located in the area where user B is located, then user B is regarded as the target anchor, and " The target text virtual gift of "beautiful as flowers" is presented to user B.
  • the target text virtual gift is presented to the target anchor.
  • the target text virtual gift is synthesized on the target location corresponding to the target anchor according to the characteristic attributes of the target text virtual gift.
  • the method for giving a text virtual gift is to display the gift icon on the virtual gift area of the multiplayer live broadcast interface; receive the user's selection operation of the gift icon on the virtual gift area to determine the target text virtual gift; obtain user feedback
  • the sliding operation of the target text virtual gift, and the target anchor is determined from the multiplayer live broadcast interface according to the sliding track; the target text virtual gift is presented to the target anchor, so as to accurately identify the gift object of the target text virtual gift on the multiplayer live broadcast interface , And the viewer user only needs to make a sliding gesture to the target text virtual gift, and the text virtual gift is directly presented to the target anchor, which is simple and fast.
  • the method for sending the text virtual gift can be implemented through the following steps:
  • S401 Receive a user's selection operation of multiple gift icons on the virtual gift area in a multi-touch manner, and set the multiple selected text virtual gifts as target text virtual gifts.
  • the user selects multiple gift icons in the virtual gift area at the same time. For example, the user touches multiple gift icons in the selected virtual gift area with multiple fingers at the same time, and the text virtual gift corresponding to the selected multiple gift icons is determined as the target text virtual gift .
  • S402 Obtain the user's sliding operation on each of the target text virtual gifts, and determine the target anchor corresponding to the target text virtual gift in the multi-person live broadcast interface according to the sliding track corresponding to each of the sliding operations.
  • each target text virtual gift selected by the touch operation generates a corresponding sliding track, and each sliding track is independent of each other and does not interfere with each other.
  • the target anchor on the multi-person live broadcast interface corresponding to the target text virtual gift corresponding to the sliding track is determined.
  • FIG. 13 is a schematic diagram of a third interface for sliding gifts on the multi-person live broadcast interface provided by an embodiment.
  • the sliding direction of the sliding track L3 corresponding to the target text virtual gift 1 "Maobi Panan" is leftward, then Use user A on the left side of the multiplayer live broadcast interface as the target text virtual gift 1 corresponds to the target anchor A; target text virtual gift 2 "beautiful and beautiful” and the sliding track L4 corresponding to the sliding direction is to the right, then the multiplayer will be broadcast live User B on the right side of the interface as the target text virtual gift 2 corresponds to the target anchor B presented.
  • the method for sending text virtual gifts provided in this embodiment can simultaneously send different text virtual gifts to different anchors on the multi-person live broadcast interface by sliding, which is simple, convenient and fast.
  • the method for sending the text virtual gift can be implemented through the following steps:
  • S501 Receive a selection operation sequentially performed by a user on at least two gift icons on the virtual gift area, set a plurality of selected text virtual gifts as target text virtual gifts, and generate a target text virtual gift queue.
  • S502 Trigger a sliding operation on any gift icon in the virtual gift queue of the target text.
  • any gift icon on the virtual gift queue of the target text is used as the starting point of the sliding operation, and the sliding operation is made to the video area on the multi-person live broadcast interface to virtualize the target text on the virtual gift queue of the target text.
  • the gift is sent.
  • the sliding trajectory corresponding to the sliding operation such as obtaining the starting point and ending point of the sliding trajectory, calculating the direction vector of the sliding trajectory from the starting point and ending point as the sliding direction of the sliding operation, based on the azimuth angle range of each anchor, using the sliding direction to belong
  • the range of the azimuth angle determines the target anchor given by the virtual gift queue of the target text.
  • S504 Send the target text virtual gift in the target text virtual gift queue to the live screen of the target anchor along the sliding track.
  • each target text virtual gift in the target text virtual gift queue is sent to the target anchor's live broadcast screen in a leap according to the selected order, so as to enhance the display effect of the text virtual gift sending.
  • Figure 14 is a schematic diagram of another interface of a method for giving a text virtual gift provided by an embodiment.
  • the user makes a continuous sliding operation on the virtual gift bar to change the text content list "beautiful as a flower” and " "Yi Xiao Qin Cheng” is used as the target text virtual gift, and the target text virtual gift queue is generated, and the host is swiped to send "beautiful as a flower” and "Yi Xiao Qin Cheng” to the host, so as to realize the continuous sending of text virtual gifts, simple and fast .
  • step S110 before receiving the text virtual gift issued in the live broadcast room in step S110, the following steps may be further included:
  • the feature information of the live room can be the feature information used to characterize the parameters corresponding to the live room.
  • the feature information of the live room can be the type of the live broadcast scene in the live room, the gender information of the host corresponding to the live room, the host level, and the host during the live broadcast. At least one of facial motion information and the like.
  • the live broadcast scene type can be game scene type, singing scene type, dancing scene type, talk show scene type, etc.
  • the anchor gender information can be male and female; the higher the anchor's experience value, the higher the anchor level; the anchor's face
  • the action information can be different facial action information such as smile, laugh, cry, frown, etc.
  • the feature information of the live broadcast room is different, and the corresponding virtual gift content matched from the virtual gift content library is also different.
  • the live broadcast scene type in the live broadcast room if it is a game live broadcast scene type, match virtual gift content related to the game from the virtual gift content library, such as "win one more game", "come on” and other text virtual gift content.
  • the virtual gift content related to singing is matched from the virtual gift content library, such as the text virtual gift content such as "sound like a oriole" and "sing another song”.
  • FIG. 15 is a first flowchart of a method for recommending a text virtual gift provided by an embodiment. As shown in FIG. 15, the process of matching the text content of the corresponding text virtual gift from the virtual gift content library according to the characteristic information. It can include the following steps:
  • the scene type information corresponding to the live room can be determined by the content tag of the live room. If the content tag is a game type, the scene type information of the live room is determined to be the game scene type, and it can also be determined by the channel of the host room. Information is determined. For example, the channel in the live room belongs to a dancing channel, and then the scene type information of the live room is determined as the dancing scene type.
  • the virtual gift content library is pre-configured with virtual gift styles suitable for various scene types.
  • Each virtual gift style can correspond to at least one gift tag to identify which scene type information it can belong to, for example, "Bangbang
  • the text virtual gift content of "Da” can be applied to both the game scene type and the dancing scene type, and the number A001 corresponds to the game scene type, and the number A002 corresponds to the dancing scene type, so the text virtual gift of "Awesome”
  • the gift tags corresponding to the content are A001 and A002.
  • the text-based virtual gift content of "win one more game” can only be applied to the game scene type, and the corresponding gift tag is A001.
  • the gift tag corresponding to the scene type information is obtained, and each virtual gift pattern of the virtual gift content library is traversed according to the gift tag, and the first virtual gift pattern that is the same as the gift tag of the scene type is extracted from it. , Generate the first virtual gift content from the extracted virtual gift style.
  • FIG. 16 is a second flowchart of a method for recommending a text virtual gift provided by an embodiment. As shown in FIG. 16, the process of matching corresponding virtual gift content from a virtual gift content library according to the characteristic information, It can also include the following steps:
  • the text virtual gift content corresponding to the male anchor can be "handsome"
  • the text virtual gift content corresponding to the female anchor can be "Shen Yu Luo Yan "Wait.
  • the anchor’s gender information can be determined by obtaining the anchor’s authentication information in the live broadcast room. For example, from the anchor’s real-name authentication ID number information, the sex is judged by the second-to-last parity. If it is an odd number, it is male. An even number is female.
  • the gender of the anchor can also be determined by means of face recognition. Among them, judging the anchor's gender through face recognition can be achieved through existing algorithms, which will not be described in detail here.
  • the virtual gift content library is pre-configured with virtual gift styles suitable for different genders, including virtual gift styles for men, virtual gift styles for women, and neutral virtual gift styles for both men and women, and virtual gift styles for different genders.
  • Gift styles can correspond to different gift tags, and each virtual gift style can correspond to at least one gift tag.
  • the text "Handsome” and the virtual gift content is suitable for men, and the corresponding gift tag is B001, "Beautiful as a flower
  • the text virtual gift content "" is suitable for women, and its corresponding gift tag is B002, and the text virtual gift content "brilliant" is applicable to both men and women. If it is a neutral word, its corresponding gift tag is B003.
  • the gift tag corresponding to the gender information of the anchor is obtained, and each virtual gift pattern of the virtual gift content library is traversed according to the gift tag, and a second virtual gift that is the same as the gift tag of the gender information is extracted from the gift tag. Style, the extracted second virtual gift style is combined with the first virtual gift content to generate the second virtual gift content. That is, the second virtual gift content includes virtual gift content with scene information and virtual gift content with gender information.
  • FIG. 17 is a third flowchart of a method for recommending a text virtual gift provided by an embodiment. As shown in FIG. 17, the process of matching corresponding virtual gift content from a virtual gift content library according to the characteristic information, It can also include the following steps:
  • the face image of the anchor in the live broadcast is obtained, and the face image is input into the pre-trained neural network model to obtain the facial motion information of the face image.
  • the face image of the anchor is in the opening Laugh, then input the face image of the laughter into the pre-trained neural network model to obtain the facial motion information of "laughing".
  • the face image of the anchor in the live broadcast screen is acquired, facial feature information is extracted from the face image, and the facial feature information is matched with various preset facial motion information, and the matching degree is determined. The highest preset facial motion information is used as the facial motion information corresponding to the facial image.
  • the virtual gift content library is pre-configured with virtual gift styles suitable for different facial motion information, including virtual gift styles for different facial motion information such as smile, laugh, cry, embarrassment, and frown.
  • the virtual gift styles for different facial motion information can correspond to different gift tags, and each virtual gift style can correspond to at least one gift tag.
  • the text "laughing” is suitable for "laughing”.
  • the corresponding gift tag is C001
  • the text virtual gift content of "Smile” is applicable to the facial motion information of "smile”
  • the corresponding gift tag is C002
  • the text virtual gift content is applicable to the facial motion information of "Frowning”
  • the corresponding gift tag is C003.
  • the gift tag corresponding to the facial motion information of the anchor is obtained, and each virtual gift pattern of the virtual gift content library is traversed according to the gift tag, and the same gift tag as the facial motion information is extracted from the gift tag.
  • the third virtual gift style is to combine the extracted third virtual gift style with the second virtual gift content to generate the third virtual gift content. That is, the third virtual gift content includes virtual gift content with scene information, virtual gift content with gender information, and virtual gift content with facial motion information.
  • the method for recommending virtual gift content generateds corresponding virtual gift content based on at least one of the live broadcast scene type, the host’s gender information, and the host’s facial motion information in the live room, so that the recommended virtual gift content can satisfy the user Individual needs.
  • the user can also select one or more feature information of live broadcast rooms, and set a priority for the feature information of each live broadcast room, and recommend a corresponding proportion of virtual gift content according to the priority level, in the virtual gift column To further meet the personalized needs of users, it is helpful to provide users with gift-giving enthusiasm.
  • the method for recommending text virtual gifts may further include the following steps:
  • the set time period may be a time period set according to the characteristics of the live broadcast service, for example, three days, one week, half a month, and so on.
  • the gift record data may include multiple information categories, such as: the identification of the virtual gift, the quantity, the time of gifting, the value of each virtual gift, and the gift revenue value generated by each virtual gift, etc.
  • S108 Sort the virtual gift content according to the gift record data, and select and recommend virtual gift content from the virtual gift content according to the sort order.
  • one or more information categories can be extracted from the gift record data to sort the virtual gift content.
  • “number of virtual gift content” can be used as the only main key to sort the virtual gift content, and The virtual gift content ranked in the top 20 is used as the recommended virtual gift content.
  • “virtual gift giving income value” as the main keyword to calculate the giving income value of various virtual gifts, such as multiplying the unit income value of this kind of virtual gift by the number of giving virtual gift to obtain this kind of virtual gift.
  • the value of the gift s gift.
  • sorting is performed according to the gift income value of various virtual gift contents.
  • the higher the gift income value of the virtual gift the higher the virtual gift content.
  • the sorting can be performed based on the different feature information of the live broadcast room, such as sorting the gift revenue value of each virtual gift belonging to the same live broadcast scene type, etc., further, according to the sorting order from the virtual gift content Select the recommended virtual gift content, select the virtual gift content with the top five in each feature information as the recommended virtual gift content, and integrate the recommended virtual gift content based on different feature information to obtain a recommended virtual gift content list.
  • the initial login user refers to the user who logs in to the live room for the first time after logging out of the audience client.
  • the server pushes the newly obtained recommended virtual gift content or recommended virtual gift content list to the initial login user when the user logs in to the live broadcast room, so as to more accurately push the virtual gift content in the live broadcast room to the user.
  • the virtual gift content recommendation method provided in this embodiment is to obtain the gift record data of the virtual gift content presented by the live platform user within a set time period, sort the virtual gift content according to the gift record data, and select from the virtual gift content according to the sort order Recommend virtual gift content and push the recommended virtual gift content to the initial login user, so as to predict the gift-giving tendency of the initial login user through the gift-giving interest of the live broadcast platform user, and push the virtual gift content that meets the user's personalized needs and meets the revenue.
  • FIG. 18 is a third flowchart of a method for giving a text virtual gift provided by an embodiment.
  • the method for giving a text virtual gift can be executed on a text virtual gift giving device.
  • the text virtual gift giving device is used as a server. Examples illustrate the following technical solutions.
  • the method for giving a text virtual gift may include the following steps:
  • the user triggers the display instruction of the text virtual gift through the audience client, and requests the text virtual gift from the server in the live broadcast room.
  • the server in the live broadcast room receives the display instruction, it obtains the text virtual gift in the live broadcast room and sends it to the audience client.
  • the audience client receives the text virtual gift issued in the live broadcast room, and displays it through the virtual gift bar.
  • S520 Receive the content type of the text virtual gift selected by the user sent by the client, and display a text content list matching the content type of the text virtual gift through the client.
  • the content types can be presented in the form of graphic information or text information.
  • the content type may include holiday blessings, words of praise, and everyday language, etc.
  • different content types correspond to different text content lists.
  • a selection instruction for the content type of the text virtual gift is received, and the matching text content is extracted according to the selection instruction to generate a text content list; the text content list is displayed at a designated position in the virtual gift column.
  • the user makes a selection instruction on a certain content type of the text virtual gift on the virtual gift bar by clicking or long pressing, and extracts the content type corresponding to the selected content type through the server where the live broadcast room is located according to the selection instruction.
  • the matched text content is integrated to generate a text content list.
  • a corresponding window pops up in the designated position of the virtual gift bar to display the text content list.
  • the designated position may be a window suspended above the virtual gift bar, or may be set in other positions on the live broadcast interface.
  • the text content list supports scrolling display, such as displaying all text content in the text content list by means of horizontal scrolling.
  • the text content list can also include a custom content box. The user enters the text content through the custom content box and saves the text content locally. When the user selects the content type again, the server push will be displayed at the same time. Text content and user-defined text content.
  • the user selects one or more target text content from the text content list by touching or voice or other methods, and presents the target text content as a virtual gift of the target text to the target host through the live broadcast room.
  • the server obtains the current live broadcast room Attribute information, such as the host’s gender, host’s expressions, and scene type in the live broadcast room, etc., based on the content type of the text virtual gift selected by the user, analyze the attribute information of the current live broadcast room, and automatically select it from the text content list of the content type Select one or more target text content that matches the most suitable content.
  • the server can also randomly select one or more target text content according to the text content list of the content type. Give the target text content as a virtual gift of the target text to the target anchor through the live broadcast room.
  • the display template of the text virtual gift delivered to the client, and the target text virtual gift is synthesized by the client to the target position of the host image of the video screen for rendering and display.
  • the display template refers to a template for displaying the text virtual gift on the video screen, which may include the color, shape, special effects, and display duration of the text during the display.
  • each type of text virtual gift corresponds to a different display template, or each type of text virtual gift may have the same display template but different text content.
  • the client After the client selects the target text virtual gift, it obtains the feature area corresponding to the target text virtual gift, recognizes the anchor image in the video screen, determines the target location of the feature area on the video screen, and then displays the target text according to the display template corresponding to the target text virtual gift
  • the virtual gift is synthesized to the target location to obtain the text virtual gift special effect, and the text virtual gift special effect is rendered in the video area, so that the user can watch the special effect of the text virtual gift.
  • FIG. 19 is a schematic structural diagram of a text virtual gift giving device provided by an embodiment.
  • the text virtual gift giving device in this embodiment is applied to a text virtual gift giving device, such as a mobile terminal, on which audience customers are installed end.
  • the device 100 for giving a text virtual gift includes: a gift receiving module 110, a content display module 120, a gift acquisition module 130, and a gift synthesis module 140.
  • the gift receiving module 110 is used to receive the text virtual gift issued in the live broadcast room and display the text virtual gift through the virtual gift column;
  • the content display module 120 is used to determine the content type of the text virtual gift selected by the user, and display A list of text content matching the content type of the text virtual gift;
  • the gift obtaining module 130 is configured to obtain the target text content selected from the text content list as the target text virtual gift, and pass the target text virtual gift through all
  • the live broadcast room is presented to the target host;
  • the gift synthesis module 140 is used to synthesize the target text virtual gift into the target location of the host image of the video screen for rendering and display according to the display template of the text virtual gift issued in the live broadcast room .
  • the device for giving a text virtual gift receives the text virtual gift delivered in the live broadcast room through the gift receiving module 110, and displays the text virtual gift through the virtual gift bar;
  • the content display module 120 determines the content of the text virtual gift selected by the user Type, displaying the text content list matching the content type of the text virtual gift;
  • the gift obtaining module 130 obtains the target text content selected from the text content list as the target text virtual gift and presents it to the target host;
  • the gift synthesis module 140 delivers according to the live broadcast room
  • the text virtual gift display template synthesizes the target text virtual gift into the target position of the anchor image of the video screen for rendering display, so as to realize the enrichment of the types of virtual gifts through the text virtual gift, and more closely express the user’s feelings, and improve the user The enthusiasm for giving gifts to the anchor.
  • the content display module 120 includes: a list generation unit and a list display unit; wherein, the list generation unit is configured to receive a selection instruction for the content type of the text virtual gift, and extract matching instructions according to the selection instruction.
  • the text content of generates a text content list; the list display unit is used to display the text content list in a designated position of the virtual gift bar.
  • the gift synthesis module 140 includes: a target location recognition unit and a gift synthesis unit; wherein the target location recognition unit is used to recognize the target location of the text virtual gift displayed on the host image of the video screen; the gift synthesis unit , Used to send the target location to the rendering layer, and display it after being synthesized at the target location according to the display template of the text virtual gift.
  • the target location recognition unit includes: a feature area acquisition subunit, a first location recognition subunit, and a target location determination subunit; wherein the feature area acquisition subunit is used to obtain the text virtual gift tag according to the text virtual gift tag.
  • the gift corresponds to the feature area displayed in the video screen;
  • the first position recognition subunit is used to recognize at least two feature key points of the host’s face image in the video screen and their first position;
  • the target position determination subunit is used According to the first position and the relative position relationship between the characteristic key point and the characteristic area, the target position of the text virtual gift synthesized on the video screen is determined.
  • the target position determination subunit is configured to determine the relative position of the characteristic region with respect to any of the characteristic key points; based on the relative position and the position information of the characteristic key points, according to the The proportional relationship between the second location distance between the feature area and any of the feature key points and the first location distance determines the target location of the text virtual gift on the video screen.
  • the gift composition module 140 includes: a gift cache module, a gift merging module, and a special effect display module; wherein the gift cache module is used to store the target text virtual gift according to the gift time of the target text virtual gift In the cache queue; a gift merging module for when the number of target text virtual gifts in the cache queue reaches a preset number threshold, the virtual value in the cache queue is lower than the preset value of the target text virtual gifts Merging; a special effect display module for displaying gift special effects corresponding to the number according to the number of the merged target text virtual gifts.
  • the live broadcast room is a multi-person live broadcast room
  • the gift acquisition module 130 includes: a target anchor determining unit and a gift giving unit; wherein the target anchor determining unit is used to obtain a virtual gift from the user to the target text A sliding operation is performed, and a target anchor is determined from a multi-person anchor according to the sliding track; a gift giving unit is used to gift the target text virtual gift to the target anchor.
  • the target anchor determining unit is configured to extract the target key points of the sliding track, and determine the sliding direction according to the target key points; and use the sliding direction based on the azimuth angle range of each anchor The azimuth angle range to which it belongs determines the target anchor.
  • the target anchor determining unit is configured to obtain the end point of the sliding track, and determine the position of the end point on the multiplayer live broadcast interface; based on the area range of each anchor, use the end point The area to which the location belongs to determine the target anchor.
  • the device for giving a text virtual gift includes: a gift matching module; wherein the gift matching module is used to obtain feature information of the current live broadcast room through the live broadcast room, and match the corresponding information from the virtual gift content library according to the feature information Text virtual gift.
  • the characteristic information includes at least one of the live broadcast scene type of the live broadcast room, the gender information of the host, the host level, and the facial motion information of the host.
  • the device 500 for giving a text virtual gift includes: a gift issuing module 510, a type receiving module 520, a gift giving module 530, and a template issuing module 540.
  • the gift issuing module 510 is used to issue a text virtual gift to the client, so that the client displays the text virtual gift in the virtual gift column;
  • the type receiving module 520 is used to receive the user sent by the client
  • the selected content type of the text virtual gift is displayed on the client side with a text content list matching the content type of the text virtual gift;
  • the gift giving module 530 is used to obtain the target text content selected from the text content list as a target
  • a text virtual gift is used to present the target text virtual gift to the target anchor;
  • the template issuing module 540 is used to send a display template of the text virtual gift to the client, and the target text is virtualized through the client
  • the gift is synthesized to the target location of the host image on the video screen for rendering and display.
  • the device for giving a text virtual gift provided above has corresponding functions and beneficial effects when executing the method for giving a text virtual gift provided by any of the foregoing embodiments.
  • the embodiment of the present invention also provides a device for giving a text virtual gift, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, any of the above is achieved.
  • a device for giving a text virtual gift including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, any of the above is achieved.
  • a method for giving a text virtual gift in an embodiment.
  • the device for giving the virtual gift may be a mobile terminal, a tablet computer, a computer computer, or a server.
  • the device for giving a text virtual gift provided above has corresponding functions and beneficial effects when executing the method for giving a text virtual gift provided by any of the foregoing embodiments.
  • An embodiment of the present invention also provides a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, are used to execute a method for giving a text virtual gift, including:
  • the target text virtual gift is synthesized into the target position of the host image of the video screen for rendering and display.
  • the computer-executable instructions are used to execute a method for giving a text virtual gift when executed by a computer processor, and further include:
  • the display template of the text virtual gift delivered to the client, and the target text virtual gift is synthesized by the client to the target position of the host image of the video screen for rendering and display.
  • the embodiment of the present invention provides a storage medium containing computer-executable instructions, and the computer-executable instructions are not limited to the above-mentioned text virtual gift giving method operations, and can also execute the methods provided in any embodiment of the present invention. Related operations in the method of giving virtual gifts with corresponding functions and beneficial effects.
  • the present invention can be implemented by software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. .
  • the technical solution of the present invention essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • FLASH Flash memory
  • hard disk or optical disk etc., including several instructions to make a computer device (which can be a personal computer) , A server, or a network device, etc.) execute the method for giving a text virtual gift according to any embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Social Psychology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种文字虚拟礼物的赠送方法、装置、设备及存储介质,涉及直播技术领域,该方法通过接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示文字虚拟礼物;确定用户选择的文字虚拟礼物的内容类型,展示文字虚拟礼物的内容类型相匹配的文字内容列表;获取从文字内容列表中选择的目标文字内容作为目标文字虚拟礼物赠送给目标主播;根据直播间下发的所述文字虚拟礼物的展示模板,将目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。本申请实现通过文字虚拟礼物丰富虚拟礼物的种类,更贴切表达用户的感情,有助于提高用户对主播送礼的积极性。

Description

文字虚拟礼物的赠送方法、装置、设备及存储介质
本申请要求于2019年12月06日提交中国专利局、申请号为201911243383.4、发明名称为“文字虚拟礼物的赠送方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及直播技术领域,具体而言,本申请涉及一种文字虚拟礼物的赠送方法、装置、设备及存储介质。
背景技术
随着网络技术发展,实时视频交流如网络直播、视频聊天室等成为一种越来越流行的娱乐方式。在实时视频交流过程中,可以通过赠送虚拟礼物展示特效的方式增加用户之间的互动性。
传统的虚拟礼物表现形式单一,通常以图形礼物进行视觉表现,图形礼物对于视觉的呈现难以满足不同用户的不同的情感表达,在一些特定的直播场景下,如夸赞人、搞笑、场景类场景下,图形礼物难以清晰表达用户的心情,以使用户无法从中选择合适的礼物进行赠送,同时主播或者观众有时无法直接从图形礼物中领悟图形的真正含义,降低了用户赠送礼物的积极性,影响了主播和观众之间的互动性。
发明内容
本申请的目的旨在至少解决上述技术缺陷之一,特别是直播间虚拟礼物形式单一的问题。
第一方面,本申请实施例提供一种文字虚拟礼物的赠送方法,包括以下步骤:
接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;
确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;
根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
第二方面,本申请实施例提供一种文字虚拟礼物的赠送方法,包括以下步骤:
向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;
接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;
向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
第三方面,本申请实施例提供一种文字虚拟礼物的赠送装置,其包括:
礼物接收模块,用于接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;
内容展示模块,用于确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
礼物获取模块,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;
礼物合成模块,用于根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
第四方面,本申请实施例提供一种文字虚拟礼物的赠送装置,包括:
礼物下发模块,用于向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;
类型接收模块,用于接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
礼物赠送模块,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;
模板下发模块,用于向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
第五方面,本申请实施例提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述提及的任一实施例的文字虚拟礼物的赠送方法的步骤。
第六方面,本申请实施例一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如上述提及的任一实施例的文字虚拟礼物的赠送方法的步骤。
上述实施例提及的文字虚拟礼物的赠送方法、装置、设备及存储介质,通过接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示文字虚拟礼物;确定用户选择的文字虚拟礼物的内容类型,展示文字虚拟礼物的内容类型相匹配的文字内容列表;获取从文字内容列表中选择的目标文字内容作为目标文字虚拟礼物赠送给目标主播;根据直播间下发的所述文字虚拟礼物的展示模板,将目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示,以实现通过文字虚拟礼物丰富虚拟礼物的种类,更贴切表达用户的感情,提高用户对主播送礼的积极性。
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是一实施例提供的网络直播系统的框架示意图;
图2是一实施例提供的文字虚拟礼物的赠送方法的第一流程图;
图3是一实施例提供的文字虚拟礼物赠送的直播界面的示意图;
图4是一实施例提供的文字虚拟礼物特效的示意图;
图5是一实施例提供的文字虚拟礼物的目标位置的确定方法的流程图;
图6是一实施例提供的文字虚拟礼物的目标位置的确定方法的另一流程图;
图7是一实施例提供的文字虚拟礼物展示位置的检测原理示意图;
图8是一实施例提供的文字虚拟礼物的合成效果示意图;
图9是一实施例提供的文字虚拟礼物的合成过程的流程图;
图10是一实施例提供的文字虚拟礼物的赠送方法的第二流程图;
图11是一实施例提供的多人直播界面滑动送礼的第一界面示意图;
图12是一实施例提供的多人直播界面滑动送礼的第二界面示意图;
图13是一实施例提供的多人直播界面滑动送礼的第三界面示意图;
图14是一实施例提供的文字虚拟礼物的赠送方法的另一界面示意图;
图15是一实施例提供的文字虚拟礼物的推荐方法的第一流程图;
图16是一实施例提供的文字虚拟礼物的推荐方法的第二流程图;
图17是一实施例提供的文字虚拟礼物的推荐方法的第三流程图;
图18是一实施例提供的文字虚拟礼物的赠送方法的第三流程图;
图19是一实施例提供的文字虚拟礼物的赠送装置的结构示意图;
图20是一实施例提供的文字虚拟礼物的赠送装置的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式 “一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
在对本申请实施例提供的方法进行介绍之前,首先对本申请实施例的应用场景进行介绍。本申请实施例提供的方法应用于网络直播系统中,请参考图1,图1是一实施例提供的网络直播系统的框架示意图,该系统框架可以包括服务端和客户端,客户端包括一个或多个主播客户端10和多个观众客户端20,位于服务端上的直播平台中可以包括多个虚拟直播间和服务器30等,其中,各主播端110和各观众端120分别与该服务器30之间通过有线网络或者无线网络建立通信连接。
通常而言,各个虚拟直播间对应播放不同的直播内容,主播通过主播客户端10进行直播,观众通过观众客户端20选择进入某一虚拟直播间观看主播进行直播。观众客户端20和主播客户端10可以通过安装在终端设备上的直播应用程序(Application,APP)进入直播平台。
其中,该主播客户端10和观众客户端20为终端设备,如智能手机、平板电脑、电子阅读器、台式电脑或笔记本电脑等,对此并不做限定。服务器30是用于为终端设备提供后台服务的后台服务器,可以用独立服务器或多个服务器组成的服务器集群来实现。在一实施例中,该服务器30可以为网络直播平台。
图2是一实施例提供的文字虚拟礼物的赠送方法的第一流程图,该文字虚拟礼物的赠送方法可以执行于文字虚拟礼物的赠送设备,本实施例以文字虚拟礼物的赠送设备为观众客户端为例对下列技术方案进行说明。
具体的,如图2所示,文字虚拟礼物的赠送方法可以包括以下步骤:
S110、接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物。对于文字虚拟礼物,其可以为以文字样式呈现的礼物,如以“貌美如花”这文字样式呈现的文字虚拟礼物。在本实施例中,用户通过观众客户端触发文字虚拟礼物的展示指令,向直播间请求文字虚拟礼物。直播间接收到展示指令后,获取该直播间的文字虚拟礼物,将其下发至观众客户端。观众客户端接收到直播间下发的文字虚拟礼物,通过虚拟礼物栏进行展示。
一般而言,在未接收到展示指令时,虚拟礼物栏隐藏起来,在接收到展示指令后,在直播界面上展开虚拟礼物栏。虚拟礼物栏可以支持翻页,若左右滑动实现向左或向右翻页,上下滑动实现向上或向下翻页。
S120、确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表。
虚拟礼物栏上展示有文字虚拟礼物的不同内容类型,该内容类型可以通过图形信息的形式来呈现,也可以文字信息的形式来呈现。其中,内容类型可以包括节日祝福、赞美之词、日常用语等。
在实施例中,不同的内容类型对应不同的文字内容列表。进一步的,接收对文字虚拟礼物的内容类型的选择指令,根据选择指令提取相匹配的文字内容,生成文字内容列表;在虚拟礼物栏的指定位置展示文字内容列表。
可选的,用户通过点击或长按的方式在虚拟礼物栏上的文字虚拟礼物的某一内容类型上作出选择指令,根据选择指令通过直播间所在的服务器提取出与该选中的内容类型相匹配的文字内容,整合这些文字内容生成文字内容列表。观众客户端接收到文字内容列表后,在虚拟礼物栏的指定位置弹出相应的窗口,以展示文字内容列表。其中,指定位置可以是悬浮在虚拟礼物栏上方的窗口,也可以是设置在直播界面的其他位置上。
图3是一实施例提供的文字虚拟礼物赠送的直播界面的示意图,如图3所示,用户从虚拟礼物栏101呈现的多个不同的内容类型中选择其中一个内容类型,如点击内容类型“赞美之词”,在虚拟礼物栏101的上方弹出窗 口,以展示与“赞类之词”对应的预配置的文字内容列表102,如“英俊潇洒”、“玉树临风”“貌美如花”“智勇双全”等。
可选的,文字内容列表102支持滚动显示,如通过横向滚动的方式展示文字内容列表102中的全部文字内容。可选的,文字内容列表102还可以包括自定义内容框,用户通过自定义内容框自行输入文字内容,并将该文字内容保存在本地,当用户再次选择该内容类型时,则同时展示服务器推送的文字内容和用户自定义输入的文字内容。需要说明的是,文字内容列表102可以理解为虚拟礼物栏101的一部分。在不点击虚拟礼物栏101的文字虚拟礼物的内容类型时,文字内容列表102不弹出,当用户点击选择虚拟礼物栏101的文字虚拟礼物的任一内容类型时,弹出相对应的文字内容列表102。
S130、获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播。
在一实施例中,用户通过触摸或语音等方式作出选择操作,从文字内容列表中选择一个或多个目标文字内容,将目标文字内容作为目标文字虚拟礼物通过直播间赠送给目标主播。
在另一实施例中,用户选择了文字虚拟礼物的内容类型后,没有进一步从该内容类型对应的
文字内容列表中选择文字内容,而是直接触发赠送指令,此时,获取当前直播间的属性信息,如主播的性别、主播的表情动作、直播间的场景类型等,基于用户选定的文字虚拟礼物的内容类型,分析当前直播间的属性信息,自动从该内容类型的文字内容列表中选择匹配最合适的一个或多个目标文字内容,可选的,还可以根据该内容类型的文字内容列表随机选择一个或多个目标文字内容。将目标文字内容作为目标文字虚拟礼物通过直播间赠送给目标主播。
S140、根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
在本实施例中,展示模板是指文字虚拟礼物在视频画面上的展示的模板,其可以包括展示时文字的颜色、形状、特效和展示时长等。可选的, 每一种文字虚拟礼物对应不同的展示模板,也可以是每一种文字虚拟礼物以展示模板相同而文字内容不同。
客户端选择目标文字虚拟礼物后,获取目标文字虚拟礼物对应的特征区域,识别视频画面中主播图像,确定特征区域在视频画面上的目标位置,之后根据目标文字虚拟礼物对应的展示模板将目标文字虚拟礼物合成到该目标位置上,得到文字虚拟礼物特效,将文字虚拟礼物特效在视频区域进行渲染,以便于用户观看到文字虚拟礼物的特效。
图4是一实施例提供的文字虚拟礼物特效的示意图,如图4所示,用户选择了文字虚拟礼物中的“赞美之词”的内容类型,从弹出的文字内容列表中选择“貌美如花”作为目标文字虚拟礼物赠送给主播,将按照该目标文字虚拟礼物的展示模板,将“貌美如花”这一文字内容合成在主播的头顶上进行展示。
本实施例提供的文字虚拟礼物的赠送方法,通过接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示文字虚拟礼物;确定用户选择的文字虚拟礼物的内容类型,展示文字虚拟礼物的内容类型相匹配的文字内容列表;获取从文字内容列表中选择的目标文字内容作为目标文字虚拟礼物赠送给目标主播;根据直播间下发的所述文字虚拟礼物的展示模板,将目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示,以实现通过文字虚拟礼物丰富虚拟礼物的种类,更贴切表达用户的感情,提高用户对主播送礼的积极性。
为了使本发明的技术方案更为清晰,更为便于理解,下面对本技术方案中的多个步骤的具体的实现过程和方式加以详细的描述。
在一实施例中,步骤S130的根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示,可以包括以下步骤:
S1301、识别所述文字虚拟礼物展示在视频画面主播图像上的目标位置。
在本实施例中,可以通过文字虚拟礼物标识得到文字虚拟礼物在主播图像上的特征区域,进一步的,识别出该特征位置在该视频画面上的目标 位置。
可选的,如图5所示,图5是一实施例提供的文字虚拟礼物的目标位置的确定方法的流程图,该步骤可以包括以下子步骤:
S301、根据文字虚拟礼物标识获取得到文字虚拟礼物对应在直播视频画面中展示的特征区域。
用户在观看直播视频过程中,向目标主播赠送文字虚拟礼物,通过在观众客户端触发相关功能按键选择文字虚拟礼物,向服务器发出文字虚拟礼物的赠送指令,服务器接收到该赠送指令转发至主播客户端,其中,该文字虚拟礼物的赠送请求携带有文字虚拟礼物标识和目标主播标识等信息。
主播客户端接收观众客户端发送的文字虚拟礼物的赠送指令,解析该赠送指令所携带的信息,获取到该文字虚拟礼物标识对应的文字虚拟礼物。对于文字虚拟礼物标识,其用于区分不同的文字虚拟礼物,一般而言,同一种文字虚拟礼物具有唯一的文字虚拟礼物标识。在一些实施例中,文字虚拟礼物可以是二维显示形式的特效礼物,也可以是三维显示形式的特效礼物,即三维特效礼物,通过三维特效礼物营造出立体特效,增强现实感受,提高文字虚拟礼物特效的处理效果。
在实施例中,文字虚拟礼物根据人物特征来进行效果展示,不同的文字虚拟礼物对应有各自的特征区域,其中,特征区域是指文字虚拟礼物在直播视频画面上所对应设置的区域。示例性的,文字虚拟礼物“貌美如花”对应的特征区域为头部,文字虚拟礼物“哈哈哈哈”的特征区域为主播口部位置等。一般而言,同一种文字虚拟礼物对应的特征区域是固定的。根据不同文字虚拟礼物的效果特性,为不同的文字虚拟礼物设置对应的特征区域进行显示,能够提高文字虚拟礼物的效果表现力。
S302、识别所述直播视频画面中人脸图像的至少两个特征关键点及其第一位置。
对于第一位置,可以是至少两个特征关键点对应的位置坐标以及由各位置坐标确定的位置距离。
在一些实施例中,特征关键点可以为勾勒出主播脸部的关键点。优选 的,在一些实施例中,至少两个特征关键点为人脸图像中具有对称特性的关键点,以便于通过其对称特性准确识别出主播人脸的相对大小以及特征区域。例如,在一些实施例中,特征关键点可以包括眼睛、鼻孔、耳朵、嘴角、眉毛中任意一种对应的关键点。进一步的,以眼睛为例,特征关键点可以是外侧眼角处的关键点为特征关键点,也可以是内侧眼角处的关键点为特征关键点,还可以是眼睛中间瞳孔处的关键点为特征关键点等。
S303、根据所述第一位置以及所述特征关键点与所述特征区域之间的相对位置关系,确定所述文字虚拟礼物合成在直播视频画面上的目标位置。
在实施例中,文字虚拟礼物的特征区域一般按照主播的身体特征来设定,如特征区域可以包括背部轮廓、脸部轮廓、眼睛轮廓、头顶、嘴唇等。这些特征区域可以通过在人脸图像的某一些特征关键点作为参考,通过特征区域与特征关键点的相对位置来确定,其中,相对位置关系包括相对方向关系和相对距离关系等。
以主播脸部为例,首先主播脸部的大小影响特征区域与特征关键点的相对位置。可选的,在实施例中,通过识别直播视频画面中的至少两个特征关键点,确定这些特征关键点的位置坐标和特征关键点之间的距离。进一步的,通过预先确定的特征区域与特征关键点的相对位置关系,例如,该文字虚拟礼物的特征关键点为头顶,其位于左眼的正上方。再利用现有的普通人群脸部各五官的相对位置关系确定,头顶与左眼之间的距离。由于不同人群的脸部大小不同,头顶到左眼的距离也不同,一般而言,脸也大,头顶到眼睛的距离越大。优选的,可以通过特征关键点之间的距离与某一特征关键点与特征区域之间的距离的比例关系,综合特征区域相对于某一特征关键点的相对方向,确定文字虚拟礼物合成在直播视频画面上的目标位置,也即特征区域在直播视频画面上的目标位置。
在本实施例中,以通过检测眼睛的位置信息来确定展示位置为例进行说明。可选的,图6是一实施例提供的文字虚拟礼物的目标位置的确定方法的另一流程图,如图6所示,其可以包括以下步骤:
S101、对所述直播视频画面中的人脸图像进行识别,确定所述人脸图像中的眼睛的位置信息。
在本实施例中,对直播视频画面中的人脸图像进行识别,确定人脸图像中的一些目标关键点,例如检测人脸图像,通过眼睛部位轮廓点的识别,确定眼睛所在区域,确定出眼睛的位置信息。进一步的,眼睛的位置信息可以是瞳孔的位置信息。
需要说明的是,人脸图像中的眼睛的位置信息的确定可以通过现有的眼睛定位算法来确定,具体操作方法相关领域技术人员能够知晓,在此不详细叙述。
图7是一实施例提供的文字虚拟礼物展示位置的检测原理示意图,如图7所示,对直播视频画面中的人脸图像进行识别,定位到直播视频画面中的用户的两只眼睛的位置信息,分别用点A1和点A2来表示。
S102、根据所述眼睛的位置信息,计算所述两个眼睛之间的第一位置距离。
其中,眼睛的位置信息包括眼睛的名称以及眼睛的位置坐标,继续参考图7,如左眼A1的位置坐标(x1,y1)和右眼A2的位置坐标(x2,y2)等。根据眼睛的位置信息,如眼睛瞳孔在直播视频画面上的位置坐标,在一实施例中,可以将两只眼睛的位置坐标进行求差处理,得到两个眼睛之间的第一位置距离L1。
继续参考图6,在本实施例中,根据所述第一位置以及所述特征关键点与所述特征区域之间的相对位置关系,确定所述虚拟礼物在直播视频画面上的目标位置的过程,可以包括以下步骤:
S103、确定所述特征区域相对于任一所述眼睛的相对方位。
在本实施例中,通过获取虚拟礼物标识得到该虚拟礼物的特征区域。通过眼睛所在位置为参考物,确定特征区域相对应任一眼睛的相对方位。如特征区域为左耳,以左眼为参照物,从用户视角来看,左耳相对于左眼的相对方位为:水平向左方向;又如特征区域为头顶正上方,以左眼为参照物,从用户视角来看,头顶正上方相对于左眼的相对方位为东北方向。
S104、基于所述相对方位和所述眼睛的位置信息,根据所述特征区域与任一所述眼睛之间的第二位置距离与所述第一位置距离的比例关系,确定所述目标文字虚拟礼物在直播视频画面上的目标位置。
一般人眼睛到头顶的距离具体范围会在到5-15厘米左右之间,其受到眼睛之间或眉头之间宽度大小的影响。换言之,特征区域与任一眼睛之间的第二位置距离受到用户脸部大小的影响也较大。本实施例通过计算两个特征关键点之间的第一位置距离,如两只眼睛之间的位置距离,再利用预设的特征区域与任一眼睛之间的第二位置距离与第一位置距离的比例关系,得到特征区域相对于该眼睛的位置距离,在确定特征区域相对于任一眼睛的相对方位以及该眼睛的位置信息的基础上,得到特征区域在直播视频画面上的目标位置。
按照经验可知,由于眼睛到头顶的距离大约为两个眼睛瞳孔之间距离的1.5倍~2倍,在本实施例中,以文字虚拟礼物的特征区域为头顶为例,继续参考图7,头顶位于左眼的东北方向,即θ=45°,左眼A1和右眼A2之间的第一位置距离L1为1000个像素点,第二位置距离和第一位置距离的比例关系为1.5,则特征区域与左眼之间的第二位置距离L2为1500个像素点。以左眼的位置为参考点,沿着东北方向延伸1500个像素点的长度,得到头顶的目标位置B。
本实施例提供的文字虚拟礼物展示位置的检测方法,通过根据文字虚拟礼物标识获取得到文字虚拟礼物对应在直播视频画面中展示的特征区域;识别直播视频画面中人脸图像的至少两个特征关键点及其第一位置;根据第一位置以及特征关键点与特征区域之间的相对位置关系,确定文字虚拟礼物合成在直播视频画面上的目标位置,实现了通过检测数据量较少的特征关键点,并根据特征关键点与特征区域之间的相对位置关系确定出文字虚拟礼物合成的目标位置,减少了虚拟礼物特效展示过程中数据处理量和传输量,有利于后续的数据传输。
S1302、将所述目标位置发送至渲染层,根据所述文字虚拟礼物的展示模板在所述目标位置进行合成后显示。
在本实施例中,观众客户端检测到目标位置后,获取虚拟礼物的展示模板,将虚拟礼物合成在目标位置上,并按照展示模板对应的样式、颜色和特效进行展示。
图8是一实施例提供的文字虚拟礼物的合成效果示意图,如图8所示, 左眼A1的位置坐标(x1,y1)和右眼A2的位置坐标(x2,y2)等。根据眼睛的位置信息,如眼睛瞳孔在直播视频画面上的位置坐标,在一实施例中,可以将两只眼睛的位置坐标进行求差处理,得到两个眼睛之间的第一位置距离L1。
以文字虚拟礼物的特征区域为头顶为例,继续参考图8,头顶位于左眼的东北方向,即θ=45°,左眼A1和右眼A2之间的第一位置距离L1为1000个像素点,第二位置距离和第一位置距离的比例关系为1.5,则特征区域与左眼之间的第二位置距离L2为1500个像素点。以左眼的位置为参考点,沿着东北方向延伸1500个像素点的长度,得到头顶的目标位置B。将目标位置B发送至渲染层,以通过渲染层将文字虚拟礼物“英俊潇洒”合成到目标位置B上,可选的,目标位置B对应“英俊潇洒”中的“洒”所在的位置,以使得“英俊潇洒”这一文字虚拟礼物在目标位置B按照预配置的展示模板进行效果展示。
图9是一实施例提供的文字虚拟礼物的合成过程的流程图,如图9所示,在一实施例中,步骤S130的将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示,可以包括以下步骤:
S1303、根据所述目标文字虚拟礼物的赠送时间将所述目标文字虚拟礼物存储于缓存队列。
当多个观众用户对同一主播发送文字虚拟礼物时,由于主播所接收到的文字虚拟礼物数量过多,无法及时进行一一展示。此时,按照各目标文字虚拟礼物的赠送时间将这些目标文字虚拟礼物存储在缓存队列中,按照赠送时间的前后进行展示。
S1304、当所述缓存队列中的目标文字虚拟礼物的数量达到预设数量阈值时,将所述缓存队列中虚拟价值低于预设价值的所述目标文字虚拟礼物进行合并。
当缓存队列的目标文字虚拟礼物的数量达到预设数量阈值时,从缓存队列中获取虚拟价值低于预设价值的目标文字虚拟礼物,将这些目标文字虚拟礼物进行合并。
例如,缓存队列中的目标文字虚拟礼物的数量为20个,并依次给这20 个目标文字虚拟礼物按照在缓存队列中的序号进行编号,预设数量阈值为20,预设价值为10YB,提取出虚拟价值低于10YB的目标文字虚拟礼物的编号分别为2、5、24和19,则将这四个目标文字虚拟礼物进行合并成一个新的特效礼物,同时在缓存队列中清除该四个目标文字虚拟礼物。
S1305、根据合并的所述目标文字虚拟礼物的数量展示与所述数量对应的礼物特效。
在本实施例中,合并的目标文字虚拟礼物的数量不同,对应产生的礼物特效也不同,比如合并的目标文字虚拟礼物的数量为4个,则对应礼物特效A,合并的目标文字虚拟礼物的数量为6个,则对应礼物特效B。根据合并的所述目标文字虚拟礼物的数量,调用与该数量相对应的礼物特效,并在直播间中进行展示,从而增强文字虚拟礼物的表现效果,提高用户的送礼积极性。
在一实施例中,当直播间为多人直播间,此时视频画面上呈现出多人直播界面,多人直播界面可以包括连麦状态下不同直播间主播的多人直播界面,也可以是同一直播间内存在多名主播的多人直播界面。需要说明的是,此处的主播可以理解为通过主播客户端进入直播间的用户。
进一步的,在多人直播间场景下可以通过滑动方式确定目标文字虚拟礼物所对应的目标主播。可选的,如图10所示,图10是一实施例提供的文字虚拟礼物的赠送方法的第二流程图,其中,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播,可以包括以下步骤:
S210、获取用户对所述目标文字虚拟礼物的滑动操作,并根据滑动轨迹从多人主播中确定目标主播。
当观众用户选择目标文字虚拟礼物后,做出滑动操作,以进行文字虚拟礼物的赠送。首先,识别并获取用户对目标文字虚拟礼物的滑动操作,生成对应的滑动轨迹,提取该滑动轨迹对应的滑动参数,如滑动速度、滑动方向、滑动位置、滑动的起始点和终止点等。例如,用户长按目标文字虚拟礼物,并将目标文字虚拟礼物从虚拟礼物栏拖动到视频区域,以作出目标文字虚拟礼物的滑动操作,进一步的,根据滑动轨迹从多人直播界面中确定目标主播。
进一步的,在一些实施例中,其具体可以包括以下步骤:
S201a、提取所述滑动轨迹的目标关键点,根据所述目标关键点确定所述滑动方向。
在本实施例中,滑动轨迹是由一些列的滑动轨迹点组成,一般的可以将滑动轨迹经过的像素点作为滑动轨迹点。进一步的,提取出滑动轨迹的目标关键点以确定滑动方向。在一些实施例中,可以通过每间隔设定时间提取得到的滑动轨迹的滑动轨迹点作为目标关键点,在另一些实施例中,可以直接提取滑动轨迹的起始点和终止点作为目标关键点。进一步的,可以通过计算这些目标关键点之间的方向向量以确定滑动轨迹的滑动方向。例如,根据滑动轨迹的起始点和终止点连线的方向向量确定为滑动轨迹的滑动方向。
S202a、基于各所述主播的方位角度范围,利用所述滑动方向所属的方位角度范围确定目标主播。
例如,当在双人直播界面上,以水平向右为0°,水平向左为180°,则通过滑动方式送礼时,滑动方向所属的方位角度范围在(0°,90)之间,则将右边的主播确定为目标主播,若滑动方向所属的方位角度范围在(90°,180°),则将左边的主播确定为目标主播。
同理,若多人直播界面的主播人数为三人时,以水平向右为0°,水平向左为180°,则通过滑动方式送礼时,滑动方向所属的方位角度范围在(0°,60°),则将右边的主播确定为目标主播,若滑动方向所属的方位角度范围在(60°,120°),则将中间的主播确定为目标主播,若滑动方向所属的方位角度范围在(120°,180°),则将左边的主播确定为目标主播。
图11是一实施例提供的多人直播界面滑动送礼的第一界面示意图,如图11所示,通过滑动方向与直播界面上各主播的相对方位范围确定目标文字虚拟礼物所赠送的目标主播,滑动轨迹的滑动方向指向B用户所属角度范围,则将B用户作为目标主播。
在另一些实施例中,其具体可以包括以下步骤:
S201b、获取所述滑动轨迹的终止点,确定所述终止点在所述多人直播界面上的位置。
在本实施例中,选择目标文字虚拟礼物后,连续不中断拖动该目标文字虚拟礼物至直播视频画面上的目标主播所在区域后,释放该滑动操作,使得该滑动轨迹的终止点落在该目标主播所在区域。观众客户端识别出滑动操作,并识别该滑动轨迹,提取其终止点,确定终止点的位置坐标
S202b、基于各所述主播的区域范围,利用所述终止点的位置所属的区域范围确定目标主播。
在获得终止点的位置坐标后,确定该终止点属于哪个主播的区域,将该终止点所属的区域对应的主播确定为目标主播。
图12是一实施例提供的多人直播界面滑动送礼的第二界面示意图,如图12所示,滑动轨迹的终止点Q位于B用户所在的区域范围,则将B用户作为目标主播,将“貌美如花”这一目标文字虚拟礼物赠送至B用户。
S220、将所述目标文字虚拟礼物赠送给所述目标主播。
确定目标主播后,将该目标文字虚拟礼物赠送给目标主播。在一些实施例中,根据目标文字虚拟礼物的特征属性,将目标文字虚拟礼物合成在目标主播对应的目标位置上。
本实施例提供的文字虚拟礼物的赠送方法,通过在多人直播界面的虚拟礼物区域上显示礼物图标;接收用户对虚拟礼物区域上的礼物图标的选择操作,确定目标文字虚拟礼物;获取用户对目标文字虚拟礼物的滑动操作,并根据滑动轨迹从多人直播界面中确定目标主播;将目标文字虚拟礼物赠送给目标主播,以实现精确识别出目标文字虚拟礼物在多人直播界面上的赠送对象,且观众用户只需向目标文字虚拟礼物做出滑动手势,则直接向目标主播赠送该文字虚拟礼物,简单快捷。
在一实施例中,还可以同时选择多个不同的目标文字虚拟礼物,并将目标文字虚拟礼物同时发送至同一目标主播或分别发送至不同的目标主播。可选的,该文字虚拟礼物的发送方法可以通过下列步骤来实现:
S401、接收用户通过多点触摸的方式分别对虚拟礼物区域上的多个礼物图标的选择操作,将多个选择的文字虚拟礼物设为目标文字虚拟礼物。
用户在虚拟礼物区域中同时选中多个礼物图标,例如,用户通过多根手指同时触摸选择虚拟礼物区域的多个礼物图标,将选择的多个礼物图标 对应的文字虚拟礼物确定为目标文字虚拟礼物。
S402、分别获取用户对各所述目标文字虚拟礼物的滑动操作,并根据各所述滑动操作对应的滑动轨迹在多人直播界面中确定所述目标文字虚拟礼物对应的目标主播。
进一步的,当选择目标文字虚拟礼物后,拖曳该礼物图标做出滑动操作。在本实施例中,每个触摸操作选中的目标文字虚拟礼物分别对应生成对应的滑动轨迹,各滑动轨迹相互独立,互不干扰。根据各滑动轨迹对应的滑动方向,确定该滑动轨迹对应的目标文字虚拟礼物对应的在多人直播界面上的目标主播。
图13是一实施例提供的多人直播界面滑动送礼的第三界面示意图,如图13所示,目标文字虚拟礼物1“貌比潘安”对应的滑动轨迹L3的滑动方向为偏左,则将多人直播界面上左边的用户A作为目标文字虚拟礼物1对应赠送的目标主播A;目标文字虚拟礼物2“貌美如花”对应的滑动轨迹L4的滑动方向为偏右,则将多人直播界面上右边的用户B作为目标文字虚拟礼物2对应赠送的目标主播B。本实施例提供的文字虚拟礼物的发送方法能够通过滑动方式同时向多人直播界面上不同的主播发送不同的文字虚拟礼物,简单方便快捷。
在一实施例中,还可以同时选择多个不同的目标文字虚拟礼物,并将多个目标文字虚拟礼物同时发送至同一目标主播。可选的,该文字虚拟礼物的发送方法可以通过下列步骤来实现:
S501、接收用户对所述虚拟礼物区域上至少两个礼物图标依次执行的选择操作,将多个选择的文字虚拟礼物设为目标文字虚拟礼物,并生成目标文字虚拟礼物队列。
在一实施例中,可以长按某一礼物图标进行连续选择操作,具体的,可以为长按某一礼物图标,将虚拟礼物区域进入多项选择界面,如在每个礼物图标的左上方出现空心圆圈,若该礼物图标被选中,则将该礼物图标的空心圆圈变为实心圆圈,进一步的,可以在实心圆圈上呈现阿拉伯数字,以表示礼物图标被选择的顺序,当触发“确定”指令后,将多个选择的文字虚拟礼物确定为目标文字虚拟礼物,并按照选择的顺序生成目标文字虚 拟礼物队列。
在另一实施例中,可以触摸某一礼物图标,以该礼物图标为起始点,在虚拟礼物区域做出滑动操作,以选择多个礼物图标,进一步的,当滑动到某一礼物图标时,在该礼物图标的右上方添加被选择的顺序序号,将选择的文字虚拟礼物设为目标文字虚拟礼物,并按照选择的顺序生成目标文字虚拟礼物队列。
S502、对所述目标文字虚拟礼物队列的任一礼物图标上触发滑动操作。
在本实施例中,对目标文字虚拟礼物队列上的任一礼物图标作为滑动操作的起始点,向多人直播界面上的视频区域做出滑动操作,将目标文字虚拟礼物队列上的目标文字虚拟礼物进行发送。
S503、获取所述滑动操作并根据所述滑动操作的滑动轨迹确定目标主播。
获取滑动操作对应的滑动轨迹,如获取滑动轨迹的起始点和终止点,通过起始点和终止点计算滑动轨迹的方向向量作为滑动操作的滑动方向,基于各主播的方位角度范围,利用滑动方向所属的方位角度范围确定该目标文字虚拟礼物队列所赠送的目标主播。
S504、将所述目标文字虚拟礼物队列中的目标文字虚拟礼物沿着所述滑动轨迹发送到所述目标主播的直播画面上。
在确定目标主播后,在直播界面上沿着滑动操作对应的滑动轨迹确定目标主播后,生成指向该目标主播的目标文字虚拟礼物的发送轨迹,将各目标文字虚拟礼物沿着发送轨迹发送至主播画面上,可选的,将目标文字虚拟礼物队列中的各目标文字虚拟礼物按照选择的顺序以飞跃的形式发送至目标主播的直播画面上,以增强文字虚拟礼物发送的展示效果。
图14是一实施例提供的文字虚拟礼物的赠送方法的另一界面示意图,如图14所示,用户在虚拟礼物栏做出连续滑动操作,将文字内容列表中的“貌美如花”和“一笑倾成”作为目标文字虚拟礼物,生成目标文字虚拟礼物队列,向主播作出滑动操作,将“貌美如花”和“一笑倾成”发送至主播,从而实现文字虚拟礼物的连续发送,简单快捷。
在一实施例中,步骤S110的接收直播间下发的文字虚拟礼物之前,还 可以包括以下步骤:
S100、通过直播间获取当前直播间的特征信息,根据所述特征信息从虚拟礼物内容库中匹配对应的文字虚拟礼物。
对于直播间的特征信息,其可以是用于表征直播间所对应参数的特征信息,直播间的特征信息可以是直播间的直播场景类型、直播间对应的主播性别信息、主播等级以及直播时主播脸部动作信息等中的至少一种。进一步的,直播场景类型可以是游戏场景类型、唱歌场景类型、跳舞场景类型、脱口秀场景类型等;主播性别信息可以为男性和女性;主播的经验值越高,主播等级越高;主播脸部动作信息可以为微笑、大笑、哭、皱眉等不同的脸部动作信息。
在本实施例中,直播间的特征信息不同,从虚拟礼物内容库中匹配对应的虚拟礼物内容也不同。例如,根据直播间的直播场景类型,若为游戏直播场景类型,则从虚拟礼物内容库中匹配与游戏相关的虚拟礼物内容,如“再赢一场”,“加油”等文字虚拟礼物内容。若为唱歌直播场景类型,则从虚拟礼物内容库中匹配与唱歌相关的虚拟礼物内容,如“声如黄鹂”“再唱一曲”等文字虚拟礼物内容。
图15是一实施例提供的文字虚拟礼物的推荐方法的第一流程图,如图15所示,该根据所述特征信息从虚拟礼物内容库中匹配对应的文字虚拟礼物的文字内容的过程,可以包括以下步骤:
S1001、获取所述直播间对应的场景类型信息。
在本实施例中,直播间对应的场景类型信息可以通过直播间的内容标签来确定,若内容标签为游戏类,则直播间的场景类型信息确定为游戏场景类型,还可以通过主播间的频道信息来确定,例如该直播间的频道属于跳舞频道,则将该直播间的场景类型信息确定为跳舞场景类型。
S1002、根据所述场景类型信息从虚拟礼物内容库中调用对应的第一虚拟礼物样式,生成第一虚拟礼物内容。
虚拟礼物内容库中预配置有适用于各种场景类型的虚拟礼物样式,每一虚拟礼物样式可以对应有至少一个礼物标签,用于标识其可以归属于哪一场景类型信息,例如,“棒棒哒”这一文字虚拟礼物内容,既可以适用于 游戏场景类型,也可以适用于跳舞场景类型,而编号A001对应游戏场景类型,编号A002对应跳舞场景类型,则该“棒棒哒”这一文字虚拟礼物内容对应的礼物标签为A001和A002。又如,“再赢一场”这一文字虚拟礼物内容,仅可以适用于游戏场景类型,则其对应的礼物标签为A001。
可选的,在实施例中,获取场景类型信息对应的礼物标签,根据该礼物标签遍历该虚拟礼物内容库各虚拟礼物样式,从中提取出与该场景类型的礼物标签相同的第一虚拟礼物样式,将提取出来的虚拟礼物样式生成第一虚拟礼物内容。
进一步的,图16是一实施例提供的文字虚拟礼物的推荐方法的第二流程图,如图16所示,该根据所述特征信息从虚拟礼物内容库中匹配对应的虚拟礼物内容的过程,还可以包括以下步骤:
S1003、获取所述直播间的主播的性别信息。
由于不同性别,对应的虚拟礼物样式不同,以文字样式为例,形容主播貌美的,男主播对应的文字虚拟礼物内容可以为“英俊潇洒”,而女主播对应的文字虚拟礼物内容可以为“沉鱼落雁”等。
可选的,可以通过获取直播间的主播认证信息来确定主播的性别信息,如从主播实名认证的身份证号信息,以倒数第二位的奇偶性判断性别,若为奇数则为男性,若为偶数则为女性。在一些实施例中,还可以通过人脸识别的方式来判断主播性别。其中,通过人脸识别的方式来判断主播性别可以通过现有的算法来实现,在此不详叙述。
S1004、根据所述主播的性别信息从虚拟礼物内容库中调用对应的第二虚拟礼物样式,根据第二虚拟礼物样式及所述第一虚拟礼物内容生成第二虚拟礼物内容。
虚拟礼物内容库中预配置有适用于不同性别的虚拟礼物样式,包括针对男性的虚拟礼物样式、针对女性的虚拟礼物样式以及同时适用于男性和女性的中性虚拟礼物样式,针对不同性别的虚拟礼物样式可以对应有不同的礼物标签,每一虚拟礼物样式可以对应有至少一个礼物标签,如“英俊潇洒”这一文字虚拟礼物内容适用于男性,则其对应的礼物标签为B001,“貌美如花”这一文字虚拟礼物内容适用于女性,则其对应的礼物标签为 B002,“才华横溢”这一文字虚拟礼物内容均适用于男性和女性,为中性词汇,则其对应的礼物标签为B003。
可选的,在实施例中,获取主播的性别信息对应的礼物标签,根据该礼物标签遍历该虚拟礼物内容库各虚拟礼物样式,从中提取出与该性别信息的礼物标签相同的第二虚拟礼物样式,将提取出来的第二虚拟礼物样式,并结合第一虚拟礼物内容生成第二虚拟礼物内容。也即是,第二虚拟礼物内容包括有场景类信息的虚拟礼物内容和性别信息的虚拟礼物内容。
进一步的,图17是一实施例提供的文字虚拟礼物的推荐方法的第三流程图,如图17所示,该根据所述特征信息从虚拟礼物内容库中匹配对应的虚拟礼物内容的过程,还可以包括以下步骤:
S1005、对所述主播进行人脸识别,并提取所述主播的脸部动作信息。
在一实施例中,获取直播画面中的主播人脸图像,将人脸图像输入到预先训练好的神经网络模型中得到该人脸图像的脸部动作信息,如该人脸图像中主播在开口大笑,则将该开口大笑的人脸图像输入到预先训练好的神经网络模型中,得到“哈哈大笑”脸部动作信息。在另一些实施例中,获取直播画面中的主播人脸图像,从人脸图像中提取出脸部特征信息,将该脸部特征信息与多种预设脸部动作信息做匹配,将匹配度最高的预设脸部动作信息作为该人脸图像对应的脸部动作信息。
S1006、根据所述脸部动作信息从所述虚拟礼物内容库中调用对应的第三虚拟礼物样式,根据第三虚拟礼物样式及所述第二虚拟礼物内容生成第三虚拟礼物内容。
虚拟礼物内容库中预配置有适用于不同脸部动作信息的虚拟礼物样式,包括针对微笑、大笑、哭、尴尬和皱眉等不同脸部动作信息的虚拟礼物样式。针对不同脸部动作信息的虚拟礼物样式可以对应有不同的礼物标签,每一虚拟礼物样式可以对应有至少一个礼物标签,如“哈哈大笑”这一文字虚拟礼物内容适用于“大笑”这一脸部动作信息,则其对应的礼物标签为C001,“笑容可掬”这一文字虚拟礼物内容适用于“微笑”这一脸部动作信息,则其对应的礼物标签为C002,“给爷笑一个”这一文字虚拟礼物内容适用于“皱眉”这一脸部动作信息,则其对应的礼物标签为C003。
可选的,在实施例中,获取主播的脸部动作信息对应的礼物标签,根据该礼物标签遍历该虚拟礼物内容库各虚拟礼物样式,从中提取出与该脸部动作信息的礼物标签相同的第三虚拟礼物样式,将提取出来的第三虚拟礼物样式,并结合第二虚拟礼物内容生成第三虚拟礼物内容。也即是,第三虚拟礼物内容包括有场景类信息的虚拟礼物内容、性别信息的虚拟礼物内容和脸部动作信息的虚拟礼物内容。
本实施例提供的虚拟礼物内容的推荐方法,通过直播间的直播场景类型、主播性别信息和主播脸部动作信息的至少一者,生成对应的虚拟礼物内容,使得推荐的虚拟礼物内容能够满足用户的个性化需求。在其他实施例中,还可以用户选择一个或多个直播间的特征信息,并为各直播间的特征信息设定优先级,按照优先级的高低推荐对应比例数量虚拟礼物内容,在虚拟礼物栏上进行展示,以进一步满足用户的个性化需求,有利于提供用户的送礼积极性。
在一实施例中,文字虚拟礼物的推荐方法还可以包括以下步骤:
S107、获取设定时间段内直播平台用户赠送虚拟礼物内容的赠送记录数据。
在本实施例中,设定时间段可以是根据直播业务特点设定的时间段,例如,三天、一周、半个月等。一般而言,虚拟礼物内容的赠送记录越多,说明该虚拟礼物内容越受用户的欢迎。赠送记录数据可以包括多个信息类别,如:虚拟礼物的标识、数量、赠送的时间、每个虚拟礼物的价值以及每种虚拟礼物所产生的赠送收益值等。
S108、根据所述赠送记录数据对所述虚拟礼物内容进行排序,根据排序顺序从虚拟礼物内容选择推荐虚拟礼物内容。
在本实施例中,可以从赠送记录数据中提取一个或多个信息类别对虚拟礼物内容进行排序,例如,可以“虚拟礼物内容的数量”作为唯一主要关键字,对虚拟礼物内容进行排序,将排序在前二十的虚拟礼物内容作为推荐虚拟礼物内容。
又如,可以“虚拟礼物的赠送收益值”作为主要关键字,计算各种虚拟礼物的赠送收益值,如将该种虚拟礼物的单位收益值与该虚拟礼物的赠 送数量相乘得到该种虚拟礼物的赠送收益值。进一步的,根据各种虚拟礼物内容的赠送收益值进行排序,可选的,虚拟礼物的赠送收益值越高的,虚拟礼物内容越靠前。在本实施例中,该排序可以基于直播间的不同的特征信息来进行,如将属于同一直播场景类型的各虚拟礼物的赠送收益值进行排序等,进一步的,根据排序顺序从虚拟礼物内容中选择推荐虚拟礼物内容,将各特征信息中的赠送收益值位于前五的虚拟礼物内容选取出来作为推荐虚拟礼物内容,将基于不同特征信息的推荐虚拟礼物内容进行整合,得到推荐虚拟礼物内容列表。
S109、将所述推荐虚拟礼物内容推送给初始登录用户。
初始登录用户是指退出观众客户端后初次登录该直播间的用户。服务器将最新得到的推荐虚拟礼物内容或推荐虚拟礼物内容列表在用户登录该直播间时推送至初始登录用户,以更精准地向用户推送该直播间的虚拟礼物内容。
本实施例提供的虚拟礼物内容的推荐方式,通过获取设定时间段内直播平台用户赠送虚拟礼物内容的赠送记录数据,根据赠送记录数据对虚拟礼物内容进行排序,根据排序顺序从虚拟礼物内容选择推荐虚拟礼物内容,将推荐虚拟礼物内容推送给初始登录用户,以实现通过直播平台用户的送礼兴趣预测初始登录用户的送礼倾向,将既符合用户个性化需求又符合收益的虚拟礼物内容进行推送。
图18是一实施例提供的文字虚拟礼物的赠送方法的第三流程图,该文字虚拟礼物的赠送方法可以执行于文字虚拟礼物的赠送设备,本实施例以文字虚拟礼物的赠送设备为服务器为例对下列技术方案进行说明。
具体的,如图18所示,文字虚拟礼物的赠送方法可以包括以下步骤:
S510、向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物。
在本实施例中,用户通过观众客户端触发文字虚拟礼物的展示指令,向直播间的服务器请求文字虚拟礼物。直播间的服务器接收到展示指令后,获取该直播间的文字虚拟礼物,将其下发至观众客户端。观众客户端接收到直播间下发的文字虚拟礼物,通过虚拟礼物栏进行展示。
S520、接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表。
虚拟礼物栏上展示有文字虚拟礼物的不同内容类型,该内容类型可以通过图形信息的形式来呈现,也可以文字信息的形式来呈现。其中,内容类型可以包括节日祝福、赞美之词、日常用语等。
在实施例中,不同的内容类型对应不同的文字内容列表。进一步的,接收对文字虚拟礼物的内容类型的选择指令,根据选择指令提取相匹配的文字内容,生成文字内容列表;在虚拟礼物栏的指定位置展示文字内容列表。
可选的,用户通过点击或长按的方式在虚拟礼物栏上的文字虚拟礼物的某一内容类型上做出选择指令,根据选择指令通过直播间所在的服务器提取出与该选中的内容类型相匹配的文字内容,整合这些文字内容生成文字内容列表。观众客户端接收到文字内容列表后,在虚拟礼物栏的指定位置弹出相应的窗口,以展示文字内容列表。其中,指定位置可以是悬浮在虚拟礼物栏上方的窗口,也可以是设置在直播界面的其他位置上。
可选的,文字内容列表支持滚动显示,如通过横向滚动的方式展示文字内容列表中的全部文字内容。可选的,文字内容列表还可以包括自定义内容框,用户通过自定义内容框自行输入文字内容,并将该文字内容保存在本地,当用户再次选择该内容类型时,则同时展示服务器推送的文字内容和用户自定义输入的文字内容。
S530、获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播。
在一实施例中,用户通过触摸或语音等方式做出选择操作,从文字内容列表中选择一个或多个目标文字内容,将目标文字内容作为目标文字虚拟礼物通过直播间赠送给目标主播。
在另一实施例中,用户选择了文字虚拟礼物的内容类型后,没有进一步从该内容类型对应的文字内容列表中选择文字内容,而是直接触发赠送指令,此时,服务器获取当前直播间的属性信息,如主播的性别、主播的表情动作、直播间的场景类型等,基于用户选定的文字虚拟礼物的内容类 型,分析当前直播间的属性信息,自动从该内容类型的文字内容列表中选择匹配最合适的一个或多个目标文字内容,可选的,服务器还可以根据该内容类型的文字内容列表随机选择一个或多个目标文字内容。将目标文字内容作为目标文字虚拟礼物通过直播间赠送给目标主播。
S540、向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
在本实施例中,展示模板是指文字虚拟礼物在视频画面上的展示的模板,其可以包括展示时文字的颜色、形状、特效和展示时长等。可选的,每一种文字虚拟礼物对应不同的展示模板,也可以是每一种文字虚拟礼物以展示模板相同而文字内容不同。
客户端选择目标文字虚拟礼物后,获取目标文字虚拟礼物对应的特征区域,识别视频画面中主播图像,确定特征区域在视频画面上的目标位置,之后根据目标文字虚拟礼物对应的展示模板将目标文字虚拟礼物合成到该目标位置上,得到文字虚拟礼物特效,将文字虚拟礼物特效在视频区域进行渲染,以便于用户观看到文字虚拟礼物的特效。
下面对文字虚拟礼物的赠送装置的相关实施例进行详细阐述。
图19是一实施例提供的文字虚拟礼物的赠送装置的结构示意图,本实施例中的文字虚拟礼物的赠送装置应用于文字虚拟礼物的赠送设备,如移动终端,该移动终端上安装有观众客户端。
具体的,如图19所示,文字虚拟礼物的赠送装置100包括:礼物接收模块110、内容展示模块120、礼物获取模块130以及礼物合成模块140。
其中,礼物接收模块110,用于接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;内容展示模块120,用于确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;礼物获取模块130,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;礼物合成模块140,用于根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播 图像的目标位置上进行渲染显示。
本实施例提供的文字虚拟礼物的赠送装置,通过礼物接收模块110接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示文字虚拟礼物;内容展示模块120确定用户选择的文字虚拟礼物的内容类型,展示文字虚拟礼物的内容类型相匹配的文字内容列表;礼物获取模块130获取从文字内容列表中选择的目标文字内容作为目标文字虚拟礼物赠送给目标主播;礼物合成模块140根据直播间下发的所述文字虚拟礼物的展示模板,将目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示,以实现通过文字虚拟礼物丰富虚拟礼物的种类,更贴切表达用户的感情,提高用户对主播送礼的积极性。
在一实施例中,内容展示模块120包括:列表生成单元和列表展示单元;其中,列表生成单元,用于接收对所述文字虚拟礼物的内容类型的选择指令,根据所述选择指令提取相匹配的文字内容,生成文字内容列表;列表展示单元,用于在所述虚拟礼物栏的指定位置展示所述文字内容列表。
在一实施例中,礼物合成模块140包括:目标位置识别单元和礼物合成单元;其中,目标位置识别单元,用于识别所述文字虚拟礼物展示在视频画面主播图像上的目标位置;礼物合成单元,用于将所述目标位置发送至渲染层,根据所述文字虚拟礼物的展示模板在所述目标位置进行合成后显示。
在一实施例中,目标位置识别单元包括:特征区域获取子单元、第一位置识别子单元以及目标位置确定子单元;其中,特征区域获取子单元,用于根据文字虚拟礼物标识获取得到文字虚拟礼物对应在视频画面中展示的特征区域;第一位置识别子单元,用于识别所述视频画面中主播人脸图像的至少两个特征关键点及其第一位置;目标位置确定子单元,用于根据所述第一位置以及所述特征关键点与所述特征区域之间的相对位置关系,确定所述文字虚拟礼物合成在视频画面上的目标位置。
在一实施例中,目标位置确定子单元,用于确定所述特征区域相对于任一所述特征关键点的相对方位;基于所述相对方位和所述特征关键点的位置信息,根据所述特征区域与任一所述特征关键点之间的第二位置距离 与所述第一位置距离的比例关系,确定所述文字虚拟礼物在视频画面上的目标位置。
在一实施例中,礼物合成模块140包括:礼物缓存模块、礼物合并模块以及特效展示模块;其中,礼物缓存模块,用于根据所述目标文字虚拟礼物的赠送时间将所述目标文字虚拟礼物存储于缓存队列;礼物合并模块,用于当所述缓存队列中的目标文字虚拟礼物的数量达到预设数量阈值时,将所述缓存队列中虚拟价值低于预设价值的所述目标文字虚拟礼物进行合并;特效展示模块,用于根据合并的所述目标文字虚拟礼物的数量展示与所述数量对应的礼物特效。
在一实施例中,所述直播间为多人直播间;礼物获取模块130包括:目标主播确定单元以及礼物赠送单元;其中,目标主播确定单元,用于获取用户对所述目标文字虚拟礼物的滑动操作,并根据滑动轨迹从多人主播中确定目标主播;礼物赠送单元,用于将所述目标文字虚拟礼物赠送给所述目标主播。
在一实施例中,目标主播确定单元,用于提取所述滑动轨迹的目标关键点,根据所述目标关键点确定所述滑动方向;基于各所述主播的方位角度范围,利用所述滑动方向所属的方位角度范围确定目标主播。
在一实施例中,目标主播确定单元,用于获取所述滑动轨迹的终止点,确定所述终止点在多人直播界面上的位置;基于各所述主播的区域范围,利用所述终止点的位置所属的区域范围确定目标主播。
在一实施例中,文字虚拟礼物的赠送装置包括:礼物匹配模块;其中,礼物匹配模块,用于通过直播间获取当前直播间的特征信息,根据所述特征信息从虚拟礼物内容库中匹配对应的文字虚拟礼物。
在一实施例中,所述特征信息包括直播间的直播场景类型、主播性别信息、主播等级和主播脸部动作信息中的至少一者。
下面对文字虚拟礼物的赠送装置的相关实施例进行详细阐述。
图20是一实施例提供的文字虚拟礼物的赠送装置的结构示意图,本实施例中的文字虚拟礼物的赠送装置应用于文字虚拟礼物的赠送设备,如服务器。如图20所示,文字虚拟礼物的赠送装置500包括:礼物下发模块510、 类型接收模块520、礼物赠送模块530以及模板下发模块540。
其中,礼物下发模块510,用于向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;类型接收模块520,用于接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;礼物赠送模块530,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;模板下发模块540,用于向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
上述提供的文字虚拟礼物的赠送装置执行上述任意实施例提供的文字虚拟礼物的赠送方法时,具备相应的功能和有益效果。
本发明实施例还提供一种文字虚拟礼物的赠送设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述任一实施例中的文字虚拟礼物的赠送方法。
可选的,该虚拟礼物的赠送设备可以为移动终端、平板电脑、计算机电脑或服务器等。上述提供的文字虚拟礼物的赠送设备执行上述任一实施例提供的文字虚拟礼物的赠送方法时,具有相应的功能和有益效果。
本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种文字虚拟礼物的赠送方法,包括:
接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;
确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;
根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
所述计算机可执行指令在由计算机处理器执行时用于执行一种文字虚 拟礼物的赠送方法,还包括:
向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;
接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;
向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的文字虚拟礼物的赠送方法操作,还可以执行本发明任意实施例所提供的文字虚拟礼物的赠送方法中的相关操作,且具备相应的功能和有益效果。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明任意实施例所述的文字虚拟礼物的赠送方法。
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以 与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。

Claims (16)

  1. 一种文字虚拟礼物的赠送方法,其特征在于,包括以下步骤:
    接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;
    确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
    获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;
    根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
  2. 根据权利要求1所述的文字虚拟礼物的赠送方法,其特征在于,所述确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表的步骤包括:
    接收对所述文字虚拟礼物的内容类型的选择指令,根据所述选择指令提取相匹配的文字内容,生成文字内容列表;
    在所述虚拟礼物栏的指定位置展示所述文字内容列表。
  3. 根据权利要求1所述的文字虚拟礼物的赠送方法,其特征在于,所述根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示的步骤包括:
    识别所述文字虚拟礼物展示在视频画面主播图像上的目标位置;
    将所述目标位置发送至渲染层,根据所述文字虚拟礼物的展示模板在所述目标位置进行合成后显示。
  4. 根据权利要求3所述的文字虚拟礼物的赠送方法,其特征在于,所述识别所述文字虚拟礼物展示在视频画面主播图像上的目标位置的步骤包括:
    根据文字虚拟礼物标识获取得到文字虚拟礼物对应在视频画面中展示的特征区域;
    识别所述视频画面中主播人脸图像的至少两个特征关键点及其第一位置;
    根据所述第一位置以及所述特征关键点与所述特征区域之间的相对位置关系,确定所述文字虚拟礼物合成在视频画面上的目标位置。
  5. 根据权利要求4所述的文字虚拟礼物的赠送方法,其特征在于,所述根据所述第一位置以及所述特征关键点与所述特征区域之间的相对位置关系,确定所述文字虚拟礼物合成在视频画面上的目标位置的步骤包括:
    确定所述特征区域相对于任一所述特征关键点的相对方位;
    基于所述相对方位和所述特征关键点的位置信息,根据所述特征区域与任一所述特征关键点之间的第二位置距离与所述第一位置距离的比例关系,确定所述文字虚拟礼物在视频画面上的目标位置。
  6. 根据权利要求1所述的文字虚拟礼物的赠送方法,其特征在于,所述将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示的步骤包括:
    根据所述目标文字虚拟礼物的赠送时间将所述目标文字虚拟礼物存储于缓存队列;
    当所述缓存队列中的目标文字虚拟礼物的数量达到预设数量阈值时,将所述缓存队列中虚拟价值低于预设价值的所述目标文字虚拟礼物进行合并;
    根据合并的所述目标文字虚拟礼物的数量展示与所述数量对应的礼物特效。
  7. 根据权利要求1所述的文字虚拟礼物的赠送方法,其特征在于,所述直播间为多人直播间;
    所述将所述目标文字虚拟礼物通过所述直播间赠送给目标主播的步骤包括:
    获取用户对所述目标文字虚拟礼物的滑动操作,并根据滑动轨迹从多人主播中确定目标主播;
    将所述目标文字虚拟礼物赠送给所述目标主播。
  8. 根据权利要求7所述的虚拟礼物的发送方法,其特征在于,所述根据滑动轨迹从多人主播中确定目标主播的步骤包括:
    提取所述滑动轨迹的目标关键点,根据所述目标关键点确定所述滑动 方向;
    基于各所述主播的方位角度范围,利用所述滑动方向所属的方位角度范围确定目标主播。
  9. 根据权利要求7所述的虚拟礼物的发送方法,其特征在于,所述根据滑动轨迹从多人主播中确定目标主播的步骤包括:
    获取所述滑动轨迹的终止点,确定所述终止点在多人直播界面上的位置;
    基于各所述主播的区域范围,利用所述终止点的位置所属的区域范围确定目标主播。
  10. 根据权利要求1所述的文字虚拟礼物的赠送方法,其特征在于,所述接收直播间下发的文字虚拟礼物的步骤之前,还包括:
    通过直播间获取当前直播间的特征信息,根据所述特征信息从虚拟礼物内容库中匹配对应的文字虚拟礼物。
  11. 根据权利要求10所述的文字虚拟礼物的赠送方法,其特征在于,所述特征信息包括直播间的直播场景类型、主播性别信息、主播等级和主播脸部动作信息中的至少一者。
  12. 一种文字虚拟礼物的赠送方法,其特征在于,包括以下步骤:
    向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;
    接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
    获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;
    向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
  13. 一种文字虚拟礼物的赠送装置,其特征在于,包括:
    礼物接收模块,用于接收直播间下发的文字虚拟礼物,并通过虚拟礼物栏展示所述文字虚拟礼物;
    内容展示模块,用于确定用户选择的文字虚拟礼物的内容类型,展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
    礼物获取模块,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物通过所述直播间赠送给目标主播;
    礼物合成模块,用于根据直播间下发的所述文字虚拟礼物的展示模板,将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
  14. 一种文字虚拟礼物的赠送装置,其特征在于,包括:
    礼物下发模块,用于向客户端下发文字虚拟礼物,使得所述客户端在虚拟礼物栏展示所述文字虚拟礼物;
    类型接收模块,用于接收所述客户端发送的用户选择的文字虚拟礼物的内容类型,通过客户端展示所述文字虚拟礼物的内容类型相匹配的文字内容列表;
    礼物赠送模块,用于获取从所述文字内容列表中选择的目标文字内容作为目标文字虚拟礼物,将所述目标文字虚拟礼物赠送给目标主播;
    模板下发模块,用于向客户端下发的所述文字虚拟礼物的展示模板,通过所述客户端将所述目标文字虚拟礼物合成到视频画面主播图像的目标位置上进行渲染显示。
  15. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-12任一项所述的文字虚拟礼物的赠送方法的步骤。
  16. 一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-12任一项所述文字虚拟礼物的赠送方法的步骤。
PCT/CN2020/113376 2019-12-06 2020-09-04 文字虚拟礼物的赠送方法、装置、设备及存储介质 WO2021109652A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911243383.4 2019-12-06
CN201911243383.4A CN111698523B (zh) 2019-12-06 2019-12-06 文字虚拟礼物的赠送方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2021109652A1 true WO2021109652A1 (zh) 2021-06-10

Family

ID=72476165

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113376 WO2021109652A1 (zh) 2019-12-06 2020-09-04 文字虚拟礼物的赠送方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN111698523B (zh)
WO (1) WO2021109652A1 (zh)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518239A (zh) * 2021-07-09 2021-10-19 珠海云迈网络科技有限公司 直播互动方法、系统、计算机设备及其存储介质
CN113596504A (zh) * 2021-08-05 2021-11-02 广州方硅信息技术有限公司 直播间虚拟礼物赠送方法、装置及计算机设备
CN113727129A (zh) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 直播互动方法、装置、系统、设备及存储介质
CN113727132A (zh) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 虚拟礼物显示方法、服务器、存储介质及计算机设备
CN113747225A (zh) * 2021-09-01 2021-12-03 北京达佳互联信息技术有限公司 界面处理方法、装置、电子设备及计算机可读存储介质
CN113992927A (zh) * 2021-10-22 2022-01-28 广州方硅信息技术有限公司 二次元虚拟礼物生成方法、装置、电子设备及存储介质
CN114071177A (zh) * 2021-11-16 2022-02-18 网易(杭州)网络有限公司 虚拟礼物的发送方法、装置及终端设备
CN114125490A (zh) * 2022-01-19 2022-03-01 阿里巴巴(中国)有限公司 直播播放方法及装置
CN114390362A (zh) * 2022-01-05 2022-04-22 武汉斗鱼鱼乐网络科技有限公司 直播间的交互信息处理方法、直播客户端、及直播服务器
CN114501103A (zh) * 2022-01-25 2022-05-13 腾讯科技(深圳)有限公司 基于直播视频的互动方法、装置、设备及存储介质
CN114760531A (zh) * 2022-03-31 2022-07-15 广州方硅信息技术有限公司 直播间团队互动方法、装置、系统、设备及存储介质
CN115883911A (zh) * 2022-12-01 2023-03-31 广州方硅信息技术有限公司 直播间礼物信息显示方法、装置、电子设备及存储介质
CN115914753A (zh) * 2022-10-10 2023-04-04 北京达佳互联信息技术有限公司 数据处理方法、装置、电子设备及存储介质
CN115967839A (zh) * 2022-12-30 2023-04-14 北京华心维联网络科技有限公司 一种直播礼物推荐方法及其装置
CN116132702A (zh) * 2022-12-30 2023-05-16 广州方硅信息技术有限公司 虚拟现实直播间虚拟礼物的赠送处理方法、装置和设备
WO2024032642A1 (zh) * 2022-08-09 2024-02-15 抖音视界有限公司 消息处理方法、装置、电子设备和存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087645B (zh) * 2020-09-30 2022-12-02 广州繁星互娱信息科技有限公司 虚拟物品的赠送方法、装置、终端及存储介质
CN112437338B (zh) * 2020-11-24 2022-01-04 腾讯科技(深圳)有限公司 虚拟资源转移方法、装置、电子设备以及存储介质
CN114827637B (zh) * 2021-01-21 2024-05-31 北京陌陌信息技术有限公司 一种虚拟定制礼物的展示方法、系统、设备和存储介质
CN113392268B (zh) * 2021-03-31 2024-07-23 百果园技术(新加坡)有限公司 一种特效文本渲染方法、装置、电子设备及存储介质
CN114501041B (zh) 2021-04-06 2023-07-14 抖音视界有限公司 特效显示方法、装置、设备及存储介质
CN113128906B (zh) * 2021-05-11 2024-02-27 广州博冠信息科技有限公司 直播数据的处理方法、装置、电子设备及计算机可读介质
CN113286164B (zh) * 2021-05-26 2023-03-17 广州市百果园网络科技有限公司 基于直播的显示方法、装置、设备及存储介质
CN113438490A (zh) * 2021-05-27 2021-09-24 广州方硅信息技术有限公司 直播互动方法、计算机设备及存储介质
CN113448466B (zh) * 2021-07-09 2023-06-20 腾讯科技(深圳)有限公司 动画显示方法、装置、电子设备及存储介质
CN113596603B (zh) * 2021-07-28 2023-03-21 北京达佳互联信息技术有限公司 虚拟物品的显示控制方法、虚拟物品的显示方法、装置
CN116095387A (zh) * 2023-01-05 2023-05-09 北京达佳互联信息技术有限公司 信息的显示方法、装置、电子设备及存储介质
JP7540614B1 (ja) 2024-03-28 2024-08-27 株式会社セガ プログラム及び情報処理装置
JP7540612B1 (ja) 2024-03-28 2024-08-27 株式会社セガ プログラム及び情報処理装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040226047A1 (en) * 2003-05-05 2004-11-11 Jyh-Bor Lin Live broadcasting method and its system for SNG webcasting studio
CN106454481A (zh) * 2016-09-30 2017-02-22 广州华多网络科技有限公司 一种移动终端直播互动的方法及装置
CN106658035A (zh) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 一种特效礼物动态展示方法及装置
CN106709762A (zh) * 2016-12-26 2017-05-24 乐蜜科技有限公司 直播间中虚拟礼物的推荐方法、装置及移动终端
CN107040822A (zh) * 2017-03-22 2017-08-11 北京潘达互娱科技有限公司 虚拟礼物展示方法及系统
CN109391851A (zh) * 2018-01-09 2019-02-26 深圳市珍爱网信息技术有限公司 视频直播方法、装置、计算机设备和存储介质
CN110475150A (zh) * 2019-09-11 2019-11-19 广州华多网络科技有限公司 虚拟礼物特效的渲染方法和装置、直播系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722334B (zh) * 2012-06-06 2016-02-24 中兴通讯股份有限公司 触摸屏幕的控制方法及装置
CN107483892A (zh) * 2017-09-08 2017-12-15 北京奇虎科技有限公司 视频数据实时处理方法及装置、计算设备
CN110493630B (zh) * 2019-09-11 2020-12-01 广州华多网络科技有限公司 虚拟礼物特效的处理方法和装置、直播系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040226047A1 (en) * 2003-05-05 2004-11-11 Jyh-Bor Lin Live broadcasting method and its system for SNG webcasting studio
CN106454481A (zh) * 2016-09-30 2017-02-22 广州华多网络科技有限公司 一种移动终端直播互动的方法及装置
CN106658035A (zh) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 一种特效礼物动态展示方法及装置
CN106709762A (zh) * 2016-12-26 2017-05-24 乐蜜科技有限公司 直播间中虚拟礼物的推荐方法、装置及移动终端
CN107040822A (zh) * 2017-03-22 2017-08-11 北京潘达互娱科技有限公司 虚拟礼物展示方法及系统
CN109391851A (zh) * 2018-01-09 2019-02-26 深圳市珍爱网信息技术有限公司 视频直播方法、装置、计算机设备和存储介质
CN110475150A (zh) * 2019-09-11 2019-11-19 广州华多网络科技有限公司 虚拟礼物特效的渲染方法和装置、直播系统

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518239A (zh) * 2021-07-09 2021-10-19 珠海云迈网络科技有限公司 直播互动方法、系统、计算机设备及其存储介质
CN113596504A (zh) * 2021-08-05 2021-11-02 广州方硅信息技术有限公司 直播间虚拟礼物赠送方法、装置及计算机设备
CN113727129A (zh) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 直播互动方法、装置、系统、设备及存储介质
CN113727132A (zh) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 虚拟礼物显示方法、服务器、存储介质及计算机设备
CN113747225A (zh) * 2021-09-01 2021-12-03 北京达佳互联信息技术有限公司 界面处理方法、装置、电子设备及计算机可读存储介质
CN113992927B (zh) * 2021-10-22 2024-05-24 广州方硅信息技术有限公司 二次元虚拟礼物生成方法、装置、电子设备及存储介质
CN113992927A (zh) * 2021-10-22 2022-01-28 广州方硅信息技术有限公司 二次元虚拟礼物生成方法、装置、电子设备及存储介质
CN114071177A (zh) * 2021-11-16 2022-02-18 网易(杭州)网络有限公司 虚拟礼物的发送方法、装置及终端设备
CN114071177B (zh) * 2021-11-16 2023-09-26 网易(杭州)网络有限公司 虚拟礼物的发送方法、装置及终端设备
CN114390362A (zh) * 2022-01-05 2022-04-22 武汉斗鱼鱼乐网络科技有限公司 直播间的交互信息处理方法、直播客户端、及直播服务器
CN114390362B (zh) * 2022-01-05 2024-04-05 武汉斗鱼鱼乐网络科技有限公司 直播间的交互信息处理方法、直播客户端、及直播服务器
CN114125490A (zh) * 2022-01-19 2022-03-01 阿里巴巴(中国)有限公司 直播播放方法及装置
CN114125490B (zh) * 2022-01-19 2023-09-26 阿里巴巴(中国)有限公司 直播播放方法及装置
CN114501103B (zh) * 2022-01-25 2023-05-23 腾讯科技(深圳)有限公司 基于直播视频的互动方法、装置、设备及存储介质
CN114501103A (zh) * 2022-01-25 2022-05-13 腾讯科技(深圳)有限公司 基于直播视频的互动方法、装置、设备及存储介质
CN114760531B (zh) * 2022-03-31 2024-03-12 广州方硅信息技术有限公司 直播间团队互动方法、装置、系统、设备及存储介质
CN114760531A (zh) * 2022-03-31 2022-07-15 广州方硅信息技术有限公司 直播间团队互动方法、装置、系统、设备及存储介质
WO2024032642A1 (zh) * 2022-08-09 2024-02-15 抖音视界有限公司 消息处理方法、装置、电子设备和存储介质
CN115914753A (zh) * 2022-10-10 2023-04-04 北京达佳互联信息技术有限公司 数据处理方法、装置、电子设备及存储介质
CN115883911A (zh) * 2022-12-01 2023-03-31 广州方硅信息技术有限公司 直播间礼物信息显示方法、装置、电子设备及存储介质
CN116132702A (zh) * 2022-12-30 2023-05-16 广州方硅信息技术有限公司 虚拟现实直播间虚拟礼物的赠送处理方法、装置和设备
CN115967839A (zh) * 2022-12-30 2023-04-14 北京华心维联网络科技有限公司 一种直播礼物推荐方法及其装置

Also Published As

Publication number Publication date
CN111698523A (zh) 2020-09-22
CN111698523B (zh) 2021-11-12

Similar Documents

Publication Publication Date Title
WO2021109652A1 (zh) 文字虚拟礼物的赠送方法、装置、设备及存储介质
WO2021109650A1 (zh) 虚拟礼物的发送方法、装置、设备及存储介质
US9866795B2 (en) System and method for interactive animations for enhanced and personalized video communications
US10019779B2 (en) Browsing interface for item counterparts having different scales and lengths
JP6945375B2 (ja) 画像生成装置及びプログラム
CN107911736B (zh) 直播互动方法及系统
US20200112756A1 (en) Content data recommendation method and apparatus based on identity verification apparatus, and storage medium
CN110868635B (zh) 视频处理方法、装置、电子设备及存储介质
CN111147877B (zh) 虚拟礼物的赠送方法、装置、设备及存储介质
CN111246232A (zh) 直播互动方法、装置、电子设备及存储介质
CN111031334A (zh) 文字虚拟礼物内容的推荐方法、装置、设备及存储介质
US20230066179A1 (en) Interactive fashion with music ar
CN111741368B (zh) 交互视频的展示和生成方法、装置、设备及存储介质
US10026176B2 (en) Browsing interface for item counterparts having different scales and lengths
WO2023055825A1 (en) 3d upper garment tracking
CN112516589A (zh) 直播中游戏商品互动方法、装置、计算机设备及存储介质
CN114025188B (zh) 直播广告展示方法、系统、装置、终端及可读存储介质
US11948558B2 (en) Messaging system with trend analysis of content
CN115606191A (zh) 多媒体消息传送应用程序中可修改视频中的文本消息自定义
CN109074679A (zh) 具有增强现实强化的基于场景的实时广告
JP2023115840A (ja) 情報処理システム、情報処理方法、情報処理プログラム
WO2021228200A1 (zh) 用于实现三维空间场景互动的方法、装置和设备
WO2021184153A1 (zh) 摘要视频的生成方法、装置和服务器
KR102079321B1 (ko) 유무선 웹을 통한 아바타 서비스 시스템 및 방법
CN114501054B (zh) 直播互动方法、装置、设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20897259

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20897259

Country of ref document: EP

Kind code of ref document: A1