CN111369461A - Beauty parameter adjusting method and device and electronic equipment - Google Patents

Beauty parameter adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN111369461A
CN111369461A CN202010139745.1A CN202010139745A CN111369461A CN 111369461 A CN111369461 A CN 111369461A CN 202010139745 A CN202010139745 A CN 202010139745A CN 111369461 A CN111369461 A CN 111369461A
Authority
CN
China
Prior art keywords
parameter
feature
range
user
recommended
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
CN202010139745.1A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010139745.1A priority Critical patent/CN111369461A/en
Publication of CN111369461A publication Critical patent/CN111369461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Abstract

The application provides a beauty parameter adjusting method, a device and electronic equipment, and relates to the technical field of image processing. The method comprises the following steps: 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. The beautifying parameter adjusting method provided by the application can determine a proper first recommendation range parameter by combining all the characteristics of the face, so that the beautified picture meets the requirements of a user.

Description

Beauty parameter adjusting method and device and electronic equipment
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and an apparatus for adjusting beauty parameters, and an electronic device.
Background
With the rapid development of mobile internet technology, mobile terminals such as mobile phones and tablet computers have become increasingly popular, and people record the intravenous drip of life by self-shooting through the mobile terminals has become a fashion. In order to take a satisfactory photograph, software with a function of modifying the photograph is generally required to adjust parameters of local features of the face, such as parameters of eyes, mouth, and the like.
Generally, when the parameters of the five sense organs are automatically adjusted by a user, the adjustment of each part is independent from other parts, 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. However, in fact, the whole face of a person is a whole, including the sizes and relative positions of various organs are mutually influenced, and the influence among various features of the face is easily ignored by the existing beautifying parameter adjusting method, so that the beautified picture cannot meet the requirements of users.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, a beauty parameter adjusting method is provided, and the method includes:
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.
In a second aspect, there is provided a beauty parameter adjusting apparatus, comprising:
the first receiving module is used for 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;
the determining module is used for determining a first recommended parameter range of the local feature based on at least one feature parameter;
the second receiving module is used for receiving the parameter adjustment value selected by the user;
and the prompting module is used for sending out an out-of-range prompt to remind a user to reselect the parameter adjustment value if the parameter adjustment value exceeds the first recommended parameter range.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the beauty parameter adjustment method shown in the first aspect of the present disclosure is implemented.
In a fourth aspect, a computer-readable medium is provided, on which a computer program is stored, wherein the program is executed by a processor to implement the beauty parameter adjustment method shown in the first aspect of the present disclosure.
The technical scheme provided by the disclosure has the following beneficial effects:
in the scheme of the embodiment of the disclosure, the feature parameters associated with the local features selected by the user are determined firstly, then 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 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.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of an interface for adjusting beauty parameters in the prior art;
fig. 2 is a schematic flow chart illustrating a method for adjusting beauty parameters according to an embodiment of the disclosure;
fig. 3 is a schematic view of an interface for adjusting beauty parameters according to an embodiment of the disclosure;
fig. 4 is a schematic flow chart illustrating a method for adjusting beauty parameters according to an embodiment of the disclosure;
fig. 5 is a flowchart illustrating a beauty parameter adjustment method according to an example of the disclosure;
fig. 6 is a schematic structural diagram of a beauty parameter adjusting device according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an electronic device for adjusting beauty parameters according to an embodiment of the disclosure.
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.
Figure BDA0002398657100000071
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.

Claims (10)

1. A beauty parameter adjusting method is characterized by comprising the following steps:
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.
2. The beauty parameter adjustment method of claim 1, wherein said determining at least one feature parameter associated with said local feature comprises:
querying at least one characteristic parameter corresponding to the local characteristic 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.
3. The beauty parameter adjustment method of claim 1, wherein said determining at least one feature parameter associated with said local feature comprises:
acquiring a plurality of characteristic parameters of the face image;
adjusting the local features to obtain at least one feature parameter which changes correspondingly when adjusted;
and using the corresponding changed characteristic parameters as the characteristic parameters associated with the local characteristics.
4. The beauty parameter adjustment method of claim 1, wherein said determining a first recommended parameter range for the local feature based on the at least one feature parameter comprises:
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; and if the local features conform to the first recommended parameter range, each associated feature parameter is located in the corresponding second recommended parameter range.
5. The beauty parameter adjustment method of claim 1, wherein before receiving the user-selected parameter adjustment value, further comprising:
determining the optimal recommended parameter of the local feature based on the second recommended parameter range of each feature parameter;
and taking the optimal recommended parameter as a default parameter value of the local feature.
6. The beauty parameter adjustment method of claim 1, wherein before receiving the user-selected parameter adjustment value, further comprising:
and sending a prompt of the first recommended parameter range and the optimal recommended parameter of the local feature.
7. The beauty parameter adjustment method of claim 1, wherein after sending the out-of-range prompt to remind the user to reselect the parameter adjustment value, further comprising:
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 features based on the parameter adjustment value selected by the user.
8. A beauty parameter adjustment apparatus, comprising:
the face beautifying device comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for 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;
a determination module for determining a first recommended parameter range of the local feature based on the at least one feature parameter;
the second receiving module is used for receiving the parameter adjustment value selected by the user;
and the prompting module is used for sending out an out-of-range prompt to remind a user to reselect the parameter adjustment value if the parameter adjustment value exceeds the first recommended parameter range.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the beauty parameter adjustment method according to any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the beauty parameter adjustment method of any one of claims 1-7.
CN202010139745.1A 2020-03-03 2020-03-03 Beauty parameter adjusting method and device and electronic equipment Pending CN111369461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010139745.1A CN111369461A (en) 2020-03-03 2020-03-03 Beauty parameter adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010139745.1A CN111369461A (en) 2020-03-03 2020-03-03 Beauty parameter adjusting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111369461A true CN111369461A (en) 2020-07-03

Family

ID=71211630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010139745.1A Pending CN111369461A (en) 2020-03-03 2020-03-03 Beauty parameter adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111369461A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714251A (en) * 2020-12-24 2021-04-27 联想(北京)有限公司 Shooting method and shooting terminal
CN113190149A (en) * 2021-03-31 2021-07-30 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113190148A (en) * 2021-03-29 2021-07-30 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment, storage medium and program product
CN113268199A (en) * 2021-06-09 2021-08-17 海信视像科技股份有限公司 Display device and function item setting method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130243338A1 (en) * 2011-09-09 2013-09-19 Francis R. Palmer Ii Md Inc. Systems and Methods for Using Curvatures to Analyze Facial and Body Features
CN104217397A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Image processing method
US20170286751A1 (en) * 2015-12-28 2017-10-05 Andrew John-Haidukewych Hayduke System and method for analyzing features of a human face using one or more overlay facial grids
CN107845076A (en) * 2017-10-31 2018-03-27 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and computer equipment
CN107886484A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 U.S. face method, apparatus, computer-readable recording medium and electronic equipment
CN108876751A (en) * 2018-07-05 2018-11-23 Oppo广东移动通信有限公司 Image processing method, device, storage medium and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130243338A1 (en) * 2011-09-09 2013-09-19 Francis R. Palmer Ii Md Inc. Systems and Methods for Using Curvatures to Analyze Facial and Body Features
CN104217397A (en) * 2014-08-21 2014-12-17 深圳市金立通信设备有限公司 Image processing method
US20170286751A1 (en) * 2015-12-28 2017-10-05 Andrew John-Haidukewych Hayduke System and method for analyzing features of a human face using one or more overlay facial grids
CN107845076A (en) * 2017-10-31 2018-03-27 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and computer equipment
CN107886484A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 U.S. face method, apparatus, computer-readable recording medium and electronic equipment
CN108876751A (en) * 2018-07-05 2018-11-23 Oppo广东移动通信有限公司 Image processing method, device, storage medium and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714251A (en) * 2020-12-24 2021-04-27 联想(北京)有限公司 Shooting method and shooting terminal
CN113190148A (en) * 2021-03-29 2021-07-30 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment, storage medium and program product
CN113190149A (en) * 2021-03-31 2021-07-30 北京达佳互联信息技术有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113268199A (en) * 2021-06-09 2021-08-17 海信视像科技股份有限公司 Display device and function item setting method

Similar Documents

Publication Publication Date Title
CN111369461A (en) Beauty parameter adjusting method and device and electronic equipment
WO2016011747A1 (en) Skin color adjustment method and device
US9000927B2 (en) System and method for monitoring biometric data
US11734804B2 (en) Face image processing method and apparatus, electronic device, and storage medium
CN111275650B (en) Beauty treatment method and device
WO2021190625A1 (en) Image capture method and device
CN110570383B (en) Image processing method and device, electronic equipment and storage medium
CN111968029A (en) Expression transformation method and device, electronic equipment and computer readable medium
WO2021088790A1 (en) Display style adjustment method and apparatus for target device
CN111833242A (en) Face transformation method and device, electronic equipment and computer readable medium
CN110032978A (en) Method and apparatus for handling video
CN115311178A (en) Image splicing method, device, equipment and medium
KR20180109217A (en) Method for enhancing face image and electronic device for the same
CN111464698A (en) Method, device, terminal and storage medium for controlling electronic equipment
CN111754613A (en) Image decoration method and device, computer readable medium and electronic equipment
CN113766708B (en) Lighting device brightness adjusting method and device, electronic equipment and storage medium
KR102273059B1 (en) Method, apparatus and electronic device for enhancing face image
CN110619602B (en) Image generation method and device, electronic equipment and storage medium
CN110363132B (en) Living body detection method, living body detection device, electronic apparatus, and storage medium
CN111598813A (en) Face image processing method and device, electronic equipment and computer readable medium
CN109949213B (en) Method and apparatus for generating image
CN111583102A (en) Face image processing method and device, electronic equipment and computer storage medium
CN111930228A (en) Method, device, equipment and storage medium for detecting user gesture
CN111784726A (en) Image matting method and device
CN111583139B (en) Blush adjustment method, blush adjustment device, electronic equipment and computer readable medium

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

CB02 Change of applicant information