Display method and device of live broadcasting room
By determining the display area of the target object and the display mode of gift special effects in the live broadcast screen, the problem of gift special effects blocking the anchor's picture is solved, and the audience's interactive experience and picture display effect are improved.
Patent Information
- Application Number
- CN202510230437.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-13
AI Technical Summary
During the live broadcast interaction, gift special effects can easily block the anchor’s picture and affect the viewing experience and interactive experience of the audience.
By determining the object display area of the target object in the live broadcast screen, and determining its display mode in the live broadcast screen based on the special effects display range of the gift effect, ensuring that the gift effect does not obstruct the target object. The specific method includes displaying it in the background area when the small-scale special effects are displayed, and using the layer display mode when the large-scale special effects are used, placing the layer of the target object above the layer of the gift special effects.
It effectively avoids gift special effects blocking the target object, improves the audience's viewing experience and interactive experience, and makes gift special effects display more flexible and personalized.
Smart Images

Figure CN119996760A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of live broadcast technology, and in particular, to a method, device, computer equipment, computer-readable storage medium, and computer program product for displaying a live broadcast room. Background Art
[0002] With the rapid development of information networks, live broadcast technology has been widely used in various scenarios. However, in the current live interactive process, gift special effects have the problem of blocking the host's screen, thus affecting the audience's viewing experience and interactive feeling.
[0003] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for displaying a live broadcast room to solve or alleviate one or more of the technical problems raised above.
[0005] One aspect of an embodiment of the present application provides a method for displaying a live broadcast room, the method comprising: Acquire a live broadcast screen, where the live broadcast screen includes a target object; Determine an object display area of the target object in the live broadcast picture; Get gift effects; Determining a display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect; and Based on the live broadcast screen, the object display area, the gift special effect and the display mode, a target live broadcast screen is generated; wherein the target live broadcast screen includes the gift special effect and the target object that is not blocked by the gift special effect.
[0006] Optionally, the area outside the object display area in the live broadcast screen is a background area; Determining a display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect includes: When the special effect display range of the gift special effect is smaller than the preset range, the display mode is determined to be displayed in the background area.
[0007] Optionally, determining a display mode of the gift special effect in the live broadcast screen according to a special effect display range of the gift special effect includes: When the special effect display range of the gift special effect is not less than the preset range, determining that the display mode is the layer display mode; The layer display mode includes: placing the layer of the target object above the layer of the gift special effect.
[0008] Optionally, generating a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode includes: Cut out the target object from the live broadcast picture, and place the target object in the first layer; Place the gift special effect on the second layer; In the process of generating the target live broadcast screen, the first layer is set above the second layer to form a special effect in which the gift special effect is displayed on the back of the target object.
[0009] Optionally, the second layer is a background layer of the target live broadcast screen.
[0010] Optionally, determining an object display area of the target object in the live broadcast screen includes: Identify the live broadcast picture to obtain the target object; Determine the screen coordinates and dynamic movement trajectory of the target object in the live screen; An object display area of the target object in the live broadcast screen is determined according to the screen coordinates and the dynamic movement trajectory.
[0011] Another aspect of an embodiment of the present application provides a method for displaying a live broadcast room, the method comprising: Display the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the anchor screen and the non-anchor screen; In response to a gift giving operation for the live broadcast room, displaying a gift special effect corresponding to the gift giving operation; Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
[0012] Another aspect of an embodiment of the present application provides a display device for a live broadcast room, the device comprising: A first acquisition module is used to acquire a live broadcast screen, where the live broadcast screen includes a target object; A first determination module is used to determine an object display area of the target object in the live broadcast picture; The second acquisition module is used to obtain gift special effects; A second determination module is used to determine a display mode of the gift special effect in the live broadcast screen according to a special effect display range of the gift special effect; and A generation module is used to generate a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode; wherein the target live broadcast screen includes the gift special effect and the target object not blocked by the gift special effect.
[0013] Another aspect of an embodiment of the present application provides a display device for a live broadcast room, the device comprising: A first display module, used to display the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the anchor screen and the non-anchor screen; A second display module is used to respond to a gift giving operation for the live broadcast room and display a gift special effect corresponding to the gift giving operation; Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
[0014] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.
[0015] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0016] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0017] The above technical solution adopted in the embodiment of the present application may have the following advantages: The object display area of the target object in the live screen is determined, and the display method of the target object in the live screen is determined according to the special effect display range of the gift special effect. In this way, based on the live screen, the object display area, the gift special effect and the display mode, a target live screen including the gift special effect and the target object not blocked by the gift special effect is generated, ensuring that the gift special effect will not block the target object, thereby improving the audience's viewing experience and interactive feeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0019] Figure 1 A diagram schematically shows an operating environment of a live broadcast room display method according to Embodiment 1 of the present application; Figure 2 A flowchart of a method for displaying a live broadcast room according to Embodiment 1 of the present application is schematically shown; Figure 3 Schematically shows Figure 2 Flow chart of sub-steps of step S202; Figure 4 Schematically shows Figure 2 Flow chart of sub-steps of step S208; Figure 5 A flowchart of a method for displaying a live broadcast room according to Embodiment 2 of the present application is schematically shown; Figure 6 A block diagram schematically shows a display device of a live broadcast room according to Embodiment 3 of the present application; Figure 7 A block diagram schematically shows a display device of a live broadcast room according to a fourth embodiment of the present application; Figure 8 The hardware architecture diagram of the computer device according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0023] To facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: The applicant has learned that in live broadcast platforms, gift effects can be overlaid on the host screen in the form of simple icons or animations. Although this method can show the gift being given, it is easy to block the host screen, affecting the audience's viewing experience and interactive feelings. In addition, the gift effect display has the problem of not matching the host or background environment, resulting in a lack of flexibility and personalization in the gift interaction effect.
[0024] To this end, the embodiment of the present application provides a display technology solution for a live broadcast room. In this technical solution, (1) the problem of gift special effects covering the anchor's screen is avoided; (2) the display of gift special effects is made more flexible and personalized; (3) the problem of incoordination between gift special effects and background is avoided. See below for details.
[0025] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0026] Figure 1 The following schematically shows an environmental application diagram according to an embodiment of the present application.
[0027] The environment diagram may include a service platform 2, anchor terminals (4A, 4B, ..., 4M), and audience terminals (6A, 6B, ..., 6N). In a live broadcast scenario, the anchor terminal (4A, 4B, ..., 4M) logs in to the service platform 2, and the service platform 2 pushes the live broadcast data to the audience terminal (6A, 6B, ..., 6N) in real time.
[0028] Service platform 2 can provide live broadcast service, which can be a single server, a server cluster or a cloud computing service center.
[0029] The anchor terminal (4A, 4B, ..., 4M) is used to generate live broadcast data in real time and perform streaming operations on the live broadcast data. The live broadcast data may include audio data or video data. The anchor terminal may be an electronic device such as a smart phone or a tablet computer. Of course, the anchor terminal may be a virtual computing instance in the service platform 2.
[0030] The audience terminal (6A, 6B, ..., 6N) may be configured to receive the live broadcast data of the anchor terminal in real time. The audience terminal (6A, 6B, ..., 6N) may be any type of computing device, such as a smart phone, a tablet device, a laptop computer, a smart TV, a vehicle-mounted terminal, etc. The audience terminal (6A, 6B, ..., 6N) may have a built-in browser or a special program, and receive the live broadcast data through the browser or the special program to output content to the user. The content may include video, audio, comments, text data and / or the like.
[0031] The audience terminal (6A, 6B, ..., 6N) may include a player. The player outputs (e.g., displays, presents) content to the user. The content may include video, audio, comments, text data and / or the like. The audience terminal (6A, 6B, ..., 6N) may include an interface, which may include an input element (touch screen). For example, the input element may be configured to receive user instructions, and the user instructions may enable the audience terminal (6A, 6B, ..., 6N) to perform various operations, such as sending a bullet screen, entering a comment, giving a gift, etc.
[0032] The anchor terminals (4A, 4B, ..., 4M), the audience terminals (6A, 6B, ..., 6N) and the service platform 2 may be connected via a network. The network may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls and / or proxy devices, etc. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof and / or the like. The network may include wireless links, such as cellular links, satellite links, Wi-Fi links and / or the like.
[0033] It should be noted that the number of the host terminals and the audience terminals in the figure is only for illustration and is not used to limit the scope of patent protection of this application. According to actual conditions, there can be any number of host terminals and audience terminals.
[0034] The following describes the technical solution of the present application through multiple embodiments, taking the service platform 2, the anchor terminal or the audience terminal as the execution body. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.
[0035] Embodiment 1 Figure 2The flowchart of the method for displaying a live broadcast room according to the first embodiment of the present application is schematically shown.
[0036] like Figure 2 As shown, the live broadcast room display method may include steps S200 to S208, wherein: Step S200, obtaining a live broadcast screen, wherein the live broadcast screen includes a target object.
[0037] Step S202: determine the object display area of the target object in the live broadcast picture.
[0038] Step S204, obtaining gift special effects.
[0039] Step S206, determining the display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect.
[0040] Step S208, generating a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode; wherein the target live broadcast screen includes the gift special effect and the target object not blocked by the gift special effect.
[0041] In the live broadcast room, element objects such as anchors, promotional items, and important announcements are usually included. During the live broadcast process, too many gift special effects are easily displayed to block these element objects, thereby affecting the normal viewing experience of the live broadcast room. In view of this, this embodiment will analyze the area where this / some element objects (target objects) are located in the live broadcast screen of the live broadcast room frame by frame or continuous frame (i.e., the object display area). When a certain gift special effect needs to be displayed, the gift special effect is evaluated based on the special effect display range of the gift special effect to determine whether it will block or over-block this / some element object. Furthermore, the display mode of the gift special effect can be determined accordingly, such as displaying it outside the object display area or displaying it on the back of this / some element object. Therefore, according to the determined optimal display mode, it is dynamically determined how the gift special effect is displayed in the live broadcast room, that is, while ensuring that the target object is not blocked, the gift special effect is displayed in the best way. In this way, while ensuring the gift-giving atmosphere in the live broadcast room, the core screen of the live broadcast room (such as the anchor screen, the goods with goods) is always not blocked, ensuring the audience's viewing and interactive experience.
[0042] The following combination Figure 2 , each step in steps S200~S208 and other optional steps are explained in detail.
[0043] Step S200, obtaining a live broadcast screen, wherein the live broadcast screen includes a target object.
[0044] The live screen can be a video frame or screen captured in real time from the live stream. The live screen can be generated by real-time transmission of a camera or other video source configured on the anchor terminal. The service platform 2 can obtain the live screen and process or analyze the screen. The specific processing or analysis can be implemented using a visual analysis model, such as a deep learning model.
[0045] The target object can be the subject in the live broadcast screen, the anchor himself, or other important elements (such as products, props, etc.).
[0046] It should be noted that the live broadcast images are obtained from the anchor terminal with the explicit authorization of the anchor terminal and are desensitized.
[0047] Step S202 , determine the object display area of the target object in the live broadcast picture.
[0048] The object display area is the area where the target object is located in the live screen, such as the anchor screen area and the product screen area. The deep learning model can be used to perform real-time image analysis on the live screen to identify the target object and then determine the object display area of the target object in the live screen. The deep learning model is a machine learning method based on artificial neural networks, which can automatically learn complex features and patterns from data through a multi-level network structure.
[0049] The specific process of determining the object display area will be exemplarily introduced below.
[0050] In an optional embodiment, if Figure 3 As shown, step S202 includes: Step S300: identifying the live broadcast image to obtain the target object.
[0051] Step S302: determine the screen coordinates of the target object in the live screen.
[0052] Step S304: determining the object display area of the target object in the live screen according to the screen coordinates.
[0053] In some embodiments, the target object may be a live streamer. A deep learning model may be used to analyze the live stream in real time as needed to extract the live streamer's outline, posture, and facial expressions. For example, YOLO (You Only Look Once) is a target detection algorithm based on deep learning, which is characterized by fast speed, high accuracy, and the ability to detect multiple target objects in images or videos in real time. OpenPose is a human posture estimation algorithm based on deep learning that can detect key points of the human body (such as joints) in images or videos and build a human skeleton model. The specific position of the host in the live stream can be determined by the screen coordinates. After obtaining the screen coordinates of the target object, determine its display area in the screen, that is, the specific range occupied by the target object in the live stream.
[0054] In this embodiment, the screen coordinates of the target object in the live broadcast screen are determined by identifying the target object, and the object display area is determined by the screen coordinates, so as to dynamically adjust the display position of the gift special effects to avoid the gift special effects blocking the target object.
[0055] Step S204 , get gift effects.
[0056] Gift effects can be used to display gifts sent by viewers during live broadcasts. Gift effects can include animations, sound effects, images, or other multimedia elements. Gift effects can be used to enhance the interactivity and visual effects of live broadcasts and enhance the atmosphere of live broadcast rooms. In some embodiments, gift effects can be hearts, fireworks, large balloons, flying ribbons, etc.
[0057] Step S206 , according to the special effect display range of the gift special effect, determine the display mode of the gift special effect in the live broadcast screen.
[0058] The special effect display range can be the spatial range occupied by the gift special effect in the live broadcast screen, which may include the width, height, coverage area of the dynamic effect, etc. of the special effect. For example, a large balloon special effect needs to occupy a larger area in the live broadcast screen, while a small heart special effect only needs to occupy a small part of the corner of the live broadcast screen. Determine the display mode of the gift special effect, such as displaying it outside the object display area or displaying it on the back of this / some element object. Therefore, according to the determined optimal display mode, dynamically determine how the gift special effect is displayed in the live broadcast room, that is, while ensuring that the target object is not blocked, the gift special effect is displayed in the optimal way.
[0059] The specific process of determining the gift special effects display mode will be described below as an example.
[0060] Display mode 1, in an optional embodiment, the area outside the object display area in the live screen is the background area; step S206 includes: When the special effect display range of the gift special effect is smaller than the preset range, the display mode is determined to be displayed in the background area.
[0061] The background area can be a blank area identified by analyzing the live screen, such as the edge of the live screen, the blank space around the target object, etc. For small-range special effects (such as love, fireworks, etc.), that is, gift special effects with a special effect display range smaller than the preset range, they can be allocated to the background area. In some embodiments, the audience sends a "love" gift with a special effect display range smaller than the preset range to the anchor. The service platform 2 identifies the background area in the live screen and displays the love special effect on both sides or above the anchor to ensure that the gift special effect does not block the anchor's facial expression.
[0062] In some embodiments, the host and the audience can customize the display mode of the gift special effects according to personal preferences, such as adjusting the transparency, display duration, position and other parameters of the special effects. For example, automatic mode and manual mode can be set. In automatic mode, the service platform 2 can automatically analyze the live broadcast screen and automatically select the display position of the gift special effects. In manual mode, the host or platform administrator can manually adjust the position of the special effects. In this way, the display mode of the special effects can be adjusted according to personal needs to achieve a personalized customization experience of the gift special effects.
[0063] In this embodiment, when the special effect display range of the gift special effect is smaller than the preset range, the display mode is determined to be displayed in the background area, thereby avoiding the gift special effect from obscuring the target object, making the gift special effect display more flexible and personalized.
[0064] Display mode 2, in an optional embodiment, step S206 includes: When the special effect display range of the gift special effect is not less than a preset range, the display mode is determined to be a layer display mode; the layer display mode includes: placing the layer of the target object above the layer of the gift special effect.
[0065] For large-scale special effects (such as large balloons, flying ribbons, etc.), that is, gift special effects whose special effect display range is not less than the preset range, the gift special effects can be displayed through the layer display mode. The layer of the target object is placed above the layer of the gift special effect, and the target object layer will cover the corresponding area of the gift special effect layer, thereby preventing the special effect from blocking the target object. In some embodiments, the audience sends a "large balloon" gift to the anchor whose special effect display range is not less than the preset range. The service platform 2 uses the layer display mode and places the layer of the anchor screen above the large balloon special effect layer to ensure that the gift special effect does not block the anchor's facial expressions or movements.
[0066] In this embodiment, the target object layer is placed above the gift special effect layer, thus forming a display effect in which the target object covers the gift special effect. Therefore, when a large special effect gift is displayed in the live broadcast room, the large gift special effect will not block the target object, that is, the large gift special effect will not affect the display of the core picture (target object).
[0067] Step S208 , based on the live broadcast screen, the object display area, the gift special effect and the display mode, generate a target live broadcast screen; wherein, the target live broadcast screen includes the gift special effect and the target object that is not blocked by the gift special effect.
[0068] The gift special effects can be synthesized with the target object screen in the live broadcast screen through layer synthesis technology. Layer synthesis refers to the merging of multiple layers or data sources according to certain rules and algorithms to generate a comprehensive image or data layer. The gift special effects and the target object screen can be rendered separately through multi-level layer rendering to ensure that the gift special effects do not overlap with the target object. In some embodiments, the live broadcast screen and the target live broadcast screen can be transmitted in the form of a video stream through low-latency video stream encoding and decoding technology (such as H.264, H.265, AV1, etc.) to ensure real-time synthesis and smooth display of the gift special effects and the anchor screen.
[0069] About generating the target live screen: When display mode 1 is used, the live broadcast screen and gift special effects can be directly synthesized to generate the target live broadcast screen.
[0070] When using display mode 2, such as Figure 4 As shown, step S208 includes: Step S400, extracting the target object from the live broadcast screen and placing the target object in the first layer.
[0071] Step S402, placing the gift special effects in the second layer.
[0072] Step S404, in the process of generating the target live broadcast screen, the first layer is set above the second layer to form a special effect in which the gift special effect is displayed on the back of the target object.
[0073] The target object can be extracted from the live broadcast screen through real-time cutout technology. The gift special effects are placed in the second layer so that they can be displayed on the back of the target object as an independent visual element without interfering with the target object's screen (such as the host's facial expressions or important actions). In some embodiments, semantic segmentation technology (such as DeepLabV3, U-Net, etc.) can be used to achieve dynamic cutouts and adapt to real-time changes in the target object and background in the live broadcast environment. In addition, the pose estimation technology (such as OpenPose) can be combined to enhance the cutout accuracy under the dynamic performance of the host (target object), so that the gift special effects display is more coordinated with the host's screen.
[0074] In this embodiment, the target object is cut out from the live broadcast screen and placed on the first layer, the gift special effects are placed on the second layer, and the first layer is set above the second layer, so as to achieve the effect of displaying the gift special effects on the back of the target object.
[0075] Regarding the second layer, in an optional embodiment, the second layer is the background layer of the target live broadcast screen.
[0076] In this embodiment, the second layer can be located at the bottom layer of the live broadcast screen and serve as the background layer. That is, during the live broadcast, the gift-giving special effects can be used as the background screen of the live broadcast room according to the audience's gift-giving dynamics. This not only solves the problem of the incoordination between the gift special effects and the background, but also makes the background richer to enhance the visual effect.
[0077] In order to make the present application easier to understand, an exemplary application is provided below.
[0078] S1. The service platform 2 obtains a live broadcast screen, where the live broadcast screen includes a host (target object).
[0079] S2. The service platform 2 determines the display area (object display area) of the anchor in the live broadcast screen.
[0080] Analyze the live screen in real time, extract the anchor's outline posture and facial expression, and identify the anchor's position in the live screen, that is, the anchor's coordinates in the live screen, and then determine the anchor's display area in the live screen.
[0081] S3. In response to the audience's gift-giving operation for the live broadcast room, the service platform 2 obtains gift special effects.
[0082] The audience presents the anchor with a "love" gift or a "big balloon" gift on the audience terminal, and the service platform 2 obtains the corresponding "love" gift special effects and "big balloon" gift special effects.
[0083] S4. The service platform 2 determines the display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect: The "love" gift special effect belongs to a small-range gift special effect, that is, a gift special effect whose display range is smaller than the preset range. The "love" gift can be distributed to background areas such as the sides or top of the anchor.
[0084] The "big balloon" gift special effect belongs to a large-range gift special effect, that is, a gift special effect whose display range is not less than the preset range. The "big balloon" gift can be used as a background layer to be displayed on the back of the anchor.
[0085] S5. The service platform 2 dynamically determines how to display the gift special effects in the live broadcast room according to the determined optimal display mode, so as to generate a target live broadcast screen including the gift special effects.
[0086] When the audience sends a "love" gift, the "love" gift special effect can be assigned to the sides or top of the anchor, and the live broadcast screen and the "love" gift special effect can be synthesized to generate a live broadcast screen that includes the "love" gift special effect.
[0087] When the viewer sends a "big balloon" gift, the host can be cut out from the live broadcast screen through the cutout technology and used as the foreground layer (first layer), and the "big balloon" gift special effect can be used as the background layer (second layer). The foreground layer and the background layer are then synthesized to generate a live broadcast screen that includes the "big balloon" gift special effect.
[0088] In this exemplary application, while ensuring the gift-giving atmosphere in the live broadcast room, it ensures that the host in the live broadcast room is never obstructed, ensuring the audience's viewing and interactive experience.
[0089] Embodiment 2 The live broadcast room display method provided in this embodiment is used for the anchor terminal or the audience terminal, and the technical details can be referred to above.
[0090] Figure 5 The flowchart of the method for displaying a live broadcast room according to the second embodiment of the present application is schematically shown.
[0091] like Figure 5 As shown, the live broadcast room display method may include steps S500 to S502, wherein: Step S500, displaying the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the host screen and the non-host screen.
[0092] Step S502, in response to a gift giving operation in the live broadcast room, displaying a gift special effect corresponding to the gift giving operation.
[0093] Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
[0094] In this embodiment, when a certain gift special effect needs to be displayed, the display mode of the gift special effect is determined according to the special effect display range of the gift special effect, such as displaying it in an area where the non-anchor screen is located or displaying it on the back of the anchor screen. This ensures the gift-giving atmosphere in the live broadcast room while ensuring that the anchor screen of the live broadcast room is never blocked, thereby ensuring the audience's viewing and interactive experience.
[0095] Embodiment 3 Figure 6 The block diagram of the display device of the live broadcast room according to the third embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 6 As shown, the apparatus 600 may include: a first acquisition module 610, a first determination module 620, a second acquisition module 630, a second determination module 640 and a generation module 650, wherein: A first acquisition module 610 is used to acquire a live broadcast screen, where the live broadcast screen includes a target object; A first determination module 620 is used to determine an object display area of the target object in the live broadcast picture; The second acquisition module 630 is used to acquire gift special effects; A second determination module 640 is used to determine a display mode of the gift special effect in the live broadcast screen according to a special effect display range of the gift special effect; and The generation module 650 is used to generate a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode; wherein the target live broadcast screen includes the gift special effect and the target object not blocked by the gift special effect.
[0096] As an optional embodiment, the area outside the object display area in the live broadcast screen is the background area; the second determination module 640 is further used for: When the special effect display range of the gift special effect is smaller than the preset range, the display mode is determined to be displayed in the background area.
[0097] As an optional embodiment, the second determining module 640 is further configured to: When the special effect display range of the gift special effect is not less than the preset range, determining that the display mode is the layer display mode; The layer display mode includes: placing the layer of the target object above the layer of the gift special effect.
[0098] As an optional embodiment, the generating module 650 is further configured to: Cut out the target object from the live broadcast picture, and place the target object in the first layer; Place the gift special effect on the second layer; In the process of generating the target live broadcast screen, the first layer is set above the second layer to form a special effect in which the gift special effect is displayed on the back of the target object.
[0099] As an optional embodiment, the second layer is a background layer of the target live broadcast screen.
[0100] As an optional embodiment, the first determining module 620 is further configured to: Identify the live broadcast picture to obtain the target object; Determine the screen coordinates of the target object in the live screen; According to the screen coordinates, an object display area of the target object in the live screen is determined.
[0101] Embodiment 4 Figure 7 The block diagram of the display device of the live broadcast room according to the third embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 7 As shown, the device 700 may include: a first display module 710 and a second display module 720, wherein: The first display module 710 is used to display the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the anchor screen and the non-anchor screen; The second display module 720 is used to respond to the gift giving operation for the live broadcast room and display the gift special effect corresponding to the gift giving operation; Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
[0102] Embodiment 5 Figure 8 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the display method of a live broadcast room according to the third embodiment of the present application is shown schematically. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 8 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store an operating system and various application software installed on the computer device 10000, such as program code of a display method of a live broadcast room, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.
[0103] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0104] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0105] It should be pointed out that Figure 8 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0106] In this embodiment, the live broadcast room display method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0107] Embodiment 6 An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the live broadcast room display method in the embodiment are implemented.
[0108] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the display method of the live studio in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
[0109] Embodiment 7 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0110] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0111] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for displaying a live broadcast room, characterized in that: The method comprises: Acquire a live broadcast screen, where the live broadcast screen includes a target object; Determine an object display area of the target object in the live broadcast picture; Get gift effects; Determining a display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect; and Based on the live broadcast screen, the object display area, the gift special effect and the display mode, a target live broadcast screen is generated; wherein the target live broadcast screen includes the gift special effect and the target object that is not blocked by the gift special effect.
2. The method according to claim 1, characterized in that The area outside the object display area in the live broadcast screen is the background area; Determining a display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect includes: When the special effect display range of the gift special effect is smaller than the preset range, the display mode is determined to be displayed in the background area.
3. The method according to claim 2, characterized in that Determining a display mode of the gift special effect in the live broadcast screen according to the special effect display range of the gift special effect includes: When the special effect display range of the gift special effect is not less than the preset range, determining that the display mode is the layer display mode; The layer display mode includes: placing the layer of the target object above the layer of the gift special effect.
4. The method according to claim 2, characterized in that: Generating a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode, including: Cut out the target object from the live broadcast picture, and place the target object in the first layer; Place the gift special effects on the second layer; In the process of generating the target live broadcast screen, the first layer is set above the second layer to form a special effect in which the gift special effect is displayed on the back of the target object.
5. The method according to claim 4, characterized in that The second layer is the background layer of the target live broadcast screen.
6. The method according to any one of claims 1 to 5, characterized in that: Determining an object display area of the target object in the live broadcast screen includes: Identify the live broadcast picture to obtain the target object; Determine the screen coordinates of the target object in the live screen; According to the screen coordinates, an object display area of the target object in the live screen is determined.
7. A method for displaying a live broadcast room, characterized in that: The method comprises: Display the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the anchor screen and the non-anchor screen; In response to a gift giving operation for the live broadcast room, displaying a gift special effect corresponding to the gift giving operation; Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
8. A display device for a live broadcast room, characterized in that: The device comprises: A first acquisition module is used to acquire a live broadcast screen, where the live broadcast screen includes a target object; A first determination module is used to determine an object display area of the target object in the live broadcast picture; The second acquisition module is used to obtain gift special effects; A second determination module is used to determine a display mode of the gift special effect in the live broadcast screen according to a special effect display range of the gift special effect; and A generation module is used to generate a target live broadcast screen based on the live broadcast screen, the object display area, the gift special effect and the display mode; wherein the target live broadcast screen includes the gift special effect and the target object not blocked by the gift special effect.
9. A method for displaying a live broadcast room, characterized in that: The method comprises: A first display module, used to display the live broadcast interface of the live broadcast room, wherein the live broadcast interface includes the anchor screen and the non-anchor screen; A second display module is used to respond to a gift giving operation for the live broadcast room and display a gift special effect corresponding to the gift giving operation; Wherein, when the display range of the gift special effect is smaller than the preset range, the gift special effect is displayed in the area where the non-anchor screen is located; When the display range of the gift special effect is larger than the preset range, the host screen and the gift special effect are displayed in a multi-layer form to form a special effect in which the gift special effect is displayed on the back of the host screen.
10. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claims 1 to 7 are implemented.