CN106056533B - A kind of method and terminal taken pictures - Google Patents

A kind of method and terminal taken pictures Download PDF

Info

Publication number
CN106056533B
CN106056533B CN201610362789.4A CN201610362789A CN106056533B CN 106056533 B CN106056533 B CN 106056533B CN 201610362789 A CN201610362789 A CN 201610362789A CN 106056533 B CN106056533 B CN 106056533B
Authority
CN
China
Prior art keywords
expressive features
features data
beauty parameter
default
data
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
CN201610362789.4A
Other languages
Chinese (zh)
Other versions
CN106056533A (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 CN201610362789.4A priority Critical patent/CN106056533B/en
Publication of CN106056533A publication Critical patent/CN106056533A/en
Application granted granted Critical
Publication of CN106056533B publication Critical patent/CN106056533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G06T3/04

Abstract

The embodiment of the invention provides a kind of methods and terminal taken pictures, wherein the method taken pictures includes: the facial image for obtaining terminal camera preview;According to facial image, the first expressive features data are obtained;According to the first expressive features data of acquisition, beauty parameter corresponding with the first expressive features data is obtained;It is taken pictures according to beauty parameter.The Shi Meiyan effect that solves the problems, such as to take pictures in the prior art of the embodiment of the present invention is not abundant enough, improves user experience.

Description

A kind of method and terminal taken pictures
Technical field
The present invention relates to field of terminal, more particularly, to a kind of method and terminal taken pictures.
Background technique
As intelligent terminal continues to develop, the intelligent terminal that can be used for taking pictures is more and more, such as the mobile phone of intelligence, digital phase Machine, tablet computer etc..User using these intelligent terminals when being taken pictures, in order to take satisfied photo, more and more The built-in beautiful Yan Gongneng of intelligent terminal manufacturer, in addition, application program market also provides more and more U.S. face application programs.It is existing Have in technology, for the beautiful Yan Gongneng built in intelligent terminal, or U.S. face application program, or by identification face come automatic Beauty Yan Xiaoguo is loaded, beautiful Yan Xiaoguo is perhaps loaded by identification background light intensity or is added by identification face complexion Carry beauty Yan Xiaoguo.
But existing U.S. face effect is still not enough enriched, the U.S. face effect more than customization more that can not be more intelligent Fruit, user experience are poor.
Summary of the invention
The object of the present invention is to provide a kind of methods and terminal taken pictures, to solve Shi Meiyan effect of taking pictures in the prior art It is not abundant enough, the poor problem of user experience.
In order to solve the above-mentioned technical problem, in a first aspect, the present invention provides a kind of method taken pictures, the method packet It includes:
Obtain the facial image of terminal camera preview;
According to the facial image, the first expressive features data are obtained;
According to the first expressive features data of acquisition, U.S. face ginseng corresponding with the first expressive features data is obtained Number;
It is taken pictures according to the beauty parameter.
Second aspect, the present invention provides a kind of terminal, the terminal includes:
First obtains module, for obtaining the facial image of terminal camera preview;
Second obtains module, for obtaining the facial image that module obtains according to described first, obtains the first expression Characteristic;
Third obtains module, for obtaining the first expressive features data that module obtains according to described second, obtains Beauty parameter corresponding with the first expressive features data;
Photo module is taken pictures for obtaining the beauty parameter that module obtains according to the third.
In this way, facial image of the embodiment of the present invention by acquisition terminal camera preview, and according to the face figure of acquisition Picture obtains the first expressive features data, then according to the first expressive features data of acquisition, obtains and the first expressive features data Corresponding beauty parameter is finally taken pictures according to the beauty parameter of acquisition, and the facial expression according to user is enabled the terminal to Corresponding beauty Yan Xiaoguo is selected to solve so that user can take the effect picture of various facial expressions when taking pictures Not abundant enough the problem of Shi Meiyan effect of taking pictures in the prior art, improves user experience.
Detailed description of the invention
Fig. 1 shows the step flow charts for the method taken pictures in the first embodiment of the present invention;
Fig. 2 indicates the step flow chart for the method taken pictures in the second embodiment of the present invention;
Fig. 3 indicates one of the structural block diagram of terminal in the third embodiment of the present invention;
Fig. 4 indicates two of the structural block diagram of terminal in the third embodiment of the present invention;
Fig. 5 indicates the structural block diagram of terminal in the fourth embodiment of the present invention;
Fig. 6 indicates the structural block diagram of terminal in the fifth embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
First embodiment:
As shown in Figure 1, this method includes as follows for the step flow chart for the method taken pictures in the first embodiment of the present invention Step:
Step 101, the facial image of terminal camera preview is obtained.
In this step, specifically, when application program on open a terminal for taking pictures, preview region on a terminal screen It will appear the facial image of user in domain, obtain the facial image of terminal camera preview at this time.
Step 102, according to facial image, the first expressive features data are obtained.
In this step, terminal can obtain the first expressive features data according to the facial image of acquisition.Specifically, eventually End can periodically obtain the first expressive features data.The first expressive features data are explained at this.Work as user When being taken pictures, user may make various expressions, for example, the expression smiled, the expression of laugh, the expression cried with And surprised expression etc., the corresponding characteristic of such various expression can be used as the first expressive features data.
Step 103, according to the first expressive features data of acquisition, U.S. face ginseng corresponding with the first expressive features data is obtained Number.
In this step, specifically, terminal can obtain special with the first expression according to the first expressive features data of acquisition Levy the corresponding beauty parameter of data.Specifically, exposure when beauty parameter may include the colour of skin of facial image, take pictures, or The parameter at the positions such as shape of face, eyes, the mouth of person's facial image.For example, obtaining beauty corresponding with the first expressive features data When face parameter, when corresponding first expression of the first expressive features data, it is default that the skin brightness of acquisition can be greater than or equal to one Brightness, when corresponding second expression of the first expressive features data, skin brightness can be less than the predetermined luminance.In another example when When one expressive features data correspond to the first expression, the exposure of acquisition can be greater than or equal to a default exposure, when the first table When feelings characteristic corresponds to the second expression, exposure can be less than the default exposure.Below with specific facial expression to this It is specifically described.
For example, beauty parameter can be by facial image when corresponding first expression of the first expressive features data is to laugh at Mouth amplification, is adjusted to more ruddy for the color of lip, the eyes of facial image is reduced, and make the shape of face of facial image It is rounder and more smooth, the skin brightness of facial image is adjusted to more beautiful, and the exposure of photographing device in terminal is turned up.Again For example, when corresponding second expression of the first expressive features data is to cry, it can be curved slightly downwards by the mouth of facial image, and The mouth of facial image is curved slightly downwards, tears can also be synthesized below the eyes of facial image, by the skin of facial image Colour brightness is adjusted to more gloomy, and the exposure of photographing device in terminal is reduced, so that keynote when taking pictures is more dim.Again For example, the eyes of facial image can be shown more when corresponding second expression of the first expressive features data is surprised It is bright, the preview area on terminal screen is amplified into display, and facial image is shifted to the center of preview area on terminal screen Position.
Step 104, it is taken pictures according to beauty parameter.
In this step, it specifically, after getting beauty parameter corresponding with the first expressive features data, can incite somebody to action U.S. face effect corresponding with the beauty parameter of acquisition is loaded onto the preview area of terminal screen, then when taking pictures, according to this Beauty parameter is taken pictures.
In this way, facial image of the embodiment by acquisition terminal camera preview, and according to the facial image of acquisition, it obtains The first expressive features data are taken, then according to the first expressive features data of acquisition, are obtained corresponding with the first expressive features data Beauty parameter, finally taken pictures according to the beauty parameter of acquisition, make it possible to according to the facial expression of user select correspond to Beauty parameter solve existing skill so that the effect picture of various expressions can be taken when taking pictures according to beauty parameter Not abundant enough the problem of Shi Meiyan effect of taking pictures in art improves user experience so that the U.S. face effect of user is more abundant.
Second embodiment:
In first embodiment specific implementation, terminal can be implemented separately, and can also be realized in conjunction with server.
Specifically, as shown in Fig. 2, being the step flow chart for the method taken pictures in the second embodiment of the present invention, the implementation Method includes: in example
Step 201, the facial image of terminal camera preview is obtained.
Step 202, terminal extracts the first expressive features data directly according to facial image;Or terminal is by facial image It periodically is uploaded to server, and receives the first expressive features data of server transmission obtained according to facial image.
In this step, terminal can locally obtain the first expressive features data, can also obtain the first table in conjunction with network Feelings characteristic.Specifically, terminal can be directly according to face figure when terminal is when locally obtaining the first expressive features data Picture extracts the first expressive features data;When terminal combination network obtains the first expressive features data, terminal can be by face figure As being periodically uploaded to server, and receive the first expressive features data of server transmission obtained according to facial image.
Step 203, according to the first expressive features data of acquisition and preset expressive features database and beauty parameter Database obtains beauty parameter corresponding with the first expressive features data.
In this step, specifically, terminal is preset with expressive features database and beauty parameter database, and expressive features Default expression characteristic in database and the beauty parameter in beauty parameter database have corresponding relationship.In this way, terminal Can be according to preset expressive features database and beauty parameter database, local acquisition is corresponding with the first expressive features data Beauty parameter.Specifically, terminal can be first by the default expressive features in the first expressive features data and expressive features database Data are matched, and the default expression characteristic to match with the first expressive features data is got;Then according to expression spy Levy the corresponding relationship preset and preset between beauty parameter in expression characteristic and beauty parameter database in database, obtain with The default corresponding default beauty parameter of expression characteristic, wherein default beauty parameter is and the first expressive features data pair The beauty parameter answered.
Certainly, in order to guarantee the accuracy of the beauty parameter got and rich, terminal can also locally combine network Obtain beauty parameter.When locally network being combined to obtain beauty parameter, terminal can be by the first expressive features data and expression When default expression characteristic in property data base is matched, the first expressive features data and default expressive features are first obtained Matching degree between data, then after getting the default expression characteristic to match with the first expressive features data, When matching degree is greater than or equal to a preset threshold, illustrate that preset expressive features database can satisfy the demand of user, this When can locally obtain beauty parameter corresponding with the first expressive features data, it can according in expressive features database preset The corresponding relationship between beauty parameter is preset in expressive features data and beauty parameter database, is obtained and default expression characteristic According to corresponding default beauty parameter.When matching degree is less than the preset threshold, illustrate do not have in preset expressive features database Expression characteristic, i.e. preset expressive features database at this time are preset similar in the first expressive features data with facial image It cannot meet the needs of users, beauty parameter can be obtained in conjunction with network at this time, it can facial image is uploaded to server, And receive the first expressive features data obtained according to facial image and corresponding with the first expressive features data of server transmission Beauty parameter.In this way, beautiful Yan Xiaoguo needed for user can be reached to the greatest extent, the Experience Degree of user is improved.
Step 204, it is taken pictures according to beauty parameter.
In this way, in beauty parameter corresponding according to the first expressive features data acquisition, it is available to needed for user Or real-time beauty parameter, it can satisfy the demand of user, provide more beauty parameters, and allow user according to need It asks and presets expressive features data, so that user can actively select the beauty parameter of preference, improve user experience.
In addition, terminal can also update preset expressive features database and beauty parameter database.Specifically, terminal can With the preset expressive features database of more new terminal according to demand and beauty parameter database.Certainly, preset expression is being updated When property data base and beauty parameter database, it can equally be updated with local update and network.
In local update, the second expressive features data that terminal will directly can be extracted from a facial image of preservation It is added in expressive features database, and establishes a default beauty parameter in the second expressive features data and beauty parameter database Corresponding relationship.At this point, since the second expressive features data are the facial image extraction saved according to terminal, i.e., user is to the Two expressive features data have certain Preference, therefore the matching priority of the second expressive features data can be set in terminal, Wherein, the matching priority of the second expressive features data is higher than of the default expression characteristic of other in expressive features database With priority.I.e. when terminal gets the first expressive features data, preferentially by the first expressive features data and updated table The second expressive features data in feelings property data base are matched, if the first expressive features data and the second expressive features data Successful match then obtains default beauty parameter corresponding with the second expressive features data, and this is preset beauty parameter as need The beauty parameter to be obtained.
When network updates, a facial image of preservation can be uploaded to server by terminal, and receive server transmission The the second expressive features data obtained according to facial image, and establish in the second expressive features data and beauty parameter database The corresponding relationship of one default beauty parameter;Can also receive from server download third expressive features data and with third expression The corresponding beauty parameter data of characteristic, and third expressive features data are loaded onto expressive features database, by U.S. face Supplemental characteristic is loaded onto beauty parameter database.Specifically, updating expressive features database and beauty parameter data in network Behind library, the matching priority of the second expressive features data can also be set, wherein the matching priority of the second expressive features data Higher than the matching priority that other in expressive features database preset expression characteristic.Certainly, optionally, it also can be set The matching priority of three expressive features data, it can the matching priority of the second expressive features data of setting is higher than third expression The priority of characteristic, the priority of third expressive features data are higher than the default expressive features of other in expressive features database The matching priority of data.
The present embodiment can obtain the first expressive features data by local or network, by local or local in conjunction with net The mode of network obtains beauty parameter corresponding with the first expressive features data, and can pass through local, network and local combination The preset expressive features database of the mode of network more new terminal and beauty parameter database, obtain user when taking pictures More beauty parameters are taken, also allows users to update expressive features database according to hobby, enables a user to select The beautiful Yan Xiaoguo oneself liked is selected, the Shi Meiyan effect that solves the problems, such as to take pictures in the prior art is not abundant enough, enriches U.S. face Effect improves user experience.
3rd embodiment:
As shown in figure 3, for one of the structural block diagram of terminal in the third embodiment of the present invention, which includes:
First obtains module 301, for obtaining the facial image of terminal camera preview;
Second obtains module 302, and for obtaining the facial image that module 301 obtains according to first, it is special to obtain the first expression Levy data;
Third obtain module 303, for according to second obtain module 302 obtain the first expressive features data, obtain with The corresponding beauty parameter of first expressive features data;
Photo module 304 is taken pictures for obtaining the beauty parameter that module 303 obtains according to third.
In this way, the embodiment obtains the facial image that module 301 obtains terminal camera preview by first;Second obtains Module 302 obtains the first expressive features data according to the facial image of acquisition;Third obtains module 303 according to the first of acquisition Expressive features data obtain beauty parameter corresponding with the first expressive features data;Photo module 304 is joined according to the U.S. face of acquisition Number is taken pictures.The present embodiment enables the terminal to select corresponding beauty parameter according to the facial expression of user, so that The effect picture that various expressions can be taken when taking pictures according to beauty parameter, solves and takes pictures Shi Meiyan effect in the prior art not Enough abundant problems improve user experience so that the U.S. face effect of user is more abundant.
Specifically, as shown in figure 4, for two of the structural block diagram of terminal in the third embodiment of the present invention.
Optionally, the second acquisition module 302 includes: first acquisition unit 3021, for directly according to facial image, extracting First expressive features data;Alternatively, second acquisition unit 3022, for facial image to be periodically uploaded to server, and Receive the first expressive features data obtained according to facial image that server is sent.
Optionally, third obtains module 303 and is used for, special according to the first expressive features data of acquisition and preset expression Database and beauty parameter database are levied, beauty parameter corresponding with the first expressive features data is obtained.
Optionally, it includes: matching unit 3031 that third, which obtains module 303, is used for the first expressive features data and expression Default expression characteristic in property data base is matched, and the preset table to match with the first expressive features data is got Feelings characteristic;Third acquiring unit 3032, for being joined according to expression characteristic default in expressive features database and U.S. face The corresponding relationship between beauty parameter is preset in number database, obtains default U.S. face ginseng corresponding with default expression characteristic Number, wherein default beauty parameter is beauty parameter corresponding with the first expressive features data.
Optionally, matching unit 3031 is also used to, and is obtained between the first expressive features data and default expression characteristic Matching degree work as matching and for after getting the default expression characteristic to match with the first expressive features data When degree is greater than or equal to a preset threshold, third acquiring unit 3032 is triggered;It further includes sending and receiving that third, which obtains module 303, Unit 3033 for when matching degree is less than preset threshold, facial image to be uploaded to server, and receives server transmission The the first expressive features data and beauty parameter corresponding with the first expressive features data obtained according to facial image.
Optionally, beauty parameter includes the skin brightness of facial image, and third obtains module 303 and is used for, when the first expression When characteristic corresponds to the first expression, the skin brightness of acquisition is greater than or equal to predetermined luminance;When the first expressive features data pair When answering the second expression, the skin brightness of acquisition is less than predetermined luminance.
Optionally, beauty parameter includes exposure when taking pictures, and third obtains module 303 and is used for, when the first expressive features When data correspond to the first expression, exposure is greater than or equal to default exposure;When corresponding second expression of the first expressive features data When, exposure is less than default exposure.
In this way, first expressive features data acquisition corresponding beauty parameter of the present embodiment by acquisition, so that user exists Available more beauty parameters when taking pictures, enable a user to the beautiful Yan Xiaoguo for selecting oneself to like, and solve existing There is not abundant enough the problem of Shi Meiyan effect of taking pictures in technology, enriches beautiful Yan Xiaoguo, improve user experience.
Fourth embodiment:
As shown in figure 5, for the structural block diagram of terminal in the fourth embodiment of the present invention, terminal 500 shown in fig. 5 includes: At least one processor 501, memory 502, at least one network interface 504, user interface 503.Each group in terminal 500 Part is coupled by bus system 505.It is understood that bus system 505 is for realizing the connection communication between these components. Bus system 505 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But in order to For the sake of clear explanation, various buses are all designated as bus system 505 in Fig. 5.Wherein, user interface 503 may include display Device, keyboard perhaps pointing device (for example, mouse trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 502 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.
In some embodiments, memory 502 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 5021 and application program 5022.Specifically, being deposited in memory 502 Contain setup module and configuration file.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application The program or instruction stored in program 5022.Wherein, processor 501 is used for: obtaining the facial image of terminal camera preview;Root According to the facial image, the first expressive features data are obtained;According to the first expressive features data of acquisition, obtain with it is described The corresponding beauty parameter of first expressive features data;It is taken pictures according to the beauty parameter.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501. Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing Device 501 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (Application SpecificIntegratedCircuit, ASIC), field programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 502, and processor 501 reads the information in memory 502, and the step of the above method is completed in conjunction with its hardware Suddenly.In addition, being stored with the corresponding relationship etc. used in the above method in memory 502.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application SpecificIntegratedCircuit, ASIC), digital signal processor (DigitalSignalProcessor, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (Programmable LogicDevice, PLD), field programmable gate array (FieldProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronic units for executing the application function or In a combination thereof.
For software implementations, module (such as process, function etc.) Lai Shixian of execution function of the embodiment of the present invention can be passed through The technology of the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can handled Portion realizes in device or outside the processor.
Optionally, processor 501 is also used to: directly according to the facial image, extracting the first expressive features data;Or The facial image is periodically uploaded to server by person, and receive that the server sends according to the facial image The first obtained expressive features data.
Optionally, as another embodiment, processor 501 is also used to: according to the first expressive features number of acquisition Accordingly and preset expressive features database and beauty parameter database, beauty corresponding with the first expressive features data is obtained Face parameter.
Optionally, as another embodiment, processor 501 is also used to: by the first expressive features data with it is described Default expression characteristic in expressive features database is matched, and is got and is matched with the first expressive features data Default expression characteristic;According to default expression characteristic and the beauty parameter data in the expressive features database The corresponding relationship between beauty parameter is preset in library, obtains default beauty parameter corresponding with the default expression characteristic, Wherein, the default beauty parameter is beauty parameter corresponding with the first expressive features data.
Optionally, as another embodiment, processor 501 is also used to: by the first expressive features data and institute It states after the default expression characteristic in expressive features database matched, obtains the first expressive features data and institute State the matching degree between default expression characteristic;Getting the default expression to match with the first expressive features data After characteristic, when the matching degree is greater than or equal to a preset threshold, into according in the expressive features database The corresponding relationship between beauty parameter is preset in default expression characteristic and the beauty parameter database, obtain with it is described pre- If the step of expressive features data corresponding default beauty parameter;It, will be described when the matching degree is less than the preset threshold Facial image is uploaded to server, and receives the first expressive features obtained according to the facial image that the server is sent Data and beauty parameter corresponding with the first expressive features data.
Optionally, as another embodiment, the beauty parameter includes the skin brightness of facial image, processor 501 Be also used to: when corresponding first expression of the first expressive features data, the skin brightness is greater than or equal to predetermined luminance;When When the first expressive features data correspond to the second expression, the skin brightness is less than the predetermined luminance.
Optionally, as another embodiment, the beauty parameter includes exposure when taking pictures, and processor 501 is also used In: when corresponding first expression of the first expressive features data, the exposure is greater than or equal to default exposure;When described When first expressive features data correspond to the second expression, the exposure is less than the default exposure.
Terminal 500 can be realized each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating It states.
The terminal provided in the above embodiment of the present invention, by obtaining the facial image of terminal camera preview, and root According to the facial image of acquisition, the first expressive features data are obtained, then according to the first expressive features data of acquisition, are obtained and the The corresponding beauty parameter of one expressive features data, finally takes pictures according to the beauty parameter of acquisition, allows to according to user Facial expression select corresponding beauty Yan Xiaoguo to solve so that the effect picture of various expressions can be taken when taking pictures Not abundant enough the problem of Shi Meiyan effect of taking pictures in the prior art, improves user experience.
5th embodiment:
Fig. 6 indicates the structural block diagram of terminal in the fifth embodiment of the present invention.Specifically, the terminal 600 in Fig. 6 can be Mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Terminal 600 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input unit 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) module 680, power supply 690. Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generates and set with the user of terminal 600 It sets and the related signal of function control inputs.Specifically, in the embodiment of the present invention, which may include touch-control Panel 631.Touch panel 631, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 631), and according to preset formula Drive corresponding attachment device.Optionally, touch panel 631 may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives at this Device 660 is managed, and order that processor 660 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared The multiple types such as line and surface acoustic wave realize touch panel 631.In addition to touch panel 631, input unit 630 can also include Other input equipments 632, other input equipments 632 can include but is not limited to physical keyboard, function key (for example press by volume control Key, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 640 can be used for showing information input by user or be supplied to the information and terminal of user 600 various menu interfaces.Display unit 640 may include display panel 641, optionally, can use LCD or organic light emission two The forms such as pole pipe (OrganicLight-EmittingDiode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 660 is sent to determine the type of touch event, is followed by subsequent processing device 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein, processor 660 is the control centre of terminal 600, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in first memory 621, and is called and is stored in Data in second memory 622 execute the various functions and processing data of terminal 600, to carry out whole prison to terminal 600 Control.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, wherein include setup module and configuration file in first memory 621.Processor 660 are used for: obtaining the facial image of terminal camera preview;According to the facial image, the first expressive features data are obtained;Root According to the first expressive features data of acquisition, beauty parameter corresponding with the first expressive features data is obtained;According to institute Beauty parameter is stated to take pictures.
Optionally, processor 660 is also used to: directly according to the facial image, extracting the first expressive features data;Or The facial image is periodically uploaded to server by person, and receive that the server sends according to the facial image The first obtained expressive features data.
Optionally, as another embodiment, processor 660 is also used to: according to the first expressive features number of acquisition Accordingly and preset expressive features database and beauty parameter database, beauty corresponding with the first expressive features data is obtained Face parameter.
Optionally, as another embodiment, processor 660 is also used to: by the first expressive features data with it is described Default expression characteristic in expressive features database is matched, and is got and is matched with the first expressive features data Default expression characteristic;According to default expression characteristic and the beauty parameter data in the expressive features database The corresponding relationship between beauty parameter is preset in library, obtains default beauty parameter corresponding with the default expression characteristic, Wherein, the default beauty parameter is beauty parameter corresponding with the first expressive features data.
Optionally, as another embodiment, processor 660 is also used to: by the first expressive features data and institute It states after the default expression characteristic in expressive features database matched, obtains the first expressive features data and institute The matching degree between default expression characteristic is stated, and is getting the preset table to match with the first expressive features data After feelings characteristic, when the matching degree is greater than or equal to a preset threshold, into according to the expressive features database In preset the corresponding relationship preset between beauty parameter in expression characteristic and the beauty parameter database, obtain with it is described The step of default expression characteristic corresponding default beauty parameter;When the matching degree is less than the preset threshold, by institute It states facial image and is uploaded to server, and it is special to receive the first expression obtained according to the facial image that the server is sent Levy data and beauty parameter corresponding with the first expressive features data.
Optionally, as another embodiment, the beauty parameter includes the skin brightness of facial image, processor 660 Be also used to: when corresponding first expression of the first expressive features data, the skin brightness is greater than or equal to predetermined luminance;When When the first expressive features data correspond to the second expression, the skin brightness is less than the predetermined luminance.
Optionally, the beauty parameter includes exposure when taking pictures, and as another embodiment, processor 660 is also used In: when corresponding first expression of the first expressive features data, the exposure is greater than or equal to default exposure;When described When first expressive features data correspond to the second expression, the exposure is less than the default exposure.
The terminal provided in the above embodiment of the present invention, by obtaining the facial image of terminal camera preview, and root According to the facial image of acquisition, the first expressive features data are obtained, then according to the first expressive features data of acquisition, are obtained and the The corresponding beauty parameter of one expressive features data, finally takes pictures according to the beauty parameter of acquisition, enables the terminal to basis The facial expression of user selects corresponding beauty parameter, so that can take various expressions when taking pictures according to beauty parameter Effect picture, the Shi Meiyan effect that solves the problems, such as to take pictures in the prior art is not abundant enough, so that the U.S. face effect of user is more It is abundant, improve user experience.
Terminal 600 can be realized each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating It states.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of method taken pictures, which is characterized in that the described method includes:
Obtain the facial image of mobile terminal camera preview;
According to the facial image, the first expressive features data are obtained;
According to the first expressive features data of acquisition, beauty parameter corresponding with the first expressive features data is obtained;
It is taken pictures according to the beauty parameter;
The beauty parameter includes the skin brightness of facial image, and the first expressive features data according to acquisition obtain The step of taking beauty parameter corresponding with the first expressive features data include:
When corresponding first expression of the first expressive features data, the skin brightness is greater than or equal to predetermined luminance;
When corresponding second expression of the first expressive features data, the skin brightness is less than the predetermined luminance;
The first expressive features data according to acquisition obtain U.S. face ginseng corresponding with the first expressive features data Several steps include:
According to the first expressive features data of acquisition and preset expressive features database and beauty parameter database, obtain Take beauty parameter corresponding with the first expressive features data.
2. the first expression of acquisition is special the method according to claim 1, wherein described according to the facial image Levy data the step of include:
Mobile terminal directly according to the facial image, extracts the first expressive features data;Alternatively,
The facial image is periodically uploaded to server by mobile terminal, and receive that the server sends according to The first expressive features data that facial image obtains.
3. the method according to claim 1, wherein the first expressive features data according to acquisition with And preset expressive features database and beauty parameter database, acquisition U.S. face corresponding with the first expressive features data are joined Several steps include:
The first expressive features data are matched with the default expression characteristic in the expressive features database, are obtained Get the default expression characteristic to match with the first expressive features data;
U.S. face ginseng is preset in expression characteristic and the beauty parameter database according to presetting in the expressive features database Corresponding relationship between number obtains default beauty parameter corresponding with the default expression characteristic, wherein the default beauty Face parameter is beauty parameter corresponding with the first expressive features data.
4. according to the method described in claim 3, it is characterized in that, described by the first expressive features data and the expression After default expression characteristic in property data base is matched, which comprises
Obtain the matching degree between the first expressive features data and the default expression characteristic;
It is described get the default expression characteristic to match with the first expressive features data after, further comprise:
When the matching degree is greater than or equal to a preset threshold, into according to expression spy default in the expressive features database The corresponding relationship preset between beauty parameter in data and the beauty parameter database is levied, is obtained and the default expressive features The step of data corresponding default beauty parameter;
When the matching degree is less than the preset threshold, the facial image is uploaded to server, and receive the service The the first expressive features data obtained according to the facial image and corresponding with the first expressive features data that device is sent Beauty parameter.
5. described the method according to claim 1, wherein the beauty parameter includes exposure when taking pictures According to the first expressive features data of acquisition, the step of obtaining beauty parameter corresponding with the first expressive features data Include:
When corresponding first expression of the first expressive features data, the exposure is greater than or equal to default exposure;
When corresponding second expression of the first expressive features data, the exposure is less than the default exposure.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First obtains module, for obtaining the facial image of mobile terminal camera preview;
Second obtains module, for obtaining the facial image that module obtains according to described first, obtains the first expressive features Data;
Third obtains module, for obtaining the first expressive features data that module obtains, acquisition and institute according to described second State the corresponding beauty parameter of the first expressive features data;
Photo module is taken pictures for obtaining the beauty parameter that module obtains according to the third;
The beauty parameter includes the skin brightness of facial image;
The third obtains module and is used for: when corresponding first expression of the first expressive features data, the colour of skin of acquisition Brightness is greater than or equal to predetermined luminance;When corresponding second expression of the first expressive features data, the colour of skin of acquisition is bright Degree is less than the predetermined luminance;
The third obtains module and is used for, according to the first expressive features data and preset expressive features data of acquisition Library and beauty parameter database obtain beauty parameter corresponding with the first expressive features data.
7. mobile terminal according to claim 6, which is characterized in that described second, which obtains module, includes:
First acquisition unit, for directly according to the facial image, extracting the first expressive features data;Alternatively,
Second acquisition unit for the facial image to be periodically uploaded to server, and receives the server and sends The the first expressive features data obtained according to the facial image.
8. mobile terminal according to claim 6, which is characterized in that the third obtains module and includes:
Matching unit, for by the default expression characteristic in the first expressive features data and the expressive features database According to being matched, the default expression characteristic to match with the first expressive features data is got;
Third acquiring unit, for according to default expression characteristic and the beauty parameter number in the expressive features database According to the corresponding relationship preset between beauty parameter in library, default U.S. face ginseng corresponding with the default expression characteristic is obtained Number, wherein the default beauty parameter is beauty parameter corresponding with the first expressive features data.
9. mobile terminal according to claim 8, which is characterized in that the matching unit is also used to:
The matching degree between the first expressive features data and the default expression characteristic is obtained, and for getting After the default expression characteristic to match with the first expressive features data, when the matching degree is greater than or equal to one in advance If when threshold value, triggering the third acquiring unit;
It further includes transmitting and receiving unit that the third, which obtains module, is used for when the matching degree is less than the preset threshold, The facial image is uploaded to server, and receives the first table obtained according to the facial image that the server is sent Feelings characteristic and beauty parameter corresponding with the first expressive features data.
10. mobile terminal according to claim 6, which is characterized in that
The beauty parameter includes exposure when taking pictures;
The third obtains module and is used for: when corresponding first expression of the first expressive features data, the exposure is greater than Or it is equal to default exposure;When corresponding second expression of the first expressive features data, the exposure is less than described default Exposure.
CN201610362789.4A 2016-05-26 2016-05-26 A kind of method and terminal taken pictures Active CN106056533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610362789.4A CN106056533B (en) 2016-05-26 2016-05-26 A kind of method and terminal taken pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610362789.4A CN106056533B (en) 2016-05-26 2016-05-26 A kind of method and terminal taken pictures

Publications (2)

Publication Number Publication Date
CN106056533A CN106056533A (en) 2016-10-26
CN106056533B true CN106056533B (en) 2019-08-20

Family

ID=57176090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610362789.4A Active CN106056533B (en) 2016-05-26 2016-05-26 A kind of method and terminal taken pictures

Country Status (1)

Country Link
CN (1) CN106056533B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809637A (en) * 2016-02-29 2016-07-27 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN107369142A (en) * 2017-06-29 2017-11-21 北京小米移动软件有限公司 Image processing method and device
CN107424117B (en) * 2017-07-17 2021-03-30 Oppo广东移动通信有限公司 Image beautifying method and device, computer readable storage medium and computer equipment
CN107592457B (en) * 2017-09-08 2020-05-15 维沃移动通信有限公司 Beautifying method and mobile terminal
CN107657652A (en) * 2017-09-11 2018-02-02 广东欧珀移动通信有限公司 Image processing method and device
CN107705356A (en) * 2017-09-11 2018-02-16 广东欧珀移动通信有限公司 Image processing method and device
CN107832784B (en) * 2017-10-27 2021-04-30 维沃移动通信有限公司 Image beautifying method and mobile terminal
CN107995415A (en) * 2017-11-09 2018-05-04 深圳市金立通信设备有限公司 A kind of image processing method, terminal and computer-readable medium
CN108537749B (en) * 2018-03-29 2021-05-11 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and computer readable storage medium
CN108683841B (en) * 2018-04-13 2021-02-19 维沃移动通信有限公司 Image processing method and mobile terminal
CN108765264B (en) * 2018-05-21 2022-05-20 深圳市梦网科技发展有限公司 Image beautifying method, device, equipment and storage medium
CN111771372A (en) * 2018-12-21 2020-10-13 华为技术有限公司 Method and device for determining camera shooting parameters
CN110390704B (en) * 2019-07-11 2021-02-12 深圳追一科技有限公司 Image processing method, image processing device, terminal equipment and storage medium
CN110765969A (en) * 2019-10-30 2020-02-07 珠海格力电器股份有限公司 Photographing method and system
CN111445417B (en) * 2020-03-31 2023-12-19 维沃移动通信有限公司 Image processing method, device, electronic equipment and medium
CN116347220B (en) * 2023-05-29 2023-07-21 合肥工业大学 Portrait shooting method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013029097A2 (en) * 2011-08-30 2013-03-07 Monash University System and method for processing sensor data for the visually impaired
CN104144289A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Photographing method and device
CN104751408A (en) * 2015-03-26 2015-07-01 广东欧珀移动通信有限公司 Face image adjusting method and device
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013029097A2 (en) * 2011-08-30 2013-03-07 Monash University System and method for processing sensor data for the visually impaired
CN104144289A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Photographing method and device
CN104751408A (en) * 2015-03-26 2015-07-01 广东欧珀移动通信有限公司 Face image adjusting method and device
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Also Published As

Publication number Publication date
CN106056533A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106056533B (en) A kind of method and terminal taken pictures
US11128802B2 (en) Photographing method and mobile terminal
CN106791400B (en) A kind of image display method and mobile terminal
CN105872148B (en) A kind of generation method and mobile terminal of high dynamic range images
CN106020613B (en) A kind of operating method and mobile terminal of unread message
CN105959553B (en) A kind of switching method and terminal of camera
CN105827971B (en) A kind of image processing method and mobile terminal
CN106506960B (en) A kind of processing method and mobile terminal of image data
CN106657793B (en) A kind of image processing method and mobile terminal
CN106777329B (en) A kind of processing method and mobile terminal of image information
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN106952235B (en) A kind of image processing method and mobile terminal
CN106780685B (en) A kind of generation method and terminal of dynamic picture
CN106937054B (en) A kind of take pictures weakening method and the mobile terminal of mobile terminal
CN106648382B (en) A kind of picture browsing method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106993139B (en) A kind of image pickup method and mobile terminal
JP2016500175A (en) Method and apparatus for realizing floating object
CN106855744B (en) A kind of screen display method and mobile terminal
CN107610042B (en) A kind of image beautification method and mobile terminal
CN104850432A (en) Method and device for adjusting color
CN104965452B (en) Intelligent socket on off state display methods and device, intelligent terminal and server
CN106408628B (en) A kind of image processing method and device
CN107395978A (en) The control method and mobile terminal of a kind of camera module
CN107346332A (en) A kind of image processing method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant