Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Many cameras, pictures, video editing products all provide the ability of beautifying at present, and the user can make deformation adjustment to the body part, for example can adjust: eye size, nose width and height, mouth size, etc.
The following table is a common adjustment item when adjusting face deformation:
item
|
Related adjustment item
|
Face shape
|
Long face, wide face, cheekbones, jaw bones, forehead, chin and hairline
|
Eye(s)
|
Size, distance, canthus, eyeball (eyeball color, bright eye), and black eye
|
Eyebrow
|
Length, thickness, position
|
Nose
|
Nasal breadth, nasal length, nasal wings, nasal tip, and ordinance line
|
Mouth bar
|
Lip width, lip thickness, lip color, mouth shape, and teeth |
The adjustment mode is as follows: selecting a certain adjustment item, as shown in fig. 1, and then adjusting the value of the item, such as the size of the eye, in the form of a "slide rod" or the like.
When the user automatically adjusts the parameters of the five sense organs, the adjustment of each part is independent, and other factors are not concerned. For example, when the eye size is adjusted, only the eye size is adjusted, and the influence of ears and nose is not concerned. But in fact the whole face of a person is a whole body, including the size and relative position of the various organs, all interacting. Taking an eye-small human example: when the eye parameters are adjusted to beautify the face, the eyes are adjusted to be the maximum or the beauty, and the change of the positions (up-down and left-right directions) of the face after the eyes are enlarged, the change of the pupil distance, the distance between the eyes and the forehead, the distance between the pupil distance and the nose and the overall proportion of the eyes on the face need to be considered. When these are within a reasonable range, the user adjusted effect is "beautiful" or otherwise negative adjustments may result.
After all, most users are not professionals, and it is relatively difficult to keep the balance of the items reasonable when adjusting the parameters of each item, so once the adjustment of one or more items by the user deteriorates the beauty effect, it is very helpful to be able to give some prompt to the user, even to make some associated adjustment to the parameters which are associated with each other.
The present disclosure provides a beauty parameter adjustment method, a device, an electronic device, and a computer-readable medium, which are intended to solve the above technical problems in the prior art.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The embodiment of the present disclosure provides a method for adjusting beauty parameters, as shown in fig. 2, the method includes:
step S201, receiving local features of the face image to be beautified selected by the user, and determining at least one feature parameter associated with the local features.
The local features include partial facial features of the human face, such as the five sense organs features of the eyes, nose, mouth, and the like, and may also include features of the facial form, and the like.
The characteristic parameters include data of length, width, proportion and the like of each part on the face, such as face length, forehead width, chin width and the like.
In the implementation process, in a face image, at least one feature parameter changes along with the change of a local feature, and the feature parameters are feature parameters associated with the local feature.
Specifically, the camera device can shoot a face image and send the face image to a terminal or a server for adjusting beauty parameters; or the terminal for adjusting the beauty parameters has the function of camera shooting, and can acquire the face image to be beautified.
Step S202, a first recommended parameter range of the local feature is determined based on at least one feature parameter.
In a specific implementation process, the first recommended parameter range of the local feature may be determined according to the most suitable range corresponding to each feature parameter in the at least one feature parameter.
In step S203, the parameter adjustment value selected by the user is received.
The parameter adjustment value may be a parameter value directly set by the user, or may be a value adjusted by the user on the basis of a default value of the parameter.
In a specific implementation process, the parameter adjustment value may be selected in various ways, for example, the parameter adjustment value may be adjusted by moving on a touch screen, or may be directly input.
And step S204, if the parameter adjustment value exceeds the first recommended parameter range, sending an out-of-range prompt to remind a user to reselect the parameter adjustment value.
Specifically, if the parameter adjustment value is within the first recommended parameter range, the parameter adjustment value is reasonable, and the parameter adjustment value set by the user can be applied; if the parameter adjustment value exceeds the first recommended parameter range, prompting the user to reselect the parameter adjustment value; if the user continues to select the parameter adjustment value, the parameter adjustment value set by the user may be applied.
In the embodiment, the feature parameters associated with the local features selected by the user are determined, the first recommended parameter range of the local features is determined according to the application range of the associated feature parameters, if the parameter adjustment value selected by the user exceeds the first recommended range parameter, an out-of-range prompt is sent to remind the user to reselect the parameter adjustment value, and a proper first recommended range parameter can be determined by combining the features of the face, so that the beautified picture meets the requirements of the user.
The manner of determining the associated feature parameters may be to establish a feature database in advance, directly query the feature parameters corresponding to the local features from the database, or directly analyze the face image of the user to obtain the associated feature parameters, and the following will describe in detail different manners of determining the feature parameters with reference to the embodiments.
In one implementation, the determining at least one feature parameter associated with the local feature in step S201 may include:
at least one characteristic parameter corresponding to the local characteristic is inquired in a preset characteristic database; the feature database stores a plurality of local features and at least one feature parameter corresponding to each local feature.
In a specific implementation process, a sample face image can be obtained in advance, a plurality of sample local features are extracted from the sample face image, a plurality of sample feature parameters are extracted, a sample feature parameter associated with each sample local feature is determined, and a feature database is constructed according to the plurality of sample local features and the feature parameter corresponding to each local feature.
As shown in the following table, the local feature may include a plurality of small items in the following table, and the corresponding associated items are feature parameters corresponding to the small items.
In another implementation, the determining at least one feature parameter associated with the local feature in step S201 may include:
(1) acquiring a plurality of characteristic parameters of a face image;
(2) adjusting the local characteristics to obtain at least one characteristic parameter which changes when adjusted;
(3) the corresponding varied feature parameters are taken as feature parameters associated with the local features.
In the specific implementation process, a plurality of characteristic parameters of the face image can be detected, the face image is analyzed, the local characteristic selected by the user is adjusted, which characteristic parameters in the plurality of characteristic parameters are changed along with the adjustment of the local characteristic is detected, and the characteristic parameters changed along with the local characteristic are used as the characteristic parameters associated with the local characteristic.
A possible implementation manner is provided in the embodiment of the present disclosure, the determining the first recommended parameter range of the local feature based on at least one feature parameter in step S102 may include:
(1) acquiring a second recommended parameter range of each characteristic parameter;
(2) determining a first recommended parameter range of the local feature based on the second recommended parameter range of each feature parameter; if the local features conform to the first recommended parameter range, each associated feature parameter is located in the corresponding second recommended parameter range.
In a specific implementation process, a second recommended parameter range of each feature parameter may be preset, for example, a second recommended parameter range with a face width may be set, and when the face width is within the second recommended parameter range, the face shape generally better meets the requirements of the user.
Specifically, each feature parameter may be adjusted within the corresponding second recommended parameter range to obtain a first recommended parameter range of the local feature, so that when the local feature conforms to the first recommended parameter range, the associated feature parameters are all located in the corresponding second recommended parameter range.
A possible implementation manner is provided in the embodiment of the present disclosure, before receiving the parameter adjustment value selected by the user in step S203, the method may further include:
(1) determining the optimal recommended parameter of the local feature based on the second recommended parameter range of each feature parameter;
(2) and taking the best recommended parameter as a default parameter value of the local feature.
In a specific implementation process, each feature parameter may set an optimal parameter within a second recommended parameter range, so that when each feature parameter is closest to the corresponding optimal parameter, the optimal recommended parameter of the local feature is calculated.
Specifically, when the parameter adjustment values corresponding to different local features are calculated, the sum of errors between each feature parameter and the corresponding optimal parameter may be calculated, and when the sum of errors is minimum, the corresponding parameter adjustment value is the optimal recommended parameter.
As shown in fig. 3, when a local feature of a face image selected by a user is received, determining at least one feature parameter associated with the local feature; a first recommended parameter range of the local feature is determined based on the at least one feature parameter and the first recommended parameter range 301 is displayed, the first recommended parameter range 301 may be displayed in a sliding manner, and a default value 302, i.e., an optimal recommended parameter, is displayed in the first recommended parameter range 301.
In other embodiments, the first recommended parameter range may also be displayed in other manners, and is not limited in particular here.
A possible implementation manner is provided in the embodiment of the present disclosure, before receiving the parameter adjustment value selected by the user in step S203, the method may further include:
and sending a prompt of the first recommended parameter range and the optimal recommended parameter of the local characteristic.
Specifically, the first recommended parameter range and the prompt of the optimal recommended parameter of the local feature may be sent before the user selects the parameter adjustment value of the local feature, so that the user may better select the parameter adjustment value according to the recommended parameter range and the prompt of the optimal recommended parameter of the local feature.
As shown in fig. 4, after sending the out-of-range prompt to remind the user to reselect the parameter adjustment value in step S204, the possible implementation manner provided in the embodiment of the present disclosure may further include:
step S205, receiving the parameter adjustment value selected by the user again;
and S206, if the parameter adjusting value exceeds the first recommended parameter range, adjusting the local characteristics based on the parameter adjusting value selected by the user.
In a specific implementation process, if the user ignores the first recommended parameter range prompted and still insists on selecting a parameter adjustment value exceeding the first recommended parameter range, the local feature is adjusted based on the parameter adjustment value selected by the user.
As shown in fig. 5, in an example, the beauty parameter adjustment method provided by the present application may include the following steps:
1) the user clicks and selects a certain local feature, namely a small beautifying item (a certain face part) in the figure 5;
2) judging according to all the associated characteristic parameters of the local characteristic, namely judging according to the associated items shown in fig. 5, determining how large the suggested adjustment range (i.e. the first recommended parameter range) of the current small item is and how large the optimal value (i.e. the optimal recommended parameter) is, selecting the optimal value as a default value, and giving a prompt of adjusting the range (for example, giving a special identifier on a slide bar, an option and the like set by a user);
3) when a user adjusts the value (namely a parameter adjustment value) of the current small item (namely local feature), dynamically judging whether the values of other small items are in the optimal range (namely a first recommended parameter range), namely in a suggestion range;
4) if the dynamically adjusted value of the associated small item exceeds the suggestion range, prompting a user and giving an adjustment suggestion; if the user ignores, the user can choose to continue the adjustment;
5) and if the values of all the association items are adjusted, the value ranges of all the association items normally take effect in the new parameter values.
According to the beauty parameter adjusting method, the feature parameters associated with the local features selected by the user are determined firstly, the first recommended parameter range of the local features is determined according to the application range of the associated feature parameters, if the parameter adjusting value selected by the user exceeds the first recommended range parameter, an out-of-range prompt is sent to remind the user to reselect the parameter adjusting value, and the appropriate first recommended range parameter can be determined by combining all the features of the face, so that the beautified picture meets the requirements of the user.
Further, before the user selects the parameter adjustment value of the local feature, the first recommended parameter range and the prompt of the optimal recommended parameter of the local feature may be sent, so that the user may better select the parameter adjustment value according to the recommended parameter range and the prompt of the optimal recommended parameter of the local feature.
In order to facilitate a clearer understanding of the beauty parameter adjustment method according to the embodiment of the present application, the beauty parameter adjustment method provided in the present application will be further described in detail with reference to specific examples.
The embodiment of the present disclosure provides a beauty parameter adjusting apparatus, as shown in fig. 6, the beauty parameter adjusting apparatus 60 may include: a first receiving module 601, a determining module 602, a second receiving module 603, and a prompting module 604, wherein,
a first receiving module 601, configured to receive a local feature of a face image to be beautified selected by a user, and determine at least one feature parameter associated with the local feature;
a determining module 602, configured to determine a first recommended parameter range of the local feature based on the at least one feature parameter;
a second receiving module 603, configured to receive a parameter adjustment value selected by a user;
the prompt module 604 is configured to send an out-of-range prompt to prompt a user to reselect the parameter adjustment value if the parameter adjustment value exceeds the first recommended parameter range.
A possible implementation manner is provided in the embodiments of the present disclosure, when determining at least one feature parameter associated with a local feature, the first receiving module 601 is specifically configured to:
at least one characteristic parameter corresponding to the local characteristic is inquired in a preset characteristic database; the feature database stores a plurality of local features and at least one feature parameter corresponding to each local feature.
A possible implementation manner is provided in the embodiments of the present disclosure, when determining at least one feature parameter associated with a local feature, the first receiving module 601 is specifically configured to:
acquiring a plurality of characteristic parameters of a face image;
adjusting the local characteristics to obtain at least one characteristic parameter which changes when adjusted;
the corresponding varied feature parameters are taken as feature parameters associated with the local features.
In a possible implementation manner provided in the embodiment of the present disclosure, when determining the first recommended parameter range of the local feature based on at least one feature parameter, the determining module 602 is specifically configured to:
acquiring a second recommended parameter range of each characteristic parameter;
determining a first recommended parameter range of the local feature based on the second recommended parameter range of each feature parameter; if the local features conform to the first recommended parameter range, each associated feature parameter is located in the corresponding second recommended parameter range.
A possible implementation manner is provided in the embodiment of the present disclosure, the beauty parameter adjusting apparatus 60 may further include a default value determining module, configured to:
determining the optimal recommended parameter of the local feature based on the second recommended parameter range of each feature parameter;
and taking the best recommended parameter as a default parameter value of the local feature.
In the embodiment of the present disclosure, a possible implementation manner is provided, and the beauty parameter adjusting apparatus 60 may further include a prompting module, where the prompting module is configured to:
and sending a prompt of the first recommended parameter range and the optimal recommended parameter of the local characteristic.
In one possible implementation manner provided in the embodiment of the present disclosure, the beauty parameter adjusting apparatus 60 may further include an adjusting module, where the adjusting module is configured to:
receiving the parameter adjustment value selected by the user again;
and if the parameter adjustment value exceeds the first recommended parameter range, adjusting the local characteristics based on the parameter adjustment value selected by the user.
According to the beauty parameter adjusting device, the feature parameters associated with the local features selected by the user are determined firstly, the first recommended parameter range of the local features is determined according to the application range of the associated feature parameters, if the parameter adjusting value selected by the user exceeds the first recommended range parameter, an out-of-range prompt is sent to remind the user to reselect the parameter adjusting value, and the proper first recommended range parameter can be determined by combining all the features of the face, so that the beautified picture meets the requirements of the user.
Further, before the user selects the parameter adjustment value of the local feature, the first recommended parameter range and the prompt of the optimal recommended parameter of the local feature may be sent, so that the user may better select the parameter adjustment value according to the recommended parameter range and the prompt of the optimal recommended parameter of the local feature.
The device for adjusting beauty parameters of pictures according to the embodiments of the present disclosure can execute the method for adjusting beauty parameters of pictures according to the embodiments of the present disclosure, and the implementation principles thereof are similar, the actions performed by the modules in the device for adjusting beauty parameters of pictures according to the embodiments of the present disclosure correspond to the steps in the method for adjusting beauty parameters of pictures according to the embodiments of the present disclosure, and for the detailed functional description of the modules of the device for adjusting beauty parameters of pictures, reference may be made to the description in the corresponding method for adjusting beauty parameters of pictures shown in the foregoing, and no further description is given here.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as a processing device 701 described below, and the memory may include at least one of a Read Only Memory (ROM)702, a Random Access Memory (RAM)703 and a storage device 708, which are described below:
as shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
receiving local features of a face image to be beautified selected by a user, and determining at least one feature parameter associated with the local features;
determining a first recommended parameter range of the local feature based on the at least one feature parameter;
receiving a parameter adjustment value selected by a user;
and if the parameter adjustment value exceeds the first recommended parameter range, sending out an out-of-range prompt to remind a user to reselect the parameter adjustment value.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or unit does not in some cases constitute a limitation on the unit itself, for example, the prompting module may also be described as a "module that prompts the user to re-select parameter adjustment values".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a beauty parameter adjustment method including:
receiving local features of a face image to be beautified selected by a user, and determining at least one feature parameter associated with the local features;
determining a first recommended parameter range of the local feature based on the at least one feature parameter;
receiving a parameter adjustment value selected by a user;
and if the parameter adjustment value exceeds the first recommended parameter range, sending out an out-of-range prompt to remind the user to reselect the parameter adjustment value.
According to one or more embodiments of the present disclosure, determining at least one feature parameter associated with a local feature comprises:
at least one characteristic parameter corresponding to the local characteristic is inquired in a preset characteristic database; the feature database stores a plurality of local features and at least one feature parameter corresponding to each local feature.
According to one or more embodiments of the present disclosure, determining at least one feature parameter associated with a local feature comprises:
acquiring a plurality of characteristic parameters of a face image;
adjusting the local characteristics to obtain at least one characteristic parameter which changes when adjusted;
the corresponding varied feature parameters are taken as feature parameters associated with the local features.
According to one or more embodiments of the present disclosure, determining a first recommended parameter range of a local feature based on at least one feature parameter includes:
acquiring a second recommended parameter range of each characteristic parameter;
determining a first recommended parameter range of the local feature based on the second recommended parameter range of each feature parameter; if the local features conform to the first recommended parameter range, each associated feature parameter is located in the corresponding second recommended parameter range.
According to one or more embodiments of the present disclosure, before receiving the parameter adjustment value selected by the user, the method further includes:
determining the optimal recommended parameter of the local feature based on the second recommended parameter range of each feature parameter;
and taking the best recommended parameter as a default parameter value of the local feature.
According to one or more embodiments of the present disclosure, before receiving the parameter adjustment value selected by the user, the method further includes:
and sending a prompt of the first recommended parameter range and the optimal recommended parameter of the local characteristic.
According to one or more embodiments of the present disclosure, after sending the out-of-range prompt to remind the user to reselect the parameter adjustment value, the method further includes:
receiving the parameter adjustment value selected by the user again;
and if the parameter adjustment value exceeds the first recommended parameter range, adjusting the local characteristics based on the parameter adjustment value selected by the user.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.