Face image adjusting method and terminal equipment
By combining the overall beauty function and single beauty function in the image processing application of terminal devices, and using adjustment controls and indication information mechanisms, the personalized problem of users' needs for facial image beautification is solved, real-time adjustment and easy operation of beauty effects are achieved.
Patent Information
- Application Number
- CN202311582436.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2043-11-22
AI Technical Summary
The prior art is difficult to meet users' personalized needs for facial image beautification, especially when adjusting individual beauty functions, there are cumbersome operations.
By introducing a combination of overall beauty function and single beauty function in the image processing application of terminal devices, using adjustment controls and indication information mechanisms, users can turn on or adjust the single beauty function on the interface, and the actual beauty parameters are calculated by the system based on the interface beauty parameters and preset offset values entered by the user to ensure the personalization and real-timeness of the beauty effect.
It realizes that users can intuitively adjust the beauty effect on the interface, while avoiding the problem of interfering with each other and cumbersome operation caused by the opening and closing of the single beauty function, and improving the degree of personalization of the user experience and beauty effect.
Smart Images

Figure CN120070155A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technologies, and particularly to a method for adjusting a face image and a terminal device. Background Art
[0002] With the continuous development of image processing technologies, there are currently numerous applications that can provide image editing functions.
[0003] These applications can provide some image controls for users in the operation interface to assist users in adjusting to obtain pictures that meet the requirements. For example, controls for adjusting the picture ratio, controls for adjusting exposure parameters, and controls for adjusting filters, etc., can be provided in the operation interface. However, the current image controls can only adjust the color and composition of the image. As users' personalized needs are getting higher and higher, users usually have certain requirements for beautifying face images. Then, the problem of how to meet the beautification needs of users' face images needs to be solved. Summary of the Invention
[0004] Embodiments of this application provide a method for adjusting a face image and a terminal device, which are applied to the field of terminal technologies.
[0005] In a first aspect, embodiments of this application propose a method for adjusting a face image. Applied to a terminal device, the terminal device includes a first application with image processing capabilities. The method includes:
[0006] Display a first interface in the first application. The first interface includes an adjustment control, a first control corresponding to the overall beauty function, and at least one second control corresponding to each single beauty function. The adjustment control is used to adjust the beauty parameters of the beauty function selected by the adjustment control;
[0007] Determine a first actual beauty parameter of the overall beauty function according to the first interface beauty parameter of the overall beauty function indicated by the adjustment control;
[0008] When the first actual beauty parameter indicates that the overall beauty function is turned on, for any one of the single beauty functions belonging to the first function set, determine the difference between the second interface beauty parameter of the single beauty function indicated by the adjustment control and the offset value as the second actual beauty parameter of the single beauty function;
[0009] Adjust the initial face image captured by the camera of the terminal device according to the first actual beauty parameter of the overall beauty function and the second actual beauty parameters corresponding to each single beauty function to obtain a target face image, and display the target face image in the first interface.
[0010] In this implementation, by setting a difference between the second actual beauty parameter and the second interface beauty parameter, and the difference being the offset value set for a single beauty function, it can be achieved that in the interface, the user feels that the single beauty function is turned on, avoiding the need for the user to adjust the beauty parameters of each single beauty function one by one after closing the overall beauty function to turn on the single beauty function. At the same time, at the bottom layer, the beauty effect is applied to the single beauty function according to the second actual beauty parameter, so as to avoid the beauty effect of the single beauty function affecting the beauty effect of the overall beauty function.
[0011] In some implementations, when displaying the first interface, the initial value of the second interface beauty parameter is equal to the preset beauty parameter set for the single beauty function, and the preset beauty parameter is greater than the minimum beauty parameter corresponding to the single beauty function.
[0012] In this way, information that the single beauty function is turned on initially can be provided to the user, so that the user can clearly know which specific beauty functions are in effect, avoiding the user being unable to determine the specific beauty situation.
[0013] In some implementations, the offset value is equal to the preset beauty parameter, or the offset value is equal to the difference between the preset beauty parameter and the fixed adjustment value set for the single beauty function.
[0014] In this way, information that the single beauty function is turned on can be provided to the user on the interface, but actually the single beauty function at the bottom layer does not actually take effect, so as to avoid interference between beauty effects and at the same time avoid the problem of cumbersome subsequent operations.
[0015] In some implementations, when the first control is selected, a first indication information is displayed in the adjustment control, and the first indication information is used to indicate the first interface beauty parameter of the overall beauty function; the method further includes:
[0016] In response to a first adjustment operation on the adjustment control, update the first indication information in the adjustment control, and the updated first indication information is used to indicate the adjusted first interface beauty parameter.
[0017] In this way, through the first indication information, the user can timely determine the adjustment situation of the first interface beauty parameter.
[0018] In some implementations, for any one of the single beauty functions, when the second control corresponding to the single beauty function is selected, a second indication information is displayed in the adjustment control, and the second indication information is used to indicate the second interface beauty parameter of the single beauty function; the method further includes:
[0019] In response to a second adjustment operation acting on the adjustment control, update the second indication information in the adjustment control, and the updated second indication information is used to indicate the adjusted beauty parameters of the second interface.
[0020] In this way, through the second indication information, the user can timely determine the adjustment situation of the beauty parameters of the second interface.
[0021] In some implementation manners, the method further includes:
[0022] When the beauty parameters of the first interface are greater than the minimum beauty parameters corresponding to the overall beauty function, display third indication information in the first control, and the third indication information is used to indicate that the overall beauty function is turned on.
[0023] In some implementation manners, when initially displaying the first interface, the overall beauty function is default turned on, and the third indication information is default displayed in the first control.
[0024] In some implementation manners, the third indication information is further used to indicate the beauty parameters of the first interface of the overall beauty function.
[0025] In this way, by displaying the third indication information, the user can intuitively and quickly obtain the effective information of the overall beauty function.
[0026] In some implementation manners, the method further includes:
[0027] For any single beauty function, when the beauty parameters of the second interface of the single beauty function are greater than the minimum beauty parameters corresponding to the single beauty function, display fourth indication information in the second control corresponding to the single beauty function, and the fourth indication information is used to indicate that the single beauty function is turned on.
[0028] In some implementation manners, when initially displaying the first interface, the single beauty function is default turned on, and the fourth indication information is default displayed in the second control.
[0029] In some implementation manners, the fourth indication information is further used to indicate the beauty parameters of the second interface of the single beauty function.
[0030] In this way, by displaying the fourth indication information, the user can intuitively and quickly obtain the effective information of the single beauty function.
[0031] In some implementations, when the first actual beauty parameter indicates that the overall beauty function is turned on, for any single beauty function that does not belong to any of the first function sets, the second interface beauty parameter of the single beauty function indicated by the adjustment control is determined as the second actual beauty parameter of the single beauty function.
[0032] In some implementations, when the first actual beauty parameter indicates that the overall beauty function is turned off, for any single beauty function, the second interface beauty parameter of the single beauty function indicated by the adjustment control is determined as the second actual beauty parameter of the single beauty function.
[0033] In this way, it can be ensured that even if the overall beauty function is turned off, there is still a single beauty function that takes effect to achieve the beauty effect. And the user does not need to turn on each single beauty function one by one, but only needs to adjust the second interface beauty parameter for the single beauty function that is not satisfied with the beauty effect.
[0034] In some implementations, adjusting the initial face image collected by the camera of the terminal device according to the first actual beauty parameter of the overall beauty function and the second actual beauty parameters corresponding to each single beauty function to obtain a target face image includes:
[0035] Processing the initial face image according to the first actual beauty parameter and the adjustment model for implementing the overall beauty function to obtain an intermediate face image output by the adjustment model, where the adjustment model is used to perform feature analysis on the initial face image and output the intermediate face image based on the analyzed face features;
[0036] Adjusting the intermediate face image according to the second actual beauty parameter to obtain the target face image.
[0037] In this way, it is possible to cooperate with the two beauty adjustment methods of the overall beauty function and the single beauty function. On the basis of the beauty effect provided by the overall beauty function, the user can then perform personalized adjustment on a single beauty item that is not satisfied, so as to meet personal preferences and achieve a unique customized beauty effect.
[0038] In a second aspect, an embodiment of the present application proposes a method for adjusting a face image. Applied to a terminal device, the terminal device includes a first application with image processing capabilities, and the method includes:
[0039] Display a camera preview interface in the first application. The camera preview interface includes an adjustment control, a first control corresponding to the overall beauty function, and at least one second control corresponding to each individual beauty function. The adjustment control is used to adjust the beauty parameters of the selected beauty function.
[0040] In response to the selection of the first control, display first indication information in the adjustment control. The first indication information includes first interface beauty parameters for indicating the overall beauty function, and the first actual beauty parameters of the overall beauty function are consistent with the first interface beauty parameters.
[0041] In response to the selection of any one of the second controls, display second indication information in the adjustment control. The second indication information includes second interface beauty parameters for indicating the individual beauty function corresponding to the second control, and the second actual beauty parameters of the individual beauty function are the difference between the second interface beauty parameters and the offset value.
[0042] Display a target face image in the camera preview interface. The target face image is obtained by adjusting the initial face image collected by the camera of the terminal device according to the first actual beauty parameters and the second actual beauty parameters. The initial face image is an image collected in real time by the camera of the terminal device.
[0043] In some implementation manners, when displaying the camera preview interface, the initial second interface beauty parameters are equal to the preset beauty parameters set for the individual beauty function, and the preset beauty parameters are greater than the minimum beauty parameters corresponding to the individual beauty function.
[0044] In some implementation manners, the offset value is equal to the preset beauty parameter, or the offset value is equal to the difference between the preset beauty parameter and the fixed adjustment value set for the individual beauty function.
[0045] In a third aspect, embodiments of the present application provide a terminal device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, and so on.
[0046] The terminal device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method according to the first aspect or the second aspect.
[0047] In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method according to the first aspect or the second aspect is implemented.
[0048] In a fifth aspect, embodiments of the present application provide a computer program product including a computer program. When the computer program is run, the computer is made to execute the method according to the first aspect or the second aspect.
[0049] In a sixth aspect, embodiments of the present application provide a chip including a processor for calling a computer program in a memory to execute the method according to the first aspect or the second aspect.
[0050] It should be understood that the technical solutions of the second aspect to the fifth aspect of the present application correspond to those of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation manners are similar and will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a schematic diagram of the interface of the beautification processing application program provided by the embodiments of the present application;
[0052] Figure 2 Schematic diagram of the relationship of beauty processing provided for the implementation of this application;
[0053] Figure 3 Schematic diagram of the software structure of a terminal device provided for an embodiment of this application;
[0054] Figure 4 Schematic diagram of the first interface of beauty processing provided for an embodiment of this application;
[0055] Figure 5 Schematic diagram of the relationship between the beauty parameters of the second interface and the second actual beauty parameters provided for an embodiment of this application Figure 1 ;
[0056] Figure 6 Schematic diagram of the operation of the first interface provided for an embodiment of this application Figure 1 ;
[0057] Figure 7 Schematic diagram of the operation of the first interface provided for an embodiment of this application Figure 2 ;
[0058] Figure 8 Schematic diagram of the relationship between the beauty parameters of the second interface and the second actual beauty parameters provided for an embodiment of this application Figure 2 ;
[0059] Figure 9 Schematic diagram of the hardware structure of the terminal device provided for an embodiment of this application. Detailed implementation manners
[0060] For the convenience of clearly describing the technical solutions of the embodiments of this application, in the embodiments of this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
[0061] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.
[0062] It should be noted that "when..." in the embodiments of the present application can be the instant when a certain situation occurs or a period of time after a certain situation occurs. The embodiments of the present application do not make specific limitations on this. In addition, the display interface provided in the embodiments of the present application is only an example, and the display interface can also include more or less content.
[0063] To better understand the technical solution of the present application, the related technologies of the present application will be further introduced in detail below.
[0064] With the continuous development of image processing technology, a variety of image beautification technologies have emerged currently, and correspondingly, numerous applications that can provide image editing functions have emerged.
[0065] These applications can provide some image controls for users in the operation interface to assist users in adjusting to obtain pictures that meet the requirements. For example, controls for adjusting the picture ratio, controls for adjusting exposure parameters, and controls for adjusting filters, etc. can be provided in the operation interface. However, the current image controls can only achieve the adjustment of the color and composition of the image. As the personalized needs of users are getting higher and higher, users usually have certain requirements for the beautification of face images. Then, it is necessary to solve the problem of how to meet the beautification needs of users' face images.
[0066] In a possible implementation manner, in the scenario of taking a photo preview, adjustment controls for adjusting beauty parameters can be provided in the photo preview interface, and then in response to the user's adjustment operation of the beauty parameters, real-time beauty processing is performed on the face image captured by the camera in real time.
[0067] Alternatively, it can also be in the scenario where a face image has been obtained after shooting. Adjustment controls for the user to adjust beauty parameters are provided in the beauty adjustment interface, and then in response to the user's adjustment operation of the beauty parameters, real-time beauty processing is performed on the captured face image in real time.
[0068] Both of the above scenarios can apply the technical solution introduced in this application. For the scenario of photo-taking preview introduced above, the face image captured by the camera in real time can be referred to as the initial face image, and the image after beautifying the initial face image can be referred to as the target face image. And for the face image obtained after photo-taking introduced above, the face image that has been captured after photo-taking can be referred to as the initial face image, and the image after beautifying the initial face image can be referred to as the target face image.
[0069] Among them, when the application beautifies the initial face image, for example, it can provide options for multiple single-item beautification functions in the application, such as beautification functions including face adjustment, eye adjustment, and nose adjustment. Users can select these single-item beautification functions and adjust the beautification degree of these beautification functions, so as to apply the beautification effect of the single-item beautification function to the initial face image, and thus obtain the beautified target face image.
[0070] Exemplarily, assume that in the interface, the beautification function of face adjustment is simply referred to as "face slimming", and its corresponding meaning is to make the face thinner. By adjusting the beautification parameters of the "face slimming" beautification function, the corresponding beautification effect of making the face thinner can be achieved. And assume that in the interface, the beautification function of eye adjustment is simply referred to as "big eyes", and its corresponding meaning is to make the eyes bigger. By adjusting the beautification parameters of the "big eyes" beautification function, the corresponding beautification effect of making the eyes bigger can be achieved. Assume that in the interface, the beautification function of nose adjustment is simply referred to as "nose slimming", and its corresponding meaning is to make the nose part smaller. By adjusting the beautification parameters of the "nose slimming" beautification function, the corresponding beautification effect of making the nose smaller can be achieved. In the examples of the following embodiments, the current abbreviations will be used when introducing the beautification functions.
[0071] Here, taking the photo-taking preview as an example for illustration, for example, it can be referred to Figure 1 to understand the implementation of the above-introduced various beautification functions. Figure 1 It is a schematic diagram of the interface of the application for beautification processing provided by the embodiments of this application.
[0072] As Figure 1 shown, for example, the photo-taking preview interface as shown can be displayed in the application. The photo-taking preview interface can include at least one selection control for a single-item beautification function. For example, Figure 1 the 101 in Figure 1 corresponds to the selection control for the "face slimming" single-item beautification function. For another example, Figure 1 the 102 in
[0073] Among them, the user can click on any selection control to select the corresponding beauty function. After that, the user can slide the adjustment control 103 on the interface to adjust the beauty parameters of the selected beauty function, so as to adjust the beauty level of the currently selected beauty function.
[0074] For example, referring to Figure 1 , assuming that the current user has performed a selection operation on the selection control 101, it can be determined that the user has selected the beauty function of "face slimming". After that, the user can move the slider 104 by sliding in the adjustment control 103 to adjust the beauty parameters of the "face slimming" beauty function, and the value of the beauty parameter indicated by the current slider can be displayed above the slider 104 (i.e., Figure 1 "52" in
[0075] Exemplarily, referring to Figure 1 , assuming that the current user adjusts the beauty parameters of the "face slimming" beauty function to "52", the application can perform face slimming processing with the face slimming adjustment degree indicated by the beauty parameter "52" on the real-time captured face image based on the beauty parameter, and display the face image with the beauty effect added in the interface in real time.
[0076] Based on Figure 1 's introduction, it can be understood that in the current related technologies, usually multiple single-beauty functions are provided in the application. The user can select and adjust the single-beauty function to achieve beauty processing of the face image.
[0077] However, in the above-mentioned implementation method, a set of standards is always used for beauty processing for different face images. For example, currently, both user A and user B have captured face images. Assuming that both user A and user B adjust the beauty parameters of the "face slimming" beauty function to "52", then the face slimming processing indicated by the beauty parameter "52" will be performed on both the face image of user A and the face image of user B.
[0078] But user A and user B are two different users, and there must be differences in their face shapes and facial features. Therefore, performing corresponding beauty processing based on the traditional single-beauty function adjustment method introduced above cannot ensure that the processed beauty results are suitable for the face shapes and facial features of user A and user B.
[0079] Therefore, based on the above introduction, the present application further proposes an intelligent beauty function. The intelligent beauty function can perform differential beauty processing on the face images of different users to obtain beauty results that are personalized and adapted to different users. Exemplarily, the intelligent beauty function introduced in the present application can be implemented by training and adjusting a model. For example, the collected face image can be input into the adjustment model, and the adjustment model can perform feature analysis on the face image and perform adaptive beauty processing based on the analyzed face image features, so as to output a beauty-processed face image that is adapted to the features of the current face image.
[0080] It can be understood that the intelligent beauty function performs overall beauty processing on the face image, and thus the beauty processing content in the intelligent beauty function may cover the beauty processing content of multiple single beauty functions. For example, when performing intelligent beauty processing, it may perform eye enlargement processing, face slimming processing, nose slimming processing, etc. on the face image.
[0081] In a possible implementation manner, the beauty processing can be further divided into deformation-based beauty processing and skin texture-based beauty processing. Among them, the deformation-based beauty processing mainly adjusts the shapes of facial features and face shape, etc. For example, the beauty processing corresponding to the above-introduced beauty functions such as "face slimming" and "eye enlargement" can be understood as deformation-based beauty processing. And the skin texture-based beauty processing mainly adjusts skin effects, skin colors, etc. For example, the beauty processing corresponding to beauty functions such as skin smoothing and whitening can be understood as skin texture-based beauty processing.
[0082] Exemplarily, the intelligent beauty function introduced in the present application mainly includes the above-introduced deformation-based beauty processing. Optionally, the intelligent beauty function in the present application can also be called an intelligent beauty shaping function, an AI beauty shaping function, an AI intelligent beauty shaping function, etc., as long as it can express a similar meaning.
[0083] Next, reference can be made to Figure 2 to introduce the relationship between intelligent beauty processing and traditional single beauty processing. Figure 2 This is a schematic diagram of the relationship of beauty processing provided for the implementation of the present application.
[0084] As Figure 2 shown, in the function set 201 included in the intelligent beauty function, it can include beauty functions for adjusting eye distance, adjusting philtrum, adjusting forehead, adjusting face, adjusting eyes, and adjusting nose. Among them, the intelligent beauty function refers to a beauty function that involves beauty processing of multiple facial features.
[0085] Among them, the three beauty functions of eye distance adjustment, philtrum adjustment, and forehead adjustment are exclusive to the intelligent beauty function, that is, these three beauty functions are not involved in the single beauty function. And the three beauty functions of face adjustment, eye adjustment, and nose adjustment are covered by both the intelligent beauty function and the single beauty function.
[0086] At the same time, the intelligent beauty function is the result of neural network learning, obtaining an overall network, and based on this overall network, the beauty processing of the face image is realized. Exemplarily, it will perform the overall beauty processing of multiple beauty functions such as the above-introduced eye distance adjustment, philtrum adjustment, forehead adjustment, face adjustment, eye adjustment, and nose adjustment on the face image, but it is impossible to adjust the specific beauty parameters for a single beauty item.
[0087] And, in the function set 202 composed of at least one single beauty function, it may include the beauty functions of face adjustment, eye adjustment, nose adjustment, head adjustment, and contour adjustment (for example, adjusting to make the contour smooth). Among them, the single beauty function refers to the beauty function that only involves the beauty processing of one facial feature.
[0088] Among them, the beauty functions of head adjustment and contour adjustment are exclusive to the single beauty function, that is, these two beauty functions are not involved in the intelligent beauty function. And the three beauty functions of face adjustment, eye adjustment, and nose adjustment are covered by both the intelligent beauty function and the single beauty function.
[0089] At the same time, the explicit beauty functions in the single beauty function set support users to adjust the beauty parameters. For example Figure 2 the head adjustment, face adjustment, eye adjustment, and nose adjustment in are explicitly adjustable by users, that is, users can adjust the beauty parameters of these beauty functions in the interface. And, the implicit beauty functions in the single beauty function set do not support users to adjust the beauty parameters, but can be pre-configured at the bottom layer. For example Figure 2 the beauty function of contour adjustment in is implicitly not adjustable by users, that is, users cannot adjust the beauty parameters of the contour adjustment beauty function in the interface, but its corresponding beauty parameters can be preset at the bottom layer.
[0090] Then refer to Figure 2It is understandable that the three beauty functions of face adjustment, eye adjustment, and nose adjustment are involved in both the intelligent beauty function and the single beauty function. The intelligent beauty function will output an overall beauty result and cannot adjust the beauty parameters for a specific beauty function. However, in the technology of the single beauty function, users can adjust the beauty parameters for these three beauty functions, which may lead to the superposition of the processing effects of the same beauty function, thus affecting the final beauty effect.
[0091] Based on the above introduction, it can be confirmed that there is a coupling in the beauty processing between the intelligent beauty function and the traditional single beauty function. Therefore, the beauty effects of the intelligent beauty function and the traditional single beauty function may affect each other, so it is necessary to consider the compatibility issue between the intelligent beauty function and the traditional single beauty function.
[0092] The beauty effect can take effect in the following two scenarios. One scenario is that after the application is launched, the beauty processing is directly performed on the real-time acquired image, so that the effective beauty effect is displayed for the face image in the preview interface. Another scenario is that after the application is launched and enters the first mode that requires beauty processing, the beauty processing is performed on the real-time acquired image, so that the effective beauty effect is displayed for the face image in the preview interface.
[0093] Regardless of which scenario is introduced above, it is necessary to consider how to set the opening and closing of the intelligent beauty function and the traditional single beauty function in the initial situation.
[0094] The following strategies can be initially considered:
[0095] Strategy 1: The intelligent beauty function is turned on, and each single beauty function is turned off
[0096] In this case, the application will default to using the intelligent beauty function to process the face image and display the face image after beauty processing. However, users may not like the beauty effect of the intelligent beauty function, so users may turn off the intelligent beauty function.
[0097] After the intelligent beauty function is turned off, each single beauty function is also turned off, which will result in no beauty effect taking effect currently. After that, users need to adjust each single beauty function in turn to make the beauty effect take effect again. Therefore, there will be a problem of cumbersome operation, and the instantaneous disappearance of the beauty effect may bring a bad user experience to users.
[0098] Strategy 2: The intelligent beauty function is turned on, and each single beauty function is also turned on
[0099] In this case, the beauty effect of the intelligent beauty function and the beauty effect of the single beauty function will be superimposed, thus affecting the final beauty effect shown on the face image. For example, the intelligent beauty function will perform face slimming processing on the face image, and at the same time, the single beauty function of "face slimming" will also perform face slimming processing on the face image. The superposition of the effects of the two face slimming processes may result in a poor final beauty result.
[0100] Strategy 3: The intelligent beauty function is turned off, and each single beauty function is turned on
[0101] In this case, the application will default to using each single beauty function to process the face image and display the face image after beauty processing. However, the user may want to turn on the intelligent beauty function, and then there are the following two cases:
[0102] The first case is that the user directly turns on the intelligent beauty function. Then, the beauty effect of the intelligent beauty function and the beauty effect of the single beauty function will be superimposed, thus affecting the final beauty effect shown on the face image.
[0103] The second case is that the user turns off each single beauty function one by one and then turns on the intelligent beauty function. This implementation method has the problems of cumbersome operations introduced above and the problem that the beauty effect disappears briefly, which affects the user experience.
[0104] Strategy 4: The intelligent beauty function is turned off, and each single beauty function is also turned off
[0105] In this case, after the user enters the application or enters the first mode of beauty processing from the ordinary photo-taking mode of the application, no beauty effect takes effect. The user then needs to adjust the beauty functions they need one by one. Therefore, there are the problems of cumbersome operations introduced above, and there is also the problem that no beauty effect is shown initially, which affects the user experience.
[0106] Based on the various strategies introduced above, it can be determined that no matter how the on and off states of the intelligent beauty function and the single beauty function are set, there are always corresponding technical problems. Based on this, the present application proposes the following technical concept: when the intelligent beauty function is turned on, the single beauty function is shown to be turned on on the interface, but in fact, the single beauty function does not take effect at the bottom layer, thus solving the problem of the mutual influence of the beauty effects introduced above. When the intelligent beauty function is turned off, the single beauty function is still shown to be turned on on the interface, and at the same time, the single beauty function takes effect at the bottom layer, thus solving the problems of cumbersome operations and the disappearance of the beauty effect introduced above.
[0107] The technical solution of the present application is applied to a terminal device. Exemplarily, Figure 3 It is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application.
[0108] As Figure 3 shown, the layered architecture divides software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through interfaces. In some embodiments, the system may include an application layer, an application framework layer, an algorithm engine layer, an Android runtime, system libraries, a hardware abstraction layer (HAL), and a kernel layer. It should be noted that the embodiments of this application take the Android system as an example. In other operating systems (such as HarmonyOS, iOS system, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of this application, the solution of this application can also be implemented.
[0109] Among them, the application layer may include a series of application packages.
[0110] As Figure 3 shown, the application layer may include applications such as a camera, text messages, notes, and a gallery. Of course, the application layer may also include other application packages, such as third-party applications such as payment applications, shopping applications, bank applications, and social applications, which are not limited in this application.
[0111] In this embodiment, for the scenario of taking a photo preview, the camera application in the application layer may be, for example, the first application introduced in this application. The camera application can collect face images in real time and display the real-time beauty effect on the preview interface for the face images collected in real time.
[0112] In addition, the application layer also includes a gallery application. When the user clicks the shooting control in the camera application, the captured image can be stored in the gallery application, and the user can view the captured image through the gallery application.
[0113] Correspondingly, for the scenario where a face image has been obtained after shooting, the gallery application here may be, for example, the first application introduced in this application. The gallery application can display the collected face images and display the real-time beauty effect on the beauty adjustment interface for the collected face images.
[0114] Among them, the first application can determine the interface beauty parameters of at least one beauty function in response to the user's operation and send the beauty interface parameters to the processing unit in the HAL layer.
[0115] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. For example, it may include an activity manager, a window manager, a content provider, a view system, a resource manager, a notification manager, and a camera server unit, etc. The embodiments of the present application do not impose any restrictions on this.
[0116] The system library may include multiple functional modules. For example: OpenCV, a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), a camera service, etc.
[0117] Android runtime includes a core library and a virtual machine, which are responsible for the scheduling and management of the Android system.
[0118] HAL (Hardware Abstraction Layer) is an encapsulation of the Linux kernel driver, providing an interface upward and shielding the implementation details of the lower-layer hardware. The HAL layer may include a Wi-Fi HAL, an audio HAL, a Camera HAL Server unit in the HAL layer, a sensors HAL, and a software code library, etc.
[0119] In this embodiment, the HAL layer further includes a processing unit for implementing the processing of the beauty parameters in the present application. Specifically, the processing unit may receive at least one in-interface beauty parameter of a beauty function sent by a first application, and determine the actual beauty parameters of each beauty function according to the in-interface beauty parameters. And it can perform beauty processing on the initial face image based on the actual beauty parameters, and return the processed target face image to the first application, so that the first application can display the target face image with the beauty effect in real time.
[0120] The kernel layer is the layer between the hardware and the software. The kernel layer includes a driver layer and a power management. The driver layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, a charging driver, etc. The camera driver can be used to collect the initial face image, for example.
[0121] The following will, in conjunction with the accompanying drawings, elaborate in detail on the technical solutions of the embodiments of the present application and how the technical solutions of the embodiments of the present application solve the above technical problems through specific embodiments. These several specific embodiments below can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be elaborated in some embodiments.
[0122] The face image adjustment method provided by the present application can be applied to a terminal device, and the terminal device includes a first application with image processing capabilities, where the first application can implement the overall beauty function and at least one single-item beauty function introduced above for face images.
[0123] The overall beauty function is the intelligent beauty function introduced above, or the intelligent beauty function can also be called an AI (Artificial Intelligence) beauty function, etc., as long as it can express a similar meaning.
[0124] First, in conjunction with Figure 4 introduce the first interface in the first application for adjusting the beauty function. Figure 4 FIG. is a schematic diagram of the first interface for beauty processing provided by an embodiment of the present application.
[0125] In this embodiment, the terminal device can display the first interface in the first application. In a possible implementation manner, for the above-introduced scenario of taking a photo preview, the first interface can be a photo preview interface, and the photo preview interface can display the previewed face image in real time, that is, the face image before the shooting action occurs. Or, for the scenario where a face image has been obtained after shooting, the first interface can also be a beauty adjustment interface, and the beauty adjustment interface can display the face image that has been collected.
[0126] Regardless of which of the above-introduced scenarios, when there are no effective beauty parameters, there is no need to add a beauty effect to the face image in the first interface. Therefore, the initial face image collected by the camera in real time or the initial face image that has been collected can be displayed in the first interface; or when there are effective beauty parameters, a beauty effect needs to be added to the face image in the first interface. Therefore, the target face image after adding the beauty effect to the initial face image can be displayed in the first interface.
[0127] The initial face image collected by the camera can be collected by the front camera of the terminal device, or can also be collected by the rear camera of the terminal device. This embodiment does not limit this.
[0128] Taking the above-introduced scenario of taking a photo preview as an example, in conjunction with Figure 4The relevant implementation of the first interface will be described. In fact, for the scenario where a face image has been obtained after shooting, the content and operation methods included in the first interface are similar, so they will not be elaborated here.
[0129] In addition, in a possible implementation, the first interface can be directly displayed after the first application is opened. Or, after the first application is opened, the home page of the first application can be entered first, and then the control for entering the first mode can be clicked on the home page of the first application to display the first interface. The first mode is a mode that supports beauty configuration. The control for entering the first mode can be, for example, Figure 4 the "Portrait" control in
[0130] As Figure 4 shown, in response to a user operation on the "Portrait" control, after the first application enters the first mode ( Figure 4 which can be understood as the portrait mode in the example), the "Portrait" control can be displayed in a special style on the first interface to indicate that the portrait mode has been entered. The special style can be, for example, Figure 4 the bold style shown in
[0131] or the "Portrait" control can be displayed in a preset color, or the preset style can also be to display a border, dots, etc. around the "Portrait" control. The specific implementation of the preset style in this embodiment is not limited, as long as it can indicate that the current first application is in the portrait mode. Figure 4 The following will introduce the specific content of the first interface in detail in combination with Figure 4 As shown, the first interface includes a first control 401 corresponding to the overall beauty function and at least one second control corresponding to each single beauty function. Figure 4 The second control 402 for the "Big Eyes" single beauty function is marked in Figure 4 Among them, at least one single beauty function can include
[0132] the big eyes, face slimming, nose slimming shown in
[0133] and the single beauty function can also include, for example, small head, shortened chin, etc. The specific implementation of the single beauty function can be selected and extended according to actual needs. Figure 4, the first interface further includes an adjustment control 403, where the adjustment control 403 is used to adjust the beauty parameters of the selected beauty function. For example, in Figure 4 's illustration, assuming the user selects the second control 402, then the corresponding adjustment control is used to adjust the beauty parameters of the single beauty function of "big eyes". For example, referring to Figure 4 , the beauty parameters of the selected beauty function can be adjusted by moving the position of the scale bar 404 in the adjustment control 403. Specifically, the percentage corresponding to the position of the scale bar 404 in the adjustment control is the same as the percentage of the beauty parameters within the adjustable parameter range corresponding to the adjustment control.
[0134] Exemplarily, for the beauty function corresponding to the selected control, the current beauty parameters of the selected beauty function can be displayed in the adjustment control to indicate the beauty parameters of the currently selected beauty function. For example, Figure 4 the value "30" in it indicates that the beauty parameter of the single beauty function of "big eyes" is 30 currently; and / or, the beauty parameters of the currently selected beauty function can be indicated by the display position of the scale line 404 in the adjustment control.
[0135] In this embodiment, two types of beauty parameters are set. One type of beauty parameter is the interface beauty parameter, that is, the beauty parameter explicitly shown in the adjustment control. When the user adjusts the beauty parameters in the first interface, the adjusted parameter is also the interface beauty parameter. There is another type which is the actual beauty parameter, that is, the beauty parameter that actually takes effect for the beauty function during the underlying beauty processing.
[0136] When the first control is selected, the interface beauty parameter indicated by the adjustment control, that is, the first interface beauty parameter of the overall beauty function. In this embodiment, the first actual beauty parameter of the overall beauty function can be determined according to the first interface beauty parameter of the overall beauty function indicated by the adjustment control.
[0137] In a possible implementation manner, the first interface beauty parameter can be directly determined as the first actual beauty parameter, that is, the beauty parameter set by the user for the overall beauty function in the first interface is the beauty parameter of the overall beauty function that actually takes effect at the underlying layer.
[0138] Or, in order to improve the beauty effect of the overall beauty function or reduce the beauty effect of the overall beauty function, a first coefficient can be preset in this embodiment, and then the product of the first interface beauty parameter and the first coefficient is determined as the first actual beauty parameter. That is, on the basis of the beauty parameter set by the user for the overall beauty function in the first interface, a certain correction is made through the first coefficient to obtain the beauty parameter of the overall beauty function that actually takes effect at the underlying layer.
[0139] Among them, the first actual beauty parameter can indicate whether the overall beauty function is enabled. When the first actual beauty parameter is equal to the minimum beauty parameter of the overall beauty function, it can be determined that the overall beauty function is turned off. When the first actual beauty parameter is greater than the minimum beauty parameter of the overall beauty function, it can be determined that the overall beauty function is enabled. For example, the minimum beauty parameter of the overall beauty function can be 0, or any value can be set according to actual needs.
[0140] The meanings of the second interface beauty parameter and the second actual beauty parameter are similar. The user adjusts the first interface beauty parameter of the overall beauty function and the second interface beauty parameters of each individual beauty function in the first interface. Then, at the bottom layer of the terminal device, the first actual beauty parameter is determined according to the first interface beauty parameter, and the second actual beauty parameter is determined according to the second interface beauty parameter. And the initial face image captured by the camera is beautified according to the first actual beauty parameter and the second actual beauty parameter, and the beautified target face image is displayed on the first interface in real time.
[0141] It should be noted that when the user adjusts the first interface beauty parameter or the second interface beauty parameter, the corresponding first actual beauty parameter and second actual beauty parameter that take effect at the bottom layer may also change. Then, the bottom layer will perform corresponding beauty processing on the initially captured face image in real time according to the latest first actual beauty parameter and second actual beauty parameter, so as to display the target face image with the latest beauty effect on the first interface. That is to say, when the user adjusts the beauty parameter in the first interface, the beauty effect corresponding to the beauty parameter is reflected on the first interface in real time, so that the user can determine the performance of the beauty effect during the photo preview, and then adjust to the appropriate beauty effect before taking a photo.
[0142] Such as Figure 4 As shown, the shooting control 405 is also included in the first interface. After the user determines that the beauty effect is satisfactory, for example, the shooting control 405 can be clicked. The terminal device responds to the user operation on the shooting control 405 and saves the target face image output when receiving the user operation on the shooting control 405. Exemplarily, the target face image can be saved in the gallery application, and then the user can view the saved target face image through the gallery application.
[0143] Next, the effective situations of various beauty parameters when the overall beauty function is enabled and when the overall beauty function is turned off are introduced separately.
[0144] Situation 1: The overall beauty function is enabled, and the individual beauty function belongs to the first function set
[0145] Among them, the beauty functions included in the first function set are the beauty functions covered in both the overall beauty function and at least one single-item beauty function. Then, for any beauty function in the first function set, when the overall beauty function is turned on, the corresponding beauty effect will take effect for this beauty function. At this time, if the corresponding single-item beauty function is turned on again, the corresponding beauty effect will take effect again for this beauty function. The superposition of the two parts of beauty effects will result in a poor performance of the beauty effect finally taking effect on the face image. Or, if the corresponding single-item beauty function is not turned on at this time, there will be problems such as the cumbersome operation introduced above and the poor user experience caused by the non-performance of the beauty effect.
[0146] Therefore, in this embodiment, the interface beauty parameters and the actual beauty parameters are also distinguished for the single-item beauty function. Among them, the second interface beauty parameter of the single-item beauty function indicated by the adjustment indication control is the beauty parameter presented to the user. That is to say, the user will think that the beauty parameter of the single-item beauty function is the second interface beauty parameter. However, in fact, the beauty parameter that takes effect for the single-item beauty function at the bottom layer is the second actual beauty parameter.
[0147] In this embodiment, an offset value can be set for the single-item beauty parameter. When the first actual beauty parameter indicates that the overall beauty function is turned on, for any single-item beauty function belonging to the first function set, the difference between the second interface beauty parameter of the single-item beauty function indicated by the adjustment control and the offset value is determined as the second actual beauty parameter of the single-item beauty function.
[0148] For example, it can be understood with reference to Figure 5 for Figure 5 FIG. Figure 1 .
[0149] As Figure 5 shown, assume that the range of the beauty parameters that can be adjusted for the single-item beauty function in the interface is 0 to 100 currently, and assume that x is used to represent the offset value of the single-item beauty function, where x is a natural number greater than or equal to 0.
[0150] Exemplarily, when the second interface beauty parameter of the single-item beauty function is 0, the second actual beauty parameter of the corresponding single-item beauty function is 0 - x. That is to say, in the user's view, the beauty parameter of the single-item beauty function is 0, but in fact, the beauty parameter that takes effect for this single-item beauty function is 0 - x.
[0151] Moreover, when the beauty parameter on the second interface of the single beauty function is 30, the corresponding actual beauty parameter on the second interface of the single beauty function is 30 - x. That is to say, in the user's view, the beauty parameter of the single beauty function is 30, but actually the beauty parameter that takes effect for this single beauty function is 30 - x. The relationship between the remaining second interface beauty parameters and the second actual beauty parameters is similar and will not be elaborated here.
[0152] It can be understood that in this application, by setting a difference between the second actual beauty parameter and the second interface beauty parameter, and the difference is the offset value set for the single beauty function, it can be achieved that the user feels that the single beauty function is turned on in the interface, avoiding the need for the user to adjust the beauty parameters of each single beauty function one by one to turn on the single beauty function after the user turns off the overall beauty function later. At the same time, at the bottom layer, the beauty effect takes effect for the single beauty function according to the second actual beauty parameter, so as to avoid the beauty effect of the single beauty function affecting the beauty effect of the overall beauty function.
[0153] Based on the above introduction, the following will further introduce the related processing of the overall beauty function and the related processing of the single beauty function in detail.
[0154] First, in combination with Figure 6 introduce the related processing of the beauty parameters of the overall beauty function. Figure 6 is the operation schematic diagram of the first interface provided by the embodiment of the present application. Figure 1 。
[0155] In this embodiment, the beauty parameters of the overall beauty function include the first interface beauty parameter and the first actual beauty parameter. The first interface beauty parameter and the first actual beauty parameter can be equal, or there can also be a coefficient relationship.
[0156] In a possible implementation manner, in this embodiment, it can be set that when entering the first interface, the overall beauty function is default turned on. Here, the turn-on includes both indicating that the overall beauty function is turned on on the interface and the overall beauty function is also effective at the bottom layer.
[0157] For example, it can be set that the initial value of the first interface beauty parameter is greater than the minimum beauty parameter of the overall beauty function to ensure that the overall beauty function is indicated to be turned on on the interface. And the first actual beauty parameter and the first interface beauty parameter can be equal, or there can also be a coefficient relationship, then the initial value of the corresponding first actual beauty parameter is also greater than the minimum beauty parameter of the overall beauty function to ensure that the overall beauty function is also actually effective at the bottom layer.
[0158] Assume that the minimum beauty parameter of the overall beauty function is 0. For example, the initial value of the beauty parameter on the first interface can be set to 100, so that the overall beauty function is shown to be enabled on the interface. In one possible implementation, when the beauty parameter on the first interface is greater than the minimum beauty parameter corresponding to the overall beauty function, the third indication information can be displayed in the first control, and the overall beauty function is indicated to be enabled through the third indication information.
[0159] Among them, the third indication information can be, for example, Figure 6 the gray dot below the first control 401 in (a) of , and when there is a gray dot displayed below the first control, it indicates that the overall beauty function is enabled. Or, the third indication information can also be, for example, the edge line a of the first control. When there is an edge line displayed on the first control, it indicates that the overall beauty function is enabled. The third indication information can include both of the implementations introduced here at the same time, or can also include only one of them. This embodiment does not limit this, and the specific implementation of the third indication information can also be extended according to actual needs, as long as the third indication information can indicate that the overall beauty function is enabled.
[0160] Furthermore, the third indication information can also indicate the beauty parameter of the first interface of the overall beauty function. For example, when the third indication information is the edge line of the first control introduced above, the proportion of the edge line in the complete circular line is used to indicate the beauty parameter of the first interface. The specific relationship can be: the proportion of the edge line in the complete circular line is the same as the proportion of the beauty parameter of the first interface within the adjustable range.
[0161] For example, in the example of Figure 6 (a), if the proportion of the edge line a of the first control in the complete circular line is 100%, then correspondingly, it can indicate that the beauty parameter of the first interface is the maximum value (0 - 100) of the adjustable range of the overall beauty function, that is, 100.
[0162] When initially displaying the first interface, the initial beauty effect is displayed according to the initial value of the beauty parameter of the first interface of the overall beauty function. If the user is not satisfied with the current beauty effect, for example, the beauty parameter of the first interface can be adjusted. Exemplarily, as Figure 6 shown, assume that when initially displaying the first interface, the first control 401 is default selected, or the first control 401 can also be selected in response to the user's selection operation on the first control 401.
[0163] Among them, when the first control 401 is selected, the first indication information can be displayed in the adjustment control 403, and the first indication information is used to indicate the beauty parameter of the first interface of the overall beauty function.
[0164] Exemplarily, the first indication information may be the value of the beauty parameter of the first interface. For example, Figure 6 the "100" shown in Figure 6 or the display position of the scale bar in the adjustment control may also be the first indication information. For example,
[0165] and referring to Figure 6 (a) in, the user may perform a first adjustment operation on the adjustment control 403. The first adjustment operation may be, for example, a dragging operation on the scale bar 404 ( Figure 6 shown as dragging to the left in), to adjust the beauty parameter of the first interface of the overall beauty function.
[0166] In response to the first adjustment operation acting on the adjustment control, the first indication information in the adjustment control may be updated, and the updated first indication information is used to indicate the adjusted beauty parameter of the first interface, so that the user can timely determine the adjustment situation of the beauty parameter of the first interface.
[0167] As Figure 6 (b) in shows, assuming that the user adjusts the beauty parameter of the first interface of the overall beauty function to 75, then the value of the beauty parameter displayed in the adjustment control 403 may be updated to "75", and / or the position of the scale bar 404 in the adjustment control 403 may be updated to the 75% position, to implement the update of the first indication information. Referring to Figure 6 (b) in, the updated first indication information may indicate the adjusted beauty parameter of the first interface. And the third indication information (i.e., the edge line a) in the first control 401 is also updated accordingly, to indicate that the beauty parameter of the first interface of the current overall beauty function has been updated to 75.
[0168] After the user updates the beauty parameter of the first interface, the corresponding underlying first actual beauty parameter is also updated accordingly. Then, according to the updated first actual beauty parameter, the beauty effect of the face image displayed on the first interface is updated in real time.
[0169] Next, the processing of the single-item beauty function will be introduced in combination with Figure 7 This is the operation schematic diagram of the first interface provided by the embodiment of the present application Figure 7 . Figure 2 .
[0170] Among them, the beauty parameters of the single beauty function include the second interface beauty parameters and the second actual beauty parameters. Based on the above introduction, it can be understood that the setting of the offset value affects the relationship between the second actual beauty parameters and the second interface beauty parameters. Therefore, the setting of the offset value is very important.
[0171] In this embodiment, the offset value can be equal to the preset beauty parameter set for the single beauty function, or the offset value can also be equal to the difference between the preset parameter set for the single beauty function and the fixed adjustment value.
[0172] The following is an introduction to these two implementations respectively:
[0173] Implementation method 1: The offset value is equal to the preset beauty parameter set for the single beauty function
[0174] First, introduce the preset beauty parameter. Exemplarily, for any single beauty function, a preset beauty parameter can be set for it. The preset beauty parameter is the initial value of the second interface beauty parameter corresponding to the single beauty function. That is to say, for the second interface beauty parameter of the single beauty function, the adjustment starts from the corresponding preset beauty parameter.
[0175] For example, it can be understood with reference to Figure 7 in (a). Assume that the preset beauty parameter set for the single beauty function of "big eyes" is 30. Then, as Figure 7 shown, when initially entering the first interface, assume that the user selects the second control 402 of the single beauty function of "big eyes". Then, correspondingly, the second interface beauty parameter of the single beauty function of "big eyes" will be displayed in the adjustment control 403. When the user does not perform any operation on the adjustment control, the second interface beauty parameter displayed in the adjustment control 403 at this time is the initial value of the second interface beauty parameter of the single beauty function of "big eyes".
[0176] In a possible implementation method, in this embodiment, the preset beauty parameter is set to be greater than the minimum beauty parameter corresponding to the single beauty function. Similarly, in the Figure 7 example, assume that the minimum beauty parameter of the single beauty function of "big eyes" is 0. Then, correspondingly, the preset beauty parameter is greater than 0 to ensure that when initially entering the first interface, the information provided to the user is that the single beauty function of "big eyes" is turned on.
[0177] In a possible implementation, when the beauty parameter of the second interface is greater than the minimum beauty parameter corresponding to the single beauty function, the fourth indication information can be displayed in the second control, and the single beauty function is indicated to be turned on through the fourth indication information. However, it should be noted that the "turning on" here is an indication on the interface, and whether the single beauty function is actually turned on at the bottom layer is not certain and depends on the second actual beauty parameter.
[0178] Among them, the fourth indication information can be, for example, Figure 7 the gray dot below the second control 402 in (a) of . When there is a gray dot displayed below the second control, it indicates that the single beauty function of "big eyes" is turned on. Or, the fourth indication information can also be, for example, the edge line b of the second control. When there is an edge line displayed on the second control, it indicates that the single beauty function of "big eyes" is turned on. The fourth indication information can include both of the implementations introduced here at the same time, or can also only include one of them. This embodiment does not limit this, and the specific implementation of the fourth indication information can also be extended according to actual needs, as long as the fourth indication information can indicate the corresponding single beauty function to be turned on.
[0179] Furthermore, the fourth indication information can also indicate the beauty parameter of the second interface of the corresponding single beauty function. For example, when the fourth indication information is the edge line of the second control introduced above, the proportion of the edge line in the complete circular line is used to indicate the beauty parameter of the second interface, and its specific relationship can be: the proportion of the edge line in the complete circular line is the same as the proportion of the beauty parameter of the second interface within the adjustable range.
[0180] For example, in Figure 7 the example of (a) of , if the proportion of the edge line b of the second control in the complete circular line is 30%, then correspondingly, it can indicate that the beauty parameter of the second interface is the value corresponding to 30% of the adjustable range (0 - 100) of the single beauty function of "big eyes", that is, 30.
[0181] By setting a preset beauty parameter greater than the minimum beauty parameter for the single beauty function, and then setting the initial value of the beauty parameter of the second interface of the single beauty function to be equal to the corresponding preset beauty parameter, it can be ensured that when initially entering the first interface, it gives the user the feeling that the single beauty function is turned on, which can provide two benefits:
[0182] On the one hand, when the overall beauty function takes effect, the user actually cannot determine which specific beauty effects the overall beauty function has achieved. If the user wants to make manual adjustments, they don't know where to start. By setting the initial value of the beauty parameters on the second interface of the individual beauty function to be equal to the preset beauty parameters, the user can perceive which individual beauty functions are currently in effect, and then make the desired adjustments to certain individual beauty functions according to their own needs. And by displaying the fourth indication information, the user can intuitively and quickly obtain the activation information of the individual beauty function.
[0183] On the other hand, taking the preset beauty parameters as the initial value of the parameters on the second interface can use the preset beauty parameters as the starting point for adjusting the parameters on the second interface. Since the preset beauty parameters are greater than the minimum beauty parameters of the individual beauty functions, in this implementation, when the user is not satisfied with the beauty effect performance of the overall beauty function in a certain aspect, they can either adjust the beauty parameters on the second interface of the corresponding individual beauty function in the direction of weakening the beauty effect (i.e., decreasing the beauty parameters on the second interface), or adjust the beauty parameters on the second interface of the corresponding individual beauty function in the direction of enhancing the beauty effect (i.e., increasing the beauty parameters on the second interface) to achieve two-way adjustment of the beauty parameters on the second interface of the individual beauty function. Compared with the implementation where the individual beauty function is default closed and only the beauty parameters of the individual beauty function can be increased later, the technical solution of this application can provide the user with richer adjustment options to achieve a beauty effect that better suits the user's needs.
[0184] In the current implementation, set the offset value to be equal to the preset beauty parameters set for the individual beauty function. Initially, the beauty parameters on the second interface of the individual beauty function are equal to the preset beauty parameters, and the second actual beauty parameters of the individual beauty function are equal to 0, so that it seems on the interface that the individual beauty function is turned on, but actually the individual beauty function does not take effect at the underlying level. After that, if the user adjusts the beauty parameters on the second interface of the individual beauty function, the second actual beauty parameters of the individual beauty function are the adjustment values input by the user on the interface, so as to ensure that the actual beauty parameters of the individual beauty function are set according to the adjustment values input by the user at the underlying level, so as to ensure that the presented beauty effect is the effect desired by the user.
[0185] For example, it can be understood with reference to Figure 7 Suppose the user performs a user operation on the second control 402 to select the individual beauty function of "big eyes". Then, the beauty parameters on the second interface of the individual beauty function of "big eyes" are displayed in the adjustment control 403.
[0186] In a possible implementation, when the second control of the single-item beauty function is selected, second indication information can be displayed in the adjustment control, where the second indication information is used to indicate the second interface parameter of the single-item beauty function. Exemplarily, the second indication information can be the value of the second interface beauty parameter. For example, Figure 7 the "30" shown in (a) of Figure 7 or the display position of the scale bar in the adjustment control can also be the second indication information. For example,
[0187] the display position of the scale bar 404 in the adjustment control 403 shown in (a) of Figure 7 indicates the second interface beauty parameter.
[0188] Exemplarily, assuming that the preset beauty parameter set for the single-item beauty function of "big eyes" is 30, then as
[0189] shown in (a) of Figure 7 the initial value of the second interface beauty parameter of the single-item beauty function of "big eyes" is 30, which can be indicated by adjusting the value "30" of the beauty parameter in the control 403, or can also be indicated by adjusting the position of the scale bar 404 in the control 403. Specifically, the position of the scale bar 404 in the entire adjustment control is at the corresponding position of 30%. Figure 7
[0190] At this time, the second interface beauty parameter of the single-item beauty function of "big eyes" is 30, and the offset value is equal to the preset beauty parameter 30. Then, by determining the difference between the second interface beauty parameter and the offset value as the second actual beauty parameter, the second actual beauty parameter of the single-item beauty function of "big eyes" can be obtained as 0, so as to achieve the effect of indicating that the single-item beauty function of "big eyes" is turned on on the interface, but actually the single-item beauty function of "big eyes" does not take effect at the bottom layer, so as to avoid interfering with the beauty effect of the overall beauty function.
[0191] Figure 7 And referring to Figure 7As shown in (b) therein, assuming that the user adjusts the beauty parameter of the second interface of the single beauty function of "big eyes" to 50, then the value of the beauty parameter displayed in the adjustment control 403 can be updated to "50", and / or the position of the scale bar 404 in the adjustment control 403 can be updated to the 50% position, so as to realize the update of the second indication information. Refer to Figure 7 in (b), the updated second indication information can indicate the adjusted beauty parameter of the second interface. In addition, the fourth indication information (i.e., the edge line b) in the second control 402 is also updated accordingly to indicate that the beauty parameter of the second interface of the current single beauty function of "big eyes" has been updated to 50.
[0192] At this time, the beauty parameter of the second interface of the single beauty function of "big eyes" is 50, and the offset value is equal to the preset beauty parameter 30. Then, by determining the difference between the beauty parameter of the second interface and the offset value as the second actual beauty parameter, the second actual beauty parameter of the single beauty function of "big eyes" can be obtained as 20. It can be understood that from Figure 7 the situation shown in (a) therein is adjusted to Figure 7 the situation shown in (b) therein. In fact, the user has increased the beauty parameter of the single beauty function of "big eyes" by 20. Then, accordingly, the underlying layer implements the beauty effect of the single beauty function of "big eyes" according to the second actual beauty parameter "20", so as to realize the adjustment of the beauty effect desired by the user.
[0193] Exemplarily, when performing a sliding operation on the scale bar 404 in the adjustment control 403, the interface implementation method can be Figure 7 as shown in. On the basis that the complete adjustment control 403 remains stationary, the position of the scale bar 404 is changed. Or, it can also be that the scale bar 404 is kept at the midline position of the adjustment control 403, and then in response to the sliding operation, the position of the adjustment control 403 is moved, so as to change the position of the scale bar 404 in the adjustment control. In addition, both the adjustment control 403 and the scale bar 404 can be moved, so as to highlight on the interface which section position the scale bar 404 is specifically located in the adjustment control 403. This embodiment does not limit the specific interface display method, as long as the position of the scale bar 404 in the adjustment control 403 can indicate the beauty parameter of the interface.
[0194] Figure 7 What is shown in is the situation of increasing the beauty parameter of the interface of the single beauty function by swiping to the right. Or the user can also swipe to the left to reduce the beauty parameter of the interface of the single beauty parameter. The determination method of the corresponding underlying beauty parameter is similar and will not be elaborated here.
[0195] Implementation Method 2: The offset value is equal to the difference between the preset beauty parameter and the fixed adjustment value set for a single beauty function
[0196] The preset beauty parameter is similar to the one introduced above and will not be elaborated here. In this embodiment, a fixed adjustment value is also set for one or more single beauty functions, and a brief introduction to the fixed adjustment value will be given here
[0197] The overall beauty function in this application is an overall adjustment of the face image, and it cannot achieve targeted adjustment of a single beauty function covered by the overall beauty function. However, the beauty effect presented by the overall beauty function may need to be improved in some aspects. If the deficiency of the beauty effect is improved by updating the adjustment model corresponding to the overall beauty function, the computing power consumption is relatively large and the required time is relatively long. To ensure the final presented beauty effect, in this embodiment, a fixed adjustment value can be set for some single beauty functions to correct the beauty effect of the overall beauty function
[0198] For example, in the beauty processing of "big eyes" in the overall beauty function, the processing degree of big eyes in the finally presented beauty effect is always insufficient. Then, for example, a fixed adjustment value of 5 can be set for the single beauty function of "big eyes", so as to fixedly adjust the beauty parameter by 5 degrees under the beauty processing effect of "big eyes" in the overall beauty function to correct the beauty effect of the overall beauty function
[0199] Then, in the current implementation method, the offset value is set to be equal to the difference between the preset beauty parameter and the fixed adjustment value set for the single beauty function. Initially, the second interface beauty parameter of the single beauty function is equal to the preset beauty parameter, and the second actual beauty parameter of the single beauty function is equal to the difference between the second interface beauty parameter and the offset value. Then, since the offset value is equal to the difference between the preset beauty parameter and the fixed adjustment value, the second actual beauty parameter is equal to the fixed adjustment value, so that it seems on the interface that the single beauty function is enabled according to the second interface beauty parameter, but actually the single beauty function takes effect according to the fixed adjustment value at the bottom layer. The fixed adjustment value is used to correct the beauty effect of the overall beauty function, so it will not interfere with the beauty effect of the overall beauty function
[0200] After that, if the user adjusts the second interface beauty parameter of the single beauty function, the second actual beauty parameter of the single beauty function is the sum of the adjustment value input by the user on the interface and the fixed adjustment value, so as to ensure that at the bottom layer, the actual beauty parameter of the single beauty function is set according to the adjustment value input by the user and the fixed adjustment value set fixedly, so as to ensure that the presented beauty effect is the effect desired by the user
[0201] Assume the same referenceFigure 7 For understanding, assume that the single beauty effect function of "Enlarged Eyes" is selected through the second control 402, and then the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes" are displayed in the adjustment control 403.
[0202] Assume that the preset beauty parameters set for the single beauty effect function of "Enlarged Eyes" are 30, and assume that the fixed adjustment value set for the single beauty effect function of "Enlarged Eyes" is 5. Then, as Figure 7 shown in (a) of, the initial value of the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes" is 30, and the implementation method is similar to the above.
[0203] At this time, the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes" are 30, and the offset value is equal to the difference between the preset beauty parameters 30 and the fixed adjustment value 5 (i.e., 25). Then, by determining the difference between the beauty parameters of the second interface and the offset value as the second actual beauty parameters, the second actual beauty parameters of the single beauty effect function of "Enlarged Eyes" can be obtained as 5, so as to indicate on the interface that the single beauty effect function of "Enlarged Eyes" is turned on, and the beauty parameters are 30, but actually the single beauty effect function of "Enlarged Eyes" only takes effect according to the beauty parameter of "5" at the bottom layer, so as to avoid interfering with the beauty effect of the overall beauty effect function.
[0204] And referring to Figure 7 in (a), assume that the user can perform an operation of dragging the slider 404 in the adjustment control 403 to the right to adjust the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes", as Figure 7 shown in (b) of. Assume that the user adjusts the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes" to 50, and the implementation method is similar to the above.
[0205] At this time, the beauty parameters of the second interface of the single beauty effect function of "Enlarged Eyes" are 50, and the offset value is equal to the difference between the preset beauty parameters 30 and the fixed adjustment value 5 (i.e., 25). Then, by determining the difference between the beauty parameters of the second interface and the offset value as the second actual beauty parameters, the second actual beauty parameters of the single beauty effect function of "Enlarged Eyes" can be obtained as 25. It can be understood that when adjusting from the situation shown in (a) of Figure 7 to the situation shown in (b) of Figure 7 , the user actually increases the beauty parameters of the single beauty effect function of "Enlarged Eyes" by 20. Then, correspondingly, at the bottom layer, according to the adjustment value 20 input by the user and the fixed adjustment value 5, that is, the second actual beauty parameter "25", the beauty effect of the single beauty effect function of "Enlarged Eyes" is realized, so as to realize the adjustment of the beauty effect desired by the user.
[0206] Similarly, Figure 7Shown in the figure is the case of increasing the interface beauty parameters of the single-item beauty function by swiping to the right, or the user can also reduce the interface beauty parameters of the single-item beauty function by swiping to the left. The determination method of the corresponding underlying beauty parameters is similar and will not be elaborated here.
[0207] After determining the first actual beauty parameter of the overall beauty function and the second actual beauty parameters of each single-item beauty function, when processing the initial face image, the initial face image can be processed according to the first actual beauty parameter and the adjustment model for implementing the overall beauty function, so as to obtain an intermediate face image output by the adjustment model. For example, the first actual beauty parameter and the initial face image can be input into the adjustment model, where the adjustment model can perform feature analysis on the initial face image and perform beauty processing based on the analyzed face features, so as to output an intermediate face image carrying the beauty effect corresponding to the overall beauty function.
[0208] After that, according to the second actual beauty parameters corresponding to each single-item beauty function, the intermediate face image is adjusted with the corresponding single-item beauty function, so as to obtain the target face image. Then the target face image can be displayed on the first interface to realize the real-time effectiveness of the beauty effect.
[0209] Next, case 2 will be described. Case 2: The overall beauty function is turned on, and the single-item beauty function does not belong to the first function set
[0210] Among them, the beauty functions included in the first function set are those covered in both the overall beauty function and at least one single-item beauty function. Then when the single-item beauty function does not belong to the first function set, even if the overall beauty function is turned on, the re-effectiveness of the single-item beauty function will not affect the beauty effect of the overall beauty function.
[0211] Therefore, in this implementation method, the second interface beauty parameter of the single-item beauty function indicated by the adjustment control can be directly determined as the second actual beauty parameter of the single-item beauty function.
[0212] For example, referring to the above Figure 2 , the beauty function of "small head" is not involved in the overall beauty function. Therefore, for the single-item beauty function of "small head", assuming that its second interface beauty parameter is set to 40 through the adjustment control, then the second actual beauty parameter of the single-item beauty function of "small head" can also be 40.
[0213] Case 3: The overall beauty function is turned off
[0214] When the overall beauty function is turned off, to avoid the problems of suddenly losing the beauty effect as introduced above and the cumbersome operation of enabling individual beauty functions, in this embodiment, for any individual beauty function, the second interface beauty parameter of the individual beauty function indicated by the adjustment control can be determined as the second actual beauty parameter of the individual beauty function.
[0215] That is to say, after the overall beauty function is turned off, the beauty processing actually taking effect at the bottom layer is performed according to the second interface beauty parameter of the individual beauty function. And in this embodiment, the initial values of the second interface beauty parameters of the individual beauty functions are not the minimum values. Therefore, it can be ensured that even if the overall beauty function is turned off, there are individual beauty functions that take effect to achieve the beauty effect. And the user does not need to enable each individual beauty function one by one. They only need to adjust the second interface beauty parameters of the individual beauty functions that they are not satisfied with the beauty effect for.
[0216] Refer to Figure 8 for understanding. Figure 8 It is a schematic diagram showing the relationship between the second interface beauty parameter and the second actual beauty parameter provided by the embodiment of the present application. Figure 2 .
[0217] As Figure 8 shown, assume that the range of the beauty parameters that can be adjusted for the individual beauty function in the interface is 0 to 100 currently. Exemplarily, when the second interface beauty parameter of the individual beauty function is 30, the corresponding second actual beauty parameter of the individual beauty function is also 30.
[0218] Therefore, in this embodiment, it can be ensured that when the overall beauty function is turned off, the enabling effect of the traditional individual beauty function can be automatically restored. At the same time, if the overall beauty function is turned on and the individual beauty function is shown as turned off on the interface, and then shown as turned on on the interface after the overall beauty function is turned off, this implementation method will cause the UI (User Interface) on the first interface to suddenly change when the overall beauty function is switched from on to off, or from off to on.
[0219] Specifically, when the overall beauty function is switched from on to off, the fourth indication information in the second control of each individual beauty function will change (either the display is cancelled or the length of the edge line changes). And when the overall beauty function is switched from off to on, the fourth indication information in the second control of each individual beauty function will change (either the display is restored from non-display or the length of the edge line changes). Among them, the UI change will cause resource waste on the one hand and may cause interference to the user on the other hand, and the user cannot understand what exactly has happened. In the technical solution of the present application, because the second interface beauty parameter and the second actual beauty parameter are set separately, the beauty parameter displayed on the interface and the beauty parameter actually taking effect are distinguished, so as to ensure that the opening or closing of the overall beauty function will not cause UI changes in the individual beauty functions, and the UI effect of the first interface remains relatively fixed.
[0220] The face image adjustment method provided by the embodiment of the present application can be applied to an electronic device with a communication function. The electronic device includes a terminal device, and the specific device form of the terminal device and the like can refer to the above relevant description, which will not be elaborated here.
[0221] Figure 9 It is a schematic hardware structure diagram of the terminal device provided by the embodiment of the present application.
[0222] As Figure 9 shown, the terminal device 90 includes: a processor 901 and a memory 902; the memory 902 stores computer execution instructions; the processor 901 executes the computer execution instructions stored in the memory 902, so that the terminal device 90 executes the above method.
[0223] When the memory 902 is independently provided, the terminal device further includes a bus 903 for connecting the memory 902 and the processor 901.
[0224] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in the memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above relevant embodiments, which will not be elaborated here.
[0225] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in the memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above relevant embodiments, which will not be elaborated here.
[0226] Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-mentioned method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored on or transmitted over a computer-readable medium as one or more instructions or codes. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0227] In a possible implementation, the computer-readable medium may include RAM, ROM, a compact disc read-only memory (CD-ROM), or other optical disc storage, a magnetic disk storage, or other magnetic storage device, or any other medium targeted to carry or store the required program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, disk and disc include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. The above combinations should also be included within the scope of computer-readable media.
[0228] Embodiments of the present application provide a computer program product. The computer program product includes a computer program that, when run, causes a computer to execute the above-mentioned method.
[0229] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to generate a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing device generate means for implementing the Figure 1means for the functions specified in one or more processes and / or blocks Figure 1 means for the functions specified in one or more blocks.
[0230] In the above specific embodiments, the object, technical solution and beneficial effects of the present invention have been further described in detail. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solution of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adjusting a face image, characterized in that, it is applied to a terminal device, and the terminal device includes a first application with image processing functions. The method includes: displaying a first interface in the first application, where the first interface includes adjustment controls, a first control corresponding to the overall beauty function, and at least one second control corresponding to each individual beauty function. The adjustment control is used to adjust the beauty parameters of the selected beauty function; determining the first actual beauty parameters of the overall beauty function according to the first interface beauty parameters of the overall beauty function indicated by the adjustment control; when the first actual beauty parameters indicate that the overall beauty function is turned on, for any one of the individual beauty functions belonging to the first function set, determining the difference between the second interface beauty parameters of the individual beauty function indicated by the adjustment control and the offset value as the second actual beauty parameters of the individual beauty function; adjusting the initial face image captured by the camera of the terminal device according to the first actual beauty parameters of the overall beauty function and the second actual beauty parameters corresponding to each individual beauty function to obtain a target face image, and displaying the target face image in the first interface.
2. The method according to claim 1, characterized in that, when displaying the first interface, the initial value of the second interface beauty parameters is equal to the preset beauty parameters set for the individual beauty function, and the preset beauty parameters are greater than the minimum beauty parameters corresponding to the individual beauty function.
3. The method according to claim 2, characterized in that, the offset value is equal to the preset beauty parameters, or the offset value is equal to the difference between the preset beauty parameters and the fixed adjustment value set for the individual beauty function.
4. The method according to any one of claims 1-3, characterized in that, when the first control is selected, a first indication information is displayed in the adjustment control, and the first indication information is used to indicate the first interface beauty parameters of the overall beauty function; the method further includes: responding to a first adjustment operation on the adjustment control, updating the first indication information in the adjustment control, and the updated first indication information is used to indicate the adjusted first interface beauty parameters.
5. The method according to any one of claims 1-3, characterized in that, for any one of the individual beauty functions, when the second control corresponding to the individual beauty function is selected, a second indication information is displayed in the adjustment control, and the second indication information is used to indicate the second interface beauty parameters of the individual beauty function; the method further includes: responding to a second adjustment operation on the adjustment control, updating the second indication information in the adjustment control, and the updated second indication information is used to indicate the adjusted second interface beauty parameters.
6. The method according to any one of claims 1-5, characterized in that, the method further includes: When the beauty parameter of the first interface is greater than the minimum beauty parameter corresponding to the overall beauty function, third indication information is displayed in the first control, and the third indication information is used to indicate that the overall beauty function is turned on.
7. The method according to claim 6, wherein, When initially displaying the first interface, the overall beauty function is turned on by default, and the third indication information is defaultly displayed in the first control.
8. The method according to claim 6 or 7, wherein, The third indication information is further used to indicate the beauty parameter of the first interface of the overall beauty function.
9. The method according to any one of claims 1-8, wherein, The method further includes: For any single beauty function, when the beauty parameter of the second interface of the single beauty function is greater than the minimum beauty parameter corresponding to the single beauty function, fourth indication information is displayed in the second control corresponding to the single beauty function, and the fourth indication information is used to indicate that the single beauty function is turned on.
10. The method according to claim 9, wherein, When initially displaying the first interface, the single beauty function is turned on by default, and the fourth indication information is defaultly displayed in the second control.
11. The method according to claim 9 or 10, wherein, The fourth indication information is further used to indicate the beauty parameter of the second interface of the single beauty function.
12. The method according to any one of claims 1-11, wherein, When the first actual beauty parameter indicates that the overall beauty function is turned on, for any single beauty function that does not belong to the first function set, the beauty parameter of the second interface of the single beauty function indicated by the adjustment control is determined as the second actual beauty parameter of the single beauty function.
13. The method according to any one of claims 1-12, wherein, When the first actual beauty parameter indicates that the overall beauty function is turned off, for any single beauty function, the beauty parameter of the second interface of the single beauty function indicated by the adjustment control is determined as the second actual beauty parameter of the single beauty function.
14. The method according to any one of claims 1-13, wherein, Adjusting the initial face image collected by the camera of the terminal device according to the first actual beauty parameter of the overall beauty function and the second actual beauty parameters corresponding to the respective single beauty functions to obtain a target face image, including: Processing the initial face image according to the first actual beauty parameter and the adjustment model for implementing the overall beauty function to obtain an intermediate face image output by the adjustment model, wherein the adjustment model is used to perform feature analysis on the initial face image and output the intermediate face image based on the analyzed face features; Adjusting the intermediate face image according to the second actual beauty parameter to obtain the target face image.
15. The method according to any one of claims 1-14, wherein, The first interface is a camera preview interface, and the initial face image is a face image captured by the camera in real time; The displaying of the target face image in the first interface includes: In the camera preview interface, displaying the target face image with real-time beauty effects.
16. A method for adjusting a face image, characterized in that, applied to a terminal device, the terminal device includes a first application with image processing functions, and the method includes: Displaying a camera preview interface in the first application, the camera preview interface includes adjustment controls, a first control corresponding to the overall beauty function, and at least one second control corresponding to each single beauty function, and the adjustment control is used to adjust the beauty parameters of the selected beauty function; In response to the selection of the first control, displaying first indication information in the adjustment control, and the first indication information includes first interface beauty parameters for indicating the overall beauty function, and the first actual beauty parameters of the overall beauty function are consistent with the first interface beauty parameters; In response to the selection of any one of the second controls, displaying second indication information in the adjustment control, and the second indication information includes second interface beauty parameters for indicating the single beauty function corresponding to the second control, and the second actual beauty parameters of the single beauty function are the difference between the second interface beauty parameters and the offset value; Displaying a target face image in the camera preview interface, the target face image is obtained by adjusting the initial face image captured by the camera of the terminal device according to the first actual beauty parameters and the second actual beauty parameters, and the initial face image is an image captured by the camera of the terminal device in real time.
17. The method according to claim 16, characterized in that, When displaying the camera preview interface, the initial second interface beauty parameters are equal to the preset beauty parameters set for the single beauty function, and the preset beauty parameters are greater than the minimum beauty parameters corresponding to the single beauty function.
18. The method according to claim 17, characterized in that, The offset value is equal to the preset beauty parameter, or the offset value is equal to the difference between the preset beauty parameter and the fixed adjustment value set for the single beauty function.
19. A chip system, characterized in that, including: A processor, which is used to call a computer program in a memory to execute the method according to any one of claims 1-18.
20. A terminal device, characterized in that, including: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the terminal device executes the method according to any one of claims 1-18.
21. A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1-18.
22. A computer program product, characterized in that, Comprising a computer program which, when run on a computer, causes the computer to perform the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Image processing method, mobile terminal and storage medium
CN107231529A
A method and a terminal device for acquiring beauty parameters
CN109242767A
Image processing method and device and electronic equipment
CN113572955A
Image beautification processing method and device, storage medium and electronic equipment
CN114049278A