Beauty method, parameter maintenance method, device, electronic device and storage medium
By obtaining and recording the corresponding relationship of beauty parameters of different live broadcast platforms, the mutual conversion of beauty parameters is achieved, which solves the problem of long adjustment of beauty parameters between different live broadcast platforms and improves live broadcast efficiency.
Patent Information
- Application Number
- CN202010975503.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-09-16
AI Technical Summary
Between different live broadcast platforms, anchors need to spend more time adjusting beauty parameters to achieve similar live broadcast effects, resulting in lower live broadcast efficiency.
By obtaining the beauty parameters correspondence between the first spatial variable table and the second spatial variable table, it is recorded in the spatial variable maintenance strategy to achieve mutual conversion of beauty parameters.
The anchor can use the same beauty parameters on different live broadcast platforms to achieve the same live broadcast effect without adjusting the beauty parameters of each platform, thereby improving live broadcast efficiency.
Smart Images

Figure CN112102195B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and more specifically, to a beauty method, a parameter maintenance method, a device, an electronic device, and a storage medium. Background Art
[0002] In scenarios such as online live streaming, the live streaming platform can adopt some beauty strategies to perform some beauty modifications on target objects in the live streaming stream, such as the anchor's portrait, so as to improve the live streaming effect.
[0003] However, different live broadcast platforms generally adopt different beautification strategies. Although the effects of beauty modification are similar, the beauty parameters used may be different. As a result, when the anchor broadcasts on different live broadcast platforms, in order to make the live broadcast effect similar, it takes a lot of time to adjust the beauty parameters, resulting in low live broadcast efficiency. Summary of the invention
[0004] The purpose of this application is to provide a beautification method, parameter maintenance method, device, electronic device and storage medium, which can improve the efficiency of live broadcasting.
[0005] In order to achieve the above purpose, the technical solution adopted in this application is as follows:
[0006] In a first aspect, the present application provides a method for maintaining beauty parameters, the method comprising:
[0007] Obtain a first spatial variable table and a second spatial variable table; wherein the first spatial variable table and the second spatial variable table respectively include a plurality of groups of beautification parameters, and each of the beautification parameters corresponds to a beautification effect;
[0008] For a first beautification parameter in the first spatial variable table, determining in the second spatial variable table a second beautification parameter corresponding to the same beautification effect as the first beautification parameter;
[0009] The correspondence between the first beautification parameter and the second beautification parameter is saved, and the correspondence is recorded in a spatial variable maintenance strategy; wherein the spatial variable maintenance strategy records the correspondence between the beautification parameters in the first spatial variable table and the beautification parameters in the second spatial variable table.
[0010] In a second aspect, the present application provides a beautification method, which is applied to a server, wherein the server establishes communication with a live broadcast initiator; the server stores a spatial variable maintenance strategy obtained by using the beautification parameter maintenance method provided in the first aspect of the present application;
[0011] The method comprises:
[0012] Receiving the live broadcast image to be processed and a parameter conversion request for initial beauty parameters sent by the live broadcast initiator; wherein the initial beauty parameters are beauty parameters for the first spatial variable table;
[0013] In response to the parameter conversion request, searching the spatial variable maintenance strategy for target beauty parameters corresponding to the initial beauty parameters; wherein the target beauty parameters are beauty parameters for the second spatial variable table;
[0014] The target beauty parameters are used to beautify the live image to be processed, and the live image after the beauty processing is sent out.
[0015] In a third aspect, the present application provides a beauty parameter maintenance device, the device comprising:
[0016] A first processing module is used to obtain a first spatial variable table and a second spatial variable table; wherein the first spatial variable table and the second spatial variable table respectively include a plurality of groups of beautification parameters, and each of the beautification parameters corresponds to a beautification effect;
[0017] The first processing module is further configured to, for a first beautification parameter in the first spatial variable table, determine in the second spatial variable table a second beautification parameter having the same beautification effect as the first beautification parameter;
[0018] A saving module is used to save the correspondence between the first beautification parameter and the second beautification parameter, and record the correspondence in a spatial variable maintenance strategy; wherein the spatial variable maintenance strategy records the correspondence between the beautification parameters in the first spatial variable table and the beautification parameters in the second spatial variable table.
[0019] In a fourth aspect, the present application provides a beauty device, which is applied to a server, wherein the server establishes communication with a live broadcast initiator; the server stores a spatial variable maintenance strategy obtained by using the beauty parameter maintenance method provided in the first aspect of the present application;
[0020] The device comprises:
[0021] A receiving module, configured to receive the live broadcast image to be processed sent by the live broadcast initiator, and a parameter conversion request for initial beauty parameters; wherein the initial beauty parameters are beauty parameters for the first spatial variable table;
[0022] A second processing module is configured to, in response to the parameter conversion request, search for a target beauty parameter corresponding to the initial beauty parameter in the space variable maintenance strategy; wherein the target beauty parameter is a beauty parameter for the second space variable table;
[0023] The second processing module is further used to perform beauty processing on the live broadcast image to be processed using the target beauty parameters, and send out the live broadcast image after the beauty processing.
[0024] In a fifth aspect, the present application provides an electronic device, comprising a memory for storing one or more programs; a processor; when the one or more programs are executed by the processor, the above-mentioned beauty parameter maintenance method or beauty method is implemented.
[0025] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned beautification parameter maintenance method or beautification method.
[0026] The present application provides a beautification method, parameter maintenance method, device, electronic device and storage medium, which obtains the correspondence between each beauty parameter in a first spatial variable table and each beauty parameter in a second spatial variable table, and records the obtained correspondence in a spatial variable maintenance strategy. Therefore, based on the obtained spatial variable maintenance strategy, the beauty parameters for the first spatial variable table and the beauty parameters for the second spatial variable table can be converted into each other; in this way, when the anchor starts live broadcast on different live broadcast platforms, the same beauty parameters can be used to achieve the same live broadcast effect on different live broadcast platforms without adjusting the beauty parameters of each live broadcast platform, thereby improving the live broadcast efficiency.
[0027] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A schematic diagram of an interactive scenario of the live broadcast system provided by the present application is shown;
[0030] Figure 2 A schematic diagram showing a spatial variable table;
[0031] Figure 3 A schematic structural block diagram of an electronic device provided by the present application is shown;
[0032] Figure 4 An exemplary flow chart showing the method for maintaining beauty parameters provided by the present application is shown;
[0033] Figure 5 A schematic diagram showing a DQN model;
[0034] Figure 6 An exemplary flow chart of the beautification method provided by the present application is shown;
[0035] Figure 7 An exemplary structural block diagram of the beauty parameter maintenance device provided by the present application is shown;
[0036] Figure 8 An exemplary structural block diagram of the beauty device provided in the present application is shown.
[0037] In the figure: 100-electronic device; 101-memory; 102-processor; 103-communication interface; 400-beautification parameter maintenance device; 401-first processing module; 402-saving module; 500-beautification device; 501-transceiver module; 502-second processing module. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below in conjunction with the drawings in some embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Generally, the components of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0039] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents some selected embodiments of the present application. All other embodiments obtained by ordinary technicians in the field without creative work based on some embodiments in the present application are within the scope of protection of the present application.
[0040] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0041] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0042] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0043] See also Figure 1 , Figure 1 A schematic diagram of an interactive scenario of the live broadcast system provided by the present application is shown. In some embodiments, the live broadcast system may be a live broadcast platform for, for example, Internet live broadcast. The live broadcast system may include a server, a live broadcast initiator, and a live broadcast receiver. The server may establish communication with the live broadcast receiver and the live broadcast initiator, respectively, and the server may provide live broadcast services to the live broadcast receiver and the live broadcast initiator. For example, the anchor may provide a real-time online live broadcast stream to the audience through the live broadcast initiator and transmit it to the server, and the live broadcast receiver may pull the live broadcast stream from the server for online viewing or playback.
[0044] In some implementation scenarios, the live broadcast receiving end and the live broadcast initiating end can be used interchangeably. For example, the anchor of the live broadcast initiating end can use the live broadcast initiating end to provide live video services to the audience, or watch the live videos provided by other anchors as an audience. For another example, the audience of the live broadcast receiving end can also use the live broadcast receiving end to watch the live videos provided by the anchor they follow, or provide live video services to other audiences as an anchor.
[0045] In some embodiments, the live broadcast receiving end and the live broadcast initiating end may include but are not limited to mobile devices, tablet computers, laptop computers, or any combination of two or more thereof. In some embodiments, the mobile device may include but are not limited to wearable devices, smart mobile devices, augmented reality devices, etc., or any combination thereof. In some embodiments, the smart mobile device may include but are not limited to smart phones, personal digital assistants (PDAs), gaming devices, navigation devices, or point of sale (POS) devices, etc., or any combination thereof.
[0046] In addition, in some possible implementations, there may be zero, one, or more live broadcast receiving terminals and live broadcast initiating terminals accessing the server. Figure 1 Among them, the live broadcast receiving end and the live broadcast initiating end can be installed with an Internet product for providing Internet live broadcast services. For example, the Internet product can be an application APP, a Web page, a small program, etc. related to the Internet live broadcast service used in a computer or a smart phone.
[0047] In some embodiments, the server may be a single physical server or a server group consisting of multiple physical servers for performing different data processing functions. The server group may be centralized or distributed (for example, the server may be a distributed system). In some possible implementations, if the server uses a single physical server, different logical server components may be assigned to the physical server based on different live broadcast service functions.
[0048] Understandably, Figure 1 The live broadcast system shown is only a possible example. In some other possible embodiments of the present application, the live broadcast system may also include only Figure 1 Some of the components shown may also include other components.
[0049] Combination Figure 2 As shown, in the above-mentioned live broadcast scenario, taking the beauty effects of face thinning, eye enlargement, and skin smoothing as an example, the live broadcast platform can maintain the following Figure 2 The three-dimensional space variable table shown is used as a beautification strategy; wherein the R parameter in the three-dimensional space variable table can be used to characterize the degree of face thinning, the G parameter can be used to characterize the degree of eye enlargement, and the B parameter can be used to characterize the degree of skin smoothing.
[0050] In addition, exemplarily, the center point parameter of the three-dimensional space variable table can be (0,0,0), and the beauty effect corresponding to the center point can be 0 face slimming, 0 eyes enlargement, and 0 skin smoothing; and as the corresponding parameters increase, the corresponding degree of beauty increases; for example, the larger the R parameter, the greater the corresponding degree of face slimming.
[0051] In some scenarios, the same anchor may broadcast live on multiple live platforms. In order to minimize the differences in the live images viewed by viewers on different live platforms, the anchor can adaptively adjust the beauty parameters used in the live broadcast on each live platform, so that the beauty effects in the live images presented by the anchor on different live platforms are relatively close.
[0052] However, in some scenarios, since different live broadcast platforms generally adopt different beautification strategies, that is, for the same beautification effect, the beautification parameters adopted by different live broadcast platforms may be different. For example, the beautification effect of big eyes 0.6 of live broadcast platform A is closer to the beautification effect of big eyes 0.4 of live broadcast platform B. As a result, when the anchor starts live broadcast on different live broadcast platforms, in order to make the live broadcast effects on each live broadcast platform closer, the anchor needs to spend more time adjusting the beauty parameters of each live broadcast platform, and the live broadcast efficiency is low.
[0053] Based on this, in order to solve at least some of the above-mentioned defects, a possible implementation method provided by the present application is: by obtaining the correspondence between each beauty parameter in the first spatial variable table and each beauty parameter in the second spatial variable table, and recording the obtained correspondence in the spatial variable maintenance strategy, the beauty parameters for the first spatial variable table and the beauty parameters for the second spatial variable table can be converted into each other based on the obtained spatial variable maintenance strategy; in this way, when the anchor starts live broadcast on different live broadcast platforms, the same beauty parameters can be used to achieve the same live broadcast effect on different live broadcast platforms without adjusting the beauty parameters of each live broadcast platform, thereby improving the live broadcast efficiency.
[0054] See also Figure 3 , Figure 3 A schematic structural block diagram of the electronic device 100 provided in the present application is shown. In some embodiments, the electronic device 100 can be used as a device for executing the beauty method provided in the present application, such as the above-mentioned server; the electronic device 100 can also be used as a device for executing the beauty parameter maintenance method provided in the present application. For example, the electronic device 100 can obtain a spatial variable maintenance strategy by executing the beauty parameter maintenance method provided in the present application, and send the spatial variable maintenance strategy to the server. Figure 1 The server in the embodiment of the present invention executes the beautification method provided by the present application based on the obtained spatial variable maintenance strategy.
[0055] It can be understood that in some embodiments of the present application, the electronic device 100 can not only execute the beauty parameter maintenance method provided in the present application, but also act as a server to execute the beauty method provided in the present application based on the obtained spatial variable maintenance strategy.
[0056] In some embodiments, the electronic device 100 may include a memory 101, a processor 102, and a communication interface 103, wherein the memory 101, the processor 102, and the communication interface 103 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines.
[0057] The memory 101 can be used to store software programs and modules, such as the beauty parameter maintenance device provided in this application or the program instructions / modules corresponding to the beauty device. The processor 102 executes the software programs and modules stored in the memory 101 to perform various functional applications and data processing, and then executes the beauty parameter maintenance method or the steps of the beauty method provided in this application. The communication interface 103 can be used to communicate signaling or data with other node devices.
[0058] Among them, the memory 101 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0059] The processor 102 may be an integrated circuit chip with signal processing capability. The processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0060] Understandably, Figure 3 The structure shown is for illustration only. The electronic device 100 may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0061] Below Figure 3 The electronic device 100 shown is used as an exemplary execution entity to exemplarily illustrate the beauty parameter maintenance method provided in the present application.
[0062] See also Figure 4 , Figure 4 An exemplary flow chart of the beauty parameter maintenance method provided by the present application is shown. The beauty parameter maintenance method may include the following steps:
[0063] Step 201, obtaining a first spatial variable table and a second spatial variable table.
[0064] Step 203 : for the first beautification parameter in the first spatial variable table, determine in the second spatial variable table a second beautification parameter having the same beautification effect as the first beautification parameter.
[0065] Step 205 : Save the corresponding relationship between the first beautification parameter and the second beautification parameter, and record the corresponding relationship in the spatial variable maintenance strategy.
[0066] In some embodiments, taking the maintenance scheme of beauty parameters under two live broadcast platforms as an example, the electronic device can respectively obtain the first space variable table and the second space variable table used by the two live broadcast platforms respectively; wherein the first space variable table and the second space variable table can both be as follows Figure 2 The spatial variable table shown in FIG. 1 is a spatial variable table, and the dimension of the first spatial variable table is the same as the dimension of the second spatial variable table. For example, the first spatial variable table and the second spatial variable table can both be N-dimensional spatial variable tables. For example, they can both be as follows: Figure 2 The three-dimensional space variable table shown, N is a positive integer.
[0067] In addition, in some embodiments, the first spatial variable table and the second spatial variable table may respectively include multiple sets of beauty parameters; for example, referring to Figure 2 As shown in the three-dimensional space variable table, each point of the three-dimensional space variable table can represent a set of beautification parameters, and each set of beautification parameters can correspond to a beautification effect.
[0068] Of course, it is understandable that different groups of beautification parameters in the same spatial variable table may correspond to different beautification effects, and the same beautification parameters corresponding to the first spatial variable table and the second spatial variable table may also correspond to different beautification effects.
[0069] Next, the electronic device may compare the first beautification parameter in the first spatial variable table with the beautification effects corresponding to the respective beautification parameters, and determine the second beautification parameter having the same beautification effect as the first beautification parameter in the second spatial variable table.
[0070] Among them, when the electronic device determines the first beauty parameter in the first spatial variable table and the second beauty parameter in the second spatial variable table, the electronic device can save the correspondence between the first beauty parameter and the second beauty parameter, and record the correspondence between the first beauty parameter and the second beauty parameter in a spatial variable maintenance strategy. The spatial variable maintenance strategy can record the correspondence between the beauty parameters in the first spatial variable table and the beauty parameters in the second spatial variable table.
[0071] In this way, the electronic device can obtain the corresponding relationships between multiple beauty parameters in the first space variable table and multiple beauty parameters in the second space variable table according to the above scheme provided in the present application, and record the obtained corresponding relationships in the space variable maintenance strategy.
[0072] For example, in the example where Big Eye 0.6 on live broadcast platform A and Big Eye 0.4 on live broadcast platform B have the same beauty effect, the above spatial variable maintenance strategy can record the following content:
[0073] Live broadcast platform A Live broadcast platform B …… …… Big Eye 0.6 Big Eye 0.4 …… ……
[0074] In some embodiments, when the electronic device executes step 203, the electronic device may use the beauty effect corresponding to the first beauty parameter as a comparison benchmark, and compare the beauty effects corresponding to each beauty parameter contained in the second spatial variable table with the beauty effect corresponding to the first beauty parameter, thereby determining the second beauty parameter having the same beauty effect as the first beauty parameter in the second spatial variable table.
[0075] Exemplarily, when an electronic device executes the beautification parameter maintenance method provided in the present application, the electronic device can obtain beauty images corresponding to each beauty image, such as obtaining a first beauty image obtained after beautification processing according to a first beauty parameter, and multiple second beauty images obtained after beautification processing according to multiple beauty parameters in a second spatial variable table.
[0076] Based on this, when executing step 203, the electronic device can take the first beauty image corresponding to the first beauty parameter as a benchmark, and use the pixel difference between the first beauty image and each second beauty image as a judgment basis. When the pixel difference between one of the second beauty images and the first beauty image is less than a set threshold, the electronic device can determine the second beauty image at this time as a target beauty image with the same beauty effect as the first beauty image, and determine the beauty parameter corresponding to the target beauty image as the second beauty parameter.
[0077] In some scenarios, in order to improve the ability of electronic devices to obtain the correspondence between multiple beauty parameters in the first spatial variable table and multiple beauty parameters in the second spatial variable table, the electronic device can obtain the target beauty image having the same beauty effect as the first beauty image based on a pre-built machine learning model.
[0078] For example, the electronic device may be pre-built with Figure 5 The DQN (Deep Q-Network) model shown is trained based on reinforcement learning.
[0079] For example, in the process of reinforcement learning of the DQN model, the electronic device can use the beautification effect corresponding to the first beautification image and each second beautification image as a response value, and use the difference value of the beautification effect between the first beautification image and each second beautification image as a feedback value, for example Figure 5 The DQN model is reinforced by learning the target beautification image output by the DQN model, thereby obtaining a target beautification image having the same beautification effect as the first beautification image.
[0080] In this way, the electronic device uses a machine learning model to output a target beauty image with the same beauty effect as the first beauty image based on reinforcement learning. At the same time, the machine learning model learns more correspondences between beauty parameters in the first spatial variable table and beauty parameters in the second spatial variable table to improve the generation speed of the above-mentioned spatial variable maintenance strategy. There is no need to calculate the correspondences between all the beauty parameters in the first spatial variable table and the beauty parameters in the second spatial variable table, which can reduce the amount of calculation and save computing resources.
[0081] In some possible application scenarios, based on the spatial variable maintenance strategy obtained above, the spatial variable maintenance strategy can be saved in Figure 1 In the server shown, the server can establish communication with the live broadcast initiator, and the anchor can use the live broadcast initiator to generate a live broadcast stream and send the live broadcast stream to the server; when the server receives the live broadcast stream, the server can execute the following beauty method provided in this application based on the saved spatial variable maintenance strategy, beautify the live image in the live broadcast stream, and send out the live broadcast image after beauty processing.
[0082] It can be understood that in some possible scenarios, the above-mentioned electronic device and the server can be different devices. When the electronic device obtains the spatial variable maintenance strategy by executing the above-mentioned beauty parameter maintenance method, the electronic device can send the spatial variable maintenance strategy to the server, and then the server executes the beauty method provided in this application based on the spatial variable maintenance strategy; in addition, in some other possible scenarios of the present application, the above-mentioned electronic device and the server can also be the same device. For example, the above-mentioned electronic device is the server. When the server obtains the spatial variable maintenance strategy by executing the above-mentioned beauty parameter maintenance method, the server also executes the beauty method provided in this application based on the spatial variable maintenance strategy.
[0083] For example, see Figure 6 , Figure 6 An exemplary flow chart of the beautification method provided by the present application is shown, and the beautification method may include the following steps:
[0084] Step 301: receiving a live broadcast image to be processed sent by a live broadcast initiator and a parameter conversion request for initial beauty parameters.
[0085] Step 303 : In response to the parameter conversion request, the target beauty parameters corresponding to the initial beauty parameters are searched in the spatial variable maintenance strategy.
[0086] Step 305 , perform beauty processing on the live broadcast image to be processed using the target beauty parameters, and send out the live broadcast image after the beauty processing.
[0087] In some embodiments, taking the example of the server using the second space variable table for beautification processing by default, when the anchor operates the live broadcast initiator to instruct the use of the beauty strategy in the second space variable table to request the server to perform beauty processing, the anchor can input the initial beauty parameters at the live broadcast initiator; the live broadcast initiator can send the received initial beauty parameters and the recorded live broadcast image to be processed to the server, so that the server uses the second space variable table and the initial beauty parameters to perform beauty processing on the live broadcast image to be processed.
[0088] In addition, when the anchor operates the live broadcast initiator to instruct the server to perform beauty processing using the beauty strategy in the first space variable table request, the anchor can input the parameter conversion request and the initial beauty parameters at the live broadcast initiator; the live broadcast initiator can send the received initial beauty parameters, parameter conversion request and the recorded live broadcast image to be processed to the server.
[0089] In some embodiments, the display interface of the live broadcast initiator may include a conversion request control. When the host of the live broadcast initiator clicks the conversion request control, the live broadcast initiator determines that the parameter conversion request input by the host is received.
[0090] In this way, when the server receives the live image to be processed sent by the live broadcast initiator and a parameter conversion request for the initial beauty parameters, the server determines that the initial beauty parameters are beauty parameters for the first spatial variable table, and the server can respond to the parameter conversion request and find out the target beauty parameters corresponding to the initial beauty parameters in the spatial variable maintenance strategy, and the target beauty parameters are the beauty parameters for the second spatial variable table; that is: the server can respond to the parameter conversion request sent by the live broadcast initiator and convert the initial beauty parameters for the first spatial variable table into the target beauty parameters for the second spatial variable table.
[0091] Therefore, the server can use the target beauty parameters obtained by conversion to perform beauty processing on the live broadcast image to be processed, and send the live broadcast image after beauty processing, such as feeding it back to the live broadcast initiator, or sending it to the live broadcast receiver, etc.
[0092] It can be seen that based on the above-mentioned scheme provided in the present application, by obtaining the correspondence between each beauty parameter in the first spatial variable table and each beauty parameter in the second spatial variable table, and recording the obtained correspondence in the spatial variable maintenance strategy, the beauty parameters for the first spatial variable table and the beauty parameters for the second spatial variable table can be converted into each other based on the obtained spatial variable maintenance strategy; in this way, when the anchor starts live broadcast on different live broadcast platforms, the same beauty parameters can be used to achieve the same live broadcast effect on different live broadcast platforms without adjusting the beauty parameters of each live broadcast platform, thereby improving the live broadcast efficiency.
[0093] Of course, it can be understood that the above is only an example, and the conversion of beauty parameters for the first spatial variable table into beauty parameters for the second spatial variable table is used as an example to illustrate the beauty method provided in the present application; in some other possible implementations of the present application, the beauty parameters for the second spatial variable table can also be converted into beauty parameters for the first spatial variable table, and the present application does not limit the conversion direction of the beauty parameters.
[0094] In addition, based on the same inventive concept as the above-mentioned beauty parameter maintenance method provided in this application, please refer to Figure 7 , Figure 7 An exemplary structural block diagram of a beauty parameter maintenance device 400 provided in the present application is shown. The beauty parameter maintenance device 400 may include a first processing module 401 and a storage module 402 .
[0095] The first processing module 401 is used to obtain a first spatial variable table and a second spatial variable table; wherein the first spatial variable table and the second spatial variable table respectively include a plurality of groups of beautification parameters, and each beautification parameter corresponds to a beautification effect;
[0096] The first processing module 401 is further configured to determine, in the second spatial variable table, a second beauty parameter corresponding to the first beauty parameter and having the same beauty effect as the first beauty parameter, for the first spatial variable table;
[0097] The saving module 402 is used to save the correspondence between the first beautification parameter and the second beautification parameter, and record the correspondence in the space variable maintenance strategy; wherein the space variable maintenance strategy records the correspondence between the beautification parameters in the first space variable table and the beautification parameters in the second space variable table.
[0098] Optionally, as a possible implementation manner, when the first processing module 401 determines, in the second spatial variable table, a second beauty parameter having the same beauty effect as the first beauty parameter corresponding to the first beauty parameter for the first spatial variable table, the first processing module 401 is specifically configured to:
[0099] Taking the first beautification image corresponding to the first beautification parameter as a reference, among the multiple second beautification images beautified according to the second spatial variable table, find a target beautification image having the same beautification effect as the first beautification image, and determine the beautification parameter corresponding to the target beautification image as the second beautification parameter.
[0100] Optionally, as a possible implementation manner, the first processing module 401, taking the first beautification image corresponding to the first beautification parameter as a reference, searches for a target beautification image having the same beautification effect as the first beautification image from a plurality of second beautification images that are beautified according to the second spatial variable table, specifically for:
[0101] The beautification effects corresponding to the first beautification image and each second beautification image are taken as response values, and the difference in beautification effects between the first beautification image and each second beautification image is taken as feedback values, reinforcement learning is performed on the pre-constructed machine learning model, and a target beautification image with the same beautification effect as the first beautification image is obtained as output by the machine learning model.
[0102] In contrast, based on the same inventive concept as the above-mentioned beautification method provided in this application, please refer to 8, Figure 8 An exemplary structural block diagram of a beautification device 500 provided in the present application is shown. The beautification device 500 may include a transceiver module 501 and a second processing module 502 .
[0103] The transceiver module 501 is used to receive the live broadcast image to be processed sent by the live broadcast initiator, and a parameter conversion request for the initial beauty parameter; wherein the initial beauty parameter is the beauty parameter for the first space variable table;
[0104] The second processing module 502 is used to find the target beauty parameters corresponding to the initial beauty parameters in the space variable maintenance strategy in response to the parameter conversion request; wherein the target beauty parameters are beauty parameters for the second space variable table;
[0105] The second processing module 502 is further used to perform beauty processing on the live broadcast image to be processed using the target beauty parameters;
[0106] The transceiver module 501 is also used to send the live broadcast image after the beauty processing.
[0107] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to some embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and the module, program segment or a part of a code includes one or more executable instructions for implementing a specified logical function.
[0108] It should also be noted that in some alternative implementations, the functions marked in the blocks may also occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved.
[0109] It should also be noted that each box in the block diagram and / or flowchart, and combinations of boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0110] In addition, in some embodiments of the present application, the functional modules may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0111] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in some embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.
[0112] The above description is only a partial embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0113] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A method for maintaining facial beauty parameters, characterized in that: The method comprises: Obtain a first spatial variable table and a second spatial variable table; wherein the first spatial variable table and the second spatial variable table respectively include a plurality of groups of beauty parameters, each of the beauty parameters corresponds to a beauty effect, the first spatial variable table and the second spatial variable table respectively belong to two live broadcast platforms, and the dimension of the first spatial variable table is the same as the dimension of the second spatial variable table; For a first beautification parameter in the first spatial variable table, determining in the second spatial variable table a second beautification parameter corresponding to the same beautification effect as the first beautification parameter; The correspondence between the first beautification parameter and the second beautification parameter is saved, and the correspondence is recorded in a spatial variable maintenance strategy; wherein the spatial variable maintenance strategy records the correspondence between the beautification parameters in the first spatial variable table and the beautification parameters in the second spatial variable table.
2. The method according to claim 1, characterized in that The step of determining, in the second spatial variable table, a second beauty parameter corresponding to the first beauty parameter and having the same beauty effect as the first beauty parameter for the first spatial variable table includes: Taking the first beautification image corresponding to the first beautification parameters as a reference, among the multiple second beautification images beautified according to the second spatial variable table, find a target beautification image having the same beautification effect as the first beautification image, and determine the beauty parameters corresponding to the target beautification image as the second beauty parameters.
3. The method according to claim 2, characterized in that The step of taking the first beautification image corresponding to the first beautification parameter as a reference and searching for a target beautification image having the same beautification effect as the first beautification image from a plurality of second beautification images that have been beautified according to the second spatial variable table comprises: The beautification effects corresponding to the first beautification image and each of the second beautification images are taken as response values, and the difference value of the beautification effects between the first beautification image and each of the second beautification images is taken as feedback values, reinforcement learning is performed on the pre-constructed machine learning model, and a target beautification image with the same beautification effect as the first beautification image output by the machine learning model is obtained.
4. A facial beautification method, characterized in that: Applied to a server, the server establishes communication with a live broadcast initiator; The server stores a spatial variable maintenance strategy obtained by using the beauty parameter maintenance method according to any one of claims 1 to 3; The method comprises: Receiving the live broadcast image to be processed and a parameter conversion request for initial beauty parameters sent by the live broadcast initiator; wherein the initial beauty parameters are beauty parameters for the first spatial variable table; In response to the parameter conversion request, searching the spatial variable maintenance strategy for target beauty parameters corresponding to the initial beauty parameters; wherein the target beauty parameters are beauty parameters for the second spatial variable table; The target beauty parameters are used to beautify the live image to be processed, and the live image after the beauty processing is sent out.
5. A facial beauty parameter maintenance device, characterized in that: The device comprises: A first processing module is used to obtain a first spatial variable table and a second spatial variable table; wherein the first spatial variable table and the second spatial variable table respectively include a plurality of groups of beauty parameters, each of the beauty parameters corresponds to a beauty effect, the first spatial variable table and the second spatial variable table respectively belong to two live broadcast platforms, and the dimension of the first spatial variable table is the same as the dimension of the second spatial variable table; The first processing module is further configured to, for a first beautification parameter in the first spatial variable table, determine in the second spatial variable table a second beautification parameter having the same beautification effect as the first beautification parameter; A saving module is used to save the correspondence between the first beautification parameter and the second beautification parameter, and record the correspondence in a spatial variable maintenance strategy; wherein the spatial variable maintenance strategy records the correspondence between the beautification parameters in the first spatial variable table and the beautification parameters in the second spatial variable table.
6. The device according to claim 5, characterized in that When the first processing module determines, in the second spatial variable table, a second beautification parameter corresponding to the same beautification effect as the first beautification parameter for the first spatial variable table, the first processing module is specifically configured to: Taking the first beautification image corresponding to the first beautification parameters as a reference, among the multiple second beautification images beautified according to the second spatial variable table, find a target beautification image having the same beautification effect as the first beautification image, and determine the beauty parameters corresponding to the target beautification image as the second beauty parameters.
7. The device according to claim 6, characterized in that The first processing module, taking the first beautification image corresponding to the first beautification parameter as a reference and searching for a target beautification image having the same beautification effect as the first beautification image from a plurality of second beautification images beautified according to the second spatial variable table, is specifically configured to: The beautification effects corresponding to the first beautification image and each of the second beautification images are taken as response values, and the difference value of the beautification effects between the first beautification image and each of the second beautification images is taken as feedback values, reinforcement learning is performed on the pre-constructed machine learning model, and a target beautification image with the same beautification effect as the first beautification image output by the machine learning model is obtained.
8. A facial beautification device, characterized in that: The method is applied to a server, wherein the server establishes communication with a live broadcast initiator; the server stores a spatial variable maintenance strategy obtained by using the beauty parameter maintenance method according to any one of claims 1 to 3; The device comprises: A transceiver module, configured to receive the live broadcast image to be processed sent by the live broadcast initiator, and a parameter conversion request for initial beauty parameters; wherein the initial beauty parameters are beauty parameters for the first spatial variable table; A second processing module is configured to, in response to the parameter conversion request, search for a target beauty parameter corresponding to the initial beauty parameter in the space variable maintenance strategy; wherein the target beauty parameter is a beauty parameter for the second space variable table; The second processing module is further used to perform beauty processing on the live broadcast image to be processed using the target beauty parameter; The transceiver module is also used to send out the live broadcast image after beauty processing.
9. An electronic device, characterized in that: include: A memory for storing one or more programs; processor; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Image processing method and device
CN106231207A
Live video stream processing method and device
CN106341696A