Online singing video display method and server
By determining the display area attributes and synthesizing the target image, the problem of poor display effect of existing online singing videos is solved, high-quality video synthesis and virtual background display are achieved during multi-person singing, and the user experience is improved.
Patent Information
- Application Number
- CN202110600999.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-05-31
AI Technical Summary
In the existing online singing technology, the video display effect is poor, resulting in poor user experience and the inability to achieve high-quality video synthesis when multiple people sing.
By determining the display area attributes according to the number of display objects, and using the timestamp of the target image and the video background image to be displayed to synthesize, a high-quality singing video image to be displayed is generated, and virtual background display is realized when multiple people are singing.
The display effect of online singing videos has been improved, and the user experience has been improved, making the video display when multiple people are singing more smooth and personalized.
Smart Images

Figure CN115484466B
Abstract
Description
Background Art
[0002] With the development of society and the advancement of science and technology, people's living standards have been greatly improved, and the pursuit of leisure and entertainment has gradually increased. Since online singing is simple and convenient, online singing has become an important part of leisure and entertainment projects.
[0003] In the prior art, online singing can provide real-time online singing services for one or more people, and multiple people can sing the same song at the same time. Regardless of whether it is one person singing online or multiple people singing the same song online at the same time, the video displayed in the terminal device is just a video window similar to a video call. Therefore, the online singing video display effect is poor. Summary of the invention
[0004] In an exemplary embodiment of the present disclosure, a method and a server for displaying an online singing video are provided to improve the display effect of the online singing video.
[0005] A first aspect of the present disclosure provides a method for displaying an online singing video, the method comprising:
[0006] Determine the attributes of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attributes of the display area, wherein the attributes of the display area include the size of the display area corresponding to each display object in the video background image to be displayed;
[0007] For any singing video image of any display object, a target image is obtained based on the singing video image, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object;
[0008] Based on the attributes of the display area and the video timestamps of each target image, the target images corresponding to each display object are synthesized with the video background image to be displayed to obtain the singing video image to be displayed.
[0009] In this embodiment, the properties of the display area are determined according to the number of display objects, and the target image is obtained according to the singing video image of the display object. The target image of each display object is synthesized with the video background image to be displayed by using the properties of the display area and the video timestamp corresponding to each target image, so as to obtain the singing video image to be displayed. Therefore, in this embodiment, the display objects are synthesized into a virtual background for display, which is not just a video call window, thereby improving the display effect of the singing video and enhancing the user experience.
[0010] In one embodiment, for any performance video image of any display object, obtaining a target image based on the performance video image includes:
[0011] According to the size of the display area corresponding to the display object in the video background image to be displayed, the singing video image is cropped with the display object in the singing video image as the center to obtain an intermediate singing video image;
[0012] Based on the intermediate singing video image, the target image is obtained.
[0013] This embodiment crops the singing video image of the display object into the size of the display area corresponding to the display object in the video background image to be displayed, and obtains the target image according to the size of the cropped singing video image, so that when the target image is synthesized with the video scene to be displayed, it can be equal to the size of the display area, thereby making the display effect of the synthesized singing video image to be displayed better.
[0014] In one embodiment, obtaining the target image based on the intermediate singing video image includes:
[0015] Performing image segmentation processing on the intermediate singing video image to obtain the target image; or,
[0016] The image format of the intermediate singing video image is converted by using a preset image format conversion algorithm, and each pixel in the converted intermediate singing video image is binarized to obtain the target image.
[0017] In this embodiment, the target image is obtained by performing image segmentation processing on the intermediate singing video image or performing binarization processing on the singing video image after image format conversion, so that the obtained target image can be better synthesized with the background image of the video to be displayed, thereby improving the synthesis efficiency.
[0018] In one embodiment, the attributes of the display area further include the position of the display area corresponding to each display object in the video background image to be displayed;
[0019] Based on the attributes of the display area and the video timestamps of each target image, the target images corresponding to each display object are synthesized with the video background image to be displayed to obtain the singing video image to be displayed, including:
[0020] Determine the display area of each display object in the video background image to be displayed by using the attribute of the display area;
[0021] For any first target pixel point in the target image of any display object, based on the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, the image to be displayed of the display object is obtained, wherein the second target pixel point corresponding to the first target pixel point is the pixel point in the display area corresponding to the intermediate singing video image and the display object having the same position as the first target pixel point;
[0022] The singing video image to be displayed is obtained by utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed and the image to be displayed of each display object, wherein the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object.
[0023] This embodiment determines the image to be displayed of each display object, and uses the position of the corresponding display area of each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object to obtain the singing video image to be displayed, thereby improving the quality of the singing video image to be displayed.
[0024] In one embodiment, obtaining the to-be-displayed image of the display object based on the pixel value of the first target pixel and the pixel value of the second target pixel corresponding to the first target pixel includes:
[0025] Obtaining a first intermediate pixel value by using the pixel value of the first target pixel point and the pixel value of a second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point; and,
[0026] Based on the pixel value of the first target pixel point, a second intermediate pixel value is obtained, and a third intermediate pixel value is obtained by using the second intermediate pixel value and the pixel value of a second target pixel point that is located in the display area corresponding to the display object and corresponds to the first target pixel point;
[0027] According to the first intermediate pixel value and the third intermediate pixel value, a target pixel value of the first target pixel point is obtained; and,
[0028] The pixel value of the first target pixel point is set as the target pixel value.
[0029] In this embodiment, a target image is obtained by combining the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, so that the determined target pixel value is more accurate.
[0030] In one embodiment, the method of obtaining the singing video image to be displayed by using the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object includes:
[0031] For each to-be-displayed image with the same video timestamp, the to-be-displayed image is set in the to-be-displayed video background image at the position of the display area corresponding to each display object to obtain the to-be-displayed singing video image; and / or,
[0032] For each image to be displayed with the same video timestamp, each image to be displayed is synthesized with the video background image to be displayed by utilizing the position of each display object in the corresponding display area in the video background image to be displayed, so as to obtain a plurality of singing video images to be displayed, wherein each singing video image to be displayed includes at least one image to be displayed, and the video timestamps of each image to be displayed in the same singing video image to be displayed are the same, and the video timestamps of each image to be displayed in different singing video images to be displayed are the same.
[0033] This embodiment synthesizes the images to be displayed with the same video timestamp into the same video background image to be displayed to obtain a video background image to be displayed, or synthesizes the images to be displayed with the same video timestamp with the video background image to be displayed respectively to obtain multiple singing video images to be displayed. In this way, the display object in the singing video to be displayed can be determined according to the user's selection, thereby improving the user experience.
[0034] In one embodiment, before determining the attribute of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attribute of the display area, the method further includes:
[0035] After receiving the user's instruction to set the video background, determine the video background;
[0036] If the type of the video background is an image, the video background is determined as the video background image to be displayed; or,
[0037] If the type of the video background is video, the video timestamp of each display object and the timestamp of the video background are used to determine the video background image to be displayed corresponding to each singing video image in each display object video, wherein the video timestamp is the same as the video timestamp of each target image.
[0038] In this embodiment, the user can set the video background to an image or a video, and the video background to be displayed is determined by the type of the video background set by the user. Therefore, the video background in this embodiment can be not only an image but also a video, so that the user can have more choices and the user's personalized configuration can be improved.
[0039] A second aspect of the present disclosure provides a server, including a memory and a processor, wherein:
[0040] The memory is configured to store a correspondence between a preset number of display objects and attributes of a display area;
[0041] The processor is configured to:
[0042] Determine the attributes of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attributes of the display area, wherein the attributes of the display area include the size of the display area corresponding to each display object in the video background image to be displayed;
[0043] For any singing video image of any display object, a target image is obtained based on the singing video image, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object;
[0044] Based on the attributes of the display area and the video timestamps of each target image, the target images corresponding to each display object are synthesized with the video background image to be displayed to obtain the singing video image to be displayed.
[0045] In one embodiment, the server executes any singing video image for any display object and obtains a target image based on the singing video image, and is specifically configured as follows:
[0046] According to the size of the display area corresponding to the display object in the video background image to be displayed, the singing video image is cropped with the display object in the singing video image as the center to obtain an intermediate singing video image;
[0047] Based on the intermediate singing video image, the target image is obtained.
[0048] In one embodiment, the processor, when executing the step of obtaining the target image based on the intermediate singing video image, is specifically configured as follows:
[0049] Performing image segmentation processing on the intermediate singing video image to obtain the target image; or,
[0050] The image format of the intermediate singing video image is converted by using a preset image format conversion algorithm, and each pixel in the converted intermediate singing video image is binarized to obtain the target image.
[0051] In one embodiment, the attributes of the display area further include the position of the display area corresponding to each display object in the video background image to be displayed;
[0052] The processor performs the synthesis of the target images corresponding to the display objects and the video background image to be displayed based on the attributes of the display area and the video timestamps of the target images to obtain the singing video image to be displayed, and is specifically configured as follows:
[0053] Determine the display area of each display object in the video background image to be displayed by using the attribute of the display area;
[0054] For any first target pixel point in the target image of any display object, based on the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, the image to be displayed of the display object is obtained, wherein the second target pixel point corresponding to the first target pixel point is the pixel point in the display area corresponding to the intermediate singing video image and the display object having the same position as the first target pixel point;
[0055] The singing video image to be displayed is obtained by utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed and the image to be displayed of each display object, wherein the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object.
[0056] In one embodiment, the processor is specifically configured to obtain the to-be-displayed image of the display object based on the pixel value of the first target pixel and the pixel value of the second target pixel corresponding to the first target pixel:
[0057] Obtaining a first intermediate pixel value by using the pixel value of the first target pixel point and the pixel value of a second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point; and,
[0058] Based on the pixel value of the first target pixel point, a second intermediate pixel value is obtained, and a third intermediate pixel value is obtained by using the second intermediate pixel value and the pixel value of a second target pixel point that is located in the display area corresponding to the display object and corresponds to the first target pixel point;
[0059] According to the first intermediate pixel value and the third intermediate pixel value, a target pixel value of the first target pixel point is obtained; and,
[0060] The pixel value of the first target pixel point is set as the target pixel value.
[0061] In one embodiment, the processor uses the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object to obtain the singing video image to be displayed, and is specifically configured as follows:
[0062] For each to-be-displayed image with the same video timestamp, the to-be-displayed image is set in the to-be-displayed video background image at the position of the display area corresponding to each display object to obtain the to-be-displayed singing video image; and / or,
[0063] For each image to be displayed with the same video timestamp, each image to be displayed is synthesized with the video background image to be displayed by utilizing the position of each display object in the corresponding display area in the video background image to be displayed, so as to obtain a plurality of singing video images to be displayed, wherein each singing video image to be displayed includes at least one image to be displayed, and the video timestamps of each image to be displayed in the same singing video image to be displayed are the same, and the video timestamps of each image to be displayed in different singing video images to be displayed are the same.
[0064] In one embodiment, the processor is further configured to:
[0065] Before determining the attributes of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attributes of the display area, after receiving the user's instruction to set the video background, determining the video background;
[0066] If the type of the video background is an image, the video background is determined as the video background image to be displayed; or,
[0067] If the type of the video background is video, the video timestamp of each display object and the timestamp of the video background are used to determine the video background image to be displayed corresponding to each singing video image in each display object video, wherein the video timestamp is the same as the video timestamp corresponding to each target image.
[0068] According to a third aspect provided by an embodiment of the present disclosure, a computer storage medium is provided, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0070] Figure 1 A schematic diagram of an applicable scenario in an embodiment of the present disclosure;
[0071] Figure 2 This is one of the flow charts of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0072] Figure 3 The second flowchart of the method for displaying an online singing video according to an embodiment of the present disclosure;
[0073] Figure 4 A schematic diagram of determining an intermediate singing video image in a method for displaying an online singing video according to an embodiment of the present disclosure;
[0074] Figure 5A-5B A schematic diagram of a target image in a method for displaying an online singing video according to an embodiment of the present disclosure;
[0075] Figure 6 The third flowchart of the method for displaying an online singing video according to an embodiment of the present disclosure;
[0076] Figure 7A-7B This is a schematic diagram of an interface of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0077] Figure 8 A schematic diagram of a terminal interface of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0078] Figures 9A-9C A schematic diagram of a process for determining a singing video image to be displayed in a method for displaying an online singing video according to an embodiment of the present disclosure;
[0079] Figures 10A-10C A schematic diagram of a process for determining a singing audio to be played in a method for displaying an online singing video according to an embodiment of the present disclosure;
[0080] Fig.11 FIG4 is a flow chart of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0081] Fig.12 FIG5 is a flowchart of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0082] Fig.13 FIG6 is a sixth flow chart of a method for displaying an online singing video according to an embodiment of the present disclosure;
[0083] Fig.14 A probability triggering device for a random event according to an embodiment of the present disclosure;
[0084] Fig.15 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0086] In the embodiments of the present disclosure, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0087] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more.
[0088] In the prior art, online singing can provide real-time online singing services for one or more people, and multiple people can sing the same song at the same time. Regardless of whether it is one person singing online or multiple people singing the same song online at the same time, the video displayed in the terminal device is just a video window similar to a video call. Therefore, the display effect of the online singing video is poor and the user experience is poor.
[0089] Therefore, the present disclosure provides a method for displaying an online singing video, by determining the attributes of the display area according to the number of display objects, and obtaining a target image according to the singing video image of the display object, and using the attributes of the display area and the video timestamp corresponding to the target image, the target image of each display object is synthesized with the background image of the video to be displayed to obtain the singing video image to be displayed. Therefore, in this embodiment, the display objects are synthesized into a virtual background for display, not just a video call window, thereby improving the display effect of the singing video and enhancing the user experience. Below, the scheme of the present disclosure is described in detail in conjunction with the accompanying drawings.
[0090] like Figure 1 As shown, an application scenario of a method for displaying an online singing video includes a terminal device 110 and a server 120. Figure 1 In the example, three terminal devices 110 are used, but the number of terminal devices 110 is not limited. The terminal devices 110 may be mobile phones, televisions, tablet computers, personal computers, etc. The server 120 may be implemented by a single server or multiple servers. The server 120 may be implemented by a physical server or a virtual server.
[0091] In a possible application scenario, the terminal device 110 sends the recorded video of the display object to the server 120 in real time. The server 120 uses the correspondence between the preset number of display objects and the attributes of the display area to determine the attributes of the display area corresponding to the total number of current display objects in each video. The attributes of the display area include the size of the display area corresponding to each display object in the background image of the video to be displayed. Then, the server 120 obtains a target image based on any singing video image of any display object, wherein the foreground image contained in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object. Finally, the server 120 synthesizes the target images corresponding to each display object with the background image of the video to be displayed based on the attributes of the display area and the video timestamps of each target image, obtains the singing video image to be displayed, and sends the singing video image to be displayed to the terminal device 110 for display.
[0092] Because before performing online singing, it is necessary to first create an online singing room, in one embodiment, Figure 2 As shown, it is a flowchart for creating an online concert room, which may include the following steps:
[0093] Step 201: after receiving the room creation instruction sent by the user, create an online concert room;
[0094] Step 202: after receiving the singing mode setting instruction sent by the user, determining the singing mode of the online singing room, the singing mode includes solo, duet and chorus;
[0095] Step 203: after receiving the user's instruction to set the video background, determine the video background;
[0096] Among them, if the type of the video background is an image, the video background is determined as the video background image to be displayed; or, if the type of the video background is a video, the video timestamp of each display object and the timestamp of the video background are used to respectively determine the video background image to be displayed corresponding to each singing video image in each display object video.
[0097] For example, if the type of the video background is video, the display objects include display object 1 and display object 2, the video stream of display object 1 includes 5 frames of singing video images, the video stream of display object 2 also includes 5 frames of singing video images, and the video corresponding to the video background includes 20 frames of video images. Using the video timestamps of each display object and the timestamps of the video corresponding to the video background, three images corresponding to each timestamp are determined from the singing video image in display object 1, the singing video image in display object 2, and the video corresponding to the video background. For example, the three images corresponding to timestamp 1 are: the first frame of the singing video image of display object 1, the first frame of the singing video image of display object 2, and the first frame of the video corresponding to the video background. At this time, the first frame of the video corresponding to the video background is the video background image to be displayed, which corresponds to the image of the display object 1 in the corresponding first frame of the singing video image and the image of the display object 2 in the corresponding first frame of the singing video image.
[0098] It should be noted that when the type of the video background is video, even if the content of the video background image to be displayed corresponding to each frame of the singing video image is different, since the sizes of the video background images to be displayed are the same, the attributes of the display area corresponding to each display object in each video background image to be displayed are the same. Therefore, the attributes of the display area only need to be determined, and there is no need to determine them repeatedly.
[0099] Step 204: after receiving the display object setting instruction sent by the user, determine the display object.
[0100] After the display object is determined, the room creation is completed. During the singing process, the user who created the room can manage the singing songs, singing mode, video background, etc. Before each song starts, the user who created the room can invite other users in the room to sing as display objects or other users in the room can apply to the user who created the room to sing as display objects. Finally, the user who created the room applies to determine the display object.
[0101] like Figure 3 FIG. 1 is a flow chart of a method for displaying an online singing video disclosed in the present invention, which may include the following steps:
[0102] Step 301: using a preset correspondence between the number of display objects and the attributes of the display area, determining the attributes of the display area corresponding to the number of current display objects, wherein the attributes of the display area include the size of the display area corresponding to each display object in the video background image to be displayed;
[0103] Step 302: for any performance video image of any display object, a target image is obtained based on the performance video image, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object;
[0104] In one embodiment, step 302 can be specifically implemented as follows: according to the size of the display area corresponding to the display object in the video background image to be displayed, the singing video image is cropped with the display object in the singing video image as the center to obtain an intermediate singing video image; based on the intermediate singing video image, the target image is obtained.
[0105] For example, Figure 4 As shown, for example, if the size of the display area corresponding to the display object 1 in the video background image to be displayed is the gray area a in the video background image to be displayed, the singing video image can be cropped according to the size of the gray area a and with the display object in the singing video image as the center to obtain the middle singing video image, that is, Figure 4 The area b surrounded by the dotted line in the singing video image, in this embodiment, the size of area b is the same as that of area a.
[0106] In one embodiment, the target image can be obtained by the following two methods:
[0107] Method 1: Perform image segmentation processing on the intermediate singing video image to obtain the target image.
[0108] The middle singing video image is segmented to obtain two images, one is a portrait image and the other is an alpha image. The target image in this embodiment is the alpha image. Figure 5A The two images in are portraits corresponding to display object 1 and display object 2 respectively. Figure 5B The two images in are the alpha images corresponding to display object 1 and display object 2 respectively.
[0109] The pixel value of each pixel in the alpha map ranges from 0 to 1. The pixel with a pixel value of 1 is the foreground pixel, the pixel with a pixel value of 0 is the background pixel, and the pixel value between 0 and 1 indicates the ratio of the pixel to the foreground color.
[0110] It should be noted that the image segmentation algorithm used in this embodiment is not limited in the present disclosure, as long as the target image can be obtained.
[0111] Method 2: Use a preset image format conversion algorithm to convert the image format of the intermediate singing video image, and perform binarization processing on each pixel in the converted intermediate singing video image to obtain the target image.
[0112] Among them, the specific process of binarization processing includes: for any pixel point in the converted intermediate singing video image, if the pixel value of the pixel point is not less than a preset threshold, the pixel value of the pixel point is set to a first specified pixel value; and if the pixel value of the pixel point is less than the preset threshold, the pixel value of the pixel point is set to a second specified pixel value.
[0113] For example, the preset threshold is A. For any pixel in the converted singing video image, if the pixel value of the pixel is not less than A, the pixel value of the pixel is set to 1. If the pixel value of the pixel is less than A, the pixel value of the pixel is set to 0, and the resulting image is Figure 5B The alpha image corresponding to each display object in .
[0114] The image format conversion in this embodiment is to convert an image in RGB format into an image in HSV format. The specific conversion method is not limited in this embodiment.
[0115] Step 303: Based on the attributes of the display area and the video timestamps of the target images, the target images corresponding to the display objects are synthesized with the video background image to be displayed to obtain the singing video image to be displayed.
[0116] In one embodiment, the attributes of the display area also include the position of the display area corresponding to each display object in the video background image to be displayed, such as Figure 6 As shown, a flow chart of a specific method for determining a singing video image to be displayed may include the following steps:
[0117] Step 601: using the attributes of the display area, determining the display area of each display object in the background image of the video to be displayed;
[0118] Among them, since the attributes of the display area include the position and size of the display area of each display object in the video background image to be displayed, the display area of each display object in the video background image to be displayed can be determined by the attributes of the display area.
[0119] Step 602: For any first target pixel point in the target image of any display object, based on the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, the image to be displayed of the display object is obtained, wherein the second target pixel point corresponding to the first target pixel point is the pixel point in the display area corresponding to the intermediate singing video image and the display object having the same position as the first target pixel point;
[0120] In one embodiment, the image to be displayed may be determined in the following manner:
[0121] A first intermediate pixel value is obtained by using the pixel value of the first target pixel point and the pixel value of the second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point; and, based on the pixel value of the first target pixel point, a second intermediate pixel value is obtained, and a third intermediate pixel value is obtained by using the second intermediate pixel value and the pixel value of the second target pixel point located in the display area corresponding to the display object and corresponding to the first target pixel point; a target pixel value of the first target pixel point is obtained according to the first intermediate pixel value and the third intermediate pixel value; and the pixel value of the first target pixel point is set to the target pixel value.
[0122] Specifically, the pixel value of the first target pixel point and the pixel value of the second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point may be multiplied to obtain the first intermediate pixel value; and the preset threshold value may be subtracted from the pixel value of the first target pixel point to obtain the second intermediate pixel value. The second intermediate pixel value and the pixel value of the second target pixel point located in the display area corresponding to the display object and corresponding to the first target pixel point may be multiplied to obtain the third intermediate pixel value; and the first intermediate pixel value and the third intermediate pixel value may be added to obtain the target pixel value of the first target pixel point.
[0123] The target pixel value of the first target pixel point can be determined by formula (1):
[0124] C ij =B ij *(1-M ij )+A ij *M ij ……(1);
[0125] Among them, C ij is the target pixel value, B ij is the pixel value of the second target pixel point located in the display area corresponding to the display object and corresponding to the first target pixel point, M ij is the pixel value of the first target pixel, A ij is the pixel value of the second target pixel point located in the middle singing video image and corresponding to the pixel value of the first target pixel point, wherein i, j represent the positions of the pixels, wherein i∈[0,1] and j∈[0,1].
[0126] Step 603: Utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object, the singing video image to be displayed is obtained, wherein the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object.
[0127] In one embodiment, the performance video image to be displayed can be obtained in the following two ways:
[0128] Method 1: for each to-be-displayed image with the same video timestamp, the to-be-displayed image is set in the to-be-displayed video background image at the position of the display area corresponding to each display object, to obtain the to-be-displayed singing video image;
[0129] Among them, the first way is to synthesize all display objects into a video background image to be displayed.
[0130] For example, Fig. 7A As shown, the method in method 1 will Figure 5B The target images in are synthesized with the background of the video to be displayed to obtain a singing video image to be displayed, that is, Fig. 7A The singing video image to be displayed.
[0131] After obtaining the singing video image to be displayed, the lyrics corresponding to the singing video image to be displayed can be determined by using the video timestamp and the lyrics timestamp, and displayed at a specified position in the singing video image to be displayed. Figure 7B The interface schematic diagram shown includes a main interface and a lyrics bar, wherein the main interface displays the video image of the performance to be displayed, and the lyrics bar displays the lyrics corresponding to the video image of the performance to be displayed. The interface may also include a status bar. The status bar may display information such as the current song, and the specific implementation method is not limited in this disclosure.
[0132] Method 2: For each image to be displayed with the same video timestamp, each image to be displayed is synthesized with the video background image to be displayed respectively by utilizing the position of each display object in the corresponding display area in the video background image to be displayed, so as to obtain a plurality of singing video images to be displayed, wherein each singing video image to be displayed includes at least one image to be displayed, and the video timestamps of each image to be displayed in the same singing video image to be displayed are the same, and the video timestamps of each image to be displayed in different singing video images to be displayed are the same.
[0133] Among them, the performance video to be displayed obtained by the method in the second method only includes part of the display objects, such as Figure 8 As shown, each user can set the display object (or objects) included in the singing video image to be displayed in the terminal device in advance. The final synthesis effect and Fig. 7A The effect is the same as in , except that the displayed objects and the number of displayed objects may be different.
[0134] It should be noted that, in this embodiment, the number of video streams of the synthesized performance video to be displayed may include single-stream video, dual-stream video, and multi-stream video.
[0135] (1) Single-stream video: can be obtained through method 1 in this embodiment. Fig. 9A As shown in the figure, the singing videos (including singing video images) and video background pictures or videos (MV (Music Video, music short film) or other videos) sent by the terminal devices of each display object are combined into one video and sent to the terminal devices corresponding to each display object. The advantage of this method is that it requires less network bandwidth. However, in this method, users cannot independently select the video stream to be played.
[0136] (2) Dual-stream video: It can also be obtained by the method 1 in this embodiment, such as Fig. 9B As shown, dual-stream video is to output the MV video as a separate video stream, and then combine the video of the display object and the scene picture or video (excluding the MV video) into one video and send it to the terminal device of each display object. The advantage of this method is that it requires less network bandwidth, and the user can choose whether to play the MV video. The disadvantage is that the user cannot choose the display object contained in the video to be played.
[0137] (3) Multi-stream video: can be obtained through the method 2 in this embodiment. Fig. 9C As shown, the multi-stream video can synthesize the singing video corresponding to the display object selected by each user with the scene picture or video (including MV video) to obtain multiple videos. Then the obtained videos are sent to the terminal devices of the corresponding users respectively.
[0138] Among them, the synthesis method of multi-stream video is the same as that of single-stream video, except that single-stream video is to sing each display object together in a video background to obtain a video, while multi-stream video is to obtain multiple videos, each of which contains at least one display object. For example, user 1 selects user 1 and user 2 as the display objects of the singing video to be displayed corresponding to him, then the videos corresponding to user 1 and user 2 can be synthesized with the scene picture or video to obtain the singing video to be displayed, and the singing video to be displayed is sent to the terminal device of user 2. If the user only wants to see his own singing video to be displayed, he can select his own singing video to be displayed, and then he can see that the synthesized video only contains himself. The advantage of this method is that it supports users to independently select the video stream to be played, and the disadvantage is that it requires a large network bandwidth and high performance requirements for the user terminal.
[0139] In one embodiment, while executing step 301, the singing audio, singing audio timestamp, background audio and background audio timestamp of each display object are used to obtain the singing audio to be played.
[0140] In one embodiment, the to-be-played singing audio may be specifically determined in the following manner:
[0141] Method 1: using the singing audio timestamp and background audio timestamp of each display object, synthesizing the audio signals with the same timestamp in the singing audio and background audio of each display object to obtain the singing audio to be played;
[0142] The solution in method 1 is to synthesize the singing audio and background audio of each display object into a singing audio to be played.
[0143] Method 2: Using the singing audio timestamp and background audio timestamp of each display object, the audio signals with the same timestamp in the singing audio and background audio of each display object are synthesized to obtain multiple singing audios to be played, wherein the singing audios to be played include the audio of at least one display object.
[0144] The singing audio to be played in the second method includes the audio of at least one display object, which can be set by the user.
[0145] The number of tracks in the to-be-played singing audio in this embodiment may include: single track, dual track, or multiple tracks.
[0146] (1) Single audio: This can be determined by the method described above. Fig. 10A As shown, a single audio track is a single audio track that combines the singing audio of each display object and the background video (song accompaniment and / or song original sound) into one audio track, and then sends it to the terminal device corresponding to each display object.
[0147] (2) Dual audio tracks: This can also be determined by the method described above. Fig. 10B As shown, the dual audio track is to output the original sound of the song as a separate audio track, and to synthesize the singing audio of each display object and the background video (song accompaniment) into one audio track for output.
[0148] (3) Multiple audio tracks: This can be determined by method 2. Fig. 10C As shown, the multi-audio tracks are synthesized by respectively synthesizing the audio of the display object selected by each user (the same as the display object in the singing video image to be displayed corresponding to the user) with the background audio (song accompaniment and / or song original sound) to obtain multiple singing audios to be played.
[0149] It should be noted that the user can freely set whether to play the MV video and whether to play the original sound in the user terminal device. Among them, in this solution, two audio tracks can be played at the same time, but only one of the two video streams can be played. That is, the original sound of the song can be played at the same time as the fused audio to be played, but if the MV video is played, the singing video to be displayed cannot be played.
[0150] After obtaining the singing video image to be displayed and the singing audio to be played, Fig.11 As shown, the singing video image to be displayed and the singing audio to be played are sent to the user terminal device, so that the user terminal device uses the audio timestamp and the video timestamp to play the singing audio to be played through the speaker and display the singing video image to be displayed through the display screen respectively.
[0151] The following is a detailed description of the overall public process using dual video and dual audio tracks as an example. Fig.12 As shown, the following steps may be included:
[0152] The user terminal device obtains the singing audio through the microphone and the singing video through the camera, and sends the singing audio, audio timestamp, singing video, and video timestamp to the server. The server uses the video timestamp to synthesize each singing video image with the video background image to be displayed to obtain the singing video to be displayed. At the same time, the server uses the audio timestamp to synthesize each singing audio with the background audio to obtain the singing audio to be played. Then the original sound of the song, the original sound timestamp of the song, the MV video, the MV video timestamp, the lyrics, the lyrics timestamp, the singing video to be displayed, the video timestamp, the singing audio to be played, and the audio timestamp are sent to the terminal device. When the user chooses to play the MV video, the terminal device displays the MV video and the corresponding lyrics on the screen. When the user chooses not to play the MV video, the terminal device displays the singing video to be played and the corresponding lyrics on the screen. And when the user chooses to play the original sound of the song, the terminal device plays the original sound of the song and the singing audio to be played. When the user chooses not to play the original sound of the song, the terminal device plays the singing audio to be played.
[0153] In order to further understand the technical solution of the method for displaying online singing videos in the present disclosure, Fig.13 A detailed description may include the following steps:
[0154] Step 1301: using a preset correspondence between the number of display objects and the attributes of the display area, determining the attributes of the display area corresponding to the number of current display objects, wherein the attributes of the display area include the position and size of the display area corresponding to each display object in the background image of the video to be displayed;
[0155] Step 1302: for any singing video image of any display object, according to the size of the display area corresponding to the display object in the video background image to be displayed, the singing video image is cropped with the display object in the singing video image as the center to obtain an intermediate singing video image;
[0156] Step 1303: performing image segmentation processing on the intermediate singing video image to obtain the target image;
[0157] Step 1304: using the attributes of the display area, determining the display area of each display object in the background image of the video to be displayed;
[0158] Step 1305: For any first target pixel point in the target image of any display object, based on the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, obtain the image to be displayed of the display object, wherein the second target pixel point corresponding to the first target pixel point is the pixel point in the display area corresponding to the intermediate singing video image and the display object having the same position as the first target pixel point;
[0159] Step 1306: Utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object, the singing video image to be displayed is obtained, wherein the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object.
[0160] Fig.14 The present invention is a schematic diagram of the structure of a display device for online singing videos according to an embodiment of the present invention.
[0161] like Fig.14 As shown, the display device 500 of the online singing video of the present disclosure may include a display attribute determination module 1410 , a target image determination module 1420 and a synthesis module 1430 .
[0162] The display attribute determination module 1410 is used to determine the attribute of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attribute of the display area, wherein the attribute of the display area includes the size of the display area corresponding to each display object in the video background image to be displayed;
[0163] A target image determination module 1420 is used to obtain a target image based on any singing video image of any display object, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object;
[0164] The synthesis module 1430 is used to synthesize the target images corresponding to each display object with the video background image to be displayed based on the attributes of the display area and the video timestamps of each target image, so as to obtain the singing video image to be displayed.
[0165] In one embodiment, the target image determination module 1420 specifically includes:
[0166] The cropping unit 1421 is used to crop the singing video image according to the size of the display area corresponding to the display object in the video background image to be displayed, with the display object in the singing video image as the center, to obtain an intermediate singing video image;
[0167] The target image determination unit 1422 is used to obtain the target image based on the intermediate singing video image.
[0168] In one embodiment, the target image determination unit 1422 is specifically configured to:
[0169] Performing image segmentation processing on the intermediate singing video image to obtain the target image; or,
[0170] The image format of the intermediate singing video image is converted by using a preset image format conversion algorithm, and each pixel in the converted intermediate singing video image is binarized to obtain the target image.
[0171] In one embodiment, the attributes of the display area further include the position of each display object in the display area corresponding to the background image of the video to be displayed; the synthesis module 1430 specifically includes:
[0172] A display area determination unit 1431 is used to determine the display area of each display object in the video background image to be displayed by using the attribute of the display area;
[0173] The to-be-displayed image determination unit 1432 is specifically used to obtain, for any first target pixel point in the target image of any display object, the to-be-displayed image of the display object based on the pixel value of the first target pixel point and the pixel value of the second target pixel point corresponding to the first target pixel point, wherein the second target pixel point corresponding to the first target pixel point is the pixel point in the display area corresponding to the intermediate singing video image and the display object having the same position as the first target pixel point;
[0174] The singing video image determination unit 1433 is used to obtain the singing video image to be displayed by utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed and the image to be displayed of each display object, wherein the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object.
[0175] In one embodiment, the to-be-displayed image determining unit 1432 is specifically configured to:
[0176] Obtaining a first intermediate pixel value by using the pixel value of the first target pixel point and the pixel value of a second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point; and,
[0177] Based on the pixel value of the first target pixel point, a second intermediate pixel value is obtained, and a third intermediate pixel value is obtained by using the second intermediate pixel value and the pixel value of a second target pixel point that is located in the display area corresponding to the display object and corresponds to the first target pixel point;
[0178] According to the first intermediate pixel value and the third intermediate pixel value, a target pixel value of the first target pixel point is obtained; and,
[0179] The pixel value of the first target pixel point is set as the target pixel value.
[0180] In one embodiment, the to-be-displayed concert video image determination unit 1433 is specifically used to:
[0181] For each to-be-displayed image with the same video timestamp, the to-be-displayed image is set in the to-be-displayed video background image at the position of the display area corresponding to each display object to obtain the to-be-displayed singing video image; and / or,
[0182] For each image to be displayed with the same video timestamp, each image to be displayed is synthesized with the video background image to be displayed by utilizing the position of each display object in the corresponding display area in the video background image to be displayed, so as to obtain a plurality of singing video images to be displayed, wherein each singing video image to be displayed includes at least one image to be displayed, and the video timestamps of each image to be displayed in the same singing video image to be displayed are the same, and the video timestamps of each image to be displayed in different singing video images to be displayed are the same.
[0183] In one embodiment, the apparatus further comprises:
[0184] The video background determination module 1440 is used to determine the video background after receiving a user's instruction to set the video background before determining the attributes of the display area corresponding to the number of current display objects using the preset correspondence between the number of display objects and the attributes of the display area;
[0185] A first to-be-displayed video background image module 1450, configured to determine the video background as the to-be-displayed video background image if the type of the video background is an image;
[0186] The second video background image module 1460 to be displayed is used to determine the video background image to be displayed corresponding to each singing video image in each display object video by using the video timestamp of each display object and the timestamp of the video background, if the type of the video background is video, wherein the video timestamp is the same as the video timestamp of each target image.
[0187] After introducing a method for displaying an online concert video according to an exemplary embodiment of the present disclosure, next, a server according to another exemplary embodiment of the present disclosure is introduced.
[0188] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0189] In some possible implementations, the server according to the present disclosure may include at least one processor and at least one computer storage medium. The computer storage medium stores program code, and when the program code is executed by the processor, the processor executes the steps of the method for displaying an online singing video according to various exemplary implementations of the present disclosure described above in this specification. For example, the processor may execute the following steps: Figure 3 Steps 301-303 shown in .
[0190] Refer to the following Fig.15 The server 1500 according to this embodiment of the present disclosure is described. Fig.15 The server 1500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0191] like Fig.15 As shown, the server 1500 is in the form of a general server. The components of the server 1500 may include but are not limited to: the at least one processor 1501, the at least one computer storage medium 1502, and a bus 1503 connecting different system components (including the computer storage medium 1502 and the processor 1501).
[0192] Bus 1503 represents one or more of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0193] Computer storage media 1502 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM) 1521 and / or cache storage media 1522 , and may further include read-only computer storage media (ROM) 1523 .
[0194] The computer storage medium 1502 may also include a program / utility 1525 having a set (at least one) of program modules 1524, such program modules 1524 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0195] The server 1500 may also communicate with one or more external devices 1504 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable users to interact with the server 1500, and / or communicate with any device that enables the server 1500 to communicate with one or more other servers (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1505. In addition, the server 1500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1506. As shown, the network adapter 1506 communicates with other modules for the server 1500 via a bus 1503. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 1500, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0196] In some possible implementations, various aspects of the method for displaying an online singing video provided by the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method for displaying an online singing video according to various exemplary embodiments of the present disclosure described above in this specification.
[0197] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access computer storage medium (RAM), a read-only computer storage medium (ROM), an erasable programmable read-only computer storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only computer storage medium (CD-ROM), an optical computer storage medium, a magnetic computer storage medium, or any suitable combination thereof.
[0198] The program product of the online concert video display of the embodiment of the present disclosure can adopt a portable compact disk read-only computer storage medium (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present disclosure is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.
[0199] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0200] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0201] Program code for performing the disclosed operations may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user electronic device, partially on the user device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In the case of a remote electronic device, the remote electronic device may be connected to the user electronic device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external electronic device (e.g., via the Internet using an Internet service provider).
[0202] It should be noted that although several modules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.
[0203] In addition, although the operations of the disclosed method are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0204] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk computer storage media, CD-ROM, optical computer storage media, etc.) containing computer-usable program codes.
[0205] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0206] These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable computer storage medium produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0207] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0208] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for displaying an online singing video, characterized in that: The method comprises: After receiving the user's instruction to set the video background, determine the video background; If the type of the video background is an image, the video background is determined as the video background image to be displayed; or if the type of the video background is a video, the video timestamps of each display object and the timestamp of the video background are used to respectively determine the video background images to be displayed corresponding to each singing video image in each display object video, wherein the video timestamp is the same as the video timestamp of each target image; After receiving the setting instruction of the display object sent by the user, determining the display object; Determine the attributes of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attributes of the display area, wherein the attributes of the display area include the size of the display area corresponding to each display object in the video background image to be displayed and the position of the display area corresponding to each display object in the video background image to be displayed; For any singing video image of any display object, a target image is obtained based on the singing video image, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object; Based on the attributes of the display area and the video timestamps of each target image, the target images corresponding to each display object are synthesized with the video background image to be displayed to obtain the singing video image to be displayed, specifically including: Utilizing the attributes of the display area, determine the display area of each display object in the video background image to be displayed; for any first target pixel in the target image of any display object, obtain the image to be displayed of the display object based on the pixel value of the first target pixel and the pixel value of the second target pixel corresponding to the first target pixel; utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object, obtain the singing video image to be displayed, wherein the second target pixel corresponding to the first target pixel is the pixel with the same position as the first target pixel in the display area corresponding to the intermediate singing video image and the display object, the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object, and the intermediate singing video image is obtained by cropping the singing video image with the display object in the singing video image as the center according to the size of the display area corresponding to the display object in the video background image to be displayed.
2. The method according to claim 1, characterized in that: The step of obtaining a target image based on any singing video image of any display object comprises: Based on the intermediate singing video image, the target image is obtained.
3. The method according to claim 2, characterized in that The step of obtaining the target image based on the intermediate singing video image comprises: Performing image segmentation processing on the intermediate singing video image to obtain the target image; or, The image format of the intermediate singing video image is converted by using a preset image format conversion algorithm, and each pixel in the converted intermediate singing video image is binarized to obtain the target image.
4. The method according to claim 1, characterized in that: The obtaining the to-be-displayed image of the display object based on the pixel value of the first target pixel and the pixel value of the second target pixel corresponding to the first target pixel includes: Obtaining a first intermediate pixel value by using the pixel value of the first target pixel point and the pixel value of a second target pixel point located in the intermediate singing video image and corresponding to the pixel value of the first target pixel point; and, Based on the pixel value of the first target pixel point, a second intermediate pixel value is obtained, and a third intermediate pixel value is obtained by using the second intermediate pixel value and the pixel value of a second target pixel point that is located in the display area corresponding to the display object and corresponds to the first target pixel point; According to the first intermediate pixel value and the third intermediate pixel value, a target pixel value of the first target pixel point is obtained; and, The pixel value of the first target pixel point is set as the target pixel value.
5. The method according to claim 1, characterized in that The method of obtaining the singing video image to be displayed by using the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object comprises: For each to-be-displayed image with the same video timestamp, the to-be-displayed image is set in the to-be-displayed video background image at the position of the display area corresponding to each display object to obtain the to-be-displayed singing video image; and / or, For each image to be displayed with the same video timestamp, each image to be displayed is synthesized with the video background image to be displayed by utilizing the position of each display object in the corresponding display area in the video background image to be displayed, so as to obtain a plurality of singing video images to be displayed, wherein each singing video image to be displayed includes at least one image to be displayed, and the video timestamps of each image to be displayed in the same singing video image to be displayed are the same, and the video timestamps of each image to be displayed in different singing video images to be displayed are the same.
6. A server, characterized in that: comprising a memory and a processor, wherein: The memory is configured to store a correspondence between a preset number of display objects and attributes of a display area; The processor is configured to: After receiving the user's instruction to set the video background, determine the video background; If the type of the video background is an image, the video background is determined as the video background image to be displayed; or if the type of the video background is a video, the video timestamps of each display object and the timestamp of the video background are used to respectively determine the video background images to be displayed corresponding to each singing video image in each display object video, wherein the video timestamp is the same as the video timestamp of each target image; After receiving the setting instruction of the display object sent by the user, determining the display object; Determine the attributes of the display area corresponding to the number of current display objects by using the preset correspondence between the number of display objects and the attributes of the display area, wherein the attributes of the display area include the size of the display area corresponding to each display object in the video background image to be displayed and the position of the display area corresponding to each display object in the video background image to be displayed; For any singing video image of any display object, a target image is obtained based on the singing video image, wherein the foreground image included in the target image is the outline of the display object, and the size of the target image is the same as the size of the display area of the display object; Based on the attributes of the display area and the video timestamps of each target image, the target images corresponding to each display object are synthesized with the video background image to be displayed to obtain the singing video image to be displayed, specifically including: Utilizing the attributes of the display area, determine the display area of each display object in the video background image to be displayed; for any first target pixel in the target image of any display object, obtain the image to be displayed of the display object based on the pixel value of the first target pixel and the pixel value of the second target pixel corresponding to the first target pixel; utilizing the position of the display area corresponding to each display object in the video background image to be displayed, the video timestamp of each image to be displayed, and the image to be displayed of each display object, obtain the singing video image to be displayed, wherein the second target pixel corresponding to the first target pixel is the pixel with the same position as the first target pixel in the display area corresponding to the intermediate singing video image and the display object, the video timestamp of the image to be displayed corresponding to each display object is the same as the video timestamp of the target image corresponding to each display object, and the intermediate singing video image is obtained by cropping the singing video image with the display object in the singing video image as the center according to the size of the display area corresponding to the display object in the video background image to be displayed.
7. The server according to claim 6, characterized in that: The server executes any singing video image for any display object and obtains a target image based on the singing video image, and is specifically configured as follows: Based on the intermediate singing video image, the target image is obtained.
