CN116320726A - Beauty parameter adjustment method and device and electronic equipment - Google Patents

Beauty parameter adjustment method and device and electronic equipment Download PDF

Info

Publication number
CN116320726A
CN116320726A CN202211090724.0A CN202211090724A CN116320726A CN 116320726 A CN116320726 A CN 116320726A CN 202211090724 A CN202211090724 A CN 202211090724A CN 116320726 A CN116320726 A CN 116320726A
Authority
CN
China
Prior art keywords
target
beauty
pose
face
pose information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211090724.0A
Other languages
Chinese (zh)
Inventor
林君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202211090724.0A priority Critical patent/CN116320726A/en
Publication of CN116320726A publication Critical patent/CN116320726A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a method and a device for adjusting beauty parameters and electronic equipment, and belongs to the field of computers. The beauty parameter adjustment method comprises the following steps: acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic equipment is in a photographing preview mode; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time; determining pose change information of the target object based on the first pose information and the second pose information; and adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.

Description

Beauty parameter adjustment method and device and electronic equipment
Technical Field
The application belongs to the field of computers, and particularly relates to a method and a device for adjusting beauty parameters and electronic equipment.
Background
Along with the rapid development of electronic technology, the beauty technology is also rapidly developed, and along with the further improvement of the beauty technology, the requirements and the expectations of people on the beauty effect are also higher and higher, and the people hope to have the beauty effect and the beauty function which attract eyeballs.
The current beauty mode is that a system presets beauty Yan Canshu, a user directly selects one of the beauty parameters, so that the parameters are set in a fixed mode, the obtained beauty effect is fixed and deliberate, and personalized adjustment of the beauty parameters cannot be realized.
Disclosure of Invention
The embodiment of the application aims to provide a method and device for adjusting beauty parameters and electronic equipment. The problem that personalized adjustment of beauty parameters cannot be achieved in the prior art can be solved.
In a first aspect, an embodiment of the present application provides a method for adjusting a beauty parameter, where the method includes:
acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic equipment is in a photographing preview mode; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time;
determining pose change information of the target object based on the first pose information and the second pose information;
and adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.
In a second aspect, an embodiment of the present application provides a device for adjusting a beauty parameter, including:
the electronic equipment comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic equipment is in a shooting preview mode; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time;
the first determining module is used for determining pose change information of the target object based on the first pose information and the second pose information;
and the second determining module is used for adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, when the electronic equipment is in a photographing preview mode, the pose change information of the target object can be determined through the acquired first pose information of the target object at the first moment and the acquired second pose information of the target object at the second moment, and the target object can be the face of a photographed person object in a photographing preview image or the electronic equipment, so that the first face-beautifying parameter under the first pose information can be adjusted based on the pose change information to obtain the target face-beautifying parameter corresponding to the second pose information, so that the face-beautifying parameters can be adjusted according to different pose states to obtain different face-beautifying effects, personalized requirements of users are met, and user experience is improved.
Drawings
FIG. 1 is one of the flow diagrams of a method for adjusting a beauty parameter according to an exemplary embodiment;
FIG. 2 is a face region division diagram illustrating an exemplary embodiment;
fig. 3 is a diagram showing determination of the type of posture change when the target object is the face of a photographed person object in a photographed preview image in an exemplary embodiment;
FIG. 4 is a diagram illustrating the determination of a gesture change type when the target object is an electronic device in accordance with an exemplary embodiment;
FIG. 5 is a second flow chart of a method for adjusting parameters of beauty treatment according to an exemplary embodiment;
fig. 6 is one of the schematic face-beautifying parameter adjustment diagrams when the target object is the face of the photographed person object in the photographed preview image, which is shown in an exemplary embodiment;
FIG. 7 is a second schematic view showing the adjustment of the beauty parameters when the target object is the face of the photographed person object in the photographed preview image, according to an exemplary embodiment;
FIG. 8 is a third flow chart of a method for adjusting parameters of beauty treatment according to an exemplary embodiment;
FIG. 9 is one of the schematic diagrams of the adjustment of the beauty parameters when the target object is an electronic device, according to an exemplary embodiment;
FIG. 10 is a second schematic view of the adjustment of the beauty parameters when the target object is an electronic device according to an exemplary embodiment;
Fig. 11 is a schematic structural view of a beauty parameter adjustment device shown in an exemplary embodiment;
FIG. 12 is a schematic diagram of an electronic device shown in an exemplary embodiment;
fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
As described in the background art, in the prior art, there is a problem that the beauty effect is not different from person to person, and in order to solve the above problem, in this embodiment of the present application, in the electronic device in the photographing preview mode, through the obtained first pose information of the target object at the first moment and the obtained second pose information of the target object at the second moment, pose change information of the target object may be determined, and the target object may be a face of a photographed person in the photographing preview image or the electronic device, so that based on the pose change information, the first beauty parameter under the first pose information may be adjusted to obtain the target beauty parameter corresponding to the second pose information, so that according to different pose states, the beauty parameters may be adjusted to obtain different beauty effects, thereby meeting individual requirements of a user and improving user experience.
The method for adjusting the beauty parameters provided by the embodiment of the application is described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for adjusting a beauty parameter according to an embodiment of the present application, and an execution body of the method for adjusting a beauty parameter may be an electronic device.
In embodiments of the present application, the electronic device may be, but is not limited to, a personal computer (Personal Computer, PC), a smart phone, a tablet computer, or a personal digital assistant (Personal Digital Assistant, PDA), etc.
In an embodiment of the present application, the electronic device may have a beautifying function.
As shown in fig. 1, the method for adjusting the beauty parameters provided in the embodiment of the present application may include steps 110 to 130.
Step 110, acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic device is in a photographing preview mode.
The first time may be any time.
The second moment in time may be any moment in time after the first moment in time, i.e. the first moment in time is earlier than the second moment in time.
The target object may be a face or an electronic device of a photographic person object in the photographic preview image. Specific implementations are described in detail in the examples that follow for both cases of the target object.
The first pose information may be pose information of the target object at a first time.
The second pose information may be pose information of the target object at a second moment in time.
In some embodiments of the present application, the first pose information and the second pose information may be obtained based on a pose detection algorithm in the electronic device, and specifically how to obtain the first pose information and the second pose information may be obtained according to a user requirement by using an existing obtaining means, which is not limited herein.
Step 120, determining pose change information of the target object based on the first pose information and the second pose information.
The pose change information may be change information of the target object from the first pose information to the second pose information. Specifically, the first pose information is subtracted from the second pose information, and the obtained difference value is pose change information.
And 130, adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain target beauty parameters corresponding to the second pose information.
The first beauty parameters may be beauty parameters obtained under the first pose information, and specifically may be beauty parameters preset under the first pose information.
The target beauty parameters may be the beauty parameters under the second pose information obtained after the first beauty parameters are adjusted.
In some embodiments of the present application, in order to more clearly understand how to adjust the beauty parameters when the target object is the face of the photographed person object or the electronic device in the photographed preview image, the following two cases are described in detail:
(1) The target object is the face of the shooting person object in the shooting preview image
In some embodiments of the present application, in a case where the target object is a face of a photographed person object in the photographed preview image, in order to further enhance the user experience, step 120 may specifically include:
determining a first posture change type and a first change angle of the face based on the first posture information and the second posture information;
step 130 may specifically include:
and adjusting the first beauty parameters corresponding to the first pose information based on the first pose change type and the first change angle to obtain target beauty parameters corresponding to the second pose information.
The first gesture change type may be a change type of a gesture of the face after the face is changed from the first gesture information to the second gesture information. The first posture change type here may be head up, head down, or face side.
In one example, referring to fig. 3, if the first pose information is pose information of the face in a head-up state and the second pose information is pose information in a top-down state, the face is changed from the head-up state to the top-down state, and the user is low, the first pose change type is low. If the second pose information is pose information in the looking-up state, the face is changed from the looking-up state to the looking-up state, and the user heads up, and the first pose change type is head up. If the second pose information is pose information in a side face state, the face is changed from a head-up state to a side face state, and the user heads up, the first pose change type is a side face (i.e., left side of the face or right side of the face in fig. 3).
The first change angle may be a change angle of the posture of the face after the face is changed from the first posture information to the second posture information.
In some embodiments of the present application, face pose changes and angles of change may be acquired based on face detection software development kits (Software Development Kit, SDK) in the electronic device.
In the embodiment of the application, the first gesture change type and the first change angle of the face can be accurately determined through the first gesture information and the second gesture information, then the first beauty parameters corresponding to the first gesture information are accurately adjusted based on the first gesture change type and the first change angle, and the accurate target beauty parameters corresponding to the second gesture information are obtained.
(2) The target object being an electronic device
In some embodiments of the present application, in the case where the target object is an electronic device, in order to further enhance the user experience, step 120 may specifically include:
determining a second gesture change type and a second change angle of the electronic equipment based on the first gesture information and the second gesture information;
Step 130 may specifically include:
and adjusting the first beauty parameters corresponding to the first pose information based on the second pose change type and the second change angle to obtain target beauty parameters corresponding to the second pose information.
The second gesture change type may be a change type of gesture of the electronic device after the electronic device is changed from the first gesture information to the second gesture information. The second gesture change type here may be an electronic device up, down, or translation.
In one example, referring to fig. 4, if the first pose information is pose information of the electronic device in a vertical horizontal state, and the second pose information is pose information of the electronic device rotated by one angle, the electronic device is changed from the first pose information to the second pose information, and the electronic device is translated from a front face of a photographing user to a side face of the photographing user.
The second change angle may be a change angle of the posture of the electronic device after the electronic device is changed from the first posture information to the second posture information.
In some embodiments of the present application, the first pose information and the second pose information may be calculated based on gyroscope data in the electronic device.
In the embodiment of the application, the second gesture change type and the second change angle of the electronic equipment can be accurately determined through the first gesture information and the second gesture information, then the first beauty parameters corresponding to the first gesture information are accurately adjusted based on the second gesture change type and the second change angle, and the accurate target beauty parameters corresponding to the second gesture information are obtained.
In some embodiments of the present application, in order to further improve user experience, when determining the second change angle of the electronic device according to the first pose information and the second pose information, the method may specifically be:
and determining a second change angle of the electronic equipment in each direction based on the first pose information and the second pose information.
The second change angle of the electronic device in each direction may be a change angle of the electronic device in each direction in a state corresponding to the second pose information.
In the embodiment of the application, the second change angle of the electronic equipment in each direction can be accurately determined through the first pose information and the second pose information, so that the target beautifying parameters under the second pose information can be further determined, the beautifying effect can be different from person to person, the personalized requirements of a user are met, and the user experience is further improved.
In some embodiments of the present application, in order to further obtain accurate target beauty parameters, adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type and the target change angle to obtain target beauty parameters corresponding to the second pose information may include:
based on the target attitude change type, the target change angle and the beauty parameter adjustment coefficient, adjusting a first beauty parameter corresponding to the first pose information to obtain a target beauty parameter corresponding to the second pose information;
wherein the target gesture change type may be a first gesture change type or a second gesture change type.
The target variation angle may be the first variation angle or the second variation angle. Specifically, when the target posture change type is the first posture change type, the target change angle is the first change angle; when the target posture change type is the second posture change type, the target change angle is the second change angle.
The beauty parameter adjustment coefficient may be a coefficient related to at least one of the posture change type and the beauty parameter type.
In the embodiment of the application, the first beauty parameter corresponding to the first pose information is adjusted based on the target pose change type, the target change angle and the beauty parameter adjustment coefficient to obtain the target beauty parameter corresponding to the second pose information, and the beauty parameter adjustment coefficient is related to at least one of the pose change type and the beauty parameter type, so that the corresponding beauty parameter adjustment coefficient can be selected based on the pose change type and the beauty parameter type, further the accurate target beauty parameter is obtained, and the accuracy of the target beauty parameter is improved.
In some embodiments of the present application, in order to further obtain accurate target beauty parameters, the adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type, the target change angle, and the beauty parameter adjustment coefficient to obtain target beauty parameters corresponding to the second pose information may specifically include:
selecting a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the beauty parameter adjustment coefficient group based on the target attitude change type;
and adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type, the target change angle and the first target beauty parameter adjustment coefficient to obtain target beauty parameters corresponding to the second pose information.
Wherein, the liquid crystal display device comprises a liquid crystal display device,
the set of parameters for the adjustment of the beauty parameters may be a set of coefficients for the adjustment of the beauty parameters. The beauty parameter adjustment coefficient group may include beauty parameter adjustment coefficients corresponding to different gesture change types and different beauty parameter types.
The first target beauty parameter adjustment coefficient may be a beauty parameter adjustment coefficient corresponding to the target attitude change type selected from the beauty parameter adjustment coefficient group based on the target attitude change type.
In one example, the set of beauty parameter adjustment coefficients may be an array, such as [ a1, a2, a3], and if the target object is a face of a photographed person object in the photographed preview image, the first change type may include a head up, a low head, and a side face, a1 may be a beauty parameter adjustment coefficient corresponding to the head up type, a2 may be a beauty parameter adjustment coefficient corresponding to the low head type, and a3 may be a beauty parameter adjustment coefficient corresponding to the side face type.
When the beauty parameter adjustment coefficient is 0, the face is not dynamically adjusted, and the larger the beauty parameter adjustment coefficient is, the more obvious the final adjustment effect is. The dynamic adjustment coefficients are related to specific beauty terms, and the dynamic adjustment coefficient groups (i.e., the beauty parameter adjustment coefficient groups) corresponding to the beauty terms can be determined after the best effect is achieved, that is, the beauty parameter adjustment coefficient groups are obtained through experiments in advance.
In the embodiment of the application, through the target attitude change type, a first target beauty parameter adjustment coefficient corresponding to the target attitude change type is selected from the beauty parameter adjustment coefficient group, and then the first beauty parameter corresponding to the first pose information is adjusted based on the target attitude change type, the target change angle and the first target beauty parameter adjustment coefficient, so that the accurate target beauty parameter corresponding to the second pose information can be obtained.
In some embodiments of the present application, the selecting, based on the target attitude change type, the first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the group of beauty parameter adjustment coefficients may specifically include:
dividing the face of a shooting person object in a shooting preview image according to a preset dividing mode to obtain at least one face area;
selecting a second target face parameter adjustment coefficient set corresponding to the target face region from at least one set of face parameter adjustment coefficient sets based on the target face region;
and selecting a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the second target beauty parameter adjustment coefficient group based on the target attitude change type.
The preset division method may be a preset division method, and is not limited herein, as long as the face of the photographed person object in the photographed preview image can be divided.
A face region corresponds to a type of beauty parameter. For example, the nose corresponds to one type of beauty parameter and the forehead corresponds to another type of beauty parameter.
The target face region may be any one of the at least one face region.
The second target face parameter adjustment coefficient set may be a face parameter adjustment coefficient set corresponding to the target face region selected from at least one set of face parameter adjustment coefficient sets based on the target face region.
In one example, the first pose information is pose information in a head-up state, the first beauty parameters are a forehead (30), a chin (45), a reaming distance (40), a face (50) and a nose (35), and the first beauty parameter adjustment coefficient groups corresponding to the first beauty parameters of the face areas 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]; in each of the beauty parameter adjustment coefficient groups, the first coefficient corresponds to a head-up type, the second coefficient corresponds to a low head type, and the third coefficient corresponds to a side face type.
When the face posture angle is detected to be 30 degrees, namely, the head-up angle of the user is indicated to be 30 degrees, firstly, according to the face area of the user, selecting a coefficient group corresponding to each face area (namely, a second target face-beautifying parameter adjustment coefficient group) from face parameter adjustment coefficient groups, then selecting a first coefficient from the coefficient groups corresponding to each face area according to the head-up of the user, and calculating an adjusted face-beautifying Yan Canshu (namely, target face-beautifying parameter):
Contraction forehead: 30+ (-0.1 x 30) =27;
chin shrinking: 45+0.1×30=48;
eye distance expansion: 40+ (-0.1 x 30) =37;
face thinning: 50+ (-0.1 x 30) =47;
augmentation of nose: 35+0.2x30=41.
Therefore, when the human face is raised, the chin becomes larger and the forehead becomes smaller, at this time, the parameters of the forehead and the eye part can be properly reduced if the forehead and the eyes become smaller by properly adjusting the angle of the human face (specifically, increasing the parameter enhancing effects of the chin, the small mouth and the like). The target beauty parameters after the adjustment are finished, and the coordination of all the beauty effects is increased.
In the embodiment of the application, the face of the shooting person object in the shooting preview image can be divided according to the preset division mode to obtain at least one face area, then a second target face parameter adjustment coefficient group corresponding to the target face area is selected from at least one group of face parameter adjustment coefficient groups based on the target face area, a first target face parameter adjustment coefficient corresponding to the target attitude change type is selected from the second target face parameter adjustment coefficient group based on the target attitude change type, and therefore the first target face parameter adjustment coefficient can be accurately determined, so that the target face parameters corresponding to the face areas under the adjusted second pose information are mutually matched, the requirement of a user on the face effect is met, and the user experience is improved.
In some embodiments of the present application, in order to further coordinate and match the face beautifying parameters of each face area, the dividing the face of the photographed person object in the photographed preview image according to a preset dividing manner to obtain at least one face area may include:
the face is divided in the horizontal direction and the vertical direction with the nose of the face of the photographed person object in the photographed preview image as the center, and at least one face region is obtained.
In one example, referring to fig. 2, a nose 211 of a face 210 of a photographed person object in a preview image may be taken as a center, and the face may be divided in a horizontal direction (i.e., an x-direction in fig. 2) and a vertical direction (i.e., a y-direction in fig. 2) to obtain at least one face region.
Correspondingly, the first beauty parameters can be beauty parameters corresponding to each face area, and specifically can be parameters related to forehead, eye distance, nose augmentation, chin, face thinning and the like.
In the embodiment of the application, the nose of the face of the shot person object in the shot preview image is taken as the center, the face is divided along the horizontal direction and the vertical direction, so that at least one face area can be accurately obtained, and further when the face beautifying parameters of the face are adjusted, the face beautifying parameters of the face areas can be synchronously coordinated according to the areas, so that the face beautifying parameters of the face areas are coordinated and matched, the requirement of a user on the face beautifying effect is met, and the user experience is improved.
In some embodiments of the present application, for a clearer understanding of the technical solutions of the present application, how to adjust the beauty parameters is described in detail below by specific examples for two different situations of the target object:
(1) The target object is the face of the shooting person object in the shooting preview image
In the case that the target object is the face of the photographed person object in the photographed preview image, referring to fig. 5, fig. 5 is another implementation manner of the method for adjusting the beauty parameters according to the embodiment of the present application, as shown in fig. 5, the method for adjusting the beauty parameters may include steps 510 to 540.
Step 510, obtaining a first beauty parameter of the face of the photographed person object under the first gesture information.
In some embodiments of the present application, the acquiring a first face-beautifying parameter of the face of the photographed person object under the first pose information may be acquiring a face-beautifying parameter of the face of the photographed person object under the head-up state.
Step 520, second pose information of the face of the photographed person object is detected.
In some embodiments of the present application, the pitch pose of the face and the corresponding pitch angle are obtained by face detection when the camera is in the photographing preview mode, as shown in fig. 3 above.
Step 530, dividing the face into at least one face region with the nose of the face as the center.
Specifically, the face may be divided by referring to the division manner shown in fig. 2 in the above embodiment to obtain at least one face area.
And step 540, adjusting the first beauty parameters according to the first posture information and the second posture information to obtain target beauty parameters corresponding to the second posture information.
In some embodiments of the present application, the first face-beautifying parameters may include a face-positive parameter, a face-side parameter, a face-upper parameter, and a face-lower parameter. The forehead shrinkage in the specific first beauty parameters can belong to the upper parameters of the face, and the chin shrinkage belongs to the lower parameters of the face. The thin face and the eye distance belong to the positive face parameter, and the hump nose belongs to the lateral face parameter.
Specifically, when the head is lifted, the distance between the forehead and the mobile phone camera is increased, the forehead can be reduced in imaging, the distance between the chin and the mobile phone camera is reduced, if the parameters of the forehead contraction and the chin contraction are unchanged, the forehead can be very small, the chin can be very large, and the proportion is easy to be out of order, so that the parameters of the forehead contraction and the chin contraction are required to be reduced, and the proportion coordination is ensured; similarly, when the head is low, the parameters of the forehead contraction and the chin contraction are required to be increased; when the user faces sideways, the forehead and the chin are changed consistently, so that adjustment is not needed.
When the face is sideways, the imaging area of the face is reduced, the area of the face is increased, the interference of the face parameter, such as the reduction of the face thinning parameter, is required to be reduced in order to ensure the proportion coordination, the outline of the face is prevented from being narrowed due to the fact that the face is acted on the face, and the eye distance is also reduced when the face is sideways, so that the parameter of the eye distance is required to be reduced; the nose is of increasing importance when facing sideways, and the nose augmentation parameters need to be increased so that the nose is more stereoscopic.
The beauty parameters such as eye-distance can be adjusted for low head, head lifting and side face. When the head is lifted, eyes are far away from the camera, and the eye-expanding distance needs to be reduced; the lower head is close to the camera, and the eye-expanding distance needs to be increased. For example, if the face is thin, the head is lifted away from the camera, and the face thinning parameters need to be reduced; the low head face is close to the camera, and the face thinning parameter needs to be increased.
In addition to the adjustment of the side face, some side face beautifying items also need to be adjusted when the head is lifted, such as nose augmentation. After head-up, the nose height is more important, and nose augmentation parameters need to be increased, so that the nose is more stereoscopic.
In this way, for different gesture change types and change angles, different beauty treatment Yan Canshu (i.e. front face parameter, side face parameter, face upper parameter or face lower parameter) can be adjusted, as shown in fig. 6 and 7, wherein fig. 6 is a horizontal direction adjustment of the beauty treatment parameter, fig. 7 is a vertical direction adjustment of the beauty treatment parameter, and the pitch angle in fig. 6 and 7 is 3 ° only one example of the present application, and does not represent that only 3 ° is used as an adjustment basis in the present application.
In some embodiments of the present application, after the adjustment is completed, the final beauty Yan Canshu (target beauty parameter) is transferred to the beauty Yan Suanfa, and the face angle continues to be detected.
Therefore, the beauty Yan Canshu (first beauty parameter) is dynamically adjusted by judging the current face pitching angle of the user, and the purpose of quickly adjusting the beauty parameters to the optimal effect is achieved. According to the pitching angle, the side face degree and the like of the face of the user and the mobile phone screen, various parameter values (namely first beautifying parameters of various face areas) of the beauty are changed in real time, the purpose of dynamic adjustment is achieved, and the defect that the beauty effect is quite different due to the rotation of the head of the user is overcome.
(2) The target object being an electronic device
In the case that the target object is an electronic device, referring to fig. 8, fig. 8 is another implementation manner of the method for adjusting a beauty parameter according to the embodiment of the present application, as shown in fig. 8, the method for adjusting a beauty parameter may include steps 810-840.
Step 810, acquiring first gesture information of the electronic device entering the camera for the first time and first beauty parameters under the first gesture information.
In some embodiments of the present application, the first pose information of the electronic device entering the camera for the first time and the first face-beautifying parameter under the first pose information may be data of a gyroscope when the electronic device enters the camera for the first time and face-beautifying parameters under the camera for the first time are obtained.
Step 820, detecting second gesture information of the electronic device.
In some embodiments of the present application, by comparing the current gyroscope data with the gyroscope data in step 810, the position change of the electronic device relative to the face (as shown in fig. 4 above) and the change angle and change type of the electronic device can be calculated when the camera is in the shooting preview mode.
Step 830, dividing the face into at least one face region centered on the nose of the face.
Specifically, the face may be divided by referring to the division manner shown in fig. 2 in the above embodiment to obtain at least one face area.
And 840, adjusting the first beauty parameters according to the first posture information and the second posture information to obtain target beauty parameters corresponding to the second posture information.
In some embodiments of the present application, for the case that the target object is an electronic device, the set of beauty parameter adjustment coefficients may be an array, for example [ a1, a2, a3], the second variation type may include upward movement, downward movement and translation of the electronic device, then a1 may be a beauty parameter adjustment coefficient corresponding to the upward movement type of the electronic device, a2 may be a beauty parameter adjustment coefficient corresponding to the downward movement type of the electronic device, and a3 may be a beauty parameter adjustment coefficient corresponding to the translation type of the electronic device.
In some embodiments of the present application, the downward movement of the mobile phone is equivalent to the head raising of a person, the upward movement of the mobile phone is equivalent to the head lowering of a person, and the translation of the mobile phone is equivalent to the side face, so that the specific implementation manner of the embodiments of the present application is consistent with the dynamic adjustment manner of the head raising, the head lowering, and the side face of the person in the shooting preview image for the target object, which is not described here again.
In this way, for different gesture change types and change angles of the electronic device, different adjustments may be performed on the first beauty parameter, as shown in fig. 9 and fig. 10, where fig. 9 is a horizontal direction adjustment of the beauty parameter, fig. 10 is a vertical direction adjustment of the beauty parameter, and the movement angle of the electronic device in fig. 9 and fig. 10 is 3 ° only one example of the present application, and does not represent that only 3 ° is used as an adjustment basis in the present application.
In some embodiments of the present application, after the adjustment of the first beauty parameter is completed, the final beauty Yan Canshu (i.e. the target beauty parameter) may be transferred to the beauty Yan Suanfa, and the gesture information of the electronic device may be continuously detected.
In some embodiments of the present application, if the electronic device moves downward relative to the face, the chin becomes larger and the forehead becomes smaller, and at this time, the electronic device is appropriately adjusted according to the moving angle (for example, the parameter enhancing effect such as chin shrinking and small mouth is increased). If the forehead and eyes are smaller, the parameters of the forehead and eyes are properly reduced, so that the coordination of the whole beautifying effect can be increased.
In the embodiment of the application, the gyroscope data of the electronic equipment are acquired, the gesture of the current electronic equipment is calculated, and the beauty Yan Canshu (first beauty on time) is dynamically adjusted, so that the purpose of quickly adjusting the beauty parameters to the best effect is achieved. According to the gyroscope angles of the electronic equipment at different times, the moving position of the electronic equipment relative to the face is calculated, when the beauty parameters are adjusted, according to the movement of the real-time electronic equipment in all directions, various parameters (namely first beauty parameters) preset by beauty are dynamically adjusted, so that a user can obtain automatic assistance when adjusting beauty, more convenient adjustment of the beauty parameters is achieved, the purpose of dynamic adjustment is achieved, the defect that the beauty effect is quite different due to the rotation of the head of the user is overcome, the beauty effect is improved, photos are easily taken, and the user experience is improved. The values of various parameters of beauty are changed in real time.
According to the beauty parameter adjustment method provided by the embodiment of the application, the execution main body can be a beauty parameter adjustment device. In this embodiment of the present application, a method for executing a method for adjusting a beauty parameter by using a beauty parameter adjusting device is taken as an example, and the beauty parameter adjusting device provided in the embodiment of the present application is described.
Fig. 11 is a schematic structural view of a beauty parameter adjustment device according to an exemplary embodiment.
As shown in fig. 11, the beauty parameter adjustment device 1100 may be applied to an electronic apparatus, and the beauty parameter adjustment device 1100 may include:
a first obtaining module 1110, configured to obtain, when the electronic device is in a photographing preview mode, first pose information of a target object at a first moment and second pose information of the target object at a second moment; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time;
a first determining module 1120, configured to determine pose change information of the target object based on the first pose information and the second pose information;
the second determining module 1130 is configured to adjust, based on the pose change information, a first beauty parameter corresponding to the first pose information, to obtain a target beauty parameter corresponding to the second pose information.
In the embodiment of the application, when the electronic equipment is in a photographing preview mode, 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 are acquired through the first acquisition module, the pose change information of the target object can be determined based on the first determination module according to the first pose information and the second pose information, the target object can be the face of a photographing person in a photographing preview image or the electronic equipment, so that the first face-beautifying parameter under the first pose information can be adjusted based on the second determination module according to the pose change information, the target face-beautifying parameter corresponding to the second pose information is obtained, so that the face-beautifying parameter can be adjusted according to different pose states, different face-beautifying effects are obtained, the personalized requirements of users are met, and the user experience is improved.
In some embodiments of the present application, to further enhance the user experience, in a case where the target object is a face of a photographed person object in the photographed preview image, the first determining module 1120 may include:
a first determining unit configured to determine a first posture change type and a first change angle of the face based on the first posture information and the second posture information;
the second determination module 1130 may include:
and the second determining unit is used for adjusting the first beauty parameters corresponding to the first pose information based on the first pose change type and the first change angle to obtain the target beauty parameters corresponding to the second pose information.
In some embodiments of the present application, to further enhance the user experience, in a case where the target object is the electronic device, the first determining module 1120 may further include:
a third determining unit configured to determine a second posture change type and a second change angle of the electronic device based on the first posture information and the second posture information;
the second determination module 1130 may further include:
and the fourth determining unit is used for adjusting the first beauty parameters corresponding to the first pose information based on the second pose change type and the second change angle to obtain target beauty parameters corresponding to the second pose information.
In some embodiments of the present application, in order to further enhance the user experience, the third determining unit is specifically configured to:
and determining a second change angle of the electronic equipment in each direction based on the first pose information and the second pose information.
In some embodiments of the present application, to further obtain accurate target beauty parameters, the second determining module 1130 may specifically include:
a fifth determining unit, configured to adjust a first beauty parameter corresponding to the first pose information based on a target pose change type and a target change angle, and a beauty parameter adjustment coefficient, to obtain a target beauty parameter corresponding to the second pose information; wherein the beauty parameter adjustment coefficient is related to at least one of a posture change type and a beauty parameter type.
In some embodiments of the present application, in order to further obtain the accurate target beauty parameter, the fifth determining unit may include:
a first determining subunit, configured to select, based on a target attitude change type, a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from a beauty parameter adjustment coefficient set; the beauty parameter adjustment coefficient group comprises beauty parameter adjustment coefficients corresponding to different gesture change types;
And the second determining subunit is used for adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type, the target change angle and the first target beauty parameter adjustment coefficient to obtain target beauty parameters corresponding to the second pose information.
In some embodiments of the present application, in order to coordinate and match the adjusted beauty parameters of each part, the first determining subunit may specifically be configured to:
dividing the face of a shooting person object in a shooting preview image according to a preset dividing mode to obtain at least one face area; wherein, each face area corresponds to a type of beauty parameter;
selecting a second target face parameter adjustment coefficient set corresponding to a target face region from at least one set of face parameter adjustment coefficient sets based on the target face region;
and selecting a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the second target beauty parameter adjustment coefficient group based on the target attitude change type.
In some embodiments of the present application, to further coordinate and match the beauty parameters of each face region, the first determining subunit may specifically be configured to:
And dividing the face along the horizontal direction and the vertical direction by taking the nose of the face of the shooting person object in the shooting preview image as the center to obtain at least one face area.
The beauty parameter adjusting device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The beauty parameter adjusting device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The beauty parameter adjustment device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1, 5 and 8, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 12, the embodiment of the present application further provides an electronic device 1200, including a processor 1201 and a memory 1202, where the memory 1202 stores a program or an instruction that can be executed on the processor 1201, and the program or the instruction implements each step of the embodiment of the method for adjusting a beauty parameter when executed by the processor 1201, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 13 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1300 includes, but is not limited to: 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.
Those skilled in the art will appreciate that the electronic device 1300 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1310 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 1310 is configured to obtain, when the electronic device is in a photographing preview mode, first pose information of a target object at a first moment and second pose information of the target object at a second moment; determining pose change information of the target object based on the first pose information and the second pose information; and adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.
Thus, the pose change information of the target object can be determined through the acquired first pose information of the target object at the first moment and the acquired second pose information of the target object at the second moment, the target object can be the face or the electronic equipment of the shot person object in the shot preview image, so that the first face beautifying parameter under the first pose information can be adjusted based on the pose change information to obtain the target face beautifying parameter corresponding to the second pose information, and the face beautifying parameters can be adjusted according to different pose states to obtain different face beautifying effects, thereby meeting the individual requirements of users and improving the user experience.
Optionally, the processor 1310 is further configured to determine, if the target object is a face of a captured person object in a captured preview image, 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 adjusting the first beauty parameters corresponding to the first pose information based on the first pose change type and the first change angle to obtain target beauty parameters corresponding to the second pose information.
Therefore, the first gesture change type and the first change angle of the face can be accurately determined through the first gesture information and the second gesture information, then the first beautifying parameters corresponding to the first gesture information are accurately adjusted based on the first gesture change type and the first change angle, and the accurate target beautifying parameters corresponding to the second gesture information are obtained.
Optionally, the processor 1310 is further configured to determine, if the target object is the electronic device, a second gesture change type and a second change angle of the electronic device based on the first pose information and the second pose information; and adjusting the first beauty parameters corresponding to the first pose information based on the second pose change type and the second change angle to obtain target beauty parameters corresponding to the second pose information.
Therefore, the second gesture change type and the second change angle of the electronic equipment can be accurately determined through the first gesture information and the second gesture information, then the first beautifying parameters corresponding to the first gesture information are accurately adjusted based on the second gesture change type and the second change angle, and the accurate target beautifying parameters corresponding to the second gesture information are obtained.
Optionally, the processor 1310 is further configured to determine a second changing angle of the electronic device in each direction based on the first pose information and the second pose information.
Therefore, through the first pose information and the second pose information, the second change angle of the electronic equipment in each direction can be accurately determined, so that the target beautifying parameters under the second pose information can be further determined, the beautifying effect can be different from person to person, the personalized requirements of the user are met, and the user experience is further improved.
Optionally, the processor 1310 is further configured to adjust a first beauty parameter corresponding to the first pose information based on the target pose change type, the target change angle, and the beauty parameter adjustment coefficient, to obtain a target beauty parameter corresponding to the second pose information; wherein the beauty parameter adjustment coefficient is related to at least one of a posture change type and a beauty parameter type.
Therefore, the first beauty parameters corresponding to the first pose information are adjusted based on the target pose change type, the target change angle and the beauty parameter adjustment coefficient, so that the target beauty parameters corresponding to the second pose information are obtained.
Optionally, the processor 1310 is further configured to select, based on a target attitude change type, a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from a group of beauty parameter adjustment coefficients; the beauty parameter adjustment coefficient group comprises beauty parameter adjustment coefficients corresponding to different gesture change types; and adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type, the target change angle and the first target beauty parameter adjustment coefficient to obtain target beauty parameters corresponding to the second pose information.
In this way, through the target attitude change type, a first target beauty parameter adjustment coefficient corresponding to the target attitude change type is selected from the beauty parameter adjustment coefficient group, and then the first beauty parameter corresponding to the first pose information is adjusted based on the target attitude change type, the target change angle and the first target beauty parameter adjustment coefficient, so that the accurate target beauty parameter corresponding to the second pose information can be obtained.
Optionally, the processor 1310 is further configured to divide the face of the photographed person object in the photographed preview image according to a preset division manner, so as to obtain at least one face area; wherein, each face area corresponds to a type of beauty parameter; selecting a second target face parameter adjustment coefficient set corresponding to a target face region from at least one set of face parameter adjustment coefficient sets based on the target face region; and selecting a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the second target beauty parameter adjustment coefficient group based on the target attitude change type.
Therefore, the face of the shot person object in the shot preview image can be divided according to a preset division mode to obtain at least one face area, then a second target face parameter adjustment coefficient set corresponding to the target face area is selected from at least one group of face parameter adjustment coefficient sets based on the target face area, a first target face parameter adjustment coefficient corresponding to the target attitude change type is selected from the second target face parameter adjustment coefficient set based on the target attitude change type, and therefore the first target face parameter adjustment coefficient can be accurately determined, target face parameters corresponding to the face areas under the adjusted second pose information are matched in a coordinated mode, the requirements of users on the face effect are met, and the user experience is improved.
Optionally, the processor 1310 is further configured to divide the face along a horizontal direction and a vertical direction by using a nose of the face of the photographed person object in the photographed preview image as a center, so as to obtain at least one face area.
Therefore, the face is divided along the horizontal direction and the vertical direction by taking the nose of the face of the shot person object in the shot preview image as the center, so that at least one face area can be accurately obtained, and further, when the face beautifying parameters of the face are adjusted, the face beautifying parameters of the face areas can be synchronously coordinated in the different areas, so that the face beautifying parameters of the face areas are coordinated and matched, the requirement of a user on the face beautifying effect is met, and the user experience is improved.
It should be appreciated that in embodiments of the present application, the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042, the graphics processor 13041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1306 may include a display panel 13061, and the display panel 13061 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 at least one of a touch panel 13071 and other input devices 13072. The touch panel 13071 is also referred to as a touch screen. The touch panel 13071 can include two parts, a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1309 may include volatile memory or nonvolatile memory, or the memory 1309 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1309 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The processor 1310 may include one or more processing units; optionally, processor 1310 integrates an application processor that primarily handles operations related to the operating system, user interface, and applications, and a modem processor that primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1310.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the embodiment of the beauty parameter adjustment method, and the same technical effect can be achieved, so that repetition is avoided, and no further description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the embodiment of the beauty parameter adjustment method, and achieving the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the foregoing embodiment of the beauty parameter adjustment method, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method for adjusting a beauty parameter, the method comprising:
acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic equipment is in a photographing preview mode; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time;
determining pose change information of the target object based on the first pose information and the second pose information;
and adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.
2. The method according to claim 1, wherein in the case where the target object is a face of a photographed person object in a photographed preview image, the determining pose change information of the target object based on the first pose information and the second pose information includes:
determining a first posture change type and a first change angle of the face based on the first posture information and the second posture information;
The adjusting the first beauty parameter corresponding to the first pose information based on the pose change information to obtain the target beauty parameter corresponding to the second pose information includes:
and adjusting the first beauty parameters corresponding to the first pose information based on the first pose change type and the first change angle to obtain target beauty parameters corresponding to the second pose information.
3. The method according to claim 1, wherein, in the case where the target object is the electronic device, the determining pose change information of the target object based on the first pose information and the second pose information includes:
determining a second gesture change type and a second change angle of the electronic device based on the first gesture information and the second gesture information;
the adjusting the first beauty parameter corresponding to the first pose information based on the pose change information to obtain the target beauty parameter corresponding to the second pose information includes:
and adjusting the first beauty parameters corresponding to the first pose information based on the second pose change type and the second change angle to obtain target beauty parameters corresponding to the second pose information.
4. The method of claim 3, wherein determining a second angle of change of the electronic device based on the first pose information and the second pose information comprises:
and determining a second change angle of the electronic equipment in each direction based on the first pose information and the second pose information.
5. A method according to claim 2 or 3, wherein adjusting the first beauty parameter corresponding to the first pose information based on the target pose change type and the target change angle to obtain the target beauty parameter corresponding to the second pose information comprises:
based on the target attitude change type, the target change angle and the beauty parameter adjustment coefficient, adjusting the first beauty parameter corresponding to the first pose information to obtain the target beauty parameter corresponding to the second pose information;
wherein the beauty parameter adjustment coefficient is related to at least one of a posture change type and a beauty parameter type.
6. The method of claim 5, wherein adjusting the first beauty parameter corresponding to the first pose information based on the target pose change type and the target change angle, and the beauty parameter adjustment coefficient, to obtain the target beauty parameter corresponding to the second pose information, comprises:
Selecting a first target beauty parameter adjustment coefficient corresponding to a target attitude change type from a beauty parameter adjustment coefficient group based on the target attitude change type; the beauty parameter adjustment coefficient groups comprise beauty parameter adjustment coefficients corresponding to different gesture change types;
and adjusting the first beauty parameters corresponding to the first pose information based on the target pose change type, the target change angle and the first target beauty parameter adjustment coefficient to obtain target beauty parameters corresponding to the second pose information.
7. The method of claim 6, wherein selecting a first target cosmetic parameter adjustment coefficient corresponding to the target gesture change type from a set of cosmetic parameter adjustment coefficients based on the target gesture change type comprises:
dividing the face of a shooting person object in a shooting preview image according to a preset dividing mode to obtain at least one face area; wherein, each face area corresponds to a type of beauty parameter;
selecting a second target face parameter adjustment coefficient set corresponding to a target face region from at least one set of face parameter adjustment coefficient sets based on the target face region;
And selecting a first target beauty parameter adjustment coefficient corresponding to the target attitude change type from the second target beauty parameter adjustment coefficient group based on the target attitude change type.
8. The method of claim 7, wherein the dividing the face of the photographed person object in the photographed preview image according to the preset division manner to obtain at least one face area includes:
and dividing the face along the horizontal direction and the vertical direction by taking the nose of the face of the shooting person object in the shooting preview image as the center to obtain at least one face area.
9. A beauty parameter adjustment device, the device comprising:
the electronic equipment comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring first pose information of a target object at a first moment and second pose information of the target object at a second moment when the electronic equipment is in a shooting preview mode; the target object is a face of a shooting person object in a shooting preview image or the electronic equipment; the first time is earlier than the second time;
the first determining module is used for determining pose change information of the target object based on the first pose information and the second pose information;
And the second determining module is used for adjusting the first beauty parameters corresponding to the first pose information based on the pose change information to obtain the target beauty parameters corresponding to the second pose information.
10. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the beauty parameter adjustment method according to any one of claims 1 to 8.
CN202211090724.0A 2022-09-07 2022-09-07 Beauty parameter adjustment method and device and electronic equipment Pending CN116320726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211090724.0A CN116320726A (en) 2022-09-07 2022-09-07 Beauty parameter adjustment method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211090724.0A CN116320726A (en) 2022-09-07 2022-09-07 Beauty parameter adjustment method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116320726A true CN116320726A (en) 2023-06-23

