Beauty parameter adjustment method and device, and electronic device

By acquiring and analyzing pose information in the photo preview mode, the beautification parameters are dynamically adjusted, solving the problem that beautification parameters cannot be adjusted in a personalized way, thus achieving personalized beautification effects and improving user experience.

CN116320726BActive Publication Date: 2026-08-04VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2022-09-07
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing technologies cannot personalize beauty parameters, resulting in fixed and rigid beauty effects that fail to meet users' individual needs.

Method used

By acquiring the first and second pose information of the target object in the photo preview mode, the pose change information is determined, and the beautification parameters are adjusted accordingly to achieve dynamic adjustment of the beautification parameters.

Benefits of technology

The beauty parameters are adjusted according to different postures to meet users' personalized needs and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320726B_ABST
    Figure CN116320726B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and electronic device for adjusting beautification parameters, belonging to the field of computer science. The method for adjusting beautification parameters includes: while the electronic device is in a photo preview mode, acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment; wherein the target object is the face of a person being photographed in the preview image or the electronic device; the first moment is earlier than the second moment; determining pose change information of the target object based on the first pose information and the second pose information; and adjusting a first beautification parameter corresponding to the first pose information based on the pose change information to obtain the target beautification parameter corresponding to the second pose information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer science, and specifically relates to a method, apparatus, and electronic device for adjusting beautification parameters. Background Technology

[0002] With the rapid development of electronic technology, beautification technology is also developing rapidly. As beautification technology is further improved, people's requirements and expectations for beautification effects are getting higher and higher, hoping to have more eye-catching beautification effects and functions.

[0003] The current beautification method involves the system pre-setting beautification parameters, and users directly select one of them. This fixed parameter setting results in a rigid and artificial beautification effect that cannot achieve personalized adjustments to the beautification parameters. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and electronic device for adjusting beauty parameters. This solves the problem that existing technologies cannot achieve personalized adjustments of beauty parameters.

[0005] In a first aspect, embodiments of this application provide a method for adjusting beauty parameters, the method comprising:

[0006] When the electronic device is in camera preview mode, the first pose information of the target object at a first moment and the second pose information of the target object at a second moment are acquired; wherein, the target object is the face of the person being photographed in the camera preview image or the electronic device; the first moment is earlier than the second moment;

[0007] Based on the first pose information and the second pose information, determine the pose change information of the target object;

[0008] Based on the pose change information, the first beautification parameters corresponding to the first pose information are adjusted to obtain the target beautification parameters corresponding to the second pose information.

[0009] Secondly, embodiments of this application provide a beauty parameter adjustment device, the device comprising:

[0010] The first acquisition module is used to acquire, when the electronic device is in the photo preview mode, the first pose information of the target object at a first moment and the second pose information of the target object at a second moment; wherein, the target object is the face of the person being photographed in the photo preview image or the electronic device; the first moment is earlier than the second moment;

[0011] The first determining module is used to determine the pose change information of the target object based on the first pose information and the second pose information;

[0012] The second determining module is used to adjust the first beautification parameters corresponding to the first pose information based on the pose change information to obtain the target beautification parameters corresponding to the second pose information.

[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.

[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0015] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0017] In this embodiment, when the electronic device is in the photo preview mode, by acquiring the first pose information of the target object at the first moment and the second pose information of the target object at the second moment, the pose change information of the target object can be determined. The target object can be the face of the person being photographed in the photo preview image or the electronic device. Based on this pose change information, the first beautification parameter under the first pose information can be adjusted to obtain the target beautification parameter corresponding to the second pose information. Thus, the beautification parameter can be adjusted according to different pose states to obtain different beautification effects, meet the personalized needs of users, and improve the user experience. Attached Figure Description

[0018] Figure 1 This is one of the flowcharts illustrating a method for adjusting beauty parameters in an exemplary embodiment;

[0019] Figure 2 This is a schematic diagram illustrating the division of a face region in an exemplary embodiment;

[0020] Figure 3 This is an exemplary embodiment illustrating the determination of the pose change type when the target object is the face of a person in a shooting preview image;

[0021] Figure 4This is an exemplary embodiment illustrating the determination of the type of attitude change when the target object is an electronic device;

[0022] Figure 5 This is a second schematic flowchart illustrating a method for adjusting beauty parameters in an exemplary embodiment;

[0023] Figure 6 This is one of the exemplary embodiments illustrating the adjustment of beautification parameters when the target object is the face of a person in a shooting preview image;

[0024] Figure 7 This is a second exemplary embodiment illustrating the adjustment of beautification parameters when the target object is the face of a person in the shooting preview image;

[0025] Figure 8 This is the third flowchart illustrating a method for adjusting beauty parameters in an exemplary embodiment;

[0026] Figure 9 This is one of the exemplary embodiments illustrating the adjustment of beautification parameters when the target object is an electronic device;

[0027] Figure 10 This is a second exemplary embodiment illustrating the adjustment of beautification parameters when the target object is an electronic device;

[0028] Figure 11 This is a schematic diagram of the structure of a beauty parameter adjustment device shown in an exemplary embodiment;

[0029] Figure 12 This is a schematic diagram illustrating the structure of an electronic device in an exemplary embodiment;

[0030] Figure 13 This is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of this application. Detailed Implementation

[0031] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0032] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0033] As described in the background section, existing technologies suffer from the problem that beautification effects cannot be tailored to individual users, resulting in stiff and artificial beautification results. To address this issue, this application embodiment, when the electronic device is in photo preview mode, obtains the first pose information of the target object at a first moment and the second pose information of the target object at a second moment to determine the pose change information of the target object. The target object can be the face of the person being photographed in the preview image or the electronic device. Based on this pose change information, the first beautification parameters under the first pose information can be adjusted to obtain the target beautification parameters corresponding to the second pose information. Thus, the beautification parameters can be adjusted according to different pose states to obtain different beautification effects, satisfying the user's personalized needs and improving the user experience.

[0034] The beauty parameter adjustment method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0035] Figure 1 This is a flowchart illustrating a method for adjusting beauty parameters provided in an embodiment of this application. The executing entity of this method can be an electronic device. It should be noted that the aforementioned executing entity does not constitute a limitation on the embodiments of this application.

[0036] In embodiments of this application, the electronic device may be, but is not limited to, a personal computer (PC), a smartphone, a tablet computer, or a personal digital assistant (PDA).

[0037] In embodiments of this application, the electronic device may have a beautification function.

[0038] like Figure 1 As shown, the beauty parameter adjustment method provided in this application embodiment may include steps 110-130.

[0039] Step 110: With the electronic device in photo preview mode, acquire the first pose information of the target object at the first moment and the second pose information of the target object at the second moment.

[0040] The first moment can be any moment.

[0041] The second moment can be any moment after the first moment, meaning the first moment is earlier than the second moment.

[0042] The target object can be the face of the person being photographed in the preview image or an electronic device. Specific implementation methods for both target object scenarios will be described in detail in subsequent embodiments.

[0043] The first pose information can be the pose information of the target object at the first moment.

[0044] The second pose information can be the pose information of the target object at the second moment.

[0045] In some embodiments of this application, the first pose information and the second pose information can be obtained based on the pose detection algorithm in the electronic device. The specific method of obtaining the first pose information and the second pose information can be obtained according to the user's needs and using existing acquisition methods, which is not limited here.

[0046] Step 120: Based on the first pose information and the second pose information, determine the pose change information of the target object.

[0047] The pose change information can be the change in the target object from the first pose information to the second pose information. Specifically, it can be the difference between the second pose information and the first pose information.

[0048] Step 130: Based on the pose change information, adjust the first beautification parameters corresponding to the first pose information to obtain the target beautification parameters corresponding to the second pose information.

[0049] The first beautification parameter can be the beautification parameter obtained under the first pose information, or specifically, the beautification parameter preset under the first pose information.

[0050] The target beautification parameters can be the beautification parameters obtained under the second pose information after adjusting the first beautification parameters.

[0051] In some embodiments of this application, to better understand how to adjust beautification parameters when the target object is the face of a person being photographed in a preview image or an electronic device, the following provides a detailed description of these two scenarios:

[0052] (1) The target object is the face of the person being photographed in the preview image.

[0053] In some embodiments of this application, when the target object is the face of a person captured in a preview image, step 120 may specifically include the following to further enhance the user experience:

[0054] Based on the first pose information and the second pose information, determine the first pose change type and the first change angle of the face.

[0055] Step 130 may specifically include:

[0056] Based on the first pose change type and the first change angle, the first beautification parameters corresponding to the first pose information are adjusted to obtain the target beautification parameters corresponding to the second pose information.

[0057] The first pose change type can be the type of pose change of the face after it has transformed from the first pose information to the second pose information. Here, the first pose change type can be looking up, looking down, or turning the face to the side.

[0058] In one example, reference Figure 3 If the first pose information is the facial pose in a level-head view and the second pose information is the pose in a downward-looking view, then when the face changes from a level-head view to a downward-looking view and the user looks down, the first pose change type is "looking down." If the second pose information is the pose in a backward-looking view, then when the face changes from a level-head view to a backward-looking view and the user looks up, the first pose change type is "looking up." If the second pose information is the pose in a profile view, then when the face changes from a level-head view to a profile view and the user looks up, the first pose change type is "profile" (i.e.,...). Figure 3 (The left or right side of the face in the image).

[0059] The first change angle can be the angle of change in the posture of the face after it changes from the first pose information to the second pose information.

[0060] In some embodiments of this application, the changes in facial pose and the angle of change can be obtained based on the face detection software development kit (SDK) in the electronic device.

[0061] In the embodiments of this application, the first pose information and the second pose information can be used to accurately determine the first pose change type and the first change angle of the face. Then, based on the first pose change type and the first change angle, the first beautification parameters corresponding to the first pose information are precisely adjusted to obtain the precise target beautification parameters corresponding to the second pose information. In this way, the corresponding precise adjustments can be made according to the faces of different users, and the beautification effect can be personalized to each individual, meeting the personalized needs of users and further improving the user experience.

[0062] (2) The target object is electronic equipment

[0063] In some embodiments of this application, when the target object is an electronic device, step 120 may specifically include, in order to further improve the user experience, the following:

[0064] Based on the first pose information and the second pose information, determine the second pose change type and the second change angle of the electronic device.

[0065] Step 130 may specifically include:

[0066] Based on the second pose change type and the second change angle, the first beautification parameters corresponding to the first pose information are adjusted to obtain the target beautification parameters corresponding to the second pose information.

[0067] The second pose change type can be the type of pose change of the electronic device after it transforms from the first pose information to the second pose information. Here, the second pose change type can be the electronic device moving up, down, or translating.

[0068] In one example, reference Figure 4 If the first pose information is the pose information of the electronic device in a vertical and horizontal state, and the second pose information is the pose information of the electronic device when rotated by an angle, then the electronic device changes from the first pose information to the second pose information. The electronic device changes from shooting the user's front face to shooting the user's side face, and the type of the second pose change is translation.

[0069] The second change angle can be the angle of change in the posture of the electronic device after it changes from the first pose information to the second pose information.

[0070] In some embodiments of this application, the first pose information and the second pose information can be obtained by calculation based on gyroscope data in an electronic device.

[0071] In the embodiments of this application, the second pose change type and second change angle of the electronic device can be accurately determined by the first pose information and the second pose information. Then, based on the second pose change type and the second change angle, the first beautification parameter corresponding to the first pose information is precisely adjusted to obtain the precise target beautification parameter corresponding to the second pose information. In this way, different precise adjustments can be made to the user according to different pose information of the electronic device, and the beautification effect can be personalized to each individual, meeting the user's personalized needs and further improving the user experience.

[0072] In some embodiments of this application, to further improve the user experience, when determining the second change angle of the electronic device based on the first pose information and the second pose information, the specific steps may be as follows:

[0073] Based on the first pose information and the second pose information, the second change angle of the electronic device in each direction is determined.

[0074] The second change angle of the electronic device in each direction can be the change angle of the electronic device in each direction in the state corresponding to the second pose information.

[0075] In the embodiments of this application, the second change angle of the electronic device in each direction can be accurately determined by the first pose information and the second pose information. In this way, the target beautification parameters under the second pose information can be determined, and the beautification effect can be made to be different for each person, which meets the personalized needs of users and further improves the user experience.

[0076] In some embodiments of this application, in order to obtain more accurate target beautification parameters, the first beautification parameters corresponding to the first pose information are adjusted based on the target pose change type and the target change angle to obtain the target beautification parameters corresponding to the second pose information, which may include:

[0077] Based on the target pose change type and target change angle, as well as the beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted to obtain the target beautification parameter corresponding to the second pose information.

[0078] The target attitude change type can be either the first attitude change type or the second attitude change type.

[0079] The target change angle can be either a first change angle or a second change angle. Specifically, when the target attitude change type is the first attitude change type, the target change angle is the first change angle; when the target attitude change type is the second attitude change type, the target change angle is the second change angle.

[0080] The beautification parameter adjustment coefficient can be a coefficient related to at least one of the posture change type and beautification parameter type.

[0081] In the embodiments of this application, the first beautification parameter corresponding to the first pose information is adjusted based on the target pose change type, the target change angle, and the beautification parameter adjustment coefficient to obtain the target beautification parameter corresponding to the second pose information. Since the beautification parameter adjustment coefficient is related to at least one of the pose change type and the beautification parameter type, the corresponding beautification parameter adjustment coefficient can be selected based on the pose change type and the beautification parameter type, thereby obtaining accurate target beautification parameters and improving the accuracy of the target beautification parameters.

[0082] In some embodiments of this application, in order to obtain more accurate target beautification parameters, the adjustment of the first beautification parameters corresponding to the first pose information based on the target pose change type, the target change angle, and the beautification parameter adjustment coefficient to obtain the target beautification parameters corresponding to the second pose information may specifically include:

[0083] Based on the target posture change type, select the first target beauty parameter adjustment coefficient corresponding to the target posture change type from the beauty parameter adjustment coefficient group;

[0084] Based on the target pose change type and target change angle, as well as the first target beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted to obtain the target beautification parameter corresponding to the second pose information.

[0085] in,

[0086] A beauty parameter adjustment coefficient group is a collection of coefficients used to adjust beauty parameters. This group can include adjustment coefficients corresponding to different pose change types and different beauty parameter types.

[0087] The first target beautification parameter adjustment coefficient can be selected from the beautification parameter adjustment coefficient group based on the target posture change type, and the beautification parameter adjustment coefficient corresponding to the target posture change type.

[0088] In one example, the beauty parameter adjustment coefficient group can be an array, such as [a1,a2,a3]. If the target object is the face of the person being photographed in the preview image, the first change type can include looking up, looking down, and side profile. Then a1 can be the beauty parameter adjustment coefficient corresponding to the looking up type, a2 can be the beauty parameter adjustment coefficient corresponding to the looking down type, and a3 can be the beauty parameter adjustment coefficient corresponding to the side profile type.

[0089] When the beauty parameter adjustment coefficient is 0, it will not dynamically adjust according to the face. The larger the beauty parameter adjustment coefficient, the more obvious the final adjustment effect. These dynamic adjustment coefficients are related to specific beauty items and require continuous debugging. Only after achieving the best effect can the corresponding dynamic adjustment coefficient group (i.e., beauty parameter adjustment coefficient group) for the beauty item be determined. In other words, the beauty parameter adjustment coefficient group is obtained in advance through experiments.

[0090] In the embodiments of this application, a first target beautification parameter adjustment coefficient corresponding to the target pose change type is selected from the beautification parameter adjustment coefficient group based on the target pose change type. Then, based on the target pose change type, the target change angle, and the first target beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted, so as to obtain the accurate target beautification parameter corresponding to the second pose information.

[0091] In some embodiments of this application, the step of selecting a first target beautification parameter adjustment coefficient corresponding to the target pose change type from the beautification parameter adjustment coefficient group based on the target pose change type may specifically include:

[0092] The face of the person being photographed in the preview image is divided according to a preset division method to obtain at least one face region;

[0093] Based on the target face region, select a second target beauty parameter adjustment coefficient group corresponding to the target face region from at least one set of beauty parameter adjustment coefficient groups;

[0094] Based on the target posture change type, select the first target beautification parameter adjustment coefficient corresponding to the target posture change type from the second target beautification parameter adjustment coefficient group.

[0095] The preset division method can be a pre-set division method, which is not limited here, as long as it can divide the face of the person being photographed in the preview image.

[0096] Each facial region corresponds to a different type of beautification parameter. For example, the nose corresponds to one type of beautification parameter, while the forehead corresponds to another.

[0097] The target face region can be any face region from at least one face region.

[0098] The second target beautification parameter adjustment coefficient group can be based on the target face region, and the beautification parameter adjustment coefficient group corresponding to the target face region can be selected from at least one beautification parameter adjustment coefficient group.

