Live screen generation method and device, storage medium and electronic device

By adjusting the host object display area in the live broadcast screen and using the target screen to generate a network, multiple anchors can be displayed on the same viewing distance plane, which solves the problem of poor user experience in Lianmai live broadcast screen and improves the authenticity and accuracy of the screen. User experience.

CN114449303BActive Publication Date: 2024-08-30GUANGZHOU FANXING ENTERTAINMENT INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210096666.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2024-08-30
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

In the existing technology, due to the different distances between anchors and cameras and the inconsistent internal parameters of the cameras, multiple anchors in the spliced ​​target live broadcast images are not in the same line of sight, resulting in poor user experience.

Method used

By obtaining the viewing angle information of multiple live broadcast screens, the display area of ​​the anchor object in the screen is adjusted to achieve the same viewing distance condition, and the target screen generation network is used for deep learning training to generate the target viewing distance live broadcast screen, so that the anchor object can be in the same viewing distance. on the same viewing distance plane.

Benefits of technology

It improves the authenticity and user experience of Lianmai live broadcast images and solves the problem of poor user experience caused by direct splicing of live broadcast images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449303B
    Figure CN114449303B
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a live broadcast screen, a storage medium and an electronic device, wherein the method comprises: obtaining first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object with a second image acquisition device; according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen and adjusting the second live broadcast screen to a fourth live broadcast screen; pushing the third live broadcast screen and the fourth live broadcast screen to the audience client for display. The above technical solution is adopted to solve the problem of poor user experience caused by directly splicing the live broadcast screens with microphones in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and device for generating a live broadcast image, a storage medium and an electronic device. Background Art

[0002] With the development of network technology and the live broadcast industry, live broadcast with microphones has successfully attracted the public's attention as a new form of live broadcast interaction. In the prior art, multiple live broadcast screens of multiple hosts participating in the live broadcast are usually directly spliced ​​together, for example, the live broadcast screens of two or three hosts are spliced ​​together to obtain the target live broadcast screen.

[0003] However, due to the different distances between different hosts and the cameras in their live broadcast space in the live broadcast scene, the internal parameters of the cameras may also be different, resulting in multiple hosts in the spliced ​​target live broadcast screen not being on the same viewing plane, causing the target live broadcast screen to look inconsistent, resulting in a poor user experience.

[0004] Currently, no effective solution has been proposed to the above problems. Summary of the invention

[0005] Embodiments of the present invention provide a method and device for generating a live broadcast image, a storage medium, and an electronic device, so as to at least solve the problem of poor user experience caused by directly splicing live broadcast images with connected microphones.

[0006] According to one aspect of an embodiment of the present invention, a method for generating a live broadcast screen is provided, comprising: obtaining first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object by a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object by a second image acquisition device; according to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen and adjusting the second live broadcast screen to a fourth live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition; and pushing the third live broadcast screen and the fourth live broadcast screen to an audience client for display.

[0007] Optionally, the above-mentioned adjusting the first live broadcast screen to the third live broadcast screen and adjusting the second live broadcast screen to the fourth live broadcast screen according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen includes: obtaining a first display ratio between the display area occupied by the first anchor object in the first live broadcast screen and the display area of ​​the first live broadcast screen; obtaining a second display ratio between the display area occupied by the second anchor object in the second live broadcast screen and the display area of ​​the second live broadcast screen; when the first display ratio does not meet the viewing distance condition, adjusting the first live broadcast screen according to the display ratio indicated by the viewing distance condition to obtain the third live broadcast screen; when the second display ratio does not meet the viewing distance condition, adjusting the second live broadcast screen according to the display ratio indicated by the viewing distance condition to obtain the fourth live broadcast screen.

[0008] Optionally, the above-mentioned adjusting the first live broadcast screen to the third live broadcast screen and adjusting the second live broadcast screen to the fourth live broadcast screen according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen includes: obtaining first viewing angle information between the first anchor object and the first image acquisition device according to the display area occupied by the first anchor object in the first live broadcast screen; obtaining second viewing angle information between the second anchor object and the second image acquisition device according to the display area occupied by the second anchor object in the second live broadcast screen; inputting the first viewing angle information and the second viewing angle information, the first live broadcast screen and the second live broadcast screen into the target screen generation network to generate a target viewing distance live broadcast screen, wherein the target viewing distance live broadcast screen includes the third live broadcast screen after adjusting the first live broadcast screen, and the fourth live broadcast screen after adjusting the second live broadcast screen, the first anchor object in the third live broadcast screen and the second anchor object in the fourth live broadcast screen are located in the same viewing distance plane, and the target screen generation network is a deep learning network generated after training using multiple groups of sample live broadcast screens, and is used to adjust the viewing distance of the anchor objects displayed in the input live broadcast screen.

[0009] Optionally, the first perspective information and the second perspective information, the first live broadcast picture and the second live broadcast picture are input into the target picture generation network to generate a target viewing distance live broadcast picture, including: in the target picture generation network, extracting the first object feature of the first anchor object in the first live broadcast picture and the second object feature of the second anchor object in the second live broadcast picture; determining the target viewing distance according to the first perspective information and the second perspective information; generating a third live broadcast picture based on the first object feature, the first live broadcast picture and the target viewing distance, and generating a second viewing distance sub-picture based on the second object feature, the second live broadcast picture and the target viewing distance; fusing the first viewing distance sub-picture and the second viewing distance sub-picture to generate a fourth live broadcast picture; fusing the third live broadcast picture and the fourth live broadcast picture to generate a target viewing distance live broadcast picture.

[0010] Optionally, the above-mentioned generating a third live broadcast screen based on the first object feature, the first live broadcast screen and the target viewing distance, and generating a fourth live broadcast screen based on the second object feature, the second live broadcast screen and the target viewing distance, includes: adjusting the display size of the first image displayed by the first anchor object in the first live broadcast screen based on the target viewing distance and the first object feature to generate the third live broadcast screen; adjusting the display size of the second image displayed by the second anchor object in the second live broadcast screen based on the target viewing distance and the second object feature to generate the fourth live broadcast screen.

[0011] Optionally, the above-mentioned fusion of the third live broadcast picture and the fourth live broadcast picture to generate the target view distance live broadcast picture includes: adjusting the resolution of the third live broadcast picture to the target resolution, and adjusting the resolution of the fourth live broadcast picture to the target resolution; splicing the third live broadcast picture at the target resolution and the fourth live broadcast picture at the target resolution to generate the target view distance live broadcast picture.

[0012] Optionally, before the above-mentioned obtaining of the first viewing angle information between the first anchor object and the first image acquisition device and the obtaining of the second viewing angle information between the second anchor object and the second image acquisition device, it also includes: obtaining multiple groups of sample live broadcast pictures, and the viewing angle information corresponding to each sample live broadcast picture in each group of sample live broadcast pictures; inputting the multiple groups of sample live broadcast pictures and the corresponding viewing angle information into the initial picture adjustment network for training, wherein the initial picture adjustment network includes a picture generation network and a discrimination network, the picture generation network is used to generate a reference viewing distance live broadcast picture based on a group of sample live broadcast pictures, the reference viewing distance live broadcast picture includes a viewing distance sub-picture corresponding to each sample live broadcast picture in a group of sample live broadcast pictures, and the discrimination network is used to judge whether the viewing distance sub-picture in the reference viewing distance live broadcast picture meets the target viewing distance condition; when the picture adjustment network meets the convergence condition, the picture generation network that meets the convergence condition is determined as the target picture generation network, wherein, in the reference viewing distance live broadcast picture output by the picture generation network that meets the convergence condition, the anchor objects in the viewing distance sub-picture corresponding to each sample live broadcast picture will be located on the same viewing distance plane.

[0013] Optionally, the above-mentioned obtaining of the first viewing angle information between the first anchor object and the first image acquisition device and obtaining of the second viewing angle information between the second anchor object and the second image acquisition device include: obtaining a first internal parameter of the first image acquisition device; displaying at least two reference images in a first terminal device used to display a first live broadcast picture, and determining a first viewing distance parameter between the first anchor object and the first image acquisition device according to an observation distance between the first anchor object and the reference image; obtaining a second internal parameter of the second image acquisition device; displaying at least two reference images in a second terminal device used to display a second live broadcast picture, and determining a second viewing distance parameter between the second anchor object and the second image acquisition device according to an observation distance between the second anchor object and the reference image.

[0014] According to another aspect of the present invention, a live broadcast screen generation device is also provided, including: a first acquisition unit, used to acquire first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object with a second image acquisition device; a first processing unit, used to adjust the first live broadcast screen to a third live broadcast screen and adjust the second live broadcast screen to a fourth live broadcast screen according to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition; a pushing unit, used to push the third live broadcast screen and the fourth live broadcast screen to an audience client for display.

[0015] Optionally, the processing unit further includes: a first acquisition module, used to acquire a first display ratio between a display area occupied by a first anchor object in a first live screen and a display area of ​​the first live screen; a second acquisition module, used to acquire a second display ratio between a display area occupied by a second anchor object in a second live screen and a display area of ​​the second live screen; a first adjustment module, used to adjust the first live screen according to the display ratio indicated by the viewing distance condition to obtain a third live screen when the first display ratio does not meet the viewing distance condition; and a second adjustment module, used to adjust the second live screen according to the display ratio indicated by the viewing distance condition to obtain a fourth live screen when the second display ratio does not meet the viewing distance condition.

[0016] Through the embodiment of the present invention, according to the display area occupied by the first anchor object in the first live screen and the display area occupied by the second anchor object in the second live screen, the first live screen is adjusted to the third live screen and the second live screen is adjusted to the fourth live screen, respectively; so that the display area occupied by the first anchor object in the adjusted third live screen and the display area occupied by the second anchor object in the adjusted fourth live screen meet the same viewing distance condition. In other words, by adjusting the display area occupied by the first anchor object in the first live screen and the display area occupied by the second anchor object in the second live screen, the viewing angle distance of the anchor objects in the third live screen and the fourth live screen are in the same viewing distance plane, and the adjusted third live screen and the adjusted fourth live screen are pushed to the client where the audience is located, so that the connected microphone anchors in the connected microphone live screen are basically in the same viewing distance plane, which improves the authenticity of the connected microphone live screen, improves the user experience of the live screen, and solves the problem of poor user experience caused by directly splicing the connected microphone live screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a schematic diagram of an application scenario environment of an optional live broadcast screen generation method according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of an optional method for generating a live broadcast screen according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of an optional method for generating a live broadcast picture according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of an optional live broadcast picture generated when the viewing distance is not reached according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of optionally adjusting a screen according to a display ratio of a first anchor object and a second anchor object according to an embodiment of the present invention;

[0023] Figure 6 is a schematic diagram of another optional adjustment of a live broadcast picture according to an embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of generating a target viewing distance live broadcast picture after another optional viewing distance adjustment according to an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of an optional generation of a first viewing distance sub-picture and a second viewing distance sub-picture according to an embodiment of the present invention;

[0026] Fig. 9 is a schematic diagram of an optional picture adjustment network according to an embodiment of the present invention;

[0027] Fig.10 is a schematic diagram of an optional method of determining a first sight distance parameter and a second sight distance parameter according to an embodiment of the present invention;

[0028] Fig.11 It is a structural block diagram of a live broadcast picture generating device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] According to one aspect of an embodiment of the present invention, a method for generating a live broadcast image is provided. Optionally, as an optional implementation, the method for generating a live broadcast image can be applied to, but is not limited to, Figure 1 The live screen generation system in the application scenario shown in FIG. The live screen generation system may include but is not limited to a host device 102, a network 104, a server 106, a database 108, and a viewing device 110. The viewing device 110 runs a target client (such as Figure 1The target client may be a live broadcast interface of a live broadcast platform). The viewing device 110 includes a human-computer interaction screen, a processor and a memory. The human-computer interaction screen is used to display the live broadcast interface of the anchor client (such as Figure 1 The host device 102 also includes a human-computer interaction screen, a processor and a memory, wherein the human-computer interaction screen is used to display the live broadcast interface of the audience client.

[0032] The specific process is as follows: Step S102, obtain the first live screen and the second live screen; then send the first live screen and the second live screen as in steps S104 and S106. The server 106 will execute steps S108-S112, and adjust the first live screen to the third live screen and the second live screen to the fourth live screen according to the display area occupied by the first anchor object in the first live screen and the display area occupied by the second anchor object in the second live screen; synthesize the third live screen and the fourth live screen to obtain a mixed screen; and push the mixed screen containing the third live screen and the fourth live screen to the viewer client, so as to display the live screen containing the third live screen and the fourth live screen.

[0033] As another optional implementation, when the anchor device 102 has a relatively strong computing and processing capability, the above steps S108-S114 may also be completed by the anchor device 102. This is an example, and this embodiment does not impose any limitation on this.

[0034] In this embodiment, a method for generating a live broadcast screen is provided. Figure 2 is a flow chart of a method for generating a live broadcast screen according to an embodiment of the present invention, and the flow chart includes the following steps:

[0035] Step S202, obtaining first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting the first anchor subject with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting the second anchor subject with a second image acquisition device;

[0036] Step S204, according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, the first live broadcast screen is adjusted to the third live broadcast screen, and the second live broadcast screen is adjusted to the fourth live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition;

[0037] Step S206: Push the third live broadcast picture and the fourth live broadcast picture to the viewer client for display.

[0038] Specifically, Figure 3 As shown, before the host starts broadcasting, the image acquisition device in the live broadcast room is usually turned on, and the first host is photographed by the first image acquisition device to obtain the first live broadcast screen; the second host is photographed by the second image acquisition device to obtain the second live broadcast screen. The number, model and content parameters of the first image acquisition device and the second image acquisition device are not limited.

[0039] Since the models and internal parameters of the first image acquisition device (such as a camera) and the second image acquisition device are different, and the distances between the first anchor object and the second anchor object and their respective image acquisition devices (such as cameras) may be different, the display area occupied by the first anchor object in the first live broadcast screen may be different from the display area occupied by the second anchor object in the second live broadcast screen.

[0040] As an optional implementation, assuming that the internal parameters of the first image acquisition device and the second image acquisition device are the same, and the height and weight of the first anchor object and the second anchor object are basically the same, the first viewing angle distance between the first anchor object and the first image acquisition device is 10 meters, and the second viewing angle distance between the second anchor object and the second image acquisition device is 4 meters. In this case, the first live broadcast picture and the second live broadcast picture taken are as follows: Figure 4 The first display area occupied by the first anchor object in the first live broadcast screen is obviously larger than the second display area occupied by the second anchor object in the second live broadcast screen. If the first live broadcast screen and the second live broadcast screen are directly spliced, the visual effect presented to the audience is that the two anchor objects in the first live broadcast screen are in different live broadcast planes, which makes the live broadcast screen look inconsistent.

[0041] Based on the above problem, it can be considered to adjust the first display area and the second display area occupied by the first anchor object in the first live broadcast screen. Specifically, refer to the following Figure 3As shown in , according to the first display area occupied by the first anchor object in the first live broadcast screen and the target viewing distance condition, the first live broadcast screen is adjusted to obtain an adjusted third live broadcast screen; according to the second display area occupied by the second anchor object in the second live broadcast screen and the target viewing distance condition, the second live broadcast screen is adjusted to obtain an adjusted fourth live broadcast screen.

[0042] from Figure 3 It can be seen that the display area occupied by the first anchor object in the adjusted third live screen is substantially the same as the display area occupied by the second anchor object in the adjusted fourth live screen. In other words, the display area occupied by the first anchor object in the third live screen and the display area occupied by the second anchor object in the fourth live screen meet the same viewing distance condition. Finally, the adjusted third live screen and the adjusted fourth live screen are merged and pushed to the viewer client.

[0043] It should be noted that the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition, wherein the viewing distance condition includes but is not limited to the display ratio of the first anchor object in the third live broadcast screen and the display ratio of the second anchor object in the fourth live broadcast screen are both within a preset ratio range or equal to a preset ratio, the distances between the first anchor object and the second anchor object and their respective image acquisition devices satisfy a preset distance range or are equal to a preset distance, etc.

[0044] As an optional implementation manner, the above adjusting the first live broadcast screen to the third live broadcast screen and adjusting the second live broadcast screen to the fourth live broadcast screen according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen includes:

[0045] Obtaining a first display ratio between a display area occupied by a first anchor object in a first live broadcast screen and a display area of ​​the first live broadcast screen;

[0046] Obtaining a second display ratio between a display area occupied by a second anchor object in a second live broadcast screen and a display area of ​​the second live broadcast screen;

[0047] When the first display ratio does not meet the viewing distance condition, the first live broadcast picture is adjusted according to the display ratio indicated by the viewing distance condition to obtain a third live broadcast picture;

[0048] When the second display ratio does not meet the viewing distance condition, the second live broadcast picture is adjusted according to the display ratio indicated by the viewing distance condition to obtain a fourth live broadcast picture.

[0049] In this embodiment, the specific process of adjusting the first live broadcast picture and the second live broadcast picture includes:

[0050] 1) Determine whether the first display ratio and the second display ratio meet the viewing distance condition;

[0051] 2) when the first display ratio (the second display ratio) satisfies the viewing distance condition and the second display ratio (the first display ratio) does not satisfy the viewing distance condition, adjusting the first display ratio; or

[0052] When both the first display ratio and the second display ratio do not meet the viewing distance condition, adjusting the first display ratio and the second display ratio;

[0053] 3) According to the adjusted first display ratio, the first live broadcast picture is adjusted to the third live broadcast picture; according to the adjusted second display ratio, the second live broadcast picture is adjusted to the fourth live broadcast picture.

[0054] Specifically, Figure 5 As shown, assuming that the first display ratio between the display area occupied by the first anchor object in the first live screen and the display area of ​​the first live screen is 70%, the second display ratio between the display area occupied by the second anchor object in the second live screen and the display area of ​​the second live screen is 30%, and the viewing distance condition is that the display ratio between the display area of ​​the first / second anchor object in the live screen and the display area of ​​the live screen is 50%. Then the process of adjusting the first live screen and the second live screen includes:

[0055] S1, respectively comparing the first display ratio, the second display ratio and the display ratio of 50% in the viewing distance condition, and determining that both the first display ratio and the second display ratio do not meet the viewing distance condition;

[0056] S2, adjust the first display ratio from 70% to 50% and adjust the second display ratio from 30% to 50%;

[0057] S3, respectively determining the adjusted first live broadcast picture and second live broadcast picture as a third live broadcast picture and a fourth live broadcast picture.

[0058] It is easy to understand that the viewing distance condition in this embodiment can be a preset ratio or a preset ratio range of the anchor object in the live broadcast screen, such as 50% to 55%. At this time, it is only necessary to compare the first display ratio with the upper limit value 55% and the lower limit value 50% of the preset ratio range, respectively. When the first display ratio is greater than the upper limit value 55% or less than the lower limit value 50%, the first display ratio is adjusted so that the adjusted third display ratio is within the preset ratio range of 50% to 55%. Referring to the adjustment method of the first display ratio, the second display ratio is adjusted so that the adjusted fourth display ratio is within the preset ratio range, and the detailed process is not repeated here.

[0059] As another optional implementation, the above adjusting the first live broadcast screen to the third live broadcast screen and adjusting the second live broadcast screen to the fourth live broadcast screen according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, further includes:

[0060] Acquire first viewing angle information between the first anchor object and the first image acquisition device according to a display area occupied by the first anchor object in the first live broadcast screen;

[0061] Acquire second viewing angle information between the second anchor object and the second image acquisition device according to the display area occupied by the second anchor object in the second live broadcast screen;

[0062] The first perspective information and the second perspective information, the first live broadcast picture and the second live broadcast picture are input into the target picture generation network to generate a target viewing distance live broadcast picture, wherein the target viewing distance live broadcast picture includes a third live broadcast picture adjusted from the first live broadcast picture, and a fourth live broadcast picture adjusted from the second live broadcast picture, the first anchor object in the third live broadcast picture and the second anchor object in the fourth live broadcast picture are located in the same viewing distance plane, and the target picture generation network is a deep learning network generated after training with multiple groups of sample live broadcast pictures, and is used to adjust the viewing distance of the anchor object displayed in the input live broadcast picture.

[0063] Specifically, such as Figure 6 As shown, according to the first live broadcast screen and the second live broadcast screen, the first viewing angle information between the first anchor object and the first image acquisition device, and the second viewing angle information between the second anchor object and the second image acquisition device are respectively obtained, wherein the first viewing angle information includes but is not limited to the first viewing angle distance between the first anchor object and the first image acquisition device, the focal length of the first image acquisition device when shooting the first anchor object, etc., and the second first viewing angle information includes but is not limited to the second viewing angle distance between the second anchor object and the second image acquisition device, the focal length of the first image acquisition device when shooting the second anchor object, etc.

[0064] The first viewing angle information and the second viewing angle information, the first live broadcast screen and the second live broadcast screen are input into the target screen generation network. In the target screen generation network, the viewing distance of the first anchor object and the viewing distance of the second anchor object are adjusted according to the viewing distance condition, so that the first anchor object in the adjusted third live broadcast screen and the second anchor object in the adjusted fourth live broadcast screen are located in the same viewing distance plane.

[0065] Furthermore, in the target picture generation network, the third live picture and the fourth live picture are spliced ​​to obtain the following: Figure 6 The target line of sight live screen shown in .

[0066] It should be noted that in an actual microphone connection scenario, the number of host objects participating in the microphone connection is not limited, and can be two in the above embodiment, or more than two (for example, three), and the number of corresponding live screens is also three. The specific process of generating the target viewing distance live screen based on the three live screens can refer to the above Figure 4 That is, the viewing distance parameters of the three live screens are respectively input into the target screen generation network, the three viewing distance parameters are respectively adjusted according to the preset values, and then three viewing distance sub-screens are generated accordingly, and finally the target viewing distance live screen is generated in which the three anchor objects are basically located in the same viewing distance plane.

[0067] It can be understood that the target image generation network in the above embodiment is a deep learning network generated after training with multiple sets of sample live images, for example, multiple sets of first live images, multiple sets of second live images, multiple sets of different camera viewing angle distance parameters, etc., to obtain a generation network in a generative adversarial network (GAN) after training. Through the generation network, the viewing angle distance of the anchor object in each live image can be adjusted.

[0068] Through the above-mentioned embodiments provided by the present application, the target picture generation network is used to adjust the viewing angle distances of the anchor objects in the first live picture and the second live picture to the same viewing distance plane, and then the target viewing distance live picture is generated according to the adjusted third live picture and the fourth live picture, and the target viewing distance live picture is displayed on the client where the audience is located, so that the connected microphone anchors in the connected microphone live picture are basically in the same viewing distance plane, which improves the authenticity of the connected microphone live picture, improves the user experience of the live picture, and solves the problem of poor user experience caused by directly splicing the connected microphone live pictures.

[0069] In an optional embodiment, the first viewing angle information and the second viewing angle information, the first live picture and the second live picture are input into the target picture generation network to generate a target viewing distance live picture, including:

[0070] In the target picture generation network, extracting a first object feature of a first anchor object in a first live picture and a second object feature of a second anchor object in a second live picture;

[0071] Determine the target viewing distance according to the first viewing angle information and the second viewing angle information;

[0072] Based on the first object feature, the first live broadcast picture and the target viewing distance, a third live broadcast picture is generated, and based on the second object feature, the second live broadcast picture and the target viewing distance, a fourth live broadcast picture is generated;

[0073] The third live broadcast picture and the fourth live broadcast picture are merged to generate a target viewing distance live broadcast picture.

[0074] Specifically, Figure 7 As shown, in this embodiment, firstly, by extracting features from the first anchor object in the first live screen, first object features are obtained, wherein the first object features include but are not limited to the viewing angle distance between the first anchor object and the first image acquisition device, and may also be the internal parameters of the image acquisition device when shooting the first live screen (such as shooting focal length and pixels, etc.). Similarly, feature extraction is performed on the second anchor object in the live screen to obtain second object features, wherein the second object features include but are not limited to the viewing angle distance between the second anchor object and the second image acquisition device, and may also be the internal parameters of the image acquisition device when shooting the second live screen (such as shooting focal length and pixels, etc.). Secondly, according to the determined target viewing distance, the first viewing angle distance and the second viewing angle distance are adjusted respectively.

[0075] It should be noted that the first viewing angle distance is the estimated distance of the first anchor object from the camera calculated based on any two images of the first anchor object at different positions in the first live screen; similarly, the second viewing angle distance is the estimated distance of the second anchor object from the camera calculated based on any two images of the second anchor object at different positions in the second live screen. Among them, any two images of the first anchor object at different positions refer to two images captured by the camera when the first anchor object maintains the same posture and moves in the first live space.

[0076] As an optional implementation, the specific process of determining the target sight distance is as follows:

[0077] S1, obtaining a first viewing angle distance in the first viewing angle information and a second viewing angle distance in the second viewing angle information;

[0078] S2, according to the first viewing angle distance d 1 and the second viewing angle distance d 2 , calculate a compromise third-view distance d 3 , where d 1 >d 2 ;

[0079] S3, the third viewing angle distance d 3 Determine the target viewing distance, or float the third viewing angle distance downward by the fourth viewing angle distance d of the preset value 4 Determined as the target sight distance, where d 2 <d 4 ≤d 3 .

[0080] In a specific embodiment, assuming that the estimated first viewing angle distance is 10 meters, the estimated second viewing angle distance is 5 meters, and the calculated compromise distance is 7.5, then the distance 7.5 can be directly determined as the target viewing distance, or any value between greater than 5 and less than 7.5 can be determined as the target viewing distance. It can be seen that the target viewing distance is not a fixed distance value, but an arbitrary value in a specified value range.

[0081] Furthermore, according to the target viewing distance, the first viewing distance of the two anchor objects with a relatively large viewing distance is adjusted downward, that is, adjusted from 10 to 7.5; at the same time, the second viewing distance with a relatively small viewing distance is adjusted upward, that is, adjusted from 5 to 7.5. Then, in the target image generation network, the third live image is generated according to the adjusted first viewing distance and the first live image; the fourth live image is generated according to the adjusted second viewing distance and the second live image; finally, the third live image and the fourth live image are fused to obtain the target viewing distance live image.

[0082] Through the above-mentioned embodiments provided by the present application, the viewing angle distance of multiple anchor objects in the connected microphone scene is adjusted according to the target viewing distance; and the target viewing distance live screen is generated according to the multiple live sub-screens after the viewing distance adjustment, so that the connected microphone anchor objects are visually in the same live broadcast space. That is, the live screens of multiple live broadcast rooms are basically in the same live broadcast plane, which improves the viewing experience of the connected microphone live screen. In addition, since the target viewing distance is an arbitrary value in the specified numerical range, the viewing distance adjustment of the anchor object has high flexibility, thereby improving the applicability of the viewing distance adjustment method.

[0083] In an optional embodiment, the generating of the third live picture based on the first object feature, the first live picture and the target viewing distance, and the generating of the fourth live picture based on the second object feature, the second live picture and the target viewing distance include:

[0084] Based on the target viewing distance and the first object feature, adjusting the display size of the first image of the first anchor object displayed in the first live broadcast screen to generate a third live broadcast screen;

[0085] Based on the target viewing distance and the second object feature, the display size of the second image of the second anchor object displayed in the second live broadcast screen is adjusted to generate a fourth live broadcast screen.

[0086] Specifically, Figure 8 As shown, it is assumed that the first anchor object is displayed as a first image in the first live screen, and the second anchor object is displayed as a second image in the second live screen. The display width of the first image in the first live screen is w1, and the display height is h1; the display width of the second image in the second live screen is w2, and the display height is h2; it is assumed that according to the method for determining the target viewing distance in the above embodiment, the target viewing distance is obtained and the target width mapped to the viewing distance sub-screen is w, and the target display height is h.

[0087] The display width w1 of the first image is adjusted to the target display width w, and the display height h1 is adjusted to the target display height h, and then the following is generated according to the target display width w, the target display height h and the first object feature: Figure 8 Based on the same principle, the display width w2 of the second image is adjusted to the target display width w, and the display height h2 is adjusted to the target display height h, and then the target display width w, the target display height h and the second object feature are used to generate the following Figure 8 The fourth live screen is shown.

[0088] It can be understood that there is a mapping relationship between the above-mentioned target display width and target display height and the target viewing distance. In other words, when the target viewing distance is obtained by adopting the method for determining the target viewing distance in the above-mentioned embodiment, the target display width and target display height of the first image in the third live screen in this embodiment, as well as the target display width and target display height of the second image in the fourth live screen can be obtained.

[0089] Through the above-mentioned embodiments provided by the present application, the display size of the first image of the first anchor object in the first live broadcast screen and the display size of the second image of the second anchor object in the second live broadcast screen are respectively adjusted to the target display size, ensuring that the display sizes of the adjusted first image and the second image are the same. This ensures that after the third live broadcast screen and the fourth live broadcast screen with the same display size of the anchor image are merged, the first image and the second image in the target viewing distance live broadcast screen are in the same viewing distance plane, thereby achieving the technical effect of improving the experience of the live broadcast audience.

[0090] As an optional implementation scheme, the above-mentioned fusing the third live broadcast picture and the fourth live broadcast picture to generate the target viewing distance live broadcast picture includes:

[0091] Adjust the resolution of the third live screen to the target resolution, and adjust the resolution of the fourth live screen to the target resolution;

[0092] The third live broadcast picture at the target resolution and the fourth live broadcast picture at the target resolution are spliced ​​to generate a live broadcast picture at the target viewing distance.

[0093] In the process of generating the target viewing distance live picture based on the third live picture and the fourth live picture generated in the above embodiment, the following factors need to be considered: the shooting focal length and resolution of the third live picture, the shooting focal length and resolution of the fourth live picture, and the relationship between the two. Among them, the shooting focal length refers to the distance between the camera lens and the photosensitive element, and the resolution is the ability of the camera of the image acquisition device (such as a camera) to resolve the image, that is, the pixel value of the camera's image sensor; the shooting focal length and resolution are both key performance indicators of the camera.

[0094] In this embodiment, in order to ensure that the first image and the second image in the target viewing distance live broadcast picture are displayed on the same viewing distance plane, it is also necessary to ensure that the third live broadcast picture and the fourth live broadcast picture have the same resolution before generating the target viewing distance live broadcast picture, and then generate the target viewing distance live broadcast picture with the same resolution. The specific steps are as follows:

[0095] 1) determining a target resolution of the target viewing distance live picture according to the first resolution of the third live picture and the second resolution of the fourth live picture;

[0096] 2) respectively adjusting the first resolution of the third live picture to the target resolution, and adjusting the second resolution of the fourth live picture to the target resolution;

[0097] 3) The adjusted third live picture and the fourth live picture with the same target resolution are spliced ​​to generate a target viewing distance live picture.

[0098] It should be noted that in this embodiment, only the adjustment of the resolution of the third live broadcast screen and the fourth live broadcast screen is used as an example for explanation, but in actual application, other internal parameters of the camera can also be adjusted. For example, the shooting focal length of the cameras at both ends can be adjusted so that the first image in the third live broadcast screen and the second image in the fourth live broadcast screen after adjustment not only have the same display size in the target viewing distance live broadcast screen, but also can ensure the consistency of the first image and the second image in the target viewing distance live broadcast screen parameters such as brightness and clarity. Thereby improving the display effect of the live broadcast screen with microphones connected, improving the viewing experience of the audience, and improving the texture of the live broadcast screen with microphones connected.

[0099] As an optional implementation, before obtaining the first viewing angle information between the first anchor object and the first image acquisition device and obtaining the second viewing angle information between the second anchor object and the second image acquisition device, the method further includes:

[0100] Obtain multiple groups of sample live screens and the viewing angle information corresponding to each sample live screen in each group of sample live screens;

[0101] Inputting multiple groups of sample live pictures and corresponding viewing angle information into an initial picture adjustment network for training, wherein the initial picture adjustment network includes a picture generation network and a discrimination network, the picture generation network is used to generate a reference viewing distance live picture based on a group of sample live pictures, the reference viewing distance live picture includes a viewing distance sub-picture corresponding to each sample live picture in a group of sample live pictures, and the discrimination network is used to discriminate whether the viewing distance sub-picture in the reference viewing distance live picture meets the target viewing distance condition;

[0102] When the picture adjustment network reaches the convergence condition, the picture generation network that reaches the convergence condition is determined as the target picture generation network, wherein, in the reference view-distance live broadcast picture output by the picture generation network that reaches the convergence condition, the anchor objects in the view-distance sub-pictures corresponding to each sample live broadcast picture will be located in the same view-distance plane.

[0103] In this embodiment, the network used for picture adjustment is described by taking Generative Adversarial Networks (GAN) in a deep learning network as an example.

[0104] Specifically, Fig. 9 As shown, the picture adjustment network includes a generation network and a discrimination network. Then, the training process of the picture adjustment network based on the training samples composed of the first live picture and the second live picture is as follows:

[0105] S1, a first training sample p composed of multiple first live pictures 1 ,p 2 …p n and the first-view information corresponding to each sample live screen, and the second training sample q composed of multiple second live screens 1 ,q 2 …q n And the second perspective information corresponding to each sample live screen is input into the generation network;

[0106] S2, in the generation network, respectively adjusting the first viewing angle information in the first training sample and the second viewing angle information in the second training sample to obtain adjusted first viewing angle information and adjusted second viewing angle information;

[0107] S3, based on the adjusted first-person perspective information and the plurality of first live broadcast images p 1 ,p 2 …p n , generating a set of corresponding first reference viewing distance live pictures; according to the adjusted second viewing angle information and multiple second live pictures q 1 ,q 2 …q n , generate a set of corresponding second reference viewing distance live pictures; fuse the first reference viewing distance live pictures with the corresponding sample live pictures in the second reference viewing distance live pictures respectively to obtain a set of reference viewing distance live pictures Q 1 ,Q 2 …Q n ;

[0108] S4, reference the live view picture group Q 1 ,Q 2 …Q n Input the discriminant network, and compare the reference live view Q in the discriminant network 1 ,Q 2 …Q n Live screen with target sight distance Q 1 ',Q 2 '…Q n ', get the discrimination result, where the target visual distance live screen Q 1 ',Q 2 '…Q n 'It is a set of pre-set pictures;

[0109] Assume that the judgment result is T, T, T…F, where T represents the first live picture p after adjustment according to the viewing distance 1 And the adjusted second live screenq 1 The first reference visual distance live picture obtained by fusion Q 1 is true, F represents the first live picture p after adjustment according to the viewing distance n And the adjusted second live screenq n The first reference visual distance live picture obtained by fusion Q n is false.

[0110] First reference viewing distance live screen Q 1 True, indicating that the first live screen p is adjusted according to the viewing distance 1 The generated first viewing distance sub-image and the second live image q adjusted according to the viewing distance 1The generated second viewing distance sub-images all meet the preset target viewing distance condition, wherein the target viewing distance condition is that the first viewing angle distance of the first anchor object in the third live broadcast image and the second viewing angle distance of the second anchor object in the fourth live broadcast image are both equal to the target viewing distance.

[0111] S5, when the picture adjustment network meets the preset convergence condition, determining the picture when the convergence condition is met as the target picture generation network;

[0112] The preset convergence condition may include but is not limited to the case where m Fs appear consecutively in the discrimination result. This is because during the entire training process, the goal of the generating network G is to generate as real images as possible to deceive the discriminating network D. The goal of the discriminating network D is to distinguish the images generated by G from the real images as much as possible, that is, G and D constitute a dynamic "game process".

[0113] In an ideal state, G can generate realistic images to deceive the discriminant network D, and it is difficult for D to determine whether the images generated by G are real. That is, the training of the generative network can be completed when the discriminant network D continuously classifies m images output by the generative network G as fake.

[0114] It should be noted that the number of sample live screen groups input into the generated network depends on the number of live screens participating in the live broadcast. Therefore, the number of sample live screen groups in the embodiment of the present application is not limited and can be two groups or other values ​​more than two groups.

[0115] Through the above-mentioned embodiments provided by the present application, the initial picture adjustment network is trained using the generative adversarial network GAN to obtain a target picture generation network that meets the convergence conditions, so that the target picture generation network is used to adjust the first anchor object in the first live broadcast picture and the second anchor object in the second live broadcast picture to the same viewing distance plane, thereby improving the authenticity of the live broadcast picture with microphones connected, improving the user experience of the live broadcast picture, and solving the problem of poor user experience caused by directly splicing the live broadcast pictures with microphones connected.

[0116] As an optional implementation manner, the above-mentioned obtaining the first viewing angle information between the first anchor object and the first image acquisition device and obtaining the second viewing angle information between the second anchor object and the second image acquisition device include:

[0117] Acquire a first internal parameter of the first image acquisition device; display at least two reference images in a first terminal device for displaying a first live broadcast screen, and determine a first viewing distance parameter between the first anchor object and the first image acquisition device according to an observation distance between the first anchor object and the reference images;

[0118] Obtain a second internal parameter of a second image acquisition device; display at least two reference images in a second terminal device for displaying a second live broadcast screen, and determine a second viewing distance parameter between the second anchor object and the second image acquisition device according to an observation distance between the second anchor object and the reference image.

[0119] Specifically, Fig.10 As shown, the first viewing distance parameter between the first anchor object and the first image acquisition device is determined as an example for explanation. Assume that A is the first anchor object, p1 and p2 are images of the first anchor object at different positions in its live broadcast space, that is, p1 and p2 are reference images of the first anchor object, C1 and C2 are cameras that shoot images p1 and p2 respectively, line segment L is the polar line of the plane formed by image p1 and C1C2A, and line segment L' is the polar line of the plane formed by image p2 and C1C2A.

[0120] According to the principle of epipolar geometry, the relationship between the three-dimensional space coordinates captured by the camera and their corresponding pixel coordinates is defined, that is, the three-dimensional point A is transformed to the pixel coordinate x through the first projection matrix, or the point A is transformed to the pixel coordinate x' through the second projection matrix. The first observation distance from point A to the reference image p1 is calculated according to the first projection matrix, and the second observation distance from point A to the reference image p2 is calculated according to the second projection matrix; based on the first observation distance and the second observation distance, the first viewing angle distance between the first anchor object and the first image acquisition device can be obtained.

[0121] Based on the same principle, the three-dimensional point B where the second anchor object is located is transformed into pixel coordinates through the third projection matrix, or point B is transformed into corresponding pixel coordinates through the fourth projection matrix. The third observation distance from point B to the reference image p3 is calculated according to the third projection matrix, and the fourth observation distance from point B to the reference image p4 is calculated according to the fourth projection matrix; based on the third observation distance and the fourth observation distance, the second viewing angle distance between the second anchor object and the second image acquisition device can be obtained.

[0122] It should be noted that, in the process of determining the first viewing angle distance according to the epipolar geometry principle, when selecting the reference image of the first live broadcast picture displayed in the first terminal device, the number of reference images can be two or more; similarly, in the process of determining the second viewing angle distance, when selecting the reference image of the second live broadcast picture displayed in the second terminal device, the number of reference images can be two or more; that is, in this embodiment of the present invention, the number of reference images is not limited.

[0123] Through the above-mentioned embodiments provided by the present application, the first viewing distance parameter between the first anchor object and the first image acquisition device and the second viewing distance parameter between the second anchor object and the second image acquisition device are calculated respectively by using the principle of epipolar geometry. Then, the target viewing distance is calculated based on the determined first viewing distance parameter and second viewing distance parameter, which provides favorable conditions for realizing the alignment of the viewing angle distance of the connected microphone anchor object. The effectiveness of viewing distance adjustment is improved, the problem of poor user experience caused by directly splicing the connected microphone live broadcast screen is solved, and the audience's experience of the connected microphone live broadcast screen is improved.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0125] In this embodiment, a live screen generation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0126] Fig.11 is a structural block diagram of a live broadcast screen generating device according to an embodiment of the present invention, the device comprising:

[0127] An acquisition unit 1102 is configured to acquire a first live broadcast screen and a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object with a second image acquisition device;

[0128] The first processing unit 1104 is configured to adjust the first live broadcast screen to a third live broadcast screen, and adjust the second live broadcast screen to a fourth live broadcast screen, according to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition;

[0129] The push unit 1106 is used to push the third live broadcast picture and the fourth live broadcast picture to the viewer client for display.

[0130] Optionally, the processing unit 1104 further includes:

[0131] A first acquisition module, used to acquire a first display ratio between a display area occupied by a first anchor object in a first live broadcast screen and a display area of ​​the first live broadcast screen;

[0132] A second acquisition module, used to acquire a second display ratio between a display area occupied by a second anchor object in a second live broadcast screen and a display area of ​​the second live broadcast screen;

[0133] A first adjustment module is used to adjust the first live broadcast picture according to the display ratio indicated by the viewing distance condition to obtain a third live broadcast picture when the first display ratio does not meet the viewing distance condition;

[0134] The second adjustment module is used to adjust the second live broadcast picture according to the display ratio indicated by the viewing distance condition to obtain a fourth live broadcast picture when the second display ratio does not meet the viewing distance condition.

[0135] Optionally, the processing unit 1104 further includes:

[0136] A third acquisition module is used to acquire first viewing angle information between the first anchor object and the first image acquisition device according to the display area occupied by the first anchor object in the first live broadcast screen;

[0137] A fourth acquisition module, used to acquire second viewing angle information between the second anchor object and the second image acquisition device according to the display area occupied by the second anchor object in the second live broadcast screen;

[0138] The first processing module is used to input the first perspective information and the second perspective information, the first live broadcast picture and the second live broadcast picture into the target picture generation network to generate a target viewing distance live broadcast picture, wherein the target viewing distance live broadcast picture includes a third live broadcast picture adjusted from the first live broadcast picture, and a fourth live broadcast picture adjusted from the second live broadcast picture, the first anchor object in the third live broadcast picture and the second anchor object in the fourth live broadcast picture are located in the same viewing distance plane, and the target picture generation network is a deep learning network generated after training using multiple groups of sample live broadcast pictures, and is used to adjust the viewing distance of the anchor object displayed in the input live broadcast picture.

[0139] Optionally, the first viewing angle information and the second viewing angle information, the first live broadcast picture and the second live broadcast picture are input into a target picture generation network to generate a target viewing distance live broadcast picture, including:

[0140] An extraction module, used to extract, in a target picture generation network, a first object feature of a first anchor object in a first live picture and a second object feature of a second anchor object in a second live picture;

[0141] A first determination module, used to determine the target viewing distance according to the first viewing angle information and the second viewing angle information;

[0142] A second processing module, configured to generate a third live broadcast screen based on the first object feature, the first live broadcast screen, and the target viewing distance, and to generate a fourth live broadcast screen based on the second object feature, the second live broadcast screen, and the target viewing distance;

[0143] The third processing module is used to fuse the third live broadcast picture and the fourth live broadcast picture to generate a target viewing distance live broadcast picture.

[0144] Optionally, the generating of three live screens based on the first object feature, the first live screen and the target viewing distance, and the generating of a fourth live screen based on the second object feature, the second live screen and the target viewing distance include:

[0145] A first adjustment submodule, configured to adjust a display size of a first image of a first anchor object displayed in a first live broadcast screen based on a target viewing distance and a feature of the first object, so as to generate a third live broadcast screen;

[0146] The second adjustment submodule is used to adjust the display size of the second image of the second anchor object displayed in the second live broadcast screen based on the target viewing distance and the second object characteristics, so as to generate a fourth live broadcast screen.

[0147] Optionally, the fusing of the third live broadcast picture and the fourth live broadcast picture to generate the target viewing distance live broadcast picture includes:

[0148] A third adjustment submodule, configured to adjust the resolution of the third live picture to the target resolution, and to adjust the resolution of the fourth live picture to the target resolution;

[0149] The first splicing submodule is used to splice the first viewing distance sub-picture at the target resolution and the second viewing distance sub-picture at the target resolution to generate a target viewing distance live broadcast picture.

[0150] Optionally, before obtaining the first viewing angle information between the first anchor object and the first image acquisition device and the second viewing angle information between the second anchor object and the second image acquisition device, the method further includes:

[0151] A second acquisition unit is used to acquire multiple groups of sample live broadcast pictures and the viewing angle information corresponding to each sample live broadcast picture in each group of sample live broadcast pictures;

[0152] A second processing unit is used to input multiple groups of sample live pictures and corresponding viewing angle information into an initial picture adjustment network for training, wherein the initial picture adjustment network includes a picture generation network and a discrimination network, the picture generation network is used to generate a reference viewing distance live picture based on a group of sample live pictures, the reference viewing distance live picture includes a viewing distance sub-picture corresponding to each sample live picture in a group of sample live pictures, and the discrimination network is used to judge whether the viewing distance sub-picture included in the reference viewing distance live picture meets the target viewing distance condition;

[0153] A determination unit is used to determine the picture generation network that reaches the convergence condition as the target picture generation network when the picture adjustment network reaches the convergence condition, wherein in the reference viewing distance live picture output by the picture generation network when the convergence condition is reached, the anchor objects in the viewing distance sub-pictures corresponding to each sample live picture will be located in the same viewing distance plane.

[0154] Optionally, the step of obtaining the first viewing angle information between the first anchor object and the first image acquisition device and the second viewing angle information between the second anchor object and the second image acquisition device includes:

[0155] A fifth acquisition module is used to acquire a first internal parameter of the first image acquisition device; display at least two reference images in a first terminal device used to display the first live broadcast screen, and determine a first viewing distance parameter between the first anchor object and the first image acquisition device according to an observation distance between the first anchor object and the reference image;

[0156] The sixth acquisition module is used to obtain the second internal parameter of the second image acquisition device; display at least two reference images in the second terminal device used to display the second live broadcast picture, and determine the second viewing distance parameter between the second anchor object and the second image acquisition device according to the observation distance between the second anchor object and the reference image.

[0157] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0158] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0159] S1, obtaining first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object with a second image acquisition device;

[0160] S2, according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen, and adjusting the second live broadcast screen to a fourth live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition;

[0161] S3, push the third live broadcast picture and the fourth live broadcast picture to the viewer client for display.

[0162] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0163] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0164] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0165] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0166] S1, obtaining first viewing angle information of a first live broadcast screen and second viewing angle information of a second live broadcast screen, wherein the first live broadcast screen is a screen obtained by shooting a first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting a second anchor object with a second image acquisition device;

[0167] S2, according to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen, and adjusting the second live broadcast screen to a fourth live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the same viewing distance condition;

[0168] S3, push the third live broadcast picture and the fourth live broadcast picture to the viewer client for display.

[0169] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0170] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0171] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, 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. Thus, the present invention is not limited to any specific combination of hardware and software.

[0172] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for generating a live broadcast screen, It is characterized in that include: In the case where a first anchor object and a second anchor object are connected to each other, a first live broadcast screen and a second live broadcast screen are obtained, wherein the first live broadcast screen is a screen obtained by shooting the first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting the second anchor object with a second image acquisition device; According to the first live broadcast picture and the second live broadcast picture, respectively obtain first viewing angle information between the first anchor object and the first image acquisition device, and second viewing angle information between the second anchor object and the second image acquisition device; Determine a third viewing angle distance according to the first viewing angle distance in the first viewing angle information and the second viewing angle distance in the second viewing angle information, and use the third viewing angle distance to generate a viewing distance condition that matches the first live broadcast picture and the second live broadcast picture; According to the display area occupied by the first anchor object in the first live broadcast screen and the display area occupied by the second anchor object in the second live broadcast screen, the first live broadcast screen is adjusted to a third live broadcast screen, and the second live broadcast screen is adjusted to a fourth live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet the viewing distance condition; The third live broadcast picture and the fourth live broadcast picture are pushed to the viewer client for display.

2. The method according to claim 1, It is characterized in that According to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen and adjusting the second live broadcast screen to a fourth live broadcast screen, including: Obtaining a first display ratio between a display area occupied by the first anchor object in the first live broadcast screen and a display area of ​​the first live broadcast screen; Obtaining a second display ratio between a display area occupied by the second anchor object in the second live broadcast screen and a display area of ​​the second live broadcast screen; When the first display ratio does not meet the viewing distance condition, adjusting the first live broadcast picture according to the display ratio indicated by the viewing distance condition to obtain the third live broadcast picture; When the second display ratio does not meet the viewing distance condition, the second live broadcast picture is adjusted according to the display ratio indicated by the viewing distance condition to obtain the fourth live broadcast picture.

3. The method according to claim 1, It is characterized in that According to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, adjusting the first live broadcast screen to a third live broadcast screen and adjusting the second live broadcast screen to a fourth live broadcast screen, including: The first viewing angle information and the second viewing angle information, the first live broadcast picture and the second live broadcast picture are input into a target picture generation network to generate a target viewing distance live broadcast picture, wherein the target viewing distance live broadcast picture includes a third live broadcast picture adjusted from the first live broadcast picture, and a fourth live broadcast picture adjusted from the second live broadcast picture, the first anchor object in the third live broadcast picture and the second anchor object in the fourth live broadcast picture are located in the same viewing distance plane, and the target picture generation network is a deep learning network generated after training using multiple groups of sample live broadcast pictures, and is used to adjust the viewing distance of the anchor object displayed in the input live broadcast picture.

4. The method according to claim 3, It is characterized in that The step of inputting the first viewing angle information and the second viewing angle information, the first live picture and the second live picture into the target picture generation network to generate a target viewing distance live picture includes: In the target picture generation network, extracting a first object feature of the first anchor object in the first live picture and a second object feature of the second anchor object in the second live picture; Determining a target viewing distance according to the first viewing angle information and the second viewing angle information; generating the third live picture based on the first object feature, the first live picture and the target viewing distance, and generating the fourth live picture based on the second object feature, the second live picture and the target viewing distance; The third live broadcast picture and the fourth live broadcast picture are merged to generate the target viewing distance live broadcast picture.

5. The method according to claim 4, It is characterized in that The generating the third live picture based on the first object feature, the first live picture and the target viewing distance, and generating the fourth live picture based on the second object feature, the second live picture and the target viewing distance, comprises: Based on the target viewing distance and the first object feature, adjusting the display size of the first image of the first anchor object displayed in the first live broadcast screen to generate the third live broadcast screen; Based on the target viewing distance and the second object feature, the display size of the second image of the second anchor object displayed in the second live broadcast screen is adjusted to generate the fourth live broadcast screen.

6. The method according to claim 4, It is characterized in that The fusing the third live picture and the fourth live picture to generate the target viewing distance live picture includes: Adjusting the resolution of the third live picture to a target resolution, and adjusting the resolution of the fourth live picture to the target resolution; The third live picture at the target resolution and the fourth live picture at the target resolution are spliced ​​to generate the target viewing distance live picture.

7. The method according to claim 3, It is characterized in that Before acquiring the first viewing angle information between the first anchor object and the first image acquisition device and acquiring the second viewing angle information between the second anchor object and the second image acquisition device, the method further includes: Acquire the plurality of groups of sample live screens and the viewing angle information corresponding to each sample live screen in each group of the sample live screens; Inputting the multiple groups of sample live pictures and corresponding viewing angle information into an initial picture adjustment network for training, wherein the initial picture adjustment network includes a picture generation network and a discrimination network, the picture generation network is used to generate a reference viewing distance live picture based on a group of sample live pictures, the reference viewing distance live picture includes a viewing distance sub-picture corresponding to each sample live picture in the group of sample live pictures, and the discrimination network is used to discriminate whether the viewing distance sub-picture in the reference viewing distance live picture meets the target viewing distance condition; When the picture adjustment network reaches the convergence condition, the picture generation network when the convergence condition is reached is determined as the target picture generation network, wherein, in the reference view-distance live picture output by the picture generation network when the convergence condition is reached, the anchor objects in the view-distance sub-pictures corresponding to each sample live picture will be located in the same view-distance plane.

8. The method according to claim 4, It is characterized in that The obtaining of first viewing angle information between the first anchor object and the first image acquisition device and the obtaining of second viewing angle information between the second anchor object and the second image acquisition device include: Acquire a first internal parameter of the first image acquisition device; display at least two reference images in a first terminal device for displaying the first live broadcast screen, and determine a first viewing distance parameter between the first anchor object and the first image acquisition device according to an observation distance between the first anchor object and the reference images; Obtain a second internal parameter of the second image acquisition device; display the at least two reference images in a second terminal device used to display the second live broadcast screen, and determine a second viewing distance parameter between the second anchor object and the second image acquisition device based on an observation distance between the second anchor object and the reference image.

9. A live screen generating device, It is characterized in that include: A first acquisition unit is used to acquire a first live broadcast screen and a second live broadcast screen when a first anchor object and a second anchor object are connected to each other, wherein the first live broadcast screen is a screen obtained by shooting the first anchor object with a first image acquisition device, and the second live broadcast screen is a screen obtained by shooting the second anchor object with a second image acquisition device; a first processing unit, configured to adjust the first live broadcast screen to a third live broadcast screen, and adjust the second live broadcast screen to a fourth live broadcast screen, according to a display area occupied by the first anchor object in the first live broadcast screen and a display area occupied by the second anchor object in the second live broadcast screen, wherein the display area occupied by the first anchor object in the third live broadcast screen and the display area occupied by the second anchor object in the fourth live broadcast screen meet a viewing distance condition matching the first live broadcast screen and the second live broadcast screen; A push unit, used for pushing the third live broadcast picture and the fourth live broadcast picture to a viewer client for display; After acquiring the first live broadcast picture and the second live broadcast picture, the device is further used to respectively acquire first viewing angle information between the first anchor object and the first image acquisition device, and second viewing angle information between the second anchor object and the second image acquisition device according to the first live broadcast picture and the second live broadcast picture; A third viewing angle distance is determined according to the first viewing angle distance in the first viewing angle information and the second viewing angle distance in the second viewing angle information, and the third viewing angle distance is used to generate a viewing distance condition that matches the first live broadcast picture and the second live broadcast picture.

10. The device according to claim 9, It is characterized in that The first processing unit further includes: A first acquisition module, used to acquire a first display ratio between a display area occupied by the first anchor object in the first live broadcast screen and a display area of ​​the first live broadcast screen; A second acquisition module, used to acquire a second display ratio between a display area occupied by the second anchor object in the second live broadcast screen and a display area of ​​the second live broadcast screen; A first adjustment module, configured to adjust the first live broadcast picture according to the display ratio indicated by the viewing distance condition to obtain the third live broadcast picture when the first display ratio does not meet the viewing distance condition; The second adjustment module is used to adjust the second live broadcast picture according to the display ratio indicated by the viewing distance condition to obtain the fourth live broadcast picture when the second display ratio does not meet the viewing distance condition.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 8 when executed.

12. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.

Citation Information

Patent Citations

  • Split-screen live broadcast method, acquisition equipment, playing equipment and storage medium

    CN112672174A

  • Live streaming picture adjustment platform and method based on main object distribution

    CN113163219A