Live broadcast object display method and device, storage medium and electronic device
By drawing a customized picture on the first client and sending the position relationship matrix during the online live broadcast, the problem of a fixed single style of virtual gifts is solved, and the flexibility and fun of the live interactive method are improved.
Patent Information
- Application Number
- CN202210086849.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-01-25
AI Technical Summary
The styles of virtual gifts in existing online live broadcasts are too fixed and single, resulting in poor flexibility in live broadcast interaction and the lack of effective solutions.
In the live broadcast scene, by triggering the drawing operation in the first client, the display adds a custom picture to the target object, calculates the position relationship matrix of the target object part area, and sends it to the second client to realize drawing Synchronous display of pictures and changes in following target objects.
It improves the flexibility of the live broadcast interaction method, realizes the synchronous change effect of customized pictures, overcomes the problem of too single live broadcast display method, and enhances the fun of the live broadcast.
Smart Images

Figure CN114501102B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a method and device for displaying a live object, a storage medium and an electronic device. Background Art
[0002] The interaction between the audience and the anchor, and between the anchors during the live broadcast process has increased the fun of the live broadcast. Among them, the interactive mode of live broadcast and microphone connection has attracted widespread attention from the public. In the microphone connection scene in the prior art, the audience gives virtual gifts to the anchor, such as the punishment face gift. Usually, the audience or the anchor selects a specific gift in the punishment gift list column and then applies it to the face of the other anchor.
[0003] However, the style of the above-mentioned punishment gifts is to select one or more from a large number of pre-set gifts, and the way to give punishment gifts is to select from the gift list and directly act on the punished party, which makes the style of virtual gifts too fixed and single, resulting in the technical problem of poor flexibility of the live broadcast interaction method.
[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method and device for displaying live broadcast objects, a storage medium and an electronic device, so as to at least solve the problem of poor flexibility of the live broadcast interaction mode caused by the overly fixed and single style of virtual gifts in the related art.
[0006] According to one aspect of an embodiment of the present invention, a method for displaying a live object is provided, comprising: in response to a drawing operation triggered in a first client, displaying a drawing picture added for a target object in a first display interface, wherein the live screen content in the first display interface is provided by a second client, and the first client and the second client are in a live connection state; determining a position relationship matrix between the drawing picture and a part area of the target object in the first display interface; sending the drawing picture and the position relationship matrix to the second client, so as to display the drawing picture according to the position relationship matrix in a second display interface of the second client.
[0007] Optionally, the above-mentioned determination of the position relationship matrix between the drawn picture and the part area of the target object in the first display interface includes: obtaining the position information of the key points of the part of the target object; determining the preset position information of the drawn picture in the first display interface; and calculating the position relationship matrix using the position information and center position information of the key points of the part.
[0008] Optionally, the above-mentioned use of the position information of the key points of the parts and the preset position information to calculate the position relationship matrix includes: using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information, and the weight coefficient to construct a position equation; solving the position equation to obtain the coefficient value corresponding to the weight coefficient; using the coefficient matrix constructed based on the coefficient value as the position relationship matrix.
[0009] Optionally, the obtaining of the position information of the key points of the target object includes: extracting the position information of the key points of the target object from the target object region displayed in the first display interface; or receiving the position information of the key points of the target object sent by the second client.
[0010] Optionally, before displaying the drawing picture added for the target object in the first display interface, the method further includes: obtaining a screenshot of a part area including the target object in response to a screenshot operation on the first display interface; and detecting an operation trajectory of the drawing operation on a transparent texture layer matching the screenshot to obtain the drawing picture.
[0011] Optionally, the above-mentioned sending of the drawing picture and the position relationship matrix to the second client includes: generating drawing materials based on the transparent texture layer and the screenshot; obtaining display size information of the drawing picture on the transparent texture layer, wherein the display size information includes: a first ratio value between a display width of the drawing picture and a first reference value matching a part area of the target object, and a second ratio value between a display height of the drawing picture and a second reference value matching a part area of the target object; and sending the drawing materials, the display size information of the drawing picture and the position relationship matrix to the second client.
[0012] According to another aspect of the present invention, a method for displaying a live object is also provided, including: receiving a drawn picture and a position relationship matrix sent by a first client, wherein the drawn picture is a picture added in the first client for the target object displayed in a first display interface, the live screen content in the first display interface is provided by a second client, the first client and the second client are in a live connection state, and the position relationship matrix is used to indicate the position relationship between the drawn picture and the part area of the target object in the first display interface; and displaying the drawn picture in the second display interface of the second client according to the position relationship matrix.
[0013] Optionally, displaying the drawn picture according to the position relationship matrix in the second display interface of the second client includes: obtaining the position information of the key points of the parts of the target object; determining the preset position information of the drawn picture based on the position information of the key points of the parts and the position relationship matrix; and rendering the drawn picture according to the preset position information.
[0014] Optionally, rendering a drawing according to the above-mentioned preset position information includes: determining a reference weight corresponding to a part area of the target object displayed in the second display interface; determining rendering coordinates of the drawing based on the reference weight and the position coordinates on each direction axis carried in the preset position information; and rendering the drawing according to the rendering coordinates.
[0015] Optionally, the obtaining of the position information of the key points of the parts includes: extracting the position information of the key points of the parts from the part area of the target object displayed in the second display interface; or receiving the position information of the key points of the parts sent by the first client.
[0016] According to another aspect of the present invention, a live object display device is also provided, including: a processing unit, used to respond to a drawing operation triggered in a first client, and display a drawing picture added for the target object in a first display interface, wherein the live screen content in the first display interface is provided by a second client, and the first client and the second client are in a live connection state; a determination unit, used to determine a position relationship matrix between the drawing picture and a part area of the target object in the first display interface; and a display unit, used to send the drawing picture and the position relationship matrix to the second client, so as to display the drawing picture according to the position relationship matrix in the second display interface of the second client.
[0017] According to another aspect of the present invention, another live broadcast object display device is provided, which is applied to a second client where the live broadcast object is located, including: a receiving unit, used to receive a drawn picture and a position relationship matrix sent by a first client, wherein the drawn picture is a picture added in the first client for the target object displayed in the first display interface, the live screen content in the first display interface is provided by the second client, the first client and the second client are in a live broadcast connection state, and the position relationship matrix is used to indicate the position relationship between the drawn picture and the part area of the target object in the first display interface; a second display unit, used to display the drawn picture in the second display interface of the second client according to the position relationship matrix.
[0018] Through the embodiment of the present invention, in response to the drawing operation triggered in the first client, the drawing picture added for the target object is displayed in the first display interface, wherein the live screen content in the first display interface is provided by the second client, and the first client and the second client are in a live connection state; determine the position relationship matrix between the drawing picture and the part area of the target object in the first display interface; send the drawing picture and the position relationship matrix to the second client, so as to display the drawing picture according to the position relationship matrix in the second display interface of the second client. That is to say, when the first client and the second client are in a live broadcast connection, a custom picture is drawn in the first client, and the position relationship matrix between the obtained drawing picture and the part area of the target object is sent to the second client, and through the position relationship matrix, the drawing picture displayed in the second client can achieve the effect of changing synchronously with the change of the target object. It is no longer just selecting a virtual gift of a fixed style from a predetermined list, and the effect of controlling the custom drawing picture to change synchronously with the target object during the connection process is achieved, thereby improving the flexibility of the live interactive method, and thus overcoming the problem of the live display method being too single in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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:
[0020] Figure 1 is a schematic diagram of an application scenario of an optional live object display method according to an embodiment of the present invention;
[0021] Figure 2 is a flow chart of an optional live broadcast object display method according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of displaying an optional target object on a first display interface according to an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of displaying another optional target object on the first display interface according to an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of displaying an optional target object on a second display interface according to an embodiment of the present invention;
[0025] Figure 6 is a schematic diagram of optional target object part key points and preset position information according to an embodiment of the present invention;
[0026] Figure 7is a schematic diagram of another optional target object part key points and preset position information according to an embodiment of the present invention;
[0027] Figure 8 is a schematic diagram of an optional method of obtaining a drawn picture according to an embodiment of the present invention;
[0028] Fig. 9 is a schematic diagram of optional size information of a drawing according to an embodiment of the present invention;
[0029] Fig.10 is a flowchart of another optional live object display method according to an embodiment of the present invention;
[0030] Fig.11 is a schematic diagram of a complete embodiment of an optional live broadcast object display method according to an embodiment of the present invention;
[0031] Fig.12 is a schematic diagram of a complete embodiment of another optional live object display method according to an embodiment of the present invention;
[0032] Fig.13 is a structural block diagram of an optional live broadcast object display device according to an embodiment of the present invention;
[0033] Fig.14 It is a structural block diagram of another optional live object display device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] 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.
[0035] 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.
[0036] According to one aspect of an embodiment of the present invention, a live object display method is provided. Optionally, as an optional implementation, the live object display method can be but is not limited to being applied to Figure 1 The live object display system in the application scenario shown. The live object display system may include but is not limited to a first client 102, a network 104, a server 106, a database 108 and a second client 110. The first client 102 includes a human-computer interaction screen, a processor and a memory. The human-computer interaction screen is used to display the live interface of the first client (such as Figure 1 The second client 110 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 viewer client.
[0037] The specific process is as follows: Step S102, in response to the drawing operation triggered in the first client, the drawing picture added for the target object is displayed in the first display interface; then in steps S104-108, the position relationship matrix between the drawing picture and the part area of the target object in the first display interface is determined; the drawing picture and the position relationship matrix are sent. The server 106 will execute steps S110-S114 to obtain the drawing picture and the position relationship matrix; and display the drawing picture in the second display interface of the second client.
[0038] As another optional implementation, when the first client 102 has a relatively strong computing and processing capability, the above steps S110-S114 may also be completed by the first client 102. This is an example, and this embodiment does not impose any limitation on this.
[0039] In this embodiment, a method for displaying a live broadcast object is provided. Figure 2 is a flow chart of a method for displaying a live broadcast object according to an embodiment of the present invention, and the flow includes the following steps:
[0040] Step S202, in response to the drawing operation triggered in the first client, displaying the drawing picture added for the target object in the first display interface, wherein the live screen content in the first display interface is provided by the second client, and the first client and the second client are in a live connection state;
[0041] Step S204, determining a position relationship matrix between the drawn picture and the part area of the target object in the first display interface;
[0042] Step S206: sending the drawn picture and the position relationship matrix to the second client, so that the drawn picture is displayed in a second display interface of the second client according to the position relationship matrix.
[0043] In this embodiment, the target object is explained by taking the punished anchor in the live broadcast and microphone connection scenario as an example. Figure 3 As shown, it includes a punishing party 301 and a punished party 302, wherein it is assumed that the display interface of the first client where the punishing party is located is the first display interface, and the display interface of the second client where the punished party is located is the second display interface. The punishing party is used to indicate one of the connected microphone hosts that meet the preset conditions, and the punished party is used to indicate the other of the two connected microphone hosts. Among them, the preset condition can be that the party whose number of fans reaches a specified value first is determined as the punishing party, and the remaining party is the punished party by default; the preset condition can also be that the party with a high sales volume of goods is determined as the punishing party, and the remaining party is the punished party by default. In this embodiment, the determination conditions for the punishing party and the punished party are not limited.
[0044] In step S202, when the above preset conditions are met, the microphone connection penalty phase is entered, and in response to the drawing operation instruction triggered in the first client, a drawing is added to the punished party 302. The drawing operation instruction may include but is not limited to the penalizer 301 selecting the custom graffiti penalty cute face option in the first client, or the penalized party actively sending an expression or text used to indicate "accepting the penalty", and the penalizer confirms to trigger the drawing operation, etc.
[0045] It is understandable that, in this embodiment, the object of the custom graffiti is not limited, for example, it can be any part of the body of the punished party, such as the face, limbs, torso, neck, etc. of the punishing party.
[0046] As an optional example, when the object of the custom graffiti is the face area of the punished party, in response to the drawing operation, a face screenshot window of the punished party 302 pops up in the first client, and a face screenshot of the punished party 302 is obtained by taking a screenshot of the face area of the punished party 302. The punishing party 301 can perform a custom hand-drawn graffiti on the face screenshot of the punished party 302, such as Figure 3 As shown in the right figure in , two hearts are drawn on the cheek area of the punished party, so that the face of the punished party 302 presents a cute expression.
[0047] As another alternative example, Figure 4As shown, when the object of the custom graffiti is the neck area of the punished party, in response to the drawing operation, a screen shot window including the head and neck of the punished party 302 pops up in the first client. The punishing party 301 can make a custom hand-drawn graffiti on the neck of the punished party 302 in the screen shot according to the positional relationship between the neck of the punished party and the head of the punishing party, for example, Figure 4 As shown in , a heart-shaped necklace is drawn on the neck of the punished party 302 .
[0048] It should be noted that the facial screenshots of the punished party 302 or the screenshots including the head and neck of the punished party are all taken in response to the drawing operation instructions, when the punished party 302 actively sends the live broadcast content (such as the facial screenshot of the punished party) in the second client to the first client, and displays it in the first display interface of the first client through screen mixing.
[0049] Furthermore, during the live broadcast, Figure 3 or Figure 4 The face or neck of the punishing party 301 and the punished party 302 are both in motion. Therefore, after the customized graffiti of the punished party 302 is completed, if the punished party 302 rotates his head or changes his facial expression, Figure 3 The positions of the two hearts or the heart necklace will change. Figure 3 The following is an example of the change in the positions of the two hearts after the punished party 302 rotates his head:
[0050] After the punished party 302 rotates his head, he will not be able to keep the two hearts in the same place. Figure 3 Therefore, after the punished party 302 is automatically graffitied, it is necessary to determine the position relationship matrix between the two drawn love hearts and the facial area of the punished party 302 in the first client, wherein the position relationship matrix is used to indicate the relative position relationship between the two love hearts and the facial area of the punished party 302.
[0051] The determined positional relationship matrix R and the drawn picture of two hearts are sent to the server, and the server sends the positional relationship matrix and the drawn picture containing two hearts to the second client. In the second client, according to the positional relationship matrix R, the positional relationship between the drawn picture (two hearts) and the facial area of the punished party 302 is calculated in real time, and the drawn picture is rendered to a specified position of the second display interface, so that the drawn picture closely follows the face of the punished party 302. Specifically, as Figure 5 As shown, when the face of the punished party 302 is displayed in the front view, the display effect of the punished party 302 after graffiti is as follows Figure 5When the face of the punished party 302 tilts to the left at a certain angle, the drawn picture (two hearts) is moved to the position according to the position relationship matrix R. Figure 5 When the face of the punished party 302 tilts to the right by a certain angle, according to the position relationship matrix R, the drawn picture (two hearts) is moved to the position shown in the second display interface; Figure 5 The position in the second display interface shown in (c).
[0052] It is understandable that in actual application, the style of drawing is not limited, and it can be two hearts in this embodiment, or other expressions of the second dimension, etc. In addition, the clients of the punishing party and the punished party have the same data processing capabilities. When the predetermined conditions are met, the identities of the two can be interchanged, and there is no distinction between the primary and secondary of the corresponding first client and the second client.
[0053] Through the above-mentioned embodiments provided by the present application, when the first client and the second client are in a live broadcast and microphone connection, a custom picture is drawn in the first client, and the position relationship matrix between the obtained drawn picture and the part area of the target object is sent to the second client. Through the position relationship matrix, the drawn picture displayed in the second client can achieve the effect of synchronously changing with the changes of the target object. It is no longer just selecting a virtual gift of a fixed style from a predetermined list, and the effect of controlling the custom drawn picture to change synchronously with the target object during the microphone connection is achieved, thereby improving the flexibility of the live broadcast interaction method, and thus overcoming the problem of the overly single live broadcast display method in the related technology.
[0054] In an optional embodiment, the above-mentioned determining the position relationship matrix between the drawn picture and the part area of the target object in the first display interface includes:
[0055] Obtain the location information of the key points of the target object;
[0056] Determine preset position information of drawing the picture in the first display interface;
[0057] The position relationship matrix is calculated using the position information of the key points of the parts and the preset position information.
[0058] Based on the analysis of the above embodiments, it can be seen that by calculating the position relationship matrix between the drawn picture and the part area of the target object in the first display interface, the customized drawn picture can be controlled to follow the synchronous changes of the target object.
[0059] As an optional example, assuming that the object of the custom graffiti is the facial area of the punished party, the specific process of determining the position relationship matrix between the drawn picture and the facial area of the target object in the first display interface includes:
[0060] S1, extract hand-painted texture picture;
[0061] Specifically, Figure 6 As shown, after completing the drawing of the face screenshot of the punishing party 302, Figure 6 The hand-drawn drawing (hand-drawn texture picture) of the penalty party 301 is extracted from the mixed picture after graffiti shown in (a), such as Figure 6 As shown in (b), the hand-painted texture picture refers to a closed figure formed by the periphery of the drawn picture and the hand-painted content within the figure, for example, a rectangular frame E formed by the boundaries of two hearts in this embodiment.
[0062] S2, extract the location information of facial key points;
[0063] From Figure 6 As shown in (a), the position information of the key points of the face is extracted. Usually, the center point of the two eyes and the position of the nose tip are taken as the key points of the face. Figure 6 The points A, B and C shown in (a) are determined as facial key points, and the coordinates of the facial key points A, B and C are obtained as (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3), respectively.
[0064] S3, determining preset position information of the hand-painted texture image in the first display interface;
[0065] It should be noted that the preset position information in this embodiment is not limited and can be the position information of the center point of a closed figure formed by the periphery of the hand-painted texture image, or the position information of other points with a preset offset from the center point of the closed figure.
[0066] As an optional example, assume that the preset position information is the position information of the center point of the closed figure formed by the periphery of the hand-painted texture picture, for example: Figure 6 The center point D of the rectangular box E shown in (c) above needs to be determined first, and then the coordinates of the center point D in the mixed graph are determined as the center position information of the drawn picture in the first display interface, which is recorded as (X, Y, Z).
[0067] As another optional example, it is assumed that the preset position information is the position information of other points that have a preset offset from the center point of the closed figure formed by the periphery of the hand-painted texture picture, for example: Figure 7The coordinates of P1 or P2 shown in (c) are at a preset offset from the center point D. Specifically, when P1 at a preset offset from the center point D is determined as the preset position, and the coordinate information of P1 is obtained as (X', Y', Z'), the coordinates (X', Y', Z') of point P1 can be determined as the preset position information. Similarly, P2 at a preset offset from the center point D can also be determined as the preset position, and the corresponding coordinates of P2 are the preset position information.
[0068] S4, calculate the position relationship matrix;
[0069] The relative matrix of positional relationship is calculated through the coordinates of the facial key points A, B, C and the center point D of the hand-painted texture picture.
[0070] It is understandable that when the object of the custom graffiti is other parts of the target object, the above steps S1 to S4 can be referred to to calculate the position relationship matrix between the drawn picture and other parts of the target object in the first display interface.
[0071] By adopting the above-mentioned technical solution provided by the present application, the position relationship matrix of the drawn picture relative to the part area of the target object is calculated by obtaining the position information of the key points of the parts of the target object and the preset position information of the drawn picture, so that the drawn picture can achieve the effect of changing synchronously with the changes of the target object, and the effect of controlling the customized drawn picture to change synchronously with the target object during the live broadcast is achieved, which ensures the accuracy of the drawn picture display and improves the reliability of the display control of the customized graffiti during the live broadcast.
[0072] In an optional embodiment, the position relationship matrix is calculated by using the position information of the key points of the parts and the preset position information, including:
[0073] The position equation is constructed by using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the center position information and the weight coefficient;
[0074] Solve the position equation to obtain the coefficient value corresponding to the weight coefficient;
[0075] The coefficient matrix constructed based on the coefficient values is used as the position relationship matrix.
[0076] In this embodiment, the facial area of the punished party is still used as an example for explanation. Specifically, assuming that the position coordinates of the acquired facial key points A, B and C on each direction axis are (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3), and the position coordinates of the center point D of the hand-painted texture image on each direction axis are (X, Y, Z), then the coordinates of the center point D in each direction and the position coordinates of A, B and C form the following position equation:
[0077] X=x1*ω1+y1*ω2+z1*ω3 (1)
[0078] Y=x2*ω4+y2*ω5+z2*ω6 (2)
[0079] Z=x3*ω7+y3*ω8+z3*ω9 (3)
[0080] Among them, ω1, ω2…ω9 are the weight coefficients of A, B and C in each direction axis. According to the known (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) and (X, Y, Z), the values of ω1, ω2…ω9 can be solved, and the position relationship matrix R is composed of ω1, ω2…ω9, as follows:
[0081]
[0082] It should be noted that the position relationship matrix calculated in this embodiment includes but is not limited to the position information based on the key points of the face, and can also be the graffiti operation of other parts such as hands and legs. For example, when performing graffiti operation on the hands of the human body, the selected key points can be the finger joints, wrist joints, etc.; when performing graffiti operation on the legs of the human body, the selected key points can be the knee joints, ankle joints, etc. Through the key points of other parts of the human body and the center point position information of the graffiti texture picture, the synchronous movement of graffiti expressions and hands or legs can also be achieved.
[0083] Through the above embodiments provided by the present application, the position equation is formed according to the acquired coordinates of the key points of the face and the center point coordinates of the hand-painted texture picture, as well as the weight coefficients of the key points of the face on each reverse axis, and the coefficient values obtained by solving are used to form a position relationship matrix. Through the position relationship matrix, the drawn picture displayed in the second client can achieve the effect of changing synchronously with the changes of the target object. It is no longer just selecting a fixed style of virtual gifts from a predetermined list, which improves the flexibility of the live interactive mode and thus enhances the fun of online live broadcast.
[0084] As an optional implementation scheme, the above-mentioned obtaining the position information of the key points of the target object includes:
[0085] Extracting location information of key points of the part from the part area of the target object displayed in the first display interface; or
[0086] Receive the position information of the key points of the part sent by the second client.
[0087] In order to facilitate understanding of the embodiments of the present invention, the facial area of the punished party is still used as an example for explanation. Then the method of obtaining the position information of the key points of the face of the target object includes but is not limited to the following two situations:
[0088] The first case: during the microphone connection process, data is transmitted in real time between the first client and the second client, but the second client only transmits the second live broadcast picture containing the target object to the first client; after receiving the second live broadcast picture containing the target object, the face area of the target object is screenshotted in the first client to obtain a face screenshot of the target object; then the first client extracts features from the face screenshot to obtain location information of key points of the face;
[0089] The second situation: In the second client, a screenshot of the face area of the target object is directly taken; then, the location information of the key points of the face is obtained by extracting features from the face screenshot; finally, the location information of the key points of the face is transmitted to the first client.
[0090] It is understandable that in actual application, the position information of the key points of the face of the target person can be obtained by using any of the above two situations. However, after the position information of the key points of the face is obtained in the second client, the position information of the key points of the face is directly sent to the first client, and the first client directly uses the position information of the key points of the face to calculate the position relationship matrix, which reduces the performance requirements of the first client and improves the computing efficiency of the client.
[0091] As an optional implementation, before displaying the drawing added for the target object in the first display interface, the method further includes:
[0092] In response to a screenshot operation on the first display interface, obtaining a screenshot containing a facial area of a target object;
[0093] On the transparent texture layer matching the screenshot, the operation track of the drawing operation is detected to obtain the drawing picture.
[0094] In this embodiment, after responding to the drawing operation triggered in the first client, the punishing party 301 firstly performs a screenshot operation on the face image of the punished party 302 popped up in the first display interface, and the screenshot of the facial area of the punished party 302 is obtained as shown in FIG. Figure 8 Then obtain the same Figure 8The transparent texture layer that matches the face screenshot shown in (a) is as follows: Figure 8 As shown in (b).
[0095] It should be noted that the transparent texture layer that matches the face screenshot may include but is not limited to the following points: 1) The size of the transparent texture layer matches the size of the face screenshot. For example: the height and width of the transparent texture layer are equal to the height and width of the face screenshot, or the height and width of the transparent texture layer are greater than the height and width of the face screenshot; 2) The position of the hand-painted graffiti on the transparent texture layer is consistent with the target placement position of the graffiti in the face screenshot.
[0096] Further, a picture is drawn on the transparent texture layer, such as Figure 8 After the two hearts shown in (b) are drawn, the first client detects the drawing operation track of the penalty party 301 on the transparent texture layer and connects the tracks to obtain a drawing picture containing two hearts. Figure 8 By overlaying the texture layer of the face screenshot shown in (a), the following can be achieved: Figure 8 (c) shows the mixed image of the love heart and the face screenshot.
[0097] Through the above-mentioned embodiments provided by the present application, by drawing a picture on a transparent texture layer that matches the face screenshot and detecting the operation trajectory of the drawing operation on the transparent texture layer, the implementation process of drawing the picture can be obtained, which facilitates the drawing operation of customized drawing pictures during live broadcast and microphone connection, enriches the diversity of drawing picture styles, and improves the flexibility of obtaining drawing pictures.
[0098] As an optional implementation, sending the drawn picture and the position relationship matrix to the second client includes:
[0099] Generate drawing materials based on transparent texture layers and screenshots;
[0100] Acquire display size information of the drawing on the transparent texture layer, wherein the display size information includes: a first ratio value between a display width of the drawing and a first reference value matching the part area of the target object, and a second ratio value between a display height of the drawing and a second reference value matching the part area of the target object;
[0101] The drawing material, the display size information of the drawing picture and the position relationship matrix are sent to the second client.
[0102] In this embodiment, after the drawing is completed on the transparent texture layer, the display size information of the drawing is obtained, which specifically includes:
[0103] (1) The first client obtains the size information of the drawn picture, such as Fig. 9The width w1 and height h1 of the rectangular frame formed by the boundaries of the two hearts, and the width w and height h of the face of the penalized party 302;
[0104] (2) The width w of the face of the penalized party 302 is taken as the first reference value, and the height h of the face of the penalized party 302 is taken as the second reference value. The ratio between w1 and w is calculated and recorded as the first ratio value, and the ratio between h1 and h is calculated and recorded as the second ratio value;
[0105] (3) determining the first scale value and the second scale value as display size information of the drawn picture;
[0106] As another optional implementation, since the display size information of the drawn picture is the ratio of the display width and display height of the drawn picture to the face size of the target object, the first reference value and the second reference value in this embodiment are not limited. The two can be the same or different, for example, w is used as the first reference value and h is used as the second reference value; or the first reference value and the second reference value are both w.
[0107] Furthermore, the transparent texture layer and the face screenshot of the target object are used to generate drawing materials, and then the drawing materials, the display size information of the drawing picture and the position relationship matrix are sent to the second client. The sending method is that the first client first sends the drawing materials, the display size information of the drawing picture and the position relationship matrix to the server, and the server then forwards them to the second client.
[0108] Through the above embodiments provided by the present application, the drawing materials required for displaying the drawing, the display size information of the drawing and the position relationship matrix are generated in the first client, and the above information is sent to the second client through the server, so that the drawing is displayed in the second display interface of the second client according to the position relationship matrix. Then, through screen mixing, the target object with the drawing is displayed in the first client, achieving the technical effect of displaying the target object in the live broadcast and microphone connection process according to the customized drawing.
[0109] It should be noted that the execution subject of the above steps is the first client. In order to better understand the technical solution of the present invention, the present application also provides a live object display method, which is applied to the second client. Specifically, Fig.10 As shown, the process includes the following steps:
[0110] Step S1002, receiving a drawing picture and a position relationship matrix sent by the first client, wherein the drawing picture is a picture added in the first client for the target object displayed in the first display interface, the live screen content in the first display interface is provided by the second client, the first client and the second client are in a live connection state, and the position relationship matrix is used to indicate the position relationship between the drawing picture and the part area of the target object in the first display interface;
[0111] Step S1004: displaying the drawn picture in the second display interface of the second client according to the position relationship matrix.
[0112] In this embodiment, when the first client and the second client are in a live broadcast and microphone connection state, the second client receives the drawing picture and the position relationship matrix sent by the first client. Figure 4 As shown, when custom graffiti is applied to the face of the punished party 302, the method of displaying the drawing using the position relationship matrix includes at least one of the following methods: (1) When the face of the punished party 302 is displayed in the front view, the display effect of the punished party 302 after graffiti is as follows: Figure 4 (2) When the face of the punished party 302 tilts to the left at a certain angle, the drawn picture (two hearts) is moved to the position according to the position relationship matrix R. Figure 4 (3) When the face of the punished party 302 tilts to the right by a certain angle, according to the position relationship matrix R, the drawn picture (two hearts) is moved to the position shown in the second display interface; Figure 4 The position in the second display interface shown in (c).
[0113] By displaying the drawing in the second display interface of the second client, and through data interaction and screen mixing between the two clients during the microphone connection process, the drawing in the second display interface is synchronously displayed in the first client. This achieves the effect of synchronously changing the drawing customized by the audience or anchor with the changes of the target object during the microphone connection process, instead of just selecting a virtual gift of a fixed style from a predetermined list. This achieves the effect of controlling the customized drawing to change synchronously with the target object during the microphone connection process, thereby improving the flexibility of the live broadcast interaction method.
[0114] As an optional implementation manner, the above-mentioned displaying the drawing in the second display interface of the second client according to the position relationship matrix includes:
[0115] Obtain the location information of the key points of the target object;
[0116] Determine the preset position information for drawing the picture based on the position information of the key points of the parts and the position relationship matrix;
[0117] Renders the image according to the preset position information.
[0118] In this embodiment, the example of custom graffiti on the face area of the punished party is still used for explanation. Specifically, after receiving the drawing and position relationship matrix sent by the first client, the second client extracts the hand-painted texture image from it, and then obtains the facial key point information of the punished party 302 by real-time recognition of the face image, including the following: Figure 6 The coordinates of the eye center points A, B and nose tip C are shown. Then, the coordinates of the center point position D of the hand-painted texture image are calculated through the facial key point information and the received position relative matrix R, and the drawn image is rendered to the face of the penalized party 302 according to the coordinates of the center point D.
[0119] Through the above-mentioned embodiments provided by the present application, the drawn picture is rendered to the specified face position of the target object according to the facial key points, the coordinates of the center point of the drawn picture and the position relationship matrix, so that the drawn picture moves synchronously with the target object, and the drawn picture follows the target object closely, ensuring the accuracy of the drawn picture position and improving the reliability of customized graffiti during live broadcast and microphone connection.
[0120] As an optional implementation, the above-mentioned rendering and drawing of the picture according to the preset position information includes:
[0121] Determine a reference weight corresponding to a part area of the target object displayed in the second display interface;
[0122] Determine the rendering coordinates for drawing the picture based on the reference weights and the position coordinates on each direction axis carried in the preset position information;
[0123] Render the drawing according to the rendering coordinates.
[0124] In this embodiment, by determining the reference weight w0 corresponding to the facial area of the penalized party 302 displayed in the second display interface in the second client, the actual width of the hand-painted texture picture is calculated as w0*w, and the actual height of the hand-painted texture picture is calculated as w0*h. And according to the coordinates (X, Y, Z) of the center point D of the received hand-painted texture picture and the reference weight w0, the actual rendering coordinates D'(X', Y', Z') of the local picture in the second client are calculated, where X'=X*w0, Y'=Y*w0, Z'=Z*w0.
[0125] It should be noted that, since the display effects (displayed face size and position) of the facial area of the punished party 302 in the first display interface and the second display interface are different, after the second client receives the display size information and position relationship matrix of the drawn picture sent by the first client, the second client needs to recalculate the actual rendering coordinates D' for rendering the drawn picture to the target position in the second display interface based on the reference weight w0 of the face of the punished party 302 in the local display interface, so as to ensure that the customized graffiti picture is rendered to the specified position of the face of the punished party locally on the second client.
[0126] Through the above-mentioned embodiment provided by the present application, after receiving the drawing picture and the position relationship matrix sent by the first client, the rendering coordinates of the drawing picture are calculated by determining the reference weight corresponding to the facial area of the target object locally on the second client, so that the drawing picture is displayed at the target position in the second display interface. The accuracy of the rendering coordinates of the drawing picture is ensured, the reliability of the custom graffiti during the live broadcast and microphone connection process is improved, and the fun of the live broadcast is improved.
[0127] Optionally, the above-mentioned obtaining of the position information of the key points of the parts includes:
[0128] Extracting location information of key points of the part from the part area of the target object displayed in the second display interface; or
[0129] Receive the position information of the key points of the part sent by the first client.
[0130] In combination with the specific process of the first client obtaining the position information of the key points of the face of the target object in the above embodiment, it can be concluded that the method of obtaining the position information of the target object in the second client also includes but is not limited to the following two situations:
[0131] The first case: in the second client, a screenshot of the face area of the target object in the second display interface is directly taken; then, feature extraction is performed on the face screenshot to obtain position information of key points of the face;
[0132] The second situation: during the microphone connection process, data is transmitted between the first client and the second client in real time, but the second client only transmits the second live broadcast picture containing the target object to the first client; after receiving the second live broadcast picture containing the target object, the face area of the target object is screenshoted in the first client to obtain a face screenshot of the target object; the first client extracts features from the face screenshot to obtain location information of key points of the face; the first client sends the location information of the key points of the face to the second client.
[0133] Through the technical solution provided in the above embodiment, the position information of the key points of the face can be directly obtained in the second client; the position information of the key points of the face can also be obtained in the first client, and then the position information of the key points of the face can be directly sent to the second client. The flexibility of obtaining the position information of the key points of the face is improved, and the performance requirements for the client are reduced.
[0134] In order to better understand the above-mentioned embodiments, the embodiment of the present invention also provides an overall schematic diagram of an optional live object display method, specifically, as shown in FIG. Fig.11 As shown, assuming that the object of the custom graffiti is the right upper limb of the punished party, the method for displaying the custom graffiti on the live broadcast object includes the following steps:
[0135] S1102, in response to the drawing operation triggered in the first client, obtaining a screenshot of the right upper limb of the target object (the punished party) from the live broadcast screen;
[0136] S1104, drawing a custom picture on the transparent texture layer, for example, Fig.11 The bracelet shown in the hand-painted texture screen, where the size of the transparent texture layer matches the size of the right upper limb screen screenshot of the punished party (e.g., the height and width of the transparent texture layer are equal to the height and width of the right upper limb screen screenshot);
[0137] S1106, obtaining the position information of the key points A, B, and C of the right upper limb of the penalized party, and the preset position information of the hand-painted texture picture in the first display interface (for example, the coordinate information of the center point D);
[0138] S1108, calculating a position relationship matrix S between the hand-painted texture image and the right upper limb region of the penalized party in the first display interface according to the position information of the right upper limb key points A, B, C and the position information of the preset position D;
[0139] S1110, superimposing the drawn picture on the right upper limb area of the punished party according to the position relationship matrix S;
[0140] S1112: Displaying the live broadcast screen after the custom picture is drawn on the second display interface.
[0141] As another optional implementation scheme, the embodiment of the present invention also provides an overall schematic diagram of another optional live object display method, specifically, as follows: Fig.12 As shown, assuming that the way to customize graffiti is to draw a shirt and wear the finished shirt on the torso of the punished party, the detailed steps are as follows:
[0142] S1202, in response to the drawing operation triggered in the first client, obtaining a screenshot of the torso of the target object (the punished party) from the live broadcast screen;
[0143] S1204, drawing a custom picture on the transparent texture layer, for example, Fig.12 The shirt with tie shown in the hand-painted texture image, where the size of the transparent texture layer matches the size of the torso image screenshot of the penalized party (e.g., the height and width of the transparent texture layer are equal to the height and width of the right upper limb image screenshot);
[0144] S1206, obtaining the position information of the key points A, B, and C of the torso of the penalized party, and the preset position information of the hand-painted texture image in the first display interface (for example, the coordinate information of the center point D);
[0145] S1208, calculating a position relationship matrix S between the hand-painted texture image and the torso area of the punished party in the first display interface according to the position information of the key points A, B, and C of the right upper limb and the position information of the preset position D;
[0146] S1210, superimposing the drawn picture with the image of the torso area of the punished party according to the position relationship matrix S;
[0147] S1212: Displaying the live broadcast screen after the custom picture is drawn on the second display interface.
[0148] Through the above-mentioned embodiments provided by the present application, when the first client and the second client are in a live broadcast and connected to the microphone, a custom picture is drawn in the first client, and the position relationship matrix between the obtained drawn picture and the part area of the target object is sent to the second client. Through the position relationship matrix, the drawn picture displayed in the second client can achieve the effect of changing synchronously with the change of the target object. The effect of controlling the custom drawn picture to change synchronously with the target object during the connected microphone process is achieved, which improves the flexibility of the live broadcast interaction method, thereby overcoming the problem of the overly single live broadcast display method in the related technology.
[0149] 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.
[0150] In this embodiment, a live object display 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 for 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.
[0151] Fig.13 is a structural block diagram of a live broadcast display device according to an embodiment of the present invention, the device comprising:
[0152] The processing unit 1302 is configured to display the drawing added for the target object in the first display interface in response to the drawing operation triggered in the first client, wherein the live screen content in the first display interface is provided by the second client, and the first client and the second client are in a live connection state;
[0153] A determining unit 1304 is used to determine a position relationship matrix between the drawn picture and the part area of the target object in the first display interface;
[0154] The first display unit 1306 is used to send the drawn picture and the position relationship matrix to the second client, so that the drawn picture is displayed according to the position relationship matrix in the second display interface of the second client.
[0155] Optionally, the determining unit 1304 further includes:
[0156] An extraction module, used to extract position information of key points of a part from a part area of a target object displayed in the first display interface;
[0157] A first determining module, used to determine preset position information of the drawn picture in the first display interface;
[0158] The calculation module is used to calculate the position relationship matrix using the position information of the key points of the parts and the preset position information.
[0159] Optionally, the determining unit 1304 further includes:
[0160] The first processing module is used to construct a position equation using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information and the weight coefficient;
[0161] The second processing module is used to solve the position equation to obtain the coefficient value corresponding to the weight coefficient;
[0162] The third processing module is used to use the coefficient matrix constructed based on the coefficient values as the position relationship matrix.
[0163] Optionally, before the processing unit 1302, the method further includes:
[0164] An acquisition unit, configured to acquire a screenshot of a part area including a target object in response to a screenshot operation on the first display interface;
[0165] The detection unit is used to detect the operation track of the drawing operation on the transparent texture layer matching the screenshot to obtain the drawing picture.
[0166] Optionally, the step of sending the drawn picture and the position relationship matrix to the second client includes:
[0167] A generation module, used to generate drawing materials based on transparent texture layers and screenshots;
[0168] an acquisition module, configured to acquire display size information of a drawing on the transparent texture layer, wherein the display size information includes: a first ratio value between a display width of the drawing and a first reference value matching a part area of the target object, and a second ratio value between a display height of the drawing and a second reference value matching a part area of the target object;
[0169] The sending module is used to send the drawing material, the display size information of the drawing picture and the position relationship matrix to the second client.
[0170] As an optional implementation scheme, the present invention embodiment also provides another live object display device, which is applied to the second client. Fig.14 As shown, including:
[0171] The receiving unit 1402 is used to receive a drawing picture and a position relationship matrix sent by the first client, wherein the drawing picture is a picture added in the first client for the target object displayed in the first display interface, the live screen content in the first display interface is provided by the second client, the first client and the second client are in a live connection state, and the position relationship matrix is used to indicate the position relationship between the drawing picture and the part area of the target object in the first display interface;
[0172] The second display unit 1404 is used to display the drawn picture according to the position relationship matrix in the second display interface of the second client.
[0173] Optionally, the step of displaying the drawing in the second display interface of the second client according to the position relationship matrix includes:
[0174] A second extraction module, used to extract position information of a key point of a part from a part area of the target object displayed in the second display interface;
[0175] A first determination module is used to determine the preset position information for drawing the picture based on the position information of the key points of the parts and the position relationship matrix;
[0176] The rendering module is used to render and draw pictures according to preset position information.
[0177] Optionally, the rendering of the picture according to the preset position information includes:
[0178] A second determination module, used to determine a reference weight corresponding to a part area of the target object displayed in the second display interface;
[0179] A third determination module, configured to determine the rendering coordinates for drawing the picture based on the reference weight and the position coordinates on each direction axis carried in the preset position information;
[0180] Render the drawing according to the rendering coordinates.
[0181] 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.
[0182] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0183] S1, in response to a drawing operation triggered in a first client, displaying a drawing added for a target object in a first display interface, wherein the live screen content in the first display interface is provided by a second client, and the first client and the second client are in a live connection state;
[0184] S2, determining a position relationship matrix between the drawn picture and the part area of the target object in the first display interface;
[0185] S3, sending the drawn picture and the position relationship matrix to the second client, so that the drawn picture is displayed in a second display interface of the second client according to the position relationship matrix.
[0186] 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.
[0187] 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.
[0188] 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.
[0189] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0190] S1, in response to a drawing operation triggered in a first client, displaying a drawing added for a target object in a first display interface, wherein the live screen content in the first display interface is provided by a second client, and the first client and the second client are in a live connection state;
[0191] S2, determining a position relationship matrix between the drawn picture and the part area of the target object in the first display interface;
[0192] S3, sending the drawn picture and the position relationship matrix to the second client, so that the drawn picture is displayed in a second display interface of the second client according to the position relationship matrix.
[0193] 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.
[0194] 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.
[0195] 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.
[0196] 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 displaying a live broadcast object, characterized in that: include: In response to a drawing operation triggered in the first client, a drawing picture added for the target object is displayed in a first display interface, wherein the live screen content in the first display interface is provided by the second client, and the first client and the second client are in a live connection state; Acquire location information of key points of parts of the target object; Determining preset position information of the drawn picture in the first display interface; Using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information, and the weight coefficient, a position equation is constructed; Solving the position equation to obtain a coefficient value corresponding to the weight coefficient; Constructing a coefficient matrix based on the coefficient values to obtain a position relationship matrix between the drawn picture and the part area of the target object in the first display interface; The drawn picture and the position relationship matrix are sent to the second client, so that the drawn picture is displayed according to the position relationship matrix in a second display interface of the second client.
2. The method according to claim 1, characterized in that The step of obtaining the position information of the key points of the target object includes: Extracting the position information of the key points of the part from the part area of the target object displayed in the first display interface; or Receive the position information of the key points of the part sent by the second client.
3. The method according to claim 1, characterized in that Before displaying the drawn picture added for the target object in the first display interface, the method further includes: In response to a screenshot operation on the first display interface, obtaining a screenshot of a region including a part of the target object; On the transparent texture layer matching the screenshot, an operation track of the drawing operation is detected to obtain the drawing picture.
4. The method according to claim 3, characterized in that Sending the drawn picture and the position relationship matrix to the second client includes: Generate drawing materials based on the transparent texture layer and the screenshot; Acquiring display size information of the drawing on the transparent texture layer, wherein the display size information includes: a first ratio value between a display width of the drawing and a first reference value matching a part area of the target object, and a second ratio value between a display height of the drawing and a second reference value matching a part area of the target object; The drawing material, the display size information of the drawing picture and the position relationship matrix are sent to the second client.
5. A method for displaying a live broadcast object, characterized in that: include: Receive a drawing and a position relationship matrix sent by a first client, wherein the drawing is a drawing added in the first client for a target object displayed in a first display interface, the live screen content in the first display interface is provided by a second client, the first client and the second client are in a live connection state, and the position relationship matrix is obtained by the first client based on the following steps: obtaining position information of key points of parts of the target object; determining preset position information of the drawing in the first display interface; using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information, and weight coefficients to construct a position equation; solve the position equation to obtain a coefficient value corresponding to the weight coefficient; construct a coefficient matrix based on the coefficient value to obtain a position relationship matrix between the drawing and the part area of the target object in the first display interface; The drawn picture is displayed in a second display interface of the second client according to the position relationship matrix.
6. The method according to claim 5, characterized in that The step of obtaining the position information of the key points of the parts includes: Extracting position information of key points of a part from the part region of the target object displayed in the second display interface; or Receive the position information of the key points of the part sent by the first client.
7. A live broadcast object display device, characterized in that: include: A processing unit, configured to display a drawing added for a target object in a first display interface in response to a drawing operation triggered in a first client, wherein the live screen content in the first display interface is provided by a second client, and the first client and the second client are in a live connection state; A determination unit is used to obtain the position information of the key points of the parts of the target object; determine the preset position information of the drawn picture in the first display interface; use the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information, and the weight coefficient to construct a position equation; solve the position equation to obtain the coefficient value corresponding to the weight coefficient; construct a coefficient matrix based on the coefficient value to obtain a position relationship matrix between the drawn picture and the part area of the target object in the first display interface; The first display unit is used to send the drawn picture and the position relationship matrix to the second client, so that the drawn picture is displayed according to the position relationship matrix in a second display interface of the second client.
8. A live broadcast object display device, characterized in that: Applied to the second client, including: A receiving unit, used for receiving a drawing picture and a position relationship matrix sent by a first client, wherein the drawing picture is a picture added in the first client for a target object displayed in a first display interface, the live screen content in the first display interface is provided by a second client, the first client and the second client are in a live connection state, and the position relationship matrix is obtained by the first client based on the following steps: obtaining the position information of the key points of the parts of the target object; determining the preset position information of the drawing picture in the first display interface; using the position coordinates on each direction axis carried in the position information of each key point of the part and the position coordinates on each direction axis carried in the preset position information, and weight coefficients to construct a position equation; solve the position equation to obtain the coefficient value corresponding to the weight coefficient; construct a coefficient matrix based on the coefficient value to obtain the position relationship matrix between the drawing picture and the part area of the target object in the first display interface; A second display unit is used to display the drawn picture according to the position relationship matrix in a second display interface of the second client.
9. A computer-readable storage medium, 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 6 when executed.
10. An electronic device comprising a memory and a processor, 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 6 through the computer program.
Citation Information
Patent Citations
Video live streaming interaction method, device and system, electronic equipment and storage medium
CN111147880A
Virtual image model control method, device, electronic equipment and storage medium
CN112581571A