Family

ID=86796466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211090724.0A Pending CN116320726A (en) 2022-09-07 2022-09-07 Beauty parameter adjustment method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116320726A (en)

Similar Documents

Publication Publication Date Title
US11367307B2 (en) Method for processing images and electronic device
US11436779B2 (en) Image processing method, electronic device, and storage medium
US11703949B2 (en) Directional assistance for centering a face in a camera field of view
CN104317391B (en) A kind of three-dimensional palm gesture recognition exchange method and system based on stereoscopic vision
USRE42205E1 (en) Method and system for real-time facial image enhancement
EP3608755A1 (en) Electronic apparatus operated by head movement and operation method thereof
CN108712603B (en) Image processing method and mobile terminal
EP3845282A1 (en) Interaction method of application scenario, and mobile terminal and storage medium
WO2015167908A1 (en) Stabilization plane determination based on gaze location
CN108090463B (en) Object control method, device, storage medium and computer equipment
CN107392933B (en) Image segmentation method and mobile terminal
CN104484858B (en) Character image processing method and processing device
US11308692B2 (en) Method and device for processing image, and storage medium
CN107330868A (en) image processing method and device
CN110263617B (en) Three-dimensional face model obtaining method and device
Sun et al. Real-time gaze estimation with online calibration
KR102392437B1 (en) Reflection-based control activation
US20210118148A1 (en) Method and electronic device for changing faces of facial image
CN110166680A (en) Equipment imaging method, device, storage medium and electronic equipment
CN112541400A (en) Behavior recognition method and device based on sight estimation, electronic equipment and storage medium
US11138743B2 (en) Method and apparatus for a synchronous motion of a human body model
US10444831B2 (en) User-input apparatus, method and program for user-input
WO2024055957A1 (en) Photographing parameter adjustment method and apparatus, electronic device and readable storage medium
US9536133B2 (en) Display apparatus and control method for adjusting the eyes of a photographed user
CN115702443A (en) Applying stored digital makeup enhancements to recognized faces in digital images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination