A method and device for determining a virtual live broadcast image
By receiving and processing real-time live broadcast images, determining the matching ratio between the virtual background and the host's portrait, and generating a virtual live image, it solves the problem of poor integration of the virtual background and the host's portrait in the existing technology, and achieves better live broadcast display effects.
Patent Information
- Application Number
- CN202111387823.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In existing live broadcast applications, the anchor's background switching effect is not ideal, and it is difficult to achieve the ideal integration of the virtual background and the anchor's portrait, resulting in poor live broadcast display effects.
By receiving the anchor's real-time live broadcast image, the virtual background instructions are obtained, the adaptation ratio information of the anchor's portrait area and the virtual background image is determined, the virtual live broadcast image is generated, and it is sent to the audience user device to realize the integration of the virtual background and the anchor's portrait. .
The virtual live broadcast image with three-dimensional visual effects makes the virtual background and the host's portrait appear more realistic, improves the display effect of the live broadcast image, and provides the audience with a good viewing experience.
Smart Images

Figure CN113965665B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a technology for determining a virtual live broadcast image. Background Art
[0002] Live broadcast is to set up independent signal acquisition equipment (audio + video) on site to import it into the director terminal (director device or platform), then upload it to the server through the network, and publish it to the website for people to watch. Live broadcast absorbs and continues the advantages of the Internet. It uses video to broadcast online live. It can publish product displays, related meetings, background introductions, program evaluations, online surveys, dialogue interviews, online training and other content on site to the Internet. It uses the Internet's intuitive and fast features, good expression forms, rich content, strong interactivity, no geographical restrictions, and audience segmentation to enhance the promotion effect of the event site. In existing live broadcast applications, the anchor can switch the background with one click, but the live broadcast display effect after switching is not ideal. Summary of the invention
[0003] One object of the present application is to provide a method and device for determining a virtual live broadcast image.
[0004] According to one aspect of the present application, a method for determining a virtual live image is provided, the method comprising:
[0005] Receiving a real-time live broadcast image corresponding to the live broadcast uploaded by the first user device of the anchor;
[0006] Obtaining a virtual background instruction for the real-time live broadcast image;
[0007] In response to the virtual background instruction, determine the anchor portrait area of the anchor according to the real-time live broadcast image, determine corresponding adaptation ratio information according to the anchor portrait area and the corresponding virtual background image, and generate a corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image;
[0008] The virtual live broadcast image is sent to a second user device of a viewer of the live broadcast.
[0009] According to another aspect of the present application, a device for determining a virtual live image is provided, the device comprising:
[0010] A module for receiving a real-time live broadcast image corresponding to the live broadcast uploaded by the first user equipment of the anchor;
[0011] Module one or two, used for obtaining a virtual background instruction about the real-time live broadcast image;
[0012] A module 3 is used to respond to the virtual background instruction, determine the anchor portrait area of the anchor according to the real-time live broadcast image, determine the corresponding adaptation ratio information according to the anchor portrait area and the corresponding virtual background image, and generate the corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image;
[0013] A module 14 is used to send the virtual live broadcast image to a second user device of a viewer user of the live broadcast.
[0014] According to one aspect of the present application, a computer device is provided, wherein the device includes:
[0015] Processor; and
[0016] A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the operations of any of the methods described above.
[0017] According to one aspect of the present application, a computer-readable medium storing instructions is provided, wherein when the instructions are executed, the system performs the operation of any of the methods described above.
[0018] Compared with the prior art, the present application can obtain a virtual live image with a three-dimensional visual effect by processing the real-time live image, thereby making the fusion of the virtual background and the anchor's portrait appear more realistic, and improving the display effect of the live image, providing audience users with a good live viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0020] Figure 1 A flow chart of a method for determining a virtual live broadcast image according to an embodiment of the present application is shown;
[0021] Figure 2 The functional modules of a network device according to another embodiment of the present application are shown;
[0022] Figure 3 An exemplary system is shown that can be used to implement the various embodiments described in this application.
[0023] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0024] The present application is described in further detail below in conjunction with the accompanying drawings.
[0025] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.
[0026] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory. Memory is an example of a computer-readable medium.
[0027] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), Read-Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0028] The devices referred to in this application include but are not limited to user devices, network devices, or devices formed by integrating user devices and network devices through a network. The user devices include but are not limited to any mobile electronic products that can interact with users (for example, interact with users through a touchpad), such as smart phones, tablet computers, etc. The mobile electronic products can use any operating system, such as Android operating system, iOS operating system, etc. Among them, the network device includes an electronic device that can automatically perform numerical calculations and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), digital signal processors (Digital Signal Processor, DSP), embedded devices, etc. The network devices include but are not limited to computers, network hosts, single network servers, multiple network server sets or multiple servers. The cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless self-organizing network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the network device, the touch terminal, or the network device and the touch terminal through a network.
[0029] Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or future devices that are applicable to the present application should also be included in the scope of protection of the present application and are included here by reference.
[0030] In the description of the present application, “plurality” means two or more, unless otherwise clearly and specifically defined.
[0031] Figure 1A method for determining a virtual live broadcast image according to one aspect of the present application is shown, which is applied to a network device and specifically includes steps S101, S102, S103 and S104. In step S101, a real-time live broadcast image corresponding to a live broadcast uploaded by a first user device of the anchor is received; in step S102, a virtual background instruction about the real-time live broadcast image is obtained; in step S103, in response to the virtual background instruction, the anchor portrait area of the anchor is determined according to the real-time live broadcast image, the corresponding adaptation ratio information is determined according to the anchor portrait area and the corresponding virtual background image, and the corresponding virtual live broadcast image is generated according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image; in step S104, the virtual live broadcast image is sent to the second user device of the audience user of the live broadcast. Here, the network device corresponds to the live broadcast application of the live broadcast, and the network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud composed of multiple servers.
[0032] Specifically, in step S101, a real-time live broadcast image corresponding to the live broadcast uploaded by the first user device of the anchor is received. For example, the anchor holds a first user device, and the first user device can collect the current real-time live broadcast image of the anchor through a corresponding camera device, wherein the first user device includes but is not limited to a mobile phone, a pad, a personal computer or a camera, etc., and the camera device includes but is not limited to a camera, a depth camera, an infrared camera or an external camera of the device, etc. The first user device collects the corresponding real-time video stream and uploads it to the network device through a communication connection with the network device, and the network device receives the real-time live broadcast image in the video stream, wherein the real-time live broadcast image includes a video frame corresponding to the current moment in the real-time video stream of the anchor taken. In some embodiments, the real-time live broadcast image includes a corresponding target object, which can be a product to be promoted, or an interactive object of the anchor's live broadcast, etc.
[0033] In step S102, a virtual background instruction for the real-time live broadcast image is obtained. For example, the virtual background instruction is used to indicate the instruction information for replacing the background image other than the anchor character in the real-time live broadcast image. The first user device can collect the user operation of the anchor, determine the corresponding virtual background instruction, and then send the virtual background instruction to the network device. Alternatively, the network device obtains the live broadcast related parameters of the anchor, and if the live broadcast related parameters meet the preset conditions, the corresponding virtual background instruction is generated, etc., to improve the interactivity of the live broadcast.
[0034] In some embodiments, in step S102, a virtual background instruction based on the user operation of the anchor uploaded by the first user device is received. For example, the anchor holds a first user device, and the first user device is provided with indication information of the virtual background instruction. The anchor can input relevant operations according to his own needs. The first user device matches the operation with the preset indication information according to the operation of the anchor; if it matches, the corresponding virtual background instruction is generated and sent to the network device. In some embodiments, the user operation includes but is not limited to: voice information; body information; touch information; QR code information. For example, the user operation of the anchor includes voice information (such as "turn on virtual background", "background turn on" and other voice information), the first user device performs voice recognition according to the voice information input by the user to determine the corresponding text or semantics, and matches the corresponding text or semantics with the preset voice instruction. If it matches, the corresponding virtual background instruction is generated. For example, the user operation of the anchor includes posture information (such as gesture information, hand movements, head movements, leg movements or body postures, etc.), and the first user obtains corresponding posture features according to the posture information input by the user, and matches the posture features with preset posture features. If they match, the corresponding virtual background instructions are generated. For example, the user operation of the anchor includes touch information (such as a touch touch pad, a touch touch screen, etc.), and the first user matches the touch information with the preset touch operation according to the touch information input by the user. If they match, the corresponding virtual background instructions are generated. For example, for example, the user operation of the anchor includes QR code information (such as a QR code for triggering a virtual background instruction, etc.), and the first user identifies the QR code in the real-time live broadcast image scanned. If there is a QR code link of a QR code that includes virtual background indication information, the corresponding virtual background instruction is generated. Here, the user operation for generating a virtual background instruction may include one or more combinations of the foregoing. Of course, those skilled in the art should understand that the above user operations are only examples, and other existing or future user operations that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.
[0035] In some embodiments, in step S102, according to the live broadcast parameter information of the live broadcast meeting the preset conditions, the virtual background instruction of the real-time live broadcast image is determined. For example, the network device obtains the live broadcast parameter information of the anchor's live broadcast, such as the number of viewing users on the live broadcast page, the number of high-level users, the cumulative amount of gifts obtained, or the anchor level information, etc.; the network device is set with preset conditions, such as the number of viewing users reaches a certain number threshold (such as one thousand, etc.), the number of high-level users reaches a certain number threshold (such as five hundred, etc.), the cumulative amount of gifts obtained reaches a certain cumulative threshold (such as one thousand points, etc.), and the anchor level information of the anchor reaches a certain level threshold (such as senior anchor, etc.). If the live broadcast parameter information of the live broadcast meets the preset conditions, a virtual background instruction for the real-time live broadcast image is generated, and the virtual background instruction is triggered by the number of users or resource accumulation of the anchor's live broadcast page, thereby enhancing the interaction between the anchor and the user, and enhancing the user's viewing experience.
[0036] In some embodiments, the live broadcast parameter information includes but is not limited to: the first user number of the current audience users of the live broadcast; the second user number of the audience users whose user level is greater than or equal to the user level threshold among the current audience users of the live broadcast; the resource accumulation information of the live broadcast; the anchor level information of the anchor. For example, the first user number of the current audience users of the live broadcast includes the real user number or statistical user number of the viewing users in the current live broadcast page, and the statistical user number includes different user number values allocated based on the level of the viewing users, such as a low-level user statistical user value of 1, a medium-level user statistical user value of 5, a high-level user statistical user value of 10, etc. If the live broadcast parameter information includes the first user number of the audience users of the live broadcast, the corresponding preset conditions include that the first user number is greater than or equal to the first user number threshold, etc. For example, the live broadcast parameter information includes the second user number of the current audience users of the live broadcast whose user level is greater than or equal to the user level threshold (such as intermediate or advanced users, etc.), and the second user number includes the real user number of the audience users whose user level is greater than or equal to the user level threshold, wherein the user level can be divided into low-level, intermediate, advanced, etc., or divided by numerical values, such as 1-100, etc.; the corresponding preset condition includes that the second user number is greater than or equal to the second user number threshold. The first and second in the first user number and the second user number are only used to distinguish different reference parameters, and do not contain any order, size relationship, etc. For example, the live broadcast parameter information includes the resource accumulation information of the live broadcast, and the resource accumulation information includes the cumulative value of resources obtained during the current live broadcast or all live broadcasts of the live broadcast page, etc. The corresponding resources include gifts given by audience users, rewards distributed by activities, etc.; the corresponding preset condition includes that the resource accumulation information is greater than or equal to the resource accumulation threshold. The live broadcast parameter information includes the anchor level information of the anchor, and the anchor level information includes the current live broadcast level of the anchor user, which is associated with the live broadcast duration, the number of viewing users, the accumulation of live broadcast resources, etc.; the corresponding preset condition includes that the anchor level information reaches the preset level threshold. The live broadcast parameter information may include one or more combinations of the above parameters, which are not limited here. Of course, those skilled in the art should understand that the above live broadcast parameter information is only an example, and other existing or future live broadcast parameter information, if applicable to this application, should also be included in the scope of protection of this application, and is included here by reference.
[0037] In step S103, in response to the virtual background instruction, the anchor portrait area of the anchor is determined according to the real-time live image, the corresponding adaptation ratio information is determined according to the anchor portrait area and the corresponding virtual background image, and the corresponding virtual live image is generated according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image. For example, the anchor portrait area includes the pixel position of the anchor's corresponding pixel in the real-time live image. After the network device obtains the corresponding real-time live image, it uses a computer vision algorithm to identify or track the anchor portrait area corresponding to the anchor in the real-time live image, such as using an object instance segmentation algorithm, contour recognition, etc. Specifically, when the real-time live broadcast image is the first image information that needs to identify the anchor portrait area, the pixel area where the anchor is located in the real-time live broadcast image is identified according to the preset anchor feature information; or, when the real-time live broadcast image is not the first image information that needs to identify the anchor portrait area, we can track and determine the anchor portrait area in the real-time live broadcast image according to the preceding anchor portrait area of the preceding real-time live broadcast image (such as the previous frame or multiple frames), for example, using the preceding anchor portrait area in the preceding real-time live broadcast image to estimate the anchor portrait area in the real-time live broadcast image to determine the estimated pixel area, and at the same time identify the anchor portrait area to determine the corresponding identified pixel area, so as to comprehensively estimate the pixel area and identify the pixel area to obtain a more accurate anchor portrait area. Wherein, the anchor portrait area includes the pixel position of the corresponding pixel of the anchor in the real-time live broadcast image, for example, a corresponding pixel coordinate system is established with the upper left corner of the real-time live broadcast image as the coordinate origin, and the anchor portrait area includes the set of coordinates of the corresponding pixel of the anchor in the coordinate system. The anchor portrait area is used to indicate the anchor's normal pixel area in the live broadcast image. This pixel area corresponds to the size of a normal person in the live broadcast image. The virtual background area may be a different scene according to the matching result. The ratio of this scene to a normal person's portrait may be different from the ratio of the anchor portrait area to the real-time live broadcast image. At this time, the network device can make certain adjustments to the anchor portrait area and the virtual background image to ensure the adaptability of the image fusion. The network device superimposes the anchor portrait area on the virtual background image according to the corresponding adaptation ratio information to generate a corresponding virtual live broadcast image.
[0038] In step S104, the virtual live broadcast image is sent to the second user device of the audience user of the live broadcast. For example, after the network device determines the corresponding virtual live broadcast image, it sends the virtual live broadcast image to the second user device of the corresponding viewing user of the live broadcast; in some embodiments, the network device also sends the virtual live broadcast image to the first user device for the anchor to view the corresponding virtual live broadcast effect, etc.; or the network device first sends the virtual live broadcast image to the first user device, and the first user device presents the virtual live broadcast image. If the anchor's confirmation operation on the virtual live broadcast image is obtained, the first user device sends background confirmation information to the network device, and the network device sends the virtual live broadcast image to one or more second user devices based on the received background confirmation information.
[0039] In some embodiments, the virtual background instruction includes corresponding live broadcast identification information; wherein the method further includes step S105 (not shown), in which the corresponding virtual background image is determined based on the live broadcast identification information, wherein the background key field corresponding to the virtual background image matches the live broadcast identification information. For example, when the network device obtains the virtual background instruction, it can also obtain the corresponding live broadcast identification information, and the live broadcast identification information includes the current title, theme, or key field of the current live broadcast content of the live broadcast page, etc. The live broadcast identification information can be determined by the receiving first user device according to the input operation of the anchor, or can be determined according to the real-time live broadcast image recognition, for example, identifying the target object in the image or identifying the song name, dance name, etc. in the current image. The network device is provided with an image library, and the image library contains multiple background image records, each background image record includes a background image and the background key field corresponding to the background image. The network device matches and determines the corresponding virtual background image in the image library according to the live broadcast identification information, and the background key field of the virtual background image is the same as the live broadcast identification information or has the same semantics.
[0040] In some embodiments, in step S105, one or more corresponding candidate virtual background images are determined based on the live broadcast identification information, wherein the background key field corresponding to each candidate virtual background image matches the live broadcast identification information; and the corresponding virtual background image is obtained based on the one or more candidate virtual background images. For example, when the network device matches according to the live broadcast identification information, one or more candidate virtual background images may be matched, and the background key fields corresponding to the one or more virtual background images are the same or similar. For example, the same key field "football" may match the background image corresponding to "football field", or may match the background image corresponding to "football", or may match the background image corresponding to "playing football", etc. After the network device determines one or more candidate virtual background images, one of them can be used as the corresponding virtual background image, for example, randomly selected or determined based on the analysis of the real-time live broadcast image, and can also be sent to the first user device for the anchor to select, etc. Among them, the network device can analyze the anchor portrait area in the real-time live broadcast image, and determine the background image with the size or proportion adapted in combination with the size or proportion of the current anchor portrait area, so as to determine the adapted virtual background image, etc. from one or more candidate virtual background images.
[0041] In some embodiments, the obtaining of the corresponding virtual background image based on the one or more candidate virtual background images includes: returning the one or more candidate virtual background images to the first user device; receiving the virtual background image returned by the first user device and determined based on the host's operation, wherein the virtual background image is included in the one or more candidate virtual background images. For example, after the network device determines one or more candidate virtual background images, the one or more candidate virtual background information can be returned to the first user device for the host to select. The first user device receives and presents the one or more candidate virtual background images, collects the host's related operations (such as voice information, body information, or touch information related selection operations), and the first user device determines the corresponding virtual background image from the one or more candidate virtual background images based on the host's related operations, and sends the virtual background image or the image identification information of the virtual background image to the network device. After the network device receives the virtual background image or the image identification information of the virtual background image, it generates a corresponding virtual live broadcast image based on the virtual background image and the shadow host portrait area.
[0042] In some embodiments, the method further includes step S106 (not shown), in which the real-time live broadcast identification information of the live broadcast is obtained in real time; if the real-time live broadcast identification information is changed, a corresponding virtual background change instruction is generated; in response to the virtual background change instruction, a corresponding changed virtual background image is determined based on the real-time live broadcast identification information matching, wherein the background key field corresponding to the changed virtual background image matches the real-time live broadcast identification information; wherein, the corresponding adaptation ratio information is determined according to the anchor portrait area and the corresponding virtual background image, and the corresponding virtual live broadcast image is generated according to the anchor portrait area, the virtual background image and the adaptation ratio information, including: determining the corresponding changed adaptation ratio information according to the anchor portrait area and the changed virtual background image, and generating the corresponding changed virtual live broadcast image according to the anchor portrait area, the virtual background image and the changed adaptation ratio information; wherein, in step S104, the changed virtual live broadcast image is sent to the second user device of the audience user of the live broadcast. For example, after the network device generates a virtual live broadcast image based on the corresponding virtual background instruction, during the real-time live broadcast process, the background image can also be adjusted in real time based on the change of the live broadcast identification information, thereby presenting different virtual live broadcast images, enhancing the real-time and interestingness of the live broadcast, and providing users with a better live broadcast experience. For example, the network device obtains the real-time live broadcast identification information of the live broadcast in real time, for example, by identifying the fields contained in the current video frame in the currently uploaded real-time video stream or uploading the corresponding fields based on the host's change operation on the live broadcast theme, title, etc. If the network device detects that the real-time live broadcast identification information does not match the previous live broadcast identification information, it determines that the real-time live broadcast identification information has changed and generates a corresponding virtual background change instruction. According to the real-time live broadcast identification information in the virtual background change instruction, the network device matches and determines the corresponding changed virtual background image in the image library, determines the corresponding changed adaptation ratio information, and superimposes the host portrait area on the changed virtual background image information based on the changed adaptation ratio information to generate the corresponding changed virtual live broadcast image. Subsequently, the network device returns the changed virtual live broadcast image to the second user device of the audience user.
[0043] In some embodiments, the method further includes step S107 (not shown), in which the anchor portrait area is shadowed to determine a corresponding shadow anchor portrait area; wherein the generating a corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information includes: generating a corresponding virtual live broadcast image according to the shadow anchor portrait area, the virtual background image and the adaptation ratio information. For example, after the network device obtains the anchor portrait area, it obtains a shadow anchor portrait area with a three-dimensional effect by performing shadow calculation on the anchor. The shadow anchor portrait area includes the anchor portrait area and the shadow area corresponding to the anchor portrait area. The specific shadow calculation is to first determine a light source point, and project light to the corresponding area based on the light source point as the center to generate a corresponding shadow. In some cases, in addition to calculating the corresponding shadow area, we will also change the pixel brightness of each pixel in the anchor portrait area according to the projection distance of the light source point, so as to form a bright and adapted shadow anchor portrait area. Among them, the coordinates of the light source points used as reference for the generation of the anchor's shadow area can be selected by machine learning. The specific process includes: 1) manually annotating and scoring the shadows generated according to the coordinates of different light sources. The score range is [0,1], where a score of 0 represents the worst effect and a score of 1 represents the best effect; 2) based on the training data obtained in step 1), the machine learning model is optimized using the gradient descent algorithm. The model has three inputs: the foreground image I 1 , Virtual Background I 2 , score S (the default value of S is 1 in the deployment phase); the output of the model is the three coordinate points (x, y, z) of the light source that is divided into S; 3) According to the coordinates of the light source point obtained in step 2, the real-time live broadcast image, i.e. the anchor, is shadow calculated and merged with the virtual background to obtain the corresponding virtual live broadcast image. The fusion process includes covering the anchor portrait area in the virtual background image, and superimposing the shadow area of the anchor portrait area in the virtual background image with a certain transparency. The shadow anchor portrait area includes the anchor portrait area and the corresponding shadow area. After the network device determines the corresponding virtual background image, the shadow anchor portrait area can be directly superimposed on the virtual background image to generate the corresponding virtual live broadcast image. In some cases, the network device makes a certain transparency adjustment to the pixels of the shadow area, so that the anchor portrait area is covered and superimposed on the virtual background image, and the shadow area is superimposed on the virtual background image with a certain transparency, which improves the authenticity of the background fusion, and improves the image fusion effect while providing a three-dimensional visual virtual live broadcast image.
[0044] In some embodiments, the generating of the corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information includes: adjusting the anchor portrait area and / or the virtual background image according to the adaptation ratio information, thereby determining the corresponding adapted anchor portrait area and the adapted virtual background image; superimposing the adapted anchor portrait area on the adapted virtual background image to generate the corresponding virtual live broadcast image. For example, the anchor portrait area is usually the size of a normal person, while the virtual background area may be a different scene according to the matching result, and the ratio of the scene to a normal person may be different from the ratio of the anchor portrait area to the real-time live broadcast image. At this time, the network device can make certain adjustments to the anchor portrait area and the virtual background image to ensure the adaptability of the image fusion. For example, each virtual background image also includes corresponding portrait ratio information, which is used to indicate the proportion of the number of unit human body pixels in the virtual background image; the network device can adjust the anchor portrait area and / or the virtual background image according to the portrait ratio information of the virtual background image to achieve a better adaptation effect. For example, the network device adjusts the anchor portrait area according to the portrait ratio information of the virtual background image, keeps the virtual background image unchanged, and adjusts the anchor portrait area to an adapted anchor portrait area that is adapted to the virtual background image. For example, the network device keeps the anchor portrait area unchanged, adjusts the virtual background image according to the portrait ratio information, and fills or cuts the adjusted virtual background image, so that the pixel aspect ratio of the adjusted virtual background image is consistent with that of the real-time live broadcast image. For example, the network device adjusts the anchor portrait area and the virtual background image at the same time according to the portrait ratio information and in combination with a preset ratio of a certain portrait in the image (such as 60%-70%, etc.), and fills or cuts the adjusted virtual background image, so that the pixel aspect ratio of the adjusted virtual background image is consistent with that of the real-time live broadcast image. The network device refers to the anchor portrait area and the virtual background image after the above adjustment as the adapted anchor portrait area and the adapted virtual background image, and generates the corresponding virtual live broadcast image according to the adapted anchor portrait area and the adapted virtual background image.
[0045] In some embodiments, the step of superimposing the adapted anchor portrait region onto the adapted virtual background image to generate a corresponding virtual live broadcast image includes: determining the superimposed position information of the adapted anchor portrait region on the adapted background image according to the adapted anchor portrait region and the adapted virtual background image; and superimposing the adapted anchor portrait region onto the adapted virtual background image according to the superimposed position information to generate a corresponding virtual live broadcast image. For example, after the network device determines the corresponding adapted anchor portrait region and the adapted virtual background information, it determines the superimposed position information of the adapted anchor portrait region in the virtual background information according to the adapted anchor portrait region and the adapted virtual background information, and the superimposed position information includes the relative position information of the pixels of the adapted anchor portrait region relative to the adapted virtual background image, for example, the pixel coordinate information of each pixel of the adapted anchor portrait region in the corresponding pixel coordinate system of the adapted virtual background image. The network device may superimpose the adapted anchor portrait region onto the adapted virtual background image according to the corresponding pixel position, thereby generating a corresponding virtual live broadcast image.
[0046] The above mainly introduces various embodiments of a method for determining a virtual live broadcast image of the present application. In addition, the present application also provides specific devices that can implement the above embodiments. Figure 2 Make an introduction.
[0047] Figure 2 A network device for determining a virtual live broadcast image according to one aspect of the present application is shown, specifically comprising a first module 101, a second module 102, a third module 103 and a fourth module 104. The first module 101 is used to receive a real-time live broadcast image corresponding to a live broadcast uploaded by a first user device of the anchor; the first module 102 is used to obtain a virtual background instruction about the real-time live broadcast image; the third module 103 is used to respond to the virtual background instruction, determine the anchor portrait area of the anchor according to the real-time live broadcast image, determine the corresponding adaptation ratio information according to the anchor portrait area and the corresponding virtual background image, and generate the corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image; the fourth module 104 is used to send the virtual live broadcast image to the second user device of the audience user of the live broadcast.
[0048] In some embodiments, the one-two module 102 is used to receive the virtual background instruction uploaded by the first user device based on the user operation of the anchor. In some embodiments, the user operation includes but is not limited to: voice information; body information; touch information; QR code information. In some embodiments, the one-two module 102 is used to determine the virtual background instruction of the real-time live broadcast image according to the live broadcast parameter information of the live broadcast meeting the preset conditions. In some embodiments, the live broadcast parameter information includes but is not limited to: the first user number of the current audience users of the live broadcast; the second user number of the audience users whose user level is greater than or equal to the user level threshold among the current audience users of the live broadcast; the resource accumulation information of the live broadcast; the anchor level information of the anchor.
[0049] Here, Figure 2 The specific implementations corresponding to the one-to-one module 101, the one-to-two module 102, the one-to-three module 103 and the one-to-four module 104 are the same as those described above. Figure 1 The illustrated embodiments of step S101 , step S102 , step S103 , and step S104 are the same or similar, and thus will not be described in detail, but are included herein by reference.
[0050] In some embodiments, the virtual background instruction includes corresponding live broadcast identification information; wherein the device further includes a module (not shown) for determining the corresponding virtual background image based on the live broadcast identification information, wherein the background key field corresponding to the virtual background image matches the live broadcast identification information. In some embodiments, the module is used to determine one or more corresponding candidate virtual background images based on the live broadcast identification information, wherein the background key field corresponding to each candidate virtual background image matches the live broadcast identification information; and obtain the corresponding virtual background image based on the one or more candidate virtual background images. In some embodiments, obtaining the corresponding virtual background image based on the one or more candidate virtual background images includes: returning the one or more candidate virtual background images to the first user device; receiving the virtual background image returned by the first user device and determined based on the operation of the anchor, wherein the virtual background image is included in the one or more candidate virtual background images.
[0051] In some embodiments, the device further includes a module 106 (not shown), which is used to obtain the real-time live broadcast identification information of the live broadcast in real time; if the real-time live broadcast identification information changes, generate a corresponding virtual background change instruction; in response to the virtual background change instruction, determine the corresponding changed virtual background image based on the real-time live broadcast identification information matching, wherein the background key field corresponding to the changed virtual background image matches the real-time live broadcast identification information; wherein, determining the corresponding adaptation ratio information according to the anchor portrait area and the corresponding virtual background image, and generating the corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information, includes: determining the corresponding changed adaptation ratio information according to the anchor portrait area and the changed virtual background image, and generating the corresponding changed virtual live broadcast image according to the anchor portrait area, the virtual background image and the changed adaptation ratio information; wherein, the module 104 is used to send the changed virtual live broadcast image to the second user device of the audience user of the live broadcast. In some embodiments, the device also includes a module (not shown) for: shading the anchor portrait area to determine a corresponding shadow anchor portrait area; wherein, generating a corresponding virtual live broadcast image based on the anchor portrait area, the virtual background image and the adaptation ratio information includes: generating a corresponding virtual live broadcast image based on the shadow anchor portrait area, the virtual background image and the adaptation ratio information.
[0052] In some embodiments, the corresponding virtual live broadcast image is generated based on the host portrait area, the virtual background image and the adaptation ratio information, and is used to adjust the host portrait area and / or the virtual background image according to the adaptation ratio information, so as to determine the corresponding adapted host portrait area and the adapted virtual background image; the adapted host portrait area is superimposed on the adapted virtual background image to generate a corresponding virtual live broadcast image.
[0053] In some embodiments, superimposing the adapted host portrait area on the adapted virtual background image to generate a corresponding virtual live broadcast image includes: determining the superimposed position information of the adapted host portrait area in the adapted background image according to the adapted host portrait area and the adapted virtual background image; and superimposing the adapted shadow host portrait area on the adapted virtual background image according to the superimposed position information to generate a corresponding virtual live broadcast image.
[0054] Here, the specific implementations corresponding to the modules 15 to 17 are the same as or similar to the embodiments of the aforementioned steps S105 to S107, and thus are not described in detail and are included herein by reference.
[0055] In addition to the methods and devices described in the above embodiments, the present application also provides a computer-readable storage medium, which stores computer code. When the computer code is executed, the method described in any of the preceding items is executed.
[0056] The present application also provides a computer program product. When the computer program product is executed by a computer device, the method described in any of the preceding items is executed.
[0057] The present application also provides a computer device, the computer device comprising:
[0058] one or more processors;
[0059] a memory for storing one or more computer programs;
[0060] When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any of the preceding items.
[0061] Figure 3 An exemplary system that can be used to implement various embodiments described in this application is shown;
[0062] like Figure 3 In some embodiments shown, the system 300 can be any of the above-mentioned devices in each of the described embodiments. In some embodiments, the system 300 may include one or more computer-readable media (e.g., system memory or NVM / storage device 320) with instructions and one or more processors (e.g., (one or more) processors 305) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in this application.
[0063] For one embodiment, system control module 310 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 305 and / or any suitable device or component in communication with system control module 310 .
[0064] The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. The memory controller module 330 may be a hardware module, a software module, and / or a firmware module.
[0065] The system memory 315 may be used, for example, to load and store data and / or instructions for the system 300. For one embodiment, the system memory 315 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 315 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0066] For one embodiment, system control module 310 may include one or more input / output (I / O) controllers to provide interfaces to NVM / storage device 320 and communication interface(s) 325 .
[0067] For example, NVM / storage device 320 may be used to store data and / or instructions. NVM / storage device 320 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0068] NVM / storage device 320 may include storage resources that are physically part of the device on which system 300 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 320 may be accessed over a network via communication interface(s) 325.
[0069] Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and / or with any other suitable devices. System 300 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.
[0070] For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 (e.g., the memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged together with the logic of one or more controllers of the system control module 310 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with the logic of one or more controllers of the system control module 310 to form a system on chip (SoC).
[0071] In various embodiments, the system 300 may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 300 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.
[0072] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0073] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0074] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.
[0075] By way of example and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or later developed that can store computer-readable information / data for use by a computer system.
[0076] Here, according to an embodiment of the present application, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present application.
[0077] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for determining a virtual live image, wherein: The method includes: Receiving a real-time live broadcast image corresponding to the live broadcast uploaded by the first user device of the anchor; Obtaining a virtual background instruction for the real-time live broadcast image; In response to the virtual background instruction, the anchor portrait area of the anchor is determined according to the real-time live broadcast image, the corresponding adaptation ratio information is determined according to the anchor portrait area and the corresponding virtual background image, and the corresponding virtual live broadcast image is generated according to the anchor portrait area, the virtual background image and the adaptation ratio information, wherein the adaptation ratio information includes the pixel ratio of the anchor portrait area relative to the virtual background image, and the anchor portrait area is used to indicate the normal pixel area of the anchor in the real-time live broadcast image; Sending the virtual live broadcast image to a second user device of a viewer user of the live broadcast; Determine a light source point, perform shadow processing on the anchor portrait area, and determine a corresponding shadow anchor portrait area, wherein the shadow anchor portrait area includes the anchor portrait area of the anchor and a shadow area corresponding to the anchor portrait area, and the shadow area is generated by projecting light to the anchor portrait area with the light source point as the center, and the coordinates of the light source point are determined by machine learning; The step of generating a corresponding virtual live broadcast image according to the anchor portrait area, the virtual background image and the adaptation ratio information includes: A corresponding virtual live broadcast image is generated according to the shadow host portrait area, the virtual background image and the adaptation ratio information, wherein the shadow area of the shadow host portrait area is transparently adjusted with a certain transparency and then superimposed on the virtual background image.
2. The method according to claim 1, wherein: The step of obtaining a virtual background instruction for the real-time live broadcast image includes: Receive a virtual background instruction uploaded by the first user device and based on the user operation information of the anchor.
3. The method according to claim 2, wherein: The user operation information includes at least one of the following: Voice messages; Body posture information; Touch information; QR code information.
4. The method according to claim 1, wherein: The step of obtaining a virtual background instruction for the real-time live broadcast image includes: According to the live broadcast parameter information of the live broadcast satisfying a preset condition, a virtual background instruction of the real-time live broadcast image is determined.
5. The method according to claim 4, wherein: The live broadcast parameter information includes at least one of the following: The first user number of the current audience users of the live broadcast; The number of second users among the current audience users of the live broadcast whose user level is greater than or equal to the user level threshold; The resource accumulation information of the live broadcast; The anchor level information of the anchor.
6. The method according to claim 1, wherein: The virtual background instruction includes corresponding live broadcast identification information; wherein the method further includes: A corresponding virtual background image is determined based on the live broadcast identification information matching, wherein a background key field corresponding to the virtual background image matches the live broadcast identification information.
7. The method according to claim 6, wherein: The determining the corresponding virtual background image based on the live broadcast identification information matching includes: Determine one or more corresponding candidate virtual background images based on the live broadcast identification information matching, wherein the background key field corresponding to each candidate virtual background image matches the live broadcast identification information; A corresponding virtual background image is acquired based on the one or more candidate virtual background images.
8. The method according to claim 7, wherein: The acquiring a corresponding virtual background image based on the one or more candidate virtual background images includes: returning the one or more candidate virtual background images to the first user device; Receive a virtual background image returned by the first user equipment and determined based on the host's operation, wherein the virtual background image is included in the one or more candidate virtual background images.
9. A computer device, wherein: The equipment includes: Processor; and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: The computer program / instructions, when executed, cause the system to perform the steps of the method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Video processing method and video processing device
CN106713942A
Live broadcasting data playing method, live broadcasting data playing device and storage medium
CN107920256A
Method and device for processing video
CN108040265A
Interaction method in video mode, control system and terminal
CN110049378A
Live broadcast method and device based on artificial intelligence, equipment and storage medium
CN111010589A
