CN107592457B - Beautifying method and mobile terminal - Google Patents

Beautifying method and mobile terminal Download PDF

Info

Publication number
CN107592457B
CN107592457B CN201710831063.5A CN201710831063A CN107592457B CN 107592457 B CN107592457 B CN 107592457B CN 201710831063 A CN201710831063 A CN 201710831063A CN 107592457 B CN107592457 B CN 107592457B
Authority
CN
China
Prior art keywords
target
parameter value
photographing mode
beauty
beauty parameter
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.)
Active
Application number
CN201710831063.5A
Other languages
Chinese (zh)
Other versions
CN107592457A (en
Inventor
陶万林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710831063.5A priority Critical patent/CN107592457B/en
Publication of CN107592457A publication Critical patent/CN107592457A/en
Application granted granted Critical
Publication of CN107592457B publication Critical patent/CN107592457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a beautifying method and a mobile terminal, wherein the method comprises the following steps: acquiring a preview image; determining a target photographing mode; determining a target beauty parameter value according to the target photographing mode; and performing beauty treatment on the preview image according to the target beauty parameter value. Therefore, the target beautifying parameter value can be determined according to the target photographing mode, and the preview image is beautified according to the target beautifying parameter value, so that the beautifying effect is richer, and the user experience is improved.

Description

Beautifying method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a beautifying method and a mobile terminal.
Background
With the development and progress of science and technology, mobile terminals are more and more popular, and the functions of the mobile terminals are more and more diversified. For example, an audio function, a photographing function, a storage function, and the like have become essential functions of the mobile terminal.
For the photographing function, the user can use the beauty function when taking a photograph. The existing beautifying function has less adjustable beautifying parameters, and most of the beautifying parameters are fixed and cannot be adjusted, so that the beautifying effects in different scenes are not greatly different and are monotonous. Therefore, in the prior art, the beautifying mode and the beautifying effect are single.
Disclosure of Invention
The embodiment of the invention provides a beautifying method and a mobile terminal, and aims to solve the problem that in the prior art, a beautifying mode and a beautifying effect are single.
In a first aspect, an embodiment of the present invention provides a method for beautifying a face, which is applied to a mobile terminal, and includes:
acquiring a preview image;
determining a target photographing mode;
determining a target beauty parameter value according to the target photographing mode;
and performing beauty treatment on the preview image according to the target beauty parameter value.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring a preview image;
the first determining module is used for determining a target photographing mode;
the second determining module is used for determining a target beautifying parameter value according to the target photographing mode;
and the processing module is used for performing beauty treatment on the preview image according to the target beauty parameter value.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a beauty program stored on the memory and capable of running on the processor, where the beauty program implements the steps of the beauty method when executed by the processor.
Thus, in the embodiment of the invention, the preview image is acquired; determining a target photographing mode; determining a target beauty parameter value according to the target photographing mode; and performing beauty treatment on the preview image according to the target beauty parameter value. Therefore, the target beautifying parameter value can be determined according to the target photographing mode, and the preview image is beautified according to the target beautifying parameter value, so that the beautifying effect is richer, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a beautifying method according to an embodiment of the present invention;
fig. 2 is a flow chart of another beautifying method provided by the embodiment of the invention;
fig. 3 is a flow chart of another beautifying method provided by the embodiment of the invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 8 is a block diagram of another mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for beautifying a face according to an embodiment of the present invention, and is applied to a mobile terminal. As shown in fig. 1, the method comprises the following steps:
step 101, obtaining a preview image.
In step 101, the mobile terminal may store beauty parameter values corresponding to different photographing modes in advance. The target photographing mode may be a "happy mode", an "angry mode", and a "sad mode", and the like. Each photographing mode corresponds to a group of beauty parameters, and the beauty parameter values of the same beauty parameter corresponding to different photographing modes can be different. Beauty parameters may include "brightness", "contrast", "color saturation", "buffing level", "face thinning level", "bright eyes", and "lip beauty", etc.
The user can check the shooting effect graphs in different shooting modes, and further can select whether to modify the beauty parameter value. For example, the user may view the picture of the shooting effect in the "happy mode", and if the user is not satisfied with the shooting effect, the user may manually modify the beauty parameter value corresponding to the "happy mode". For example, turn up the "brightness" level or turn up the "buffing level" and so on. After modifying the beauty parameter value corresponding to the happy mode, the mobile terminal may store the modified beauty parameter value corresponding to the happy mode. If the user is satisfied with the shooting effect, the mobile terminal still stores the default beauty parameter value without modifying the beauty parameter value.
The mobile terminal may first acquire a preview image, wherein the preview image may include a face image.
And step 102, determining a target photographing mode.
In step 102, the mobile terminal may determine a target photographing mode. The mode of determining the target photographing mode may be two, one mode is to display at least one photographing mode to be selected, and the user may select a photographing mode that conforms to his or her mood from the photographing modes to be selected. Or the mobile terminal can acquire the feature information of the facial image in the preview image, recognize the expression of the user according to the feature information of the facial image, judge the mood of the user according to the recognized expression, and finally determine the photographing mode according with the mood of the user.
For example, a plurality of crying face pictures can be obtained, the same characteristic information in the plurality of crying face pictures can be extracted, and the extracted same characteristic information can be used as preset characteristic information. The preset characteristic information may include preset mouth opening amplitude information, preset tooth leakage degree information, preset canthus fishtail information, and the like.
The feature information of the face image acquired by the mobile terminal may include mouth opening amplitude information, tooth leakage degree information and canthus fishtail information. The mobile terminal can compare the acquired mouth opening amplitude information with preset mouth opening amplitude information, compare the acquired tooth leakage degree information with preset tooth leakage degree information, and compare the acquired canthus fishtail line information with preset canthus fishtail line information.
If the acquired mouth opening amplitude information is matched with the preset mouth opening amplitude information, the acquired tooth leakage degree information is matched with the preset tooth leakage degree information, and the acquired canthus fishtail line information is matched with the preset canthus fishtail line information, the acquired feature information of the face image can be determined to be matched with the preset feature information. It should be noted that the feature information of the acquired face image is matched with preset feature information, that is, the feature information of the acquired face image is matched with the same feature information extracted from a plurality of crying face pictures. At this time, the expression of the user can be determined as a crying face, and further, the mood of the user can be determined to be not cheerful.
103, determining a target beautifying parameter value according to the target photographing mode;
in step 103, the mobile terminal may determine a target beauty parameter value according to the target photographing mode. For example, if the determined target photographing mode is the "happy mode", a target beauty parameter value corresponding to the "happy mode" may be extracted. If the user does not modify the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the default beauty parameter value; and if the user modifies the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the beauty parameter value modified by the user.
And 104, performing beauty treatment on the preview image according to the target beauty parameter value.
In step 104, the preview image may be beautified according to the target beautification parameter value corresponding to the extracted target photographing mode.
In an embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The beautifying method provided by the embodiment of the invention is applied to the mobile terminal. Acquiring a preview image; determining a target photographing mode; determining a target beauty parameter value according to the target photographing mode; and performing beauty treatment on the preview image according to the target beauty parameter value. Therefore, the target beautifying parameter value can be determined according to the target photographing mode, and the preview image is beautified according to the target beautifying parameter value, so that the beautifying effect is richer, and the user experience is improved.
Referring to fig. 2, fig. 2 is a flowchart of another beautifying method provided by the embodiment of the present invention, which is applied to a mobile terminal. The present embodiment is different from the previous embodiment in that the manner of determining the target photographing mode from the feature information of the face image is explained in detail. As shown in fig. 2, the method comprises the following steps:
step 201, presetting a target beauty parameter value corresponding to the target photographing mode.
In step 201, the mobile terminal may preset a target beauty parameter value corresponding to the target photographing mode. The mobile terminal can store beauty parameter values corresponding to different photographing modes in advance. The target photographing mode may be a "happy mode", an "angry mode", and a "sad mode", and the like. Each photographing mode corresponds to a group of beauty parameters, and the beauty parameter values of the same beauty parameter corresponding to different photographing modes can be different. Beauty parameters may include "brightness", "contrast", "color saturation", "buffing level", "face thinning level", "bright eyes", and "lip beauty", etc.
The user can check the shooting effect graphs in different shooting modes, and further can select whether to modify the beauty parameter value. For example, the user may view the photographic effect map in the "angry mode", and if the user is not satisfied with the photographic effect, the beauty parameter value corresponding to the "angry mode" may be manually modified. For example, decreasing the "brightness" level or decreasing the "buffing level" and so forth. After modifying the beauty parameter value corresponding to the angry mode, the mobile terminal can save the beauty parameter value corresponding to the angry mode after modification. If the user is satisfied with the shooting effect, the mobile terminal still stores the default beauty parameter value without modifying the beauty parameter value.
Step 202, the preview image comprises a face image, and the preview image and the feature information of the face image are obtained.
In step 202, the mobile terminal may acquire a preview image containing a face image, and the mobile terminal may acquire feature information of the face image.
Step 203, judging whether the feature information of the face image is matched with preset feature information.
In step 203, the mobile terminal may determine whether the feature information of the face image matches the preset feature information. For example, the mobile terminal may first obtain multiple smiling face pictures, extract the same feature information in the multiple smiling face pictures, and use the extracted same feature information as the preset feature information. It should be noted that, since the preset feature information is the same feature information extracted from multiple smiling face pictures, the photographing mode corresponding to the preset feature information may be preset to be the "happy mode". The preset characteristic information may include preset mouth opening amplitude information, preset tooth leakage degree information, preset canthus fishtail information, and the like.
The feature information of the face image acquired by the mobile terminal may include mouth opening amplitude information, tooth leakage degree information and canthus fishtail information. The mobile terminal can compare the acquired mouth opening amplitude information with preset mouth opening amplitude information, compare the acquired tooth leakage degree information with preset tooth leakage degree information, and compare the acquired canthus fishtail line information with preset canthus fishtail line information.
And 204, if the feature information of the face image is matched with the preset feature information, determining a target photographing mode corresponding to the preset feature information.
In step 204, if the acquired mouth opening amplitude information matches the preset mouth opening amplitude information, the acquired tooth leakage degree information matches the preset tooth leakage degree information, and the acquired canthus fishtail line information matches the preset canthus fishtail line information, it may be determined that the feature information of the acquired face image matches the preset feature information. Since the photographing mode corresponding to the preset feature information is the "happy mode", it can be determined that the target photographing mode is the "happy mode".
It should be noted that the feature information of the acquired face image matches the preset feature information, that is, the feature information of the acquired face image matches the same feature information extracted from multiple smiling face pictures. At this time, the expression of the user can be determined as a smiling face, and further, the mood of the user can be determined to be more pleasant. And at the moment, the target photographing mode is determined to be a 'happy mode', namely, the target photographing mode determined by the mobile terminal is consistent with the actual mood of the user, so that the photographed effect is relatively consistent with the actual situation.
And step 205, determining a target beauty parameter value according to the target photographing mode.
After the target photographing mode is determined, a target beauty parameter value may be determined according to the target photographing mode in step 205. For example, if the determined target photographing mode is the "happy mode", a target beauty parameter value corresponding to the "happy mode" may be extracted. If the user does not modify the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the default beauty parameter value; and if the user modifies the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the beauty parameter value modified by the user.
And step 206, performing beauty treatment on the preview image according to the target beauty parameter value.
In step 206, the preview image may be beautified according to the target beautification parameter value corresponding to the extracted target photographing mode.
The beautifying method provided by the embodiment of the invention is applied to the mobile terminal. The target beautifying parameter value can be determined according to the target photographing mode, and the preview image is beautified according to the target beautifying parameter value, so that the beautifying effect is richer, and the user experience is improved. Furthermore, the mobile terminal can acquire the feature information of the face image and automatically determine the target photographing mode according to the feature information of the face image, so that the method is convenient and fast.
Referring to fig. 3, fig. 3 is a flowchart of another beautifying method provided by the embodiment of the present invention, which is applied to a mobile terminal. The present embodiment is different from the previous embodiment in that the manner in which the user manually selects the target photographing mode is explained in detail. As shown in fig. 3, the method comprises the following steps:
step 301, presetting a target beauty parameter value corresponding to the target photographing mode.
In step 301, the mobile terminal may preset a target beauty parameter value corresponding to the target photographing mode. The mobile terminal can store beauty parameter values corresponding to different photographing modes in advance. The target photographing mode may be a "happy mode", an "angry mode", and a "sad mode", and the like. Each photographing mode corresponds to a group of beauty parameters, and the beauty parameter values of the same beauty parameter corresponding to different photographing modes can be different. Beauty parameters may include "brightness", "contrast", "color saturation", "buffing level", "face thinning level", "bright eyes", and "lip beauty", etc.
Optionally, the presetting of the target beauty parameter value corresponding to the target photographing mode includes:
acquiring a default beauty parameter value corresponding to the target photographing mode;
receiving a beautifying parameter value adjusting operation instruction;
and adjusting the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the beauty parameter value adjusting operation instruction.
The mobile terminal can obtain a default beauty parameter value corresponding to the target photographing mode, and at the moment, the user can check a photographing effect picture in the target photographing mode. If the user is not satisfied with the shooting effect, the mobile terminal can be operated. The mobile terminal receives the beauty parameter value adjusting operation instruction, and then the mobile terminal can adjust the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the received beauty parameter value adjusting operation instruction. After modifying the beauty parameter value corresponding to the target photographing mode, the mobile terminal may store the beauty parameter value corresponding to the modified target photographing mode. If the user is satisfied with the shooting effect, the mobile terminal still stores the default beauty parameter value without modifying the beauty parameter value.
Step 302, obtaining a preview image.
In step 302, the mobile terminal may acquire a preview image, wherein the preview image may include a face image.
And 303, selecting the target photographing mode from at least one photographing mode to be selected according to the mood selection operation instruction.
In step 303, at least one photographing mode to be selected may be displayed on the mobile terminal. The user can select the photographing mode which accords with the actual mood of the user from the at least one photographing mode to be selected according to the requirement of the user. The user may not select the photographing mode, and at this time, the mobile terminal performs the beautifying processing on the preview image by default in a normal beautifying manner.
The mobile terminal can receive the mood selection operation instruction, and then the mobile terminal can select a target photographing mode from the at least one photographing mode to be selected according to the mood selection operation instruction.
And step 304, determining a target beautifying parameter value according to the target photographing mode.
In step 304, the mobile terminal may determine a target beauty parameter value according to the target photographing mode. For example, if the selected target photographing mode is "happy mode", a target beauty parameter value corresponding to the "happy mode" may be extracted. If the user does not modify the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the default beauty parameter value; and if the user modifies the beauty parameter value corresponding to the target photographing mode, the extracted target beauty parameter value corresponding to the target photographing mode is the beauty parameter value modified by the user.
And 305, performing beauty treatment on the preview image according to the target beauty parameter value.
In step 305, the mobile terminal may perform a beauty process on the preview image according to the target beauty parameter value corresponding to the extracted target photographing mode.
The beautifying method provided by the embodiment of the invention is applied to the mobile terminal. The user can manually select the target photographing mode according to the self requirement, and then the mobile terminal can extract the target beauty parameter value corresponding to the target photographing mode, and performs beauty treatment on the preview image according to the target beauty parameter value, so that the beauty effect is richer, and the user experience is improved.
Referring to fig. 4, fig. 4 is a structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the mobile terminal 400 includes an obtaining module 401, a first determining module 402, a second determining module 403, and a processing module 404, where:
an obtaining module 401, configured to obtain a preview image;
a first determining module 402, configured to determine a target photographing mode;
a second determining module 403, configured to determine a target beauty parameter value according to the target photographing mode;
and the processing module 404 is configured to perform a beauty treatment on the preview image according to the target beauty parameter value.
Optionally, as shown in fig. 5, the mobile terminal further includes:
a setting module 405, configured to preset a target beauty parameter value corresponding to the target photographing mode.
Optionally, as shown in fig. 6, the preview image includes a face image, and the obtaining module 401 is specifically configured to obtain the preview image and feature information of the face image;
the first determining module 402 comprises:
the judging sub-module 4021 is configured to judge whether the feature information of the face image matches preset feature information;
the determining sub-module 4022 is configured to determine a target photographing mode corresponding to the preset feature information if the feature information of the face image matches the preset feature information.
Optionally, the first determining module 402 is specifically configured to:
and selecting the target photographing mode from at least one photographing mode to be selected according to the mood selection operation instruction.
Optionally, as shown in fig. 7, the setting module 405 includes:
an obtaining sub-module 4051, configured to obtain a default beauty parameter value corresponding to the target photographing mode;
the receiving submodule 4052 is configured to receive a beautifying parameter value adjustment operation instruction;
the adjusting submodule 4053 is configured to adjust the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the beauty parameter value adjusting operation instruction.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition. And the mobile terminal 400 can acquire the feature information of the face image and automatically determine the target photographing mode according to the feature information of the face image, which is convenient and fast. Alternatively, the user may manually select the target photographing mode according to the need of the user. And then the mobile terminal 400 can extract a target beauty parameter value corresponding to the target photographing mode, and perform beauty processing on the preview image according to the target beauty parameter value, so that the beauty effect is richer.
Referring to fig. 8, fig. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 8, the mobile terminal 800 includes: at least one processor 801, a memory 802, at least one network interface 804 and a user interface 803, and a beauty program stored on the memory 802 and operable on the processor 801, which when executed by the processor 801, performs the steps of the beauty method described above. The various components in the mobile terminal 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8.
The user interface 803 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 802 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 8021 and application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, when the beauty program is executed by the processor 801, the following steps can be implemented:
acquiring a preview image;
determining a target photographing mode;
determining a target beauty parameter value according to the target photographing mode;
and performing beauty treatment on the preview image according to the target beauty parameter value.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the beautifying program may further implement the following steps when being executed by the processor 801:
and presetting a target beauty parameter value corresponding to the target photographing mode.
Optionally, the beautifying program may further implement the following steps when being executed by the processor 801:
the preview image comprises a face image, and the preview image and the feature information of the face image are obtained;
judging whether the feature information of the face image is matched with preset feature information or not;
and if the feature information of the face image is matched with the preset feature information, determining a target photographing mode corresponding to the preset feature information.
Optionally, the beautifying program may further implement the following steps when being executed by the processor 801:
and selecting the target photographing mode from at least one photographing mode to be selected according to the mood selection operation instruction.
Optionally, the beautifying program may further implement the following steps when being executed by the processor 801:
acquiring a default beauty parameter value corresponding to the target photographing mode;
receiving a beautifying parameter value adjusting operation instruction;
and adjusting the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the beauty parameter value adjusting operation instruction.
The mobile terminal 800 can implement each process implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition. And the mobile terminal 800 can acquire the feature information of the face image and automatically determine the target photographing mode according to the feature information of the face image, which is convenient and fast. Alternatively, the user may manually select the target photographing mode according to the need of the user. And then the mobile terminal 800 can extract a target beauty parameter value corresponding to the target photographing mode, and perform beauty treatment on the preview image according to the target beauty parameter value, so that the beauty effect is richer.
The embodiment of the invention also provides a computer readable storage medium, which is characterized in that the computer readable storage medium is stored with a beautifying program, and the beautifying program is executed by a processor to realize the steps of the fingerprint beautifying method.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A method for beautifying face is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring a preview image;
determining a target photographing mode;
determining a target beauty parameter value according to the target photographing mode; performing beauty treatment on the preview image according to the target beauty parameter value;
prior to the step of acquiring a preview image, the method further comprises:
presetting a target beauty parameter value corresponding to the target photographing mode;
the presetting of the target beauty parameter value corresponding to the target photographing mode comprises the following steps:
acquiring a default beauty parameter value corresponding to the target photographing mode;
acquiring a shooting effect picture of a default beauty parameter value in a target shooting mode;
if the user is not satisfied with the shooting effect picture, receiving a beautifying parameter value adjusting operation instruction;
and adjusting the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the beauty parameter value adjusting operation instruction.
2. The method of claim 1, wherein the preview image comprises a face image, and the obtaining a preview image comprises:
acquiring the characteristic information of the preview image and the face image;
the determining of the target photographing mode comprises the following steps:
judging whether the feature information of the face image is matched with preset feature information or not;
and if the feature information of the face image is matched with the preset feature information, determining a target photographing mode corresponding to the preset feature information.
3. The method of claim 1, wherein the determining the target photography mode comprises:
and selecting the target photographing mode from at least one photographing mode to be selected according to the mood selection operation instruction.
4. A mobile terminal, comprising:
the acquisition module is used for acquiring a preview image;
the first determining module is used for determining a target photographing mode;
the second determining module is used for determining a target beautifying parameter value according to the target photographing mode;
the processing module is used for performing beauty treatment on the preview image according to the target beauty parameter value;
the mobile terminal further includes:
the setting module is used for presetting a target beauty parameter value corresponding to the target photographing mode;
the setting module includes:
the obtaining submodule is used for obtaining a default beauty parameter value corresponding to the target photographing mode;
the display submodule is used for acquiring a shooting effect picture of a default beauty parameter value in a target shooting mode;
the receiving submodule is used for receiving a beautifying parameter value adjusting operation instruction if the user is not satisfied with the shooting effect picture;
and the adjusting submodule is used for adjusting the beauty parameter value corresponding to the target photographing mode from the default beauty parameter value to the target beauty parameter value according to the beauty parameter value adjusting operation instruction.
5. The mobile terminal of claim 4, wherein the preview image comprises a face image, and the obtaining module is specifically configured to obtain the preview image and feature information of the face image;
the first determining module includes:
the judging submodule is used for judging whether the feature information of the face image is matched with preset feature information or not;
and the determining submodule is used for determining a target photographing mode corresponding to the preset characteristic information if the characteristic information of the face image is matched with the preset characteristic information.
6. The mobile terminal of claim 4, wherein the first determining module is specifically configured to:
and selecting the target photographing mode from at least one photographing mode to be selected according to the mood selection operation instruction.
7. A mobile terminal comprising a processor, a memory, and a beauty program stored on the memory and executable on the processor, the beauty program when executed by the processor implementing the steps of the beauty method according to any one of claims 1 to 3.
CN201710831063.5A 2017-09-08 2017-09-08 Beautifying method and mobile terminal Active CN107592457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710831063.5A CN107592457B (en) 2017-09-08 2017-09-08 Beautifying method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710831063.5A CN107592457B (en) 2017-09-08 2017-09-08 Beautifying method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107592457A CN107592457A (en) 2018-01-16
CN107592457B true CN107592457B (en) 2020-05-15

Family

ID=61051585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710831063.5A Active CN107592457B (en) 2017-09-08 2017-09-08 Beautifying method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107592457B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083348A (en) * 2018-10-22 2020-04-28 奇酷互联网络科技(深圳)有限公司 Mobile terminal, photographing method thereof and computer storage medium
CN111327814A (en) * 2018-12-17 2020-06-23 华为技术有限公司 Image processing method and electronic equipment
CN110430356A (en) * 2019-06-25 2019-11-08 华为技术有限公司 One kind repairing drawing method and electronic equipment
CN112565619A (en) * 2020-11-12 2021-03-26 上海龙旗科技股份有限公司 Rainbow photographing method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853092A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Photographing method and device
CN105825486A (en) * 2016-04-05 2016-08-03 北京小米移动软件有限公司 Beautifying processing method and apparatus
CN106056533A (en) * 2016-05-26 2016-10-26 维沃移动通信有限公司 Photographing method and terminal
CN106101541A (en) * 2016-06-29 2016-11-09 捷开通讯(深圳)有限公司 A kind of terminal, photographing device and image pickup method based on personage's emotion thereof
CN106503658A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 automatic photographing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853092A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Photographing method and device
CN105825486A (en) * 2016-04-05 2016-08-03 北京小米移动软件有限公司 Beautifying processing method and apparatus
CN106056533A (en) * 2016-05-26 2016-10-26 维沃移动通信有限公司 Photographing method and terminal
CN106101541A (en) * 2016-06-29 2016-11-09 捷开通讯(深圳)有限公司 A kind of terminal, photographing device and image pickup method based on personage's emotion thereof
CN106503658A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 automatic photographing method and mobile terminal

Also Published As

Publication number Publication date
CN107592457A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN107592457B (en) Beautifying method and mobile terminal
CN110675310B (en) Video processing method and device, electronic equipment and storage medium
WO2015001437A1 (en) Image processing method and apparatus, and electronic device
WO2022179025A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN108024071B (en) Video content generation method, video content generation device, and storage medium
KR20160108928A (en) Electronic Device Including The Camera Module And Method For Processing Image Of the Same
CN104580922B (en) A kind of control method and device for shooting light filling
EP4171014A1 (en) Photographing method, graphical interface and related apparatus
KR20170097860A (en) Device for capturing image using display and method for the same
WO2018019068A1 (en) Photographing method and device, and mobile terminal
CN113965694B (en) Video recording method, electronic device and computer readable storage medium
KR102207633B1 (en) Image photographing apparatus and control methods thereof
CN108734754B (en) Image processing method and device
WO2022110837A1 (en) Image processing method and device
CN113905182B (en) Shooting method and equipment
CN107424117B (en) Image beautifying method and device, computer readable storage medium and computer equipment
CN106815803B (en) Picture processing method and device
CN112712470A (en) Image enhancement method and device
CN113012082A (en) Image display method, apparatus, device and medium
CN113411498A (en) Image shooting method, mobile terminal and storage medium
CN114926351A (en) Image processing method, electronic device, and computer storage medium
CN108564537B (en) Image processing method, image processing device, electronic equipment and medium
US20170163852A1 (en) Method and electronic device for dynamically adjusting gamma parameter
CN112785490B (en) Image processing method and device and electronic equipment
CN105578064B (en) The control method of photographic device and photographic device

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
GR01 Patent grant
GR01 Patent grant