[0099] In one example, the first posture information is the posture information in the eye-level state, and the first beautification parameters are forehead reduction (30), chin reduction (45), eye distance expansion (40), face slimming (50), and nose augmentation (35). The beautification parameter adjustment coefficient groups corresponding to the first beautification parameters of each face region are [-0.1,0.1,0], [0.1,-0.05,0], [-0.1,0.2,-0.2], [-0.1,0.1,-0.1], [0.2,0,0.2]; where, in each beautification parameter adjustment coefficient group, the first coefficient corresponds to the head-up type, the second coefficient corresponds to the head-down type, and the third coefficient corresponds to the side face type.

[0100] When a facial pose angle of 30° is detected, indicating that the user is looking up at a 30° angle, the system first selects the coefficient group corresponding to each facial region from the beauty parameter adjustment coefficient group (i.e., the second target beauty parameter adjustment coefficient group). Then, based on the user's facial tilt, the system selects the first coefficient from the coefficient group corresponding to each facial region and calculates the adjusted beauty parameters (i.e., the target beauty parameters).

[0101] Forehead reduction: 30 + (-0.1 * 30) = 27;

[0102] Chin reduction: 45 + 0.1 * 30 = 48;

[0103] Distance between eyes: 40 + (-0.1 * 30) = 37;

[0104] Slimming face: 50 + (-0.1 * 30) = 47;

[0105] Rhinoplasty: 35 + 0.2 * 30 = 41.

[0106] Thus, when a person tilts their head back, the chin appears larger and the forehead smaller. At this point, adjustments can be made based on the angle of the face (specifically, parameters such as increasing the chin or reducing the mouth can be used to enhance the effect). If the forehead and eyes appear small, the parameters for the forehead and eyes can be appropriately decreased. These adjustments improve the overall harmony of the beautification effects.

[0107] In the embodiments of this application, the face of the subject in the preview image can be divided according to a preset division method to obtain at least one face region. Then, based on the target face region, a second target beauty parameter adjustment coefficient group corresponding to the target face region is selected from at least one set of beauty parameter adjustment coefficient groups. Based on the target pose change type, a first target beauty parameter adjustment coefficient corresponding to the target pose change type is selected from the second target beauty parameter adjustment coefficient group. In this way, the first target beauty parameter adjustment coefficient can be accurately determined so that the target beauty parameters corresponding to each face region under the adjusted second pose information are coordinated and matched with each other, meeting the user's needs for beauty effect and improving user experience.

[0108] In some embodiments of this application, in order to further coordinate and match the beautification parameters of each face region, the step of dividing the face of the subject in the shooting preview image according to a preset division method to obtain at least one face region may include:

[0109] Using the nose of the subject's face in the preview image as the center, the face is divided along the horizontal and vertical directions to obtain at least one face region.

[0110] In one example, reference Figure 2The preview image can be taken with the nose 211 of the subject's face 210 as the center, and the face can be captured along the horizontal direction (i.e., Figure 2 (x-direction) and vertical direction (i.e. Figure 2 Divide the area (in the y-direction) to obtain at least one face region.

[0111] Correspondingly, the first beauty parameter can be a beauty parameter corresponding to each facial region, specifically parameters that are strongly related to facial features such as forehead, eye distance, nose augmentation, chin, and face slimming.

[0112] In the embodiments of this application, the face is divided along the horizontal and vertical directions with the nose of the subject's face in the preview image as the center. This allows for the precise acquisition of at least one facial region. When adjusting the beautification parameters of the face, the beautification parameters of each facial region can be synchronously coordinated, ensuring that the beautification parameters of each facial region are coordinated and matched, thus meeting the user's needs for beautification effects and improving the user experience.

[0113] In some embodiments of this application, in order to better understand the technical solution of this application, the following describes in detail how to adjust the beautification parameters for two different situations of the target object:

[0114] (1) The target object is the face of the person being photographed in the preview image.

[0115] When the target object is the face of a person captured in the preview image, refer to Figure 5 , Figure 5 Another possible implementation of the beautification parameter adjustment method provided in the embodiments of this application is as follows: Figure 5 As shown, the method for adjusting beauty parameters may include steps 510-540.

[0116] Step 510: Obtain the first beautification parameters of the subject's face under the first pose information.

[0117] In some embodiments of this application, obtaining the first beautification parameters of the face of the photographed person under the first posture information may be obtaining the beautification parameters of the face of the photographed person in the eye-level state.

[0118] Step 520: Detect the second pose information of the subject's face.

[0119] In some embodiments of this application, when the camera is in photo preview mode, face detection is used to obtain the pitch posture of the face and the corresponding pitch angle, as described above. Figure 3 As shown.

[0120] Step 530: Divide the face into at least one facial region, centered on the nose.

[0121] For details, please refer to the above embodiments. Figure 2 The shown division method divides the face to obtain at least one face region.

[0122] Step 540: Adjust the first beautification parameters according to the first posture information and the second posture information to obtain the target beautification parameters corresponding to the second posture information.

[0123] In some embodiments of this application, the first beautification parameters may include frontal face parameters, side face parameters, upper face parameters, and lower face parameters. Specifically, forehead reduction in the first beautification parameters may belong to the upper face parameters, and chin reduction may belong to the lower face parameters. Face slimming and eye spacing belong to the frontal face parameters, and rhinoplasty belongs to the side face parameters.

[0124] Specifically, when looking up, the distance between the forehead and the phone camera increases, making the forehead appear smaller in the image, while the distance between the chin and the phone camera decreases. If the parameters for shrinking the forehead and chin remain unchanged, the forehead will appear very small and the chin will appear very large, easily causing a disproportionate look. Therefore, it is necessary to decrease the parameters for shrinking the forehead and increase the parameters for shrinking the chin to ensure a harmonious proportion. Similarly, when looking down, it is necessary to increase the parameters for shrinking the forehead and decrease the parameters for shrinking the chin. When looking at the side, the changes in the forehead and chin are consistent, so no adjustment is needed.

[0125] When viewing the profile from the side, the area of ​​the frontal face decreases while the area of ​​the profile increases. To ensure proportional harmony, it is necessary to reduce the interference of frontal face parameters. For example, the slimming parameters should be reduced to prevent them from affecting the profile and causing the profile to become narrower. The distance between the eyes also becomes smaller when viewing the profile, so it is necessary to reduce the distance-widening parameters. The height of the nose becomes more important when viewing the profile, so it is necessary to increase the rhinoplasty parameters to make the nose more three-dimensional.

[0126] For beauty parameters that need adjustment when looking down, looking up, or turning the head to the side, such as eye spacing: when looking up, the eyes are further away from the camera, so the eye spacing needs to be decreased; when looking down, the eyes are closer to the camera, so the eye spacing needs to be increased. Another example is face slimming: when looking up, the face is further away from the camera, so the face slimming parameter needs to be decreased; when looking down, the face is closer to the camera, so the face slimming parameter needs to be increased.

[0127] Some profile enhancement procedures, besides requiring adjustments to the profile itself, also need to be adjusted when the face is tilted upwards, such as rhinoplasty. When tilting the head upwards, the height of the nose becomes more important, requiring increased rhinoplasty parameters to make the nose more three-dimensional.

[0128] Thus, different beautification parameters (i.e., frontal face parameters, side face parameters, upper face parameters, or lower face parameters) can be adjusted for different pose changes and angles, such as... Figure 6 and Figure 7 As shown, where, Figure 6To adjust the beauty parameters horizontally, Figure 7 To adjust the beauty parameters vertically, Figure 6 and Figure 7 The pitch angle of 3° is merely an example in this application and does not represent that 3° is the only adjustment basis in this application.

[0129] In some embodiments of this application, after the adjustment is completed, the final beautification parameters (target beautification parameters) are passed to the beautification algorithm to continue detecting the face angle.

[0130] In this way, by judging the user's current facial tilt angle, the beauty parameters (first beauty parameters) are dynamically adjusted to achieve the goal of quickly adjusting the beauty parameters to the best effect. Based on the tilt angle of the user's face relative to the phone screen, the degree of side profile, etc., the various beauty parameter values ​​(i.e., the first beauty parameters of each facial area) are changed in real time to achieve dynamic adjustment and eliminate the drawback of large differences in beauty effect caused by the user's head rotation.

[0131] (2) The target object is electronic equipment

[0132] When the target object is an electronic device, refer to Figure 8 , Figure 8 Another possible implementation of the beautification parameter adjustment method provided in the embodiments of this application is as follows: Figure 8 As shown, the method for adjusting beauty parameters may include steps 810-840.

[0133] Step 810: Obtain the first posture information of the electronic device when it first enters the camera, and the first beautification parameters under the first posture information.

[0134] In some embodiments of this application, obtaining the first posture information of the electronic device when it first enters the camera, and the first beautification parameters under the first posture information, may be obtaining the gyroscope data when the electronic device first enters the camera, and the facial beautification parameters under the first entry into the camera.

[0135] Step 820: Detect the second attitude information of the electronic device.

[0136] In some embodiments of this application, when the camera is in shooting preview mode, the positional change of the electronic device relative to the face can be calculated by comparing the current gyroscope data with the gyroscope data in step 810 (as described above). Figure 4 (as shown), as well as the changing angle and type of change of the electronic device.

[0137] Step 830: Divide the face into at least one facial region, centered on the nose.

[0138] For details, please refer to the above embodiments. Figure 2The shown division method divides the face to obtain at least one face region.

[0139] Step 840: Adjust the first beautification parameters according to the first posture information and the second posture information to obtain the target beautification parameters corresponding to the second posture information.

[0140] In some embodiments of this application, when the target object is an electronic device, the beautification parameter adjustment coefficient group can be an array, such as [a1, a2, a3]. The second change type can include moving the electronic device up, moving it down, and moving it horizontally. Then, a1 can be the beautification parameter adjustment coefficient corresponding to the moving electronic device type, a2 can be the beautification parameter adjustment coefficient corresponding to the moving electronic device type, and a3 can be the beautification parameter adjustment coefficient corresponding to the moving electronic device type.

[0141] In some embodiments of this application, moving the phone down is equivalent to a person looking up, moving the phone up is equivalent to a person looking down, and moving the phone horizontally is equivalent to a person turning their face to the side. Thus, the specific implementation of the embodiments of this application is consistent with the dynamic adjustment method of the face of the person being photographed in the preview image, which is to make the target object look up, look down, or turn their face to the side. It will not be described again here.

[0142] Thus, the primary beautification parameters can be adjusted differently for different types and angles of posture changes of electronic devices, such as... Figure 9 and Figure 10 As shown, where, Figure 9 To adjust the beauty parameters horizontally, Figure 10 To adjust the beauty parameters vertically, Figure 9 and Figure 10 The 3° movement angle of the electronic device in this application is merely an example and does not represent that 3° is the only adjustment basis in this application.

[0143] In some embodiments of this application, after the first beautification parameter is adjusted, the final beautification parameter (i.e., the target beautification parameter) can be passed to the beautification algorithm to continue detecting the posture information of the electronic device.

[0144] In some embodiments of this application, if the chin becomes larger and the forehead smaller when the electronic device moves downward relative to the face, appropriate adjustments are made according to the angle of movement of the electronic device (for example, parameters such as increasing the chin or decreasing the mouth can be used to enhance the effect). If the forehead and eyes are too small, the parameters for the forehead and eyes are appropriately reduced, thereby increasing the overall coordination of the beautification effect.

[0145] In the embodiments of this application, by acquiring gyroscope data from the electronic device, calculating the current posture of the electronic device, and dynamically adjusting the beautification parameters (first beautification parameters are applied in real time), the purpose of quickly adjusting the beautification parameters to the optimal effect is achieved. Based on the gyroscope angle of the electronic device at different times, the movement position of the electronic device relative to the face is calculated. When adjusting the beautification parameters, the parameters are dynamically adjusted based on the real-time movement of the electronic device in various directions, combined with various preset beautification parameters (i.e., the first beautification parameters). This provides automated assistance to the user when adjusting the beautification, making it easier to adjust the parameters and achieving dynamic adjustment. This eliminates the drawback of significant differences in beautification effects caused by head rotation, improves the beautification effect, makes it easy to take good photos, and enhances the user experience. The various beautification parameter values ​​are changed in real time.

[0146] The beauty parameter adjustment method provided in this application can be executed by a beauty parameter adjustment device. This application uses the example of a beauty parameter adjustment device executing the beauty parameter adjustment method to illustrate the beauty parameter adjustment device provided in this application.

[0147] Figure 11 This is a schematic diagram of a beauty parameter adjustment device according to an exemplary embodiment.

[0148] like Figure 11 As shown, the beauty parameter adjustment device 1100 can be applied to electronic devices, and the beauty parameter adjustment device 1100 may include:

[0149] The first acquisition module 1110 is used to acquire, when the electronic device is in the photo preview mode, the first pose information of the target object at a first moment and the second pose information of the target object at a second moment; wherein, the target object is the face of the person being photographed in the photo preview image or the electronic device; the first moment is earlier than the second moment;

[0150] The first determining module 1120 is used to determine the pose change information of the target object based on the first pose information and the second pose information;

[0151] The second determining module 1130 is used to adjust the first beautification parameters corresponding to the first pose information based on the pose change information to obtain the target beautification parameters corresponding to the second pose information.

[0152] In the embodiments of this application, when the electronic device is in the photo preview mode, the first acquisition module acquires the first pose information of the target object at a first moment and the second pose information of the target object at a second moment. Based on the first determination module, the pose change information of the target object can be determined according to the first pose information and the second pose information. The target object can be the face of the person being photographed in the photo preview image or the electronic device. Thus, based on the pose change information, the second determination module can adjust the first beautification parameters under the first pose information to obtain the target beautification parameters corresponding to the second pose information. In this way, the beautification parameters can be adjusted according to different pose states to obtain different beautification effects, meet the personalized needs of users, and improve the user experience.

[0153] In some embodiments of this application, to further enhance the user experience, when the target object is the face of a person captured in the preview image, the first determining module 1120 may include:

[0154] The first determining unit is configured to determine the first pose change type and the first change angle of the face based on the first pose information and the second pose information.

[0155] The second determining module 1130 may include:

[0156] The second determining unit is used to adjust the first beautification parameters corresponding to the first pose information based on the first pose change type and the first change angle, so as to obtain the target beautification parameters corresponding to the second pose information.

[0157] In some embodiments of this application, to further enhance the user experience, when the target object is the electronic device, the first determining module 1120 may further include:

[0158] The third determining unit is used to determine the second posture change type and the second change angle of the electronic device based on the first posture information and the second posture information.

[0159] The second determining module 1130 may also include:

[0160] The fourth determining unit is used to adjust the first beautification parameters corresponding to the first pose information based on the second pose change type and the second change angle, so as to obtain the target beautification parameters corresponding to the second pose information.

[0161] In some embodiments of this application, to further enhance the user experience, the third determining unit is specifically used for:

[0162] Based on the first pose information and the second pose information, the second change angle of the electronic device in each direction is determined.

[0163] In some embodiments of this application, in order to further obtain accurate target beautification parameters, the second determining module 1130 may specifically include:

[0164] The fifth determining unit is used to adjust the first beautification parameter corresponding to the first pose information based on the target pose change type, the target change angle, and the beautification parameter adjustment coefficient to obtain the target beautification parameter corresponding to the second pose information; wherein, the beautification parameter adjustment coefficient is related to at least one of the pose change type and the beautification parameter type.

[0165] In some embodiments of this application, in order to further obtain accurate target beautification parameters, the fifth determining unit may include:

[0166] The first determining subunit is used to select a first target beauty parameter adjustment coefficient corresponding to the target posture change type from the beauty parameter adjustment coefficient group based on the target posture change type; the beauty parameter adjustment coefficient group includes beauty parameter adjustment coefficients corresponding to different posture change types;

[0167] The second determining subunit is used to adjust the first beautification parameter corresponding to the first pose information based on the target pose change type and target change angle, as well as the first target beautification parameter adjustment coefficient, to obtain the target beautification parameter corresponding to the second pose information.

[0168] In some embodiments of this application, in order to coordinate and match the beautification parameters of various parts, the first determining subunit may specifically be used for:

[0169] The face of the subject in the preview image is divided according to a preset division method to obtain at least one face region; each face region corresponds to a beauty parameter type;

[0170] Based on the target face region, a second target beauty parameter adjustment coefficient group corresponding to the target face region is selected from at least one set of beauty parameter adjustment coefficient groups;

[0171] Based on the target posture change type, the first target beauty parameter adjustment coefficient corresponding to the target posture change type is selected from the second target beauty parameter adjustment coefficient group.

[0172] In some embodiments of this application, in order to further coordinate and match the beautification parameters of each face region, the first determining subunit may specifically be used for:

[0173] Using the nose of the subject's face in the preview image as the center, the face is divided along the horizontal and vertical directions to obtain at least one face region.

[0174] The beauty parameter adjustment device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0175] The beauty parameter adjustment device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0176] The beauty parameter adjustment device provided in this application embodiment can achieve... Figure 1 , Figure 5 and Figure 8 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0177] Optionally, such as Figure 12 As shown, this application embodiment also provides an electronic device 1200, including a processor 1201 and a memory 1202. The memory 1202 stores a program or instructions that can run on the processor 1201. When the program or instructions are executed by the processor 1201, they implement the various steps of the above-described beauty parameter adjustment method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0178] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0179] Figure 13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0180] The electronic device 1300 includes, but is not limited to, components such as: radio frequency unit 1301, network module 1302, audio output unit 1303, input unit 1304, sensor 1305, display unit 1306, user input unit 1307, interface unit 1308, memory 1309, and processor 1310.

[0181] Those skilled in the art will understand that the electronic device 1300 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1310 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 13 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0182] The processor 1310 is configured to, when the electronic device is in photo preview mode, acquire first pose information of a target object at a first moment and second pose information of the target object at a second moment; determine pose change information of the target object based on the first pose information and the second pose information; and adjust the first beautification parameter corresponding to the first pose information based on the pose change information to obtain the target beautification parameter corresponding to the second pose information.

[0183] Thus, by acquiring the first pose information of the target object at the first moment and the second pose information of the target object at the second moment, the pose change information of the target object can be determined. The target object can be the face of the person being photographed in the preview image or an electronic device. Based on this pose change information, the first beautification parameters under the first pose information can be adjusted to obtain the target beautification parameters corresponding to the second pose information. In this way, the beautification parameters can be adjusted according to different pose states to obtain different beautification effects, meet the personalized needs of users, and improve the user experience.

[0184] Optionally, the processor 1310 is further configured to, when the target object is the face of a person in the shooting preview image, determine a first pose change type and a first change angle of the face based on the first pose information and the second pose information; and adjust the first beautification parameters corresponding to the first pose information based on the first pose change type and the first change angle to obtain the target beautification parameters corresponding to the second pose information.

[0185] In this way, by using the first pose information and the second pose information, the first pose change type and the first change angle of the face can be accurately determined. Then, based on the first pose change type and the first change angle, the first beautification parameters corresponding to the first pose information are precisely adjusted to obtain the precise target beautification parameters corresponding to the second pose information. This allows for precise adjustments based on the faces of different users, and the beautification effect can be tailored to each individual, meeting the personalized needs of users and further enhancing the user experience.

[0186] Optionally, the processor 1310 is further configured to, when the target object is the electronic device, determine a second pose change type and a second change angle of the electronic device based on the first pose information and the second pose information; and adjust the first beautification parameter corresponding to the first pose information based on the second pose change type and the second change angle to obtain the target beautification parameter corresponding to the second pose information.

[0187] In this way, by using the first pose information and the second pose information, the second pose change type and the second change angle of the electronic device can be accurately determined. Then, based on the second pose change type and the second change angle, the first beautification parameter corresponding to the first pose information is precisely adjusted to obtain the precise target beautification parameter corresponding to the second pose information. In this way, different precise adjustments can be made to the user according to different pose information of the electronic device, and the beautification effect can be personalized to each individual, meeting the user's personalized needs and further improving the user experience.

[0188] Optionally, the processor 1310 is further configured to determine a second change angle of the electronic device in each direction based on the first pose information and the second pose information.

[0189] In this way, by using the first pose information and the second pose information, the second change angle of the electronic device in each direction can be accurately determined. This allows the target beautification parameters under the second pose information to be determined, and the beautification effect can be tailored to each individual, meeting the personalized needs of users and further improving the user experience.

[0190] Optionally, the processor 1310 is further configured to adjust the first beautification parameter corresponding to the first pose information based on the target pose change type and the target change angle, as well as the beautification parameter adjustment coefficient, to obtain the target beautification parameter corresponding to the second pose information; wherein the beautification parameter adjustment coefficient is related to at least one of the pose change type and the beautification parameter type.

[0191] Thus, by adjusting the first beautification parameter corresponding to the first pose information based on the target pose change type and target change angle, as well as the beautification parameter adjustment coefficient, the target beautification parameter corresponding to the second pose information is obtained. Since the beautification parameter adjustment coefficient is related to at least one of the pose change type and beautification parameter type, the corresponding beautification parameter adjustment coefficient can be selected based on the pose change type and beautification parameter type, thereby obtaining accurate target beautification parameters and improving the accuracy of target beautification parameters.

[0192] Optionally, the processor 1310 is further configured to select a first target beautification parameter adjustment coefficient corresponding to the target posture change type from a beautification parameter adjustment coefficient group based on the target posture change type; the beautification parameter adjustment coefficient group includes beautification parameter adjustment coefficients corresponding to different posture change types; and adjust the first beautification parameter corresponding to the first pose information based on the target posture change type, the target change angle, and the first target beautification parameter adjustment coefficient to obtain the target beautification parameter corresponding to the second pose information.

[0193] Thus, by selecting the first target beautification parameter adjustment coefficient corresponding to the target pose change type from the beautification parameter adjustment coefficient group, based on the target pose change type, the target change angle, and the first target beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted, thereby obtaining the accurate target beautification parameter corresponding to the second pose information.

[0194] Optionally, the processor 1310 is further configured to divide the face of the person being photographed in the preview image according to a preset division method to obtain at least one face region; wherein each face region corresponds to a beauty parameter type; based on the target face region, select a second target beauty parameter adjustment coefficient group corresponding to the target face region from at least one set of beauty parameter adjustment coefficient groups; based on the target pose change type, select a first target beauty parameter adjustment coefficient corresponding to the target pose change type from the second target beauty parameter adjustment coefficient group.

[0195] In this way, the face of the subject in the preview image can be divided according to a preset division method to obtain at least one face region. Then, based on the target face region, a second target beauty parameter adjustment coefficient group corresponding to the target face region is selected from at least one set of beauty parameter adjustment coefficient groups. Based on the target pose change type, a first target beauty parameter adjustment coefficient corresponding to the target pose change type is selected from the second target beauty parameter adjustment coefficient group. In this way, the first target beauty parameter adjustment coefficient can be accurately determined so that the target beauty parameters corresponding to each face region under the adjusted second pose information are coordinated and matched with each other, meeting the user's needs for beauty effect and improving the user experience.

[0196] Optionally, the processor 1310 is further configured to divide the face along the horizontal and vertical directions, centered on the nose of the subject's face in the shooting preview image, to obtain at least one face region.

[0197] In this way, by taking the nose of the subject's face in the preview image as the center, the face is divided along the horizontal and vertical directions. This allows for the precise identification of at least one facial region. When adjusting the beautification parameters of the face, the beautification parameters of each facial region can be synchronized and coordinated, ensuring that the beautification parameters of each facial region are coordinated and matched to meet the user's needs for beautification effects and improve the user experience.

[0198] It should be understood that, in this embodiment, the input unit 1304 may include a graphics processing unit (GPU) 13041 and a microphone 13042. The GPU 13041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1307 includes a touch panel 13071 and at least one of other input devices 13072. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0199] The memory 1309 can be used to store software programs and various data. The memory 1309 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1309 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1309 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0200] Processor 1310 may include one or more processing units; optionally, processor 1310 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1310.

[0201] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described beauty parameter adjustment method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0202] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0203] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described beauty parameter adjustment method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0204] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0205] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described beauty parameter adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0206] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0207] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0208] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for adjusting beauty parameters, characterized in that, The method includes: When the electronic device is in camera preview mode, the first pose information of the target object at a first moment and the second pose information of the target object at a second moment are acquired; wherein, the target object is the face of the person being photographed in the camera preview image or the electronic device; the first moment is earlier than the second moment; Based on the first pose information and the second pose information, the pose change information of the target object is determined, and the pose change information includes the target pose change type and the target change angle; The face of the person being photographed in the preview image is divided according to a preset division method to obtain at least one face region; wherein each face region corresponds to a beauty parameter type; Based on a target face region within at least one of the face regions, a second target beauty parameter adjustment coefficient group corresponding to the target face region is selected from at least one set of beauty parameter adjustment coefficient groups, wherein the beauty parameter adjustment coefficient group includes beauty parameter adjustment coefficients corresponding to different pose change types; Based on the target posture change type, select the first target beauty parameter adjustment coefficient corresponding to the target posture change type from the second target beauty parameter adjustment coefficient group; Based on the target pose change type and the target change angle, as well as the first target beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted to obtain the target beautification parameter corresponding to the second pose information.

2. The method according to claim 1, characterized in that, The target pose change type includes a first pose change type, and the target change angle includes a first change angle. When the target object is the face of a person captured in a preview image, determining the pose change information of the target object based on the first pose information and the second pose information includes: Based on the first pose information and the second pose information, the first pose change type and the first change angle of the face are determined; The step of adjusting the first beautification parameters corresponding to the first pose information based on the target pose change type, the target change angle, and the beautification parameter adjustment coefficient to obtain the target beautification parameters corresponding to the second pose information includes: Based on the first pose change type and the first change angle, as well as the beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted to obtain the target beautification parameter corresponding to the second pose information.

3. The method according to claim 1, characterized in that, The target pose change type includes a second pose change type, and the target change angle includes a second change angle. When the target object is the electronic device, determining the pose change information of the target object based on the first pose information and the second pose information includes: Based on the first pose information and the second pose information, the second pose change type and the second change angle of the electronic device are determined; The step of adjusting the first beautification parameters corresponding to the first pose information based on the target pose change type, the target change angle, and the beautification parameter adjustment coefficient to obtain the target beautification parameters corresponding to the second pose information includes: Based on the second pose change type and the second change angle, as well as the beautification parameter adjustment coefficient, the first beautification parameter corresponding to the first pose information is adjusted to obtain the target beautification parameter corresponding to the second pose information.

4. The method according to claim 3, characterized in that, Based on the first pose information and the second pose information, determining the second change angle of the electronic device includes: Based on the first pose information and the second pose information, the second change angle of the electronic device in each direction is determined.

5. The method according to claim 1, characterized in that, The process of dividing the face of the person in the preview image according to a preset division method to obtain at least one face region includes: Using the nose of the subject's face in the preview image as the center, the face is divided along the horizontal and vertical directions to obtain at least one face region.

6. A device for adjusting beauty parameters, characterized in that, The device includes: The first acquisition module is used to acquire, when the electronic device is in the photo preview mode, the first pose information of the target object at a first moment and the second pose information of the target object at a second moment; wherein, the target object is the face of the person being photographed in the photo preview image or the electronic device; the first moment is earlier than the second moment; The first determining module is used to determine the pose change information of the target object based on the first pose information and the second pose information, wherein the pose change information includes the target pose change type and the target change angle; The second determining module is used to divide the face of the subject in the shooting preview image according to a preset division method to obtain at least one face region; wherein each face region corresponds to a beauty parameter type; based on the target face region in the at least one face region, a second target beauty parameter adjustment coefficient group corresponding to the target face region is selected from at least one set of beauty parameter adjustment coefficient groups, the beauty parameter adjustment coefficient group including beauty parameter adjustment coefficients corresponding to different pose change types; based on the target pose change type, a first target beauty parameter adjustment coefficient corresponding to the target pose change type is selected from the second target beauty parameter adjustment coefficient group; based on the target pose change type, the target change angle, and the first target beauty parameter adjustment coefficient, the first beauty parameter corresponding to the first pose information is adjusted to obtain the target beauty parameter corresponding to the second pose information.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the beauty parameter adjustment method as described in any one of claims 1-5.