CN107580184B - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN107580184B
CN107580184B CN201711046335.7A CN201711046335A CN107580184B CN 107580184 B CN107580184 B CN 107580184B CN 201711046335 A CN201711046335 A CN 201711046335A CN 107580184 B CN107580184 B CN 107580184B
Authority
CN
China
Prior art keywords
value
brightness
exposure
ratio
scene information
Prior art date
Application number
CN201711046335.7A
Other languages
Chinese (zh)
Other versions
CN107580184A (en
Inventor
刘小东
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to CN201711046335.7A priority Critical patent/CN107580184B/en
Publication of CN107580184A publication Critical patent/CN107580184A/en
Application granted granted Critical
Publication of CN107580184B publication Critical patent/CN107580184B/en

Links

Abstract

The present invention provides a kind of image pickup method and mobile terminal, this method comprises: whether there is face information in the preview image of detection shooting preview interface output;If detecting, there are face informations in the preview image, obtain current scene information;The current scene information is compared with pre-stored scene information;If being not present and the matched scene information of the current scene information in pre-stored scene information, it is determined that target light exposure adjusted value;According to the target light exposure adjusted value, exposure parameter is adjusted.In this way, if there are face informations in preview image, and if in pre-stored scene information there is no with the matched scene information of current scene information, can determine target light exposure adjusted value.And according to target light exposure adjusted value, adjust exposure parameter.It ensure that the consistency of the brightness of captured picture.

Description

A kind of image pickup method and mobile terminal

Technical field

The present invention relates to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.

Background technique

When shooting photo, photosensitive core can be controlled by automatic exposure (Automatic Exposure, AE) algorithm The exposure of piece (SENSOR), and then obtain the qualified picture of brightness.In the prior art, different terminals has The photonasty of SENSOR has differences.Under Same Scene, if shot using identical AE parameter, figure obtained The brightness of piece can be inconsistent.And for the SENSOR of the same terminal, the difference of external environment brightness can also make through AE algorithm The calculated result of institute causes the brightness of the captured picture out under different scenes inconsistent there are deviation.Therefore, existing skill In art, the luminance difference of captured picture is larger.

Summary of the invention

The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve in the prior art, captured picture The larger problem of luminance difference.

In order to solve the above-mentioned technical problem, the present invention is implemented as follows: a kind of image pickup method, comprising:

It detects and whether there is face information in the preview image of shooting preview interface output;

If detecting, there are face informations in the preview image, obtain current scene information;

The current scene information is compared with pre-stored scene information;

If being not present and the matched scene information of the current scene information in pre-stored scene information, it is determined that mesh Mark exposure adjusted value;

According to the target light exposure adjusted value, exposure parameter is adjusted.

In a first aspect, the embodiment of the invention provides a kind of image pickup methods, comprising:

It detects and whether there is face information in the preview image of shooting preview interface output;

If detecting, there are face informations in the preview image, obtain current scene information;

The current scene information is compared with pre-stored scene information;

If being not present and the matched scene information of the current scene information in pre-stored scene information, it is determined that mesh Mark exposure adjusted value;

According to the target light exposure adjusted value, exposure parameter is adjusted.

Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, comprising:

First detection module, for detecting in the preview image that shooting preview interface exports with the presence or absence of face information;

First obtains module, if there are face informations in the preview image for detecting, obtains current scene letter Breath;

Comparison module, for the current scene information to be compared with pre-stored scene information;

First determining module, if for there is no matched with the current scene information in pre-stored scene information Scene information, it is determined that target light exposure adjusted value;

Module is adjusted, for adjusting exposure parameter according to the target light exposure adjusted value.

The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, which is characterized in that including processor, memory And it is stored in the computer program that can be run on the memory and on the processor, the computer program is by the place The step of reason device realizes above-mentioned image pickup method when executing.

Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable storage medium, which is characterized in that the meter Computer program is stored on calculation machine read/write memory medium, the computer program realizes above-mentioned shooting when being executed by processor The step of method.

In embodiments of the present invention, by believing in the preview image of detection shooting preview interface output with the presence or absence of face Breath;If detecting, there are face informations in the preview image, obtain current scene information;By the current scene information with Pre-stored scene information is compared;If there is no match with the current scene information in pre-stored scene information Scene information, it is determined that target light exposure adjusted value;According to the target light exposure adjusted value, exposure parameter is adjusted.In this way, if There are face informations in preview image, and if are not present and the matched field of current scene information in pre-stored scene information Scape information can then determine target light exposure adjusted value.And according to target light exposure adjusted value, adjust exposure parameter.It ensure that institute The consistency of the brightness of the picture of shooting.

Detailed description of the invention

Fig. 1 is one of the flow chart of image pickup method provided in an embodiment of the present invention;

Fig. 2 is the schematic diagram provided in an embodiment of the present invention for showing at least one operating space on the screen of the mobile terminal;

Fig. 3 is the two of the flow chart of image pickup method provided in an embodiment of the present invention;

Fig. 4 is the three of the flow chart of image pickup method provided in an embodiment of the present invention;

Fig. 5 is one of the structure chart of mobile terminal provided in an embodiment of the present invention;

Fig. 6 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;

Fig. 7 is the three of the structure chart of mobile terminal provided in an embodiment of the present invention;

Fig. 8 is the four of the structure chart of mobile terminal provided in an embodiment of the present invention;

Fig. 9 is the five of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 10 is the six of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 11 is the seven of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 12 is the eight of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 13 is the nine of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 14 is the ten of the structure chart of mobile terminal provided in an embodiment of the present invention;

Figure 15 is the 11 of the structure chart of mobile terminal provided in an embodiment of the present invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.

It is a kind of flow chart of image pickup method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1.As shown in Figure 1, include with Lower step:

It whether there is face information in the preview image that step 101, detection shooting preview interface export.

In a step 101, after the camera function for opening mobile terminal, it can detecte the preview of shooting preview interface output It whether there is face information in image.If face information is not present in preview image, exposure can be calculated by AE algorithm Optical parameter value.When receiving photographing instruction, so that it may be exposed according to calculated exposure parameter values, and then obtain figure of taking pictures Picture.

If step 102 detects that there are face informations in the preview image, obtain current scene information.

In a step 102, if detecting that there are face information, available current scene informations in preview image. Above-mentioned current scene information may include present intensity value, current color temperature value, current face position and the face of preview image Ratio between regional luminance and background area brightness.

It should be noted that when, there are when multiple human face regions, above-mentioned ratio can be owner's face area in preview image Ratio between the brightness summation and background area brightness in domain, i.e., above-mentioned ratio can for owner's face region brightness summation with The ratio of the brightness in other regions in preview image in addition to human face region.And current face position is all in preview image In human face region, determined by the position coordinates of the human face region of the position coordinates and last cell of the human face region in the most upper left corner Rectangular area.

Scene information and exposure parameter corresponding with the scene information of storage are stored in the database of mobile terminal Value.Wherein, the scene information stored in the database of mobile terminal is pre-stored scene information.It is stored in database The hierarchical format of scene information is as follows: between color temperature value, the brightness value of image, the brightness of human face region and background area brightness The ratio of the brightness in other regions in ratio, the i.e. brightness of human face region and preview image in addition to human face region and preview Human face region position in image.

The current scene information is compared step 103 with pre-stored scene information.

In step 103, current scene information can be compared with the scene information being stored in database profession Current scene information to be compared with pre-stored scene information.Current scene information and pre-stored scene information When matching, available exposure parameter values corresponding with pre-stored scene information.

When current scene information is compared with pre-stored scene information, can first it be compared since color temperature value. For example, it is assumed that the colour temperature of current scene is 4000k, then the number of 4000k ± N can be searched using the method tabled look-up in the database According to, wherein N indicates the range of tolerable variance tabled look-up, and can be configured according to different situations.For example, if the variation of colour temperature with Integer is measured, then N can be set as 10,20 or 100 etc. according to demand.Next, can be successively by preview image Present intensity value be compared with pre-stored brightness value;It will be between current face's regional luminance and background area brightness Ratio is compared with pre-stored human face region brightness with the ratio between the brightness of background area, wherein brightness value ratio For decimal, 0.01,0.05 or 0.1 etc. can be set by the range of tolerable variance of brightness value ratio tabled look-up;By current face Position is compared with pre-stored face location.

If current color temperature value matches with pre-stored color temperature value, the present intensity value of preview image be stored in advance Brightness value match, the ratio between current face's regional luminance and background area brightness and pre-stored human face region it is bright Ratio between degree and background area brightness matches and current face position matches with pre-stored face location, then may be used To obtain exposure parameter values corresponding with pre-stored scene information, and the exposure parameter values can be transmitted to AE algorithm.It can Being arranged the exposure parameter values into the driving of SENSOR, and then exposure is completed, obtains image of taking pictures.

If current scene information matches with pre-stored scene information, can directly acquire and pre-stored field The corresponding exposure parameter values of scape information, and then complete exposure.It does not need to adjust exposure parameter again, it is convenient and efficient.

If in step 104, pre-stored scene information there is no with the matched scene information of the current scene information, Then determine target light exposure adjusted value.

At step 104, if there is no believe with the matched scene of current scene information in pre-stored scene information Breath, then can determine target light exposure adjusted value.

Determine target light exposure adjusted value mode can there are two types of, explain first way first here.It can first obtain First luminance mean value of human face region in preview image, and obtain the second luminance mean value of the background area in preview image. Then the brightness ratio Cur_Y between the first luminance mean value and the second luminance mean value can be calculated.And then it can will be calculated Brightness ratio be compared with preset target ratio, obtain comparison result.Next, can be determined according to comparison result Target light exposure adjusted value.Target light exposure adjusted value may include exposure gain increment value and time for exposure increment value;Alternatively, mesh Mark exposure adjusted value may include exposure gain decreasing value and time for exposure decreasing value.

It should be noted that pre-stored brightness ratio can be determined as target ratio;Or user provides Select interface, the reference picture of available user selection, and by the luminance mean value and background of the human face region in reference picture Ratio between the luminance mean value in region is determined as target ratio.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Equal to target ratio, alternatively, the deviation of the two is within the scope of ± 0.1, then available current exposure parameter.And it can incite somebody to action Ratio between current exposure parameter, present intensity value, current color temperature value, human face region brightness and background area brightness and current Face location is associated storage.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Less than target ratio, then exposure gain increment value and time for exposure increment value can be determined.Increase exposure gain value and exposure After light time value, if the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value is still again So it is less than target ratio, then can increases exposure gain value and exposure time values again.So circulation is gone down, until calculating The first luminance mean value and the second luminance mean value between brightness ratio Cur_Y and until target ratio matches.It can be by Exposure parameter when brightness ratio Cur_Y and target ratio between one luminance mean value and the second luminance mean value match is as most Whole exposure parameter.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Greater than target ratio, then exposure gain decreasing value and time for exposure decreasing value can be determined.

After reducing exposure gain value and exposure time values, if calculated first luminance mean value and second bright again Target ratio is still greater than in brightness ratio Cur_Y between degree mean value, then when can reduce exposure gain value and exposure again Between be worth.So circulation is gone down, until between calculated first luminance mean value and the second luminance mean value brightness ratio Cur_Y with Until target ratio matches.It can be by the brightness ratio Cur_Y and target between the first luminance mean value and the second luminance mean value Exposure parameter when ratio matches is as final exposure parameter.

It should be noted that the brightness value of a photo depends primarily on the time for exposure (also referred to as aperture time) of SENSOR With corresponding exposure gain value.The brightness value of photo can be increased by increasing time for exposure or exposure gain value, it is on the contrary then can Reduce the brightness value of photo.Each SENSOR can establish an exposure parameter table, the exposure parameter during debugging effect Table is from secretly having recorded the SENSOR corresponding time for exposure and exposure gain value to bright.A pair of of time for exposure and exposure gain value are It is one group of exposure parameter values, has also corresponded to a brightness value, and the index value of a corresponding exposure parameter.It has been determined that needs reach After the brightness value arrived, it can be searched in pre-stored exposure parameter table and differ the smallest bright with brightness value to be achieved is needed Angle value, and determine the index value that the corresponding exposure parameter of the smallest brightness value is differed with need brightness value to be achieved.Finally, can Using by exposure parameter values corresponding with the index value of determining exposure parameter as final exposure parameter values.

Here the second way of determining target light exposure adjusted value is explained again.At least one operating space can be set In shooting preview interface, to show at least one operating space.As shown in Fig. 2, to show on the screen of the mobile terminal at least The schematic diagram of one operating space.

In Fig. 2, the content of each operating space response is consistent, and user can select which is used according to the habit of oneself Operating space.For example, when one hand is taken pictures, the finger of user can be clicked in screen if user gets used to clicking in the middle part of screen The operating space in curtain middle position.

Mobile terminal can detecte the pressing operation of any one operating space of the user at least one operating space.If inspection Pressing operation is measured, then the pressure rating of available above-mentioned pressing operation and pressing duration.Next, can be according to pressure etc. Grade and pressing duration, determine target light exposure adjusted value.

Further, the adjustment direction of exposure parameter can be determined according to pressure rating;It can be according to pressing duration, really Determine the adjustment amplitude of exposure parameter.Finally, target light exposure adjusted value can be determined according to adjustment direction and adjustment amplitude.Wherein, Exposure parameter includes exposure gain and time for exposure.

For example, can determine the adjustment direction of exposure parameter when the pressure rating of above-mentioned pressing operation is more than preset threshold For the direction of increase;When the pressure rating of above-mentioned pressing operation is less than preset threshold, the adjustment direction of exposure parameter can be determined For reduced direction.

It can be corresponding according to the pressing duration, pre-stored reference duration and pre-stored reference duration that get Benchmark exposure parameter adjust amplitude, calculate the adjustment amplitude of the corresponding exposure parameter of pressing duration got.For example, if A length of t1 when pre-stored reference, and the corresponding benchmark exposure parameter adjustment amplitude of pre-stored reference duration t1 is 1, then Pressing duration continues to that exposure parameter adjustment amplitude when t2 is t2/t1.Next, can according to current exposure parameter value and It presses the corresponding exposure parameter of duration and adjusts amplitude, calculate final exposure parameter values.

Brightness of image can be adjusted flexibly in user according to their needs, enhance interactivity.And by being shown on screen Operating space control the variation of brightness of image, it is convenient and efficient.

Step 105, according to the target light exposure adjusted value, adjust exposure parameter.

In step 105, it is determined that after target light exposure adjusted value, so that it may exposure is adjusted according to target light exposure adjusted value Optical parameter.

In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..

The image pickup method of the embodiment of the present invention.It detects in the preview image of shooting preview interface output and believes with the presence or absence of face Breath;If detecting, there are face informations in the preview image, obtain current scene information;By the current scene information with Pre-stored scene information is compared;If there is no match with the current scene information in pre-stored scene information Scene information, it is determined that target light exposure adjusted value;According to the target light exposure adjusted value, exposure parameter is adjusted.In this way, if There are face informations in preview image, and if are not present and the matched field of current scene information in pre-stored scene information Scape information can then determine target light exposure adjusted value.And according to target light exposure adjusted value, adjust exposure parameter.It ensure that institute The consistency of the brightness of the picture of shooting.

It is the flow chart of another image pickup method provided in an embodiment of the present invention referring to Fig. 3, Fig. 3.The present embodiment with it is previous The difference of a embodiment is to illustrate by by the second brightness of the first luminance mean value of human face region and background area Brightness ratio between mean value is compared with preset target ratio, obtains comparison result.And then according to comparison result, determine The process of target light exposure adjusted value.As shown in Figure 3, comprising the following steps:

It whether there is face information in the preview image that step 301, detection shooting preview interface export.

In step 301, after the camera function for opening mobile terminal, it can detecte the preview of shooting preview interface output It whether there is face information in image.If face information is not present in preview image, exposure can be calculated by AE algorithm Optical parameter value.When receiving photographing instruction, so that it may be exposed according to calculated exposure parameter values, and then obtain figure of taking pictures Picture.

If step 302 detects that there are face informations in the preview image, obtain current scene information.

In step 302, if detecting that there are face information, available current scene informations in preview image. Above-mentioned current scene information may include present intensity value, current color temperature value, current face position and the face of preview image Ratio between regional luminance and background area brightness.

Scene information and exposure parameter corresponding with the scene information of storage are stored in the database of mobile terminal Value.Wherein, the scene information stored in the database of mobile terminal is pre-stored scene information.It is stored in database The hierarchical format of scene information is as follows: between color temperature value, the brightness value of image, the brightness of human face region and background area brightness The ratio of the brightness in other regions in ratio, the i.e. brightness of human face region and preview image in addition to human face region and preview Human face region position in image.

Optionally, the current scene information includes at least one of the following: the present intensity value, current of the preview image Ratio between color temperature value, current face position, human face region brightness and background area brightness.

As previously mentioned, current scene information may include at least one of following: present intensity value, the current color of preview image Ratio between temperature value, current face position, human face region brightness and background area brightness.

The current scene information is compared step 303 with pre-stored scene information.

In step 303, current scene information can be compared with the scene information being stored in database profession Current scene information to be compared with pre-stored scene information.

Optionally, the current scene information include: the present intensity value of the preview image, it is current color temperature value, current Ratio between face location and human face region brightness and background area brightness;

The step of acquisition current scene information, comprising:

Obtain the preview image present intensity value, current color temperature value, human face region brightness and background area brightness it Between ratio and current face position;

The described the step of current scene information is compared with pre-stored scene information, comprising:

By the ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and work as Preceding face location is successively compared with pre-stored scene information;

If in the pre-stored scene information there is no with the matched scene information of the current scene information, really Set the goal the step of exposing adjusted value, comprising:

If ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and working as There is at least one in preceding face location to mismatch with pre-stored scene information, it is determined that target light exposure adjusted value;

Wherein, the pre-stored scene information include pre-stored brightness value, pre-stored color temperature value, in advance Ratio between the face location of storage and pre-stored human face region brightness and background area brightness.

When current scene information is compared with pre-stored scene information, can first it be compared since color temperature value. For example, it is assumed that the colour temperature of current scene is 4000k, then the number of 4000k ± N can be searched using the method tabled look-up in the database According to, wherein N indicates the range of tolerable variance tabled look-up, and can be configured according to different situations.For example, if the variation of colour temperature with Integer is measured, then N can be set as 10,20 or 100 etc. according to demand.Next, can be successively by preview image Present intensity value be compared with pre-stored brightness value;It will be between current face's regional luminance and background area brightness Ratio is compared with pre-stored human face region brightness with the ratio between the brightness of background area, wherein brightness value ratio For decimal, 0.01,0.05 or 0.1 etc. can be set by the range of tolerable variance of brightness value ratio tabled look-up;By current face Position is compared with pre-stored face location.

If in pre-stored scene information there is no with the matched scene information of current scene information, can determine Target light exposure adjusted value.

If in step 304, pre-stored scene information there is no with the matched scene information of the current scene information, Then obtain the first luminance mean value of human face region in the preview image.

In step 304, if there is no believe with the matched scene of current scene information in pre-stored scene information Breath, then can first obtain the first luminance mean value of human face region in preview image.

Step 305, the second luminance mean value for obtaining background area in the preview image, wherein the background area For all image-regions in the preview image in addition to the human face region.

In step 305, the second luminance mean value of the background area in preview image can also be obtained.Wherein, background area Domain is all image-regions in preview image in addition to human face region.

Brightness ratio between step 306, calculating first luminance mean value and second luminance mean value.

Within step 306, the brightness ratio Cur_Y between the first luminance mean value and the second luminance mean value can be calculated.

Optionally, the brightness ratio is compared described with preset target ratio, obtains the step of comparison result Before rapid, the method also includes:

Pre-stored brightness ratio is determined as target ratio;

Alternatively, obtain user selection reference picture, and by the luminance mean value of the human face region in the reference picture with Ratio between the luminance mean value of background area is determined as target ratio.

It should be noted that pre-stored brightness ratio can be determined as target ratio;Or user provides Select interface, the reference picture of available user selection, and by the luminance mean value and background of the human face region in reference picture Ratio between the luminance mean value in region is determined as target ratio.

The brightness ratio is compared step 307 with preset target ratio, obtains comparison result.

In step 307, the brightness ratio being calculated can be compared with preset target ratio, is compared As a result.

Step 308, according to the comparison result, determine target light exposure adjusted value.

In step 308, target light exposure adjusted value can be determined according to comparison result.

Optionally, described according to the comparison result, the step of determining target light exposure adjusted value, comprising:

If the comparison result indicates that the brightness ratio is less than the target ratio, it is determined that exposure gain increment value And/or time for exposure increment value;

If the comparison result indicates that the brightness ratio is greater than the target ratio, it is determined that exposure gain decreasing value And/or time for exposure decreasing value;

Wherein, the target light exposure adjusted value includes the exposure gain increment value and/or time for exposure increment value;Or Person, the target light exposure adjusted value include the exposure gain decreasing value and/or time for exposure decreasing value.

Target light exposure adjusted value may include exposure gain increment value and time for exposure increment value;Alternatively, target light exposure Adjusted value may include exposure gain decreasing value and time for exposure decreasing value.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Less than target ratio, then exposure gain increment value and time for exposure increment value can be determined.

After increasing exposure gain value and exposure time values, if calculated first luminance mean value and second bright again The brightness ratio Cur_Y between mean value is spent still less than target ratio, then when can increase exposure gain value and exposure again Between be worth.So circulation is gone down, until between calculated first luminance mean value and the second luminance mean value brightness ratio Cur_Y with Until target ratio matches.It can be by the brightness ratio Cur_Y and target between the first luminance mean value and the second luminance mean value Exposure parameter when ratio matches is as final exposure parameter.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Greater than target ratio, then exposure gain decreasing value and time for exposure decreasing value can be determined.

After reducing exposure gain value and exposure time values, if calculated first luminance mean value and second bright again Target ratio is still greater than in brightness ratio Cur_Y between degree mean value, then when can reduce exposure gain value and exposure again Between be worth.So circulation is gone down, until between calculated first luminance mean value and the second luminance mean value brightness ratio Cur_Y with Until target ratio matches.It can be by the brightness ratio Cur_Y and target between the first luminance mean value and the second luminance mean value Exposure parameter when ratio matches is as final exposure parameter.

It should be noted that the brightness value of a photo depends primarily on the time for exposure (also referred to as aperture time) of SENSOR With corresponding exposure gain value.The brightness value of photo can be increased by increasing time for exposure or exposure gain value, it is on the contrary then can Reduce the brightness value of photo.Each SENSOR can establish an exposure parameter table, the exposure parameter during debugging effect Table is from secretly having recorded the SENSOR corresponding time for exposure and exposure gain value to bright.A pair of of time for exposure and exposure gain value are It is one group of exposure parameter values, has also corresponded to a brightness value, and the index value of a corresponding exposure parameter.It has been determined that needs reach After the brightness value arrived, it can be searched in pre-stored exposure parameter table and differ the smallest bright with brightness value to be achieved is needed Angle value, and determine the index value that the corresponding exposure parameter of the smallest brightness value is differed with need brightness value to be achieved.Finally, can Using by exposure parameter values corresponding with the index value of determining exposure parameter as final exposure parameter values.

Optionally, the brightness ratio is compared described with preset target ratio, obtains the step of comparison result After rapid, the method also includes:

If the comparison result indicates that the brightness ratio is equal to the target ratio, current exposure parameter is obtained;

By the current exposure parameter, the present intensity value, the current color temperature value, the human face region brightness and back Ratio and the current face position between scene area brightness are associated storage.

If comparison result indicates the brightness ratio Cur_Y between calculated first luminance mean value and the second luminance mean value Equal to target ratio, alternatively, the deviation of the two is within the scope of ± 0.1, then available current exposure parameter.And it can incite somebody to action Ratio between current exposure parameter, present intensity value, current color temperature value, human face region brightness and background area brightness and current Face location is associated storage.

It will be between current exposure parameter, present intensity value, current color temperature value, human face region brightness and background area brightness Ratio and current face position are associated and store, and when user, which reuses camera, to take pictures, above-mentioned data can With the exposure parameter for judging whether to have suitable current scene.If it is judged that there is the exposure ginseng for being suitble to current scene Number, can call directly, convenient and efficient.

Step 309, according to the target light exposure adjusted value, adjust exposure parameter.

In a step 309, it is determined that after target light exposure adjusted value, so that it may exposure is adjusted according to target light exposure adjusted value Optical parameter.

Step 3010, locking current exposure parameter.

In step 3010, mobile terminal can lock current exposure parameter.

Step 3011, according to the current exposure parameter, take pictures, generate photo.

In step 3011, mobile terminal can take pictures according to current exposure parameter, and then generate photo.Move Dynamic terminal can complete in the driving of current exposure parameter setting to SENSOR exposure, finally obtain photo.

The image pickup method of the embodiment of the present invention.It detects in the preview image of shooting preview interface output and believes with the presence or absence of face Breath;If detecting, there are face informations in the preview image, obtain current scene information;By the current scene information with Pre-stored scene information is compared;If there is no match with the current scene information in pre-stored scene information Scene information, then obtain the first luminance mean value of human face region in the preview image;Obtain the back in the preview image Second luminance mean value of scene area, wherein the background area is the institute in the preview image in addition to the human face region There is image-region;Calculate the brightness ratio between first luminance mean value and second luminance mean value;By the brightness ratio Value is compared with preset target ratio, obtains comparison result;According to the comparison result, target light exposure adjusted value is determined; According to the target light exposure adjusted value, exposure parameter is adjusted;Lock current exposure parameter;According to the current exposure parameter, into Row is taken pictures, and photo is generated.In this way, if there are face informations in preview image, and if in pre-stored scene information not In the presence of with the matched scene information of current scene information, then can determine target light exposure adjusted value.And according to target light exposure tune Whole value adjusts exposure parameter.It ensure that the consistency of the brightness of captured picture.

Referring to fig. 4, Fig. 4 is the flow chart of another image pickup method provided in an embodiment of the present invention.The present embodiment with it is previous The difference of a embodiment is to illustrate the process for determining target light exposure adjusted value based on the pressing operation detected.Such as figure Shown in 4, comprising the following steps:

It whether there is face information in the preview image that step 401, detection shooting preview interface export.

In step 401, after the camera function for opening mobile terminal, it can detecte the preview of shooting preview interface output It whether there is face information in image.If face information is not present in preview image, exposure can be calculated by AE algorithm Optical parameter value.When receiving photographing instruction, so that it may be exposed according to calculated exposure parameter values, and then obtain figure of taking pictures Picture.

If step 402 detects that there are face informations in the preview image, detecting whether there is in the preview image Effective face.

In step 402, if detected in preview image there are face information, can detecte in preview image whether There are effective faces.

Optionally, the step of whether there is effective face in the detection preview image, comprising:

Detect the position of the face in the preview image;

If detecting the positional shift of the position of the face within a preset period of time within a preset range, described in acquisition The area of face;

If the area of the face is greater than preset threshold, it is determined that there are effective faces in the preview image.

It can detecte the position of the face in preview image.If detecting the position of the position of face within a preset period of time Set offset within a preset range, then the area of available face.If the area of face is greater than preset threshold, can determine There are effective faces in preview image.

Only when the position of face positional shift within a preset period of time within a preset range, and the area of face is greater than Preset threshold just can determine whether that there are effective faces in preview image.The condition of restriction is stringenter, reduces the risk of erroneous judgement.

If step 403 detects in the preview image there are effective face, current scene information is obtained.

In step 403, if detecting that there are effective face, available current scene informations in preview image. Above-mentioned current scene information may include present intensity value, current color temperature value, current face position and the face of preview image Ratio between regional luminance and background area brightness.

Scene information and exposure parameter corresponding with the scene information of storage are stored in the database of mobile terminal Value.Wherein, the scene information stored in the database of mobile terminal is pre-stored scene information.It is stored in database The hierarchical format of scene information is as follows: between color temperature value, the brightness value of image, the brightness of human face region and background area brightness The ratio of the brightness in other regions in ratio, the i.e. brightness of human face region and preview image in addition to human face region and preview Human face region position in image.

The current scene information is compared step 404 with pre-stored scene information.

In step 404, current scene information can be compared with the scene information being stored in database profession Current scene information to be compared with pre-stored scene information.Specific comparison process is in the first two embodiment In carried out detailed elaboration, which is not described herein again.

If in step 405, pre-stored scene information there is no with the matched scene information of the current scene information, In the shooting preview interface, at least one operating space is shown.

In step 405, if there is no believe with the matched scene of current scene information in pre-stored scene information Breath, then can be set at least one operating space, it can in shooting preview interface, show at least one operating space.

The pressing operation of any one operating space of step 406, detection user at least one described operating space.

In a step 406, mobile terminal can detecte any one operating space of the user at least one operating space by Press operation.

If step 407 detects pressing operation, the pressure rating and pressing duration of the pressing operation are obtained.

In step 407, if detecting pressing operation, the pressure rating and pressing of available above-mentioned pressing operation Duration.

Step 408, according to the pressure rating and pressing duration, determine target light exposure adjusted value.

In a step 408, target light exposure adjusted value can be determined according to pressure rating and pressing duration.

Optionally, described according to the pressure rating and pressing duration, the step of determining target light exposure adjusted value, comprising:

According to the pressure rating, the adjustment direction of exposure parameter is determined;

According to the pressing duration, the adjustment amplitude of exposure parameter is determined;

According to the adjustment direction and the adjustment amplitude, target light exposure adjusted value is determined;

Wherein, the exposure parameter includes exposure gain and time for exposure.

The adjustment direction of exposure parameter can be determined according to pressure rating;Exposure parameter can be determined according to pressing duration Adjustment amplitude.Finally, target light exposure adjusted value can be determined according to adjustment direction and adjustment amplitude.Wherein, exposure parameter packet Include exposure gain and time for exposure.

For example, can determine the adjustment direction of exposure parameter when the pressure rating of above-mentioned pressing operation is more than preset threshold For the direction of increase;When the pressure rating of above-mentioned pressing operation is less than preset threshold, the adjustment direction of exposure parameter can be determined For reduced direction.

It can be corresponding according to the pressing duration, pre-stored reference duration and pre-stored reference duration that get Benchmark exposure parameter adjust amplitude, calculate the adjustment amplitude of the corresponding exposure parameter of pressing duration got.For example, if A length of t1 when pre-stored reference, and the corresponding benchmark exposure parameter adjustment amplitude of pre-stored reference duration t1 is 1, then Pressing duration continues to that exposure parameter adjustment amplitude when t2 is t2/t1.Next, can according to current exposure parameter value and It presses the corresponding exposure parameter of duration and adjusts amplitude, calculate final exposure parameter values.

Brightness of image can be adjusted flexibly in user according to their needs, enhance interactivity.And by being shown on screen Operating space control the variation of brightness of image, it is convenient and efficient.

Step 409, according to the target light exposure adjusted value, adjust exposure parameter.

In step 409, it is determined that after target light exposure adjusted value, so that it may exposure is adjusted according to target light exposure adjusted value Optical parameter.

Step 4010, locking current exposure parameter.

In step 4010, mobile terminal can lock current exposure parameter.

Step 4011, according to the current exposure parameter, take pictures, generate photo.

In step 4011, mobile terminal can take pictures according to current exposure parameter, and then generate photo.Move Dynamic terminal can complete in the driving of current exposure parameter setting to SENSOR exposure, finally obtain photo.

The image pickup method of the embodiment of the present invention.It detects in the preview image of shooting preview interface output and believes with the presence or absence of face Breath;If detecting in the preview image there are face information, detect in the preview image with the presence or absence of effective face;If inspection It measures in the preview image there are effective face, then obtains current scene information;By the current scene information with deposit in advance The scene information of storage is compared;If being not present and the matched scene of the current scene information in pre-stored scene information Information shows at least one operating space in the shooting preview interface;User is detected at least one described operating space The pressing operation of any one operating space;If detecting pressing operation, when obtaining the pressure rating and pressing of the pressing operation It is long;According to the pressure rating and pressing duration, target light exposure adjusted value is determined;According to the target light exposure adjusted value, adjustment Exposure parameter;Lock current exposure parameter;It according to the current exposure parameter, takes pictures, generates photo.In this way, if pre- It lookes in image that there are face informations, and if is not present in pre-stored scene information and the matched scene of current scene information Information can then determine target light exposure adjusted value.And according to target light exposure adjusted value, adjust exposure parameter.It ensure that and clapped The consistency of the brightness for the picture taken the photograph.

It is the structure chart that the present invention implements the mobile terminal provided referring to Fig. 5, Fig. 5, as shown in figure 5, mobile terminal 500 wraps It includes first detection module 501, first and obtains module 502, comparison module 503, the first determining module 504 and adjustment module 505, In:

First detection module 501, for detecting in the preview image that shooting preview interface exports with the presence or absence of face information;

First acquisition module 502 obtains current scene if there are face informations in the preview image for detecting Information;

Comparison module 503, for the current scene information to be compared with pre-stored scene information;

First determining module 504, if for being not present and the current scene information in pre-stored scene information The scene information matched, it is determined that target light exposure adjusted value;

Module 505 is adjusted, for adjusting exposure parameter according to the target light exposure adjusted value.

Optionally, the current scene information includes at least one of the following: the present intensity value, current of the preview image Ratio between color temperature value, current face position, human face region brightness and background area brightness.

Optionally, the current scene information include: the present intensity value of the preview image, it is current color temperature value, current Ratio between face location and human face region brightness and background area brightness;

The first acquisition module 502 is specifically used for:

Obtain the preview image present intensity value, current color temperature value, human face region brightness and background area brightness it Between ratio and current face position;

The comparison module 503 is specifically used for:

By the ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and work as Preceding face location is successively compared with pre-stored scene information;

First determining module 504 is specifically used for:

If ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and working as There is at least one in preceding face location to mismatch with pre-stored scene information, it is determined that target light exposure adjusted value;

Wherein, the pre-stored scene information include pre-stored brightness value, pre-stored color temperature value, in advance Ratio between the face location of storage and pre-stored human face region brightness and background area brightness.

Optionally, as shown in fig. 6, first determining module 504 includes:

First acquisition submodule 5041, for obtaining the first luminance mean value of human face region in the preview image;

Second acquisition submodule 5042, for obtaining the second luminance mean value of the background area in the preview image;

Computational submodule 5043, for calculating the brightness ratio between first luminance mean value and second luminance mean value Value;

Submodule 5044 is compared, for the brightness ratio to be compared with preset target ratio, obtains comparing knot Fruit;

First determines submodule 5045, for determining target light exposure adjusted value according to the comparison result;

Wherein, the background area is all image-regions in the preview image in addition to the human face region.

Optionally, as shown in fig. 7, described first determines that submodule 5045 includes:

First determination unit 50451, if indicating that the brightness ratio is less than the target ratio for the comparison result, Then determine exposure gain increment value and/or time for exposure increment value;

Second determination unit 50452, if indicating that the brightness ratio is greater than the target ratio for the comparison result, Then determine exposure gain decreasing value and/or time for exposure decreasing value;

Wherein, the target light exposure adjusted value includes the exposure gain increment value and/or time for exposure increment value;Or Person, the target light exposure adjusted value include the exposure gain decreasing value and/or time for exposure decreasing value.

Optionally, as shown in figure 8, the mobile terminal further include:

Second obtains module 506, if indicating that the brightness ratio is equal to the target ratio for the comparison result, Obtain current exposure parameter;

Relating module 507, for by the current exposure parameter, the present intensity value, the current color temperature value, described Ratio and the current face position between human face region brightness and background area brightness are associated storage.

Optionally, as shown in figure 9, the mobile terminal further include:

Locking module 508, for locking current exposure parameter;

Generation module 509 generates photo for taking pictures according to the current exposure parameter.

Optionally, as shown in Figure 10, the mobile terminal further include:

Second determining module 5010, for pre-stored brightness ratio to be determined as target ratio;

Alternatively, third determining module 5011, for obtaining the reference picture of user's selection, and will be in the reference picture Ratio between the luminance mean value of human face region and the luminance mean value of background area is determined as target ratio.

Optionally, as shown in figure 11, first determining module 504 further include:

Display sub-module 5046, for showing at least one operating space in the shooting preview interface;

First detection sub-module 5047, for detecting any one operating space of the user at least one described operating space Pressing operation;

Third acquisition submodule 5048, if obtaining the pressure rating of the pressing operation for detecting pressing operation With pressing duration;

Second determines submodule 5049, for determining target light exposure adjusted value according to the pressure rating and pressing duration.

Optionally, as shown in figure 12, described second determine that submodule 5049 includes:

Third determination unit 50491, for determining the adjustment direction of exposure parameter according to the pressure rating;

4th determination unit 50492, for determining the adjustment amplitude of exposure parameter according to the pressing duration;

5th determination unit 50493, for determining that target light exposure is adjusted according to the adjustment direction and the adjustment amplitude Value;

Wherein, the exposure parameter includes exposure gain and time for exposure.

Optionally, as shown in figure 13, the mobile terminal further include:

Second detection module 5012, for detecting in the preview image with the presence or absence of effective face;

Execution module 5013 executes the acquisition and works as if there are effective faces in the preview image for detecting The step of preceding scene information.

Optionally, as shown in figure 14, second detection module 5012 includes:

Second detection sub-module 50121, for detecting the position of the face in the preview image;

4th acquisition submodule 50122, if for detecting that the position of the position of the face within a preset period of time is inclined It moves within a preset range, then obtains the area of the face;

Third determines submodule 50123, if the area for the face is greater than preset threshold, it is determined that the preview graph There are effective faces as in.

Mobile terminal 500 can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1, Fig. 3 and Fig. 4, To avoid repeating, which is not described herein again.And if mobile terminal 500 may be implemented in preview image that there are face informations, and such as In the pre-stored scene information of fruit there is no with the matched scene information of current scene information, then can determine target light exposure tune Whole value.And according to target light exposure adjusted value, adjust exposure parameter.It ensure that the consistency of the brightness of captured picture.

A kind of hardware structural diagram of Figure 15 mobile terminal of each embodiment to realize the present invention.

The mobile terminal 1500 includes but is not limited to: radio frequency unit 1501, network module 1502, audio output unit 1503, input unit 1504, sensor 1505, display unit 1506, user input unit 1507, interface unit 1508, storage The components such as device 1509, processor 1510 and power supply 1511.It will be understood by those skilled in the art that being moved shown in Figure 15 Terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, or Combine certain components or different component layouts.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, puts down Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..

Processor 1510, for detecting in the preview image that shooting preview interface exports with the presence or absence of face information;If inspection It measures in the preview image that there are face informations, then obtains current scene information;By the current scene information with deposit in advance The scene information of storage is compared;If being not present and the matched scene of the current scene information in pre-stored scene information Information, it is determined that target light exposure adjusted value;According to the target light exposure adjusted value, exposure parameter is adjusted.

If there are face informations in preview image, and if are not present in pre-stored scene information and current scene The scene information of information matches can then determine target light exposure adjusted value.And according to target light exposure adjusted value, adjustment exposure ginseng Number.It ensure that the consistency of the brightness of captured picture.

It should be understood that the embodiment of the present invention in, radio frequency unit 1501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 1510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 1501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1501 can also by wireless communication system and network and other Equipment communication.

Mobile terminal provides wireless broadband internet by network module 1502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..

Audio output unit 1503 can be received by radio frequency unit 1501 or network module 1502 or in memory The audio data stored in 1509 is converted into audio signal and exports to be sound.Moreover, audio output unit 1503 can be with Audio output relevant to the specific function that mobile terminal 1500 executes is provided (for example, call signal receives sound, message sink Sound etc.).Audio output unit 1503 includes loudspeaker, buzzer and receiver etc..

Input unit 1504 is for receiving audio or video signal.Input unit 1504 may include graphics processor (Graphics Processing Unit, GPU) 15041 and microphone 15042, graphics processor 15041 are captured in video In mode or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into Row processing.Treated, and picture frame may be displayed on display unit 1506.Through treated the picture frame of graphics processor 15041 It can store in memory 1509 (or other storage mediums) or carried out via radio frequency unit 1501 or network module 1502 It sends.Microphone 15042 can receive sound, and can be audio data by such acoustic processing.Audio that treated Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1501 in the case where telephone calling model Formula output.

Mobile terminal 1500 further includes at least one sensor 1505, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 15061, proximity sensor can when mobile terminal 1500 is moved in one's ear, Close display panel 15061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile terminal appearance when static State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Sensor 1505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.

Display unit 1506 is for showing information input by user or being supplied to the information of user.Display unit 1506 can Including display panel 15061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 15061.

User input unit 1507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 1507 include touch panel 15071 with And other input equipments 15072.Touch panel 15071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 15071 or in touch panel Operation near 15071).Touch panel 15071 may include both touch detecting apparatus and touch controller.Wherein, it touches The touch orientation of detection device detection user is touched, and detects touch operation bring signal, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1510, It receives the order that processor 1510 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The multiple types such as sound wave realize touch panel 15071.In addition to touch panel 15071, user input unit 1507 can also include Other input equipments 15072.Specifically, other input equipments 15072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.

Further, touch panel 15071 can be covered on display panel 15061, when touch panel 15071 detects After touch operation on or near it, processor 1510 is sent to determine the type of touch event, is followed by subsequent processing device 1510 Corresponding visual output is provided on display panel 15061 according to the type of touch event.Although in Figure 15, touch panel 15071 and display panel 15061 are the functions that outputs and inputs of realizing mobile terminal as two independent components, but In some embodiments, touch panel 15071 can be integrated with display panel 15061 and realize outputting and inputting for mobile terminal Function, specifically herein without limitation.

Interface unit 1508 is the interface that external device (ED) is connect with mobile terminal 1500.For example, external device (ED) may include Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card Port, port, the port audio input/output (I/O), video i/o port, earphone for connecting the device with identification module Port etc..Interface unit 1508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously And by one or more elements that the input received is transferred in mobile terminal 1500 or it can be used in mobile terminal Data are transmitted between 1500 and external device (ED).

Memory 1509 can be used for storing software program and various data.Memory 1509 can mainly include storage program Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone Such as audio data, phone directory) etc..In addition, memory 1509 may include high-speed random access memory, it can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.

Processor 1510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 1509, and calls and is stored in storage Data in device 1509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 1510 may include one or more processing units;Preferably, processor 1510 can integrate application processor and modulation /demodulation Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1510.

Mobile terminal 1500 can also include the power supply 1511 (such as battery) powered to all parts, it is preferred that power supply 1511 can be logically contiguous by power-supply management system and processor 1510, to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.

In addition, mobile terminal 1500 includes some unshowned functional modules, details are not described herein.

Optionally, processor 1510 is also used to:

The current scene information include at least one of the following: the present intensity value of the preview image, current color temperature value, Ratio between current face position, human face region brightness and background area brightness.

Optionally, processor 1510 is also used to:

The current scene information includes: the present intensity value of the preview image, current color temperature value, current face position Ratio between human face region brightness and background area brightness;

Obtain the preview image present intensity value, current color temperature value, human face region brightness and background area brightness it Between ratio and current face position;

By the ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and work as Preceding face location is successively compared with pre-stored scene information;

If ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and working as There is at least one in preceding face location to mismatch with pre-stored scene information, it is determined that target light exposure adjusted value;

Wherein, the pre-stored scene information include pre-stored brightness value, pre-stored color temperature value, in advance Ratio between the face location of storage and pre-stored human face region brightness and background area brightness.

Optionally, processor 1510 is also used to:

Obtain the first luminance mean value of human face region in the preview image;

Obtain the second luminance mean value of the background area in the preview image;

Calculate the brightness ratio between first luminance mean value and second luminance mean value;

The brightness ratio is compared with preset target ratio, obtains comparison result;

According to the comparison result, target light exposure adjusted value is determined;

Wherein, the background area is all image-regions in the preview image in addition to the human face region.

Optionally, processor 1510 is also used to:

If the comparison result indicates that the brightness ratio is less than the target ratio, it is determined that exposure gain increment value And/or time for exposure increment value;

If the comparison result indicates that the brightness ratio is greater than the target ratio, it is determined that exposure gain decreasing value And/or time for exposure decreasing value;

Wherein, the target light exposure adjusted value includes the exposure gain increment value and/or time for exposure increment value;Or Person, the target light exposure adjusted value include the exposure gain decreasing value and/or time for exposure decreasing value.

Optionally, processor 1510 is also used to:

If the comparison result indicates that the brightness ratio is equal to the target ratio, current exposure parameter is obtained;

By the current exposure parameter, the present intensity value, the current color temperature value, the human face region brightness and back Ratio and the current face position between scene area brightness are associated storage.

Optionally, processor 1510 is also used to:

Lock current exposure parameter;

It according to the current exposure parameter, takes pictures, generates photo.

Optionally, processor 1510 is also used to:

Pre-stored brightness ratio is determined as target ratio;

Alternatively, obtain user selection reference picture, and by the luminance mean value of the human face region in the reference picture with Ratio between the luminance mean value of background area is determined as target ratio.

Optionally, processor 1510 is also used to:

In the shooting preview interface, at least one operating space is shown;

Detect the pressing operation of any one operating space of the user at least one described operating space;

If detecting pressing operation, the pressure rating and pressing duration of the pressing operation are obtained;

According to the pressure rating and pressing duration, target light exposure adjusted value is determined.

Optionally, processor 1510 is also used to:

According to the pressure rating, the adjustment direction of exposure parameter is determined;

According to the pressing duration, the adjustment amplitude of exposure parameter is determined;

According to the adjustment direction and the adjustment amplitude, target light exposure adjusted value is determined;

Wherein, the exposure parameter includes exposure gain and time for exposure.

Optionally, processor 1510 is also used to:

It detects in the preview image with the presence or absence of effective face;

If the step of detecting in the preview image there are effective face, executing the acquisition current scene information.

Optionally, processor 1510 is also used to:

Detect the position of the face in the preview image;

If detecting the positional shift of the position of the face within a preset period of time within a preset range, described in acquisition The area of face;

If the area of the face is greater than preset threshold, it is determined that there are effective faces in the preview image.

Mobile terminal 1500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, this In repeat no more.And if mobile terminal 1500 may be implemented in preview image that there are face informations, and if pre-stored In scene information there is no with the matched scene information of current scene information, then can determine target light exposure adjusted value.And root According to target light exposure adjusted value, exposure parameter is adjusted.It ensure that the consistency of the brightness of captured picture.

Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1510, memory 1509, storage On memory 1509 and the computer program that can run on the processor 1510, the computer program is by processor 1510 Each process of above-mentioned image pickup method embodiment is realized when execution, and can reach identical technical effect, to avoid repeating, here It repeats no more.

The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image pickup method embodiment when being executed by processor, and can reach Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), Magnetic or disk etc..

It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.

The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (22)

1. a kind of image pickup method, which is characterized in that the described method includes:
It detects and whether there is face information in the preview image of shooting preview interface output;
If detecting, there are face informations in the preview image, obtain current scene information;
The current scene information is compared with pre-stored scene information;
If being not present and the matched scene information of the current scene information in pre-stored scene information, it is determined that target exposes Light adjusted value;
According to the target light exposure adjusted value, exposure parameter is adjusted;
The current scene information includes: present intensity value, current color temperature value, current face position and the people of the preview image Ratio between face regional luminance and background area brightness;
The step of acquisition current scene information, comprising:
It obtains between present intensity value, current color temperature value, human face region brightness and the background area brightness of the preview image Ratio and current face position;
The described the step of current scene information is compared with pre-stored scene information, comprising:
By the ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and work as forefathers Face position is successively compared with pre-stored scene information;
If being not present and the matched scene information of the current scene information in the pre-stored scene information, it is determined that mesh The step of mark exposure adjusted value, comprising:
If ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and working as forefathers There is at least one in face position to mismatch with pre-stored scene information, it is determined that target light exposure adjusted value;
Wherein, the pre-stored scene information includes pre-stored brightness value, pre-stored color temperature value, is stored in advance Face location and pre-stored human face region brightness and background area brightness between ratio.
2. the method according to claim 1, wherein the determining target light exposure adjusted value, comprising:
Obtain the first luminance mean value of human face region in the preview image;
Obtain the second luminance mean value of the background area in the preview image;
Calculate the brightness ratio between first luminance mean value and second luminance mean value;
The brightness ratio is compared with preset target ratio, obtains comparison result;
According to the comparison result, target light exposure adjusted value is determined;
Wherein, the background area is all image-regions in the preview image in addition to the human face region.
3. according to the method described in claim 2, determining target light exposure tune it is characterized in that, described according to the comparison result The step of whole value, comprising:
If the comparison result indicates that the brightness ratio is less than the target ratio, it is determined that exposure gain increment value and/or Time for exposure increment value;
If the comparison result indicates that the brightness ratio is greater than the target ratio, it is determined that exposure gain decreasing value and/or Time for exposure decreasing value;
Wherein, the target light exposure adjusted value includes the exposure gain increment value and/or time for exposure increment value;Alternatively, institute Stating target light exposure adjusted value includes the exposure gain decreasing value and/or time for exposure decreasing value.
4. according to the method described in claim 2, it is characterized in that, described by the brightness ratio and preset target ratio After the step of being compared, obtaining comparison result, the method also includes:
If the comparison result indicates that the brightness ratio is equal to the target ratio, current exposure parameter is obtained;
By the current exposure parameter, the present intensity value, the current color temperature value, the human face region brightness and background area Ratio and the current face position between the brightness of domain are associated storage.
5. the method according to claim 1, wherein adjustment exposes described according to the target light exposure adjusted value After the step of optical parameter, the method also includes:
Lock current exposure parameter;
It according to the current exposure parameter, takes pictures, generates photo.
6. according to the method described in claim 2, it is characterized in that, described by the brightness ratio and preset target ratio Before the step of being compared, obtaining comparison result, the method also includes:
Pre-stored brightness ratio is determined as target ratio;
Alternatively, obtaining the reference picture of user's selection, and by the luminance mean value and background of the human face region in the reference picture Ratio between the luminance mean value in region is determined as target ratio.
7. the method according to claim 1, wherein the determining target light exposure adjusted value, comprising:
In the shooting preview interface, at least one operating space is shown;
Detect the pressing operation of any one operating space of the user at least one described operating space;
If detecting pressing operation, the pressure rating and pressing duration of the pressing operation are obtained;
According to the pressure rating and pressing duration, target light exposure adjusted value is determined.
8. the method according to the description of claim 7 is characterized in that described according to the pressure rating and pressing duration, determination The step of target light exposure adjusted value, comprising:
According to the pressure rating, the adjustment direction of exposure parameter is determined;
According to the pressing duration, the adjustment amplitude of exposure parameter is determined;
According to the adjustment direction and the adjustment amplitude, target light exposure adjusted value is determined;
Wherein, the exposure parameter includes exposure gain and time for exposure.
9. the method according to claim 1, wherein before the acquisition current scene information the step of, institute State method further include:
It detects in the preview image with the presence or absence of effective face;
If the step of detecting in the preview image there are effective face, executing the acquisition current scene information.
10. according to the method described in claim 9, it is characterized in that, with the presence or absence of effective in the detection preview image The step of face, comprising:
Detect the position of the face in the preview image;
If detecting the positional shift of the position of the face within a preset period of time within a preset range, the face is obtained Area;
If the area of the face is greater than preset threshold, it is determined that there are effective faces in the preview image.
11. a kind of mobile terminal characterized by comprising
First detection module, for detecting in the preview image that shooting preview interface exports with the presence or absence of face information;
First acquisition module obtains current scene information if there are face informations in the preview image for detecting;
Comparison module, for the current scene information to be compared with pre-stored scene information;
First determining module, if for being not present and the matched scene of the current scene information in pre-stored scene information Information, it is determined that target light exposure adjusted value;
Module is adjusted, for adjusting exposure parameter according to the target light exposure adjusted value;
The current scene information includes: present intensity value, current color temperature value, current face position and the people of the preview image Ratio between face regional luminance and background area brightness;
The first acquisition module is specifically used for:
It obtains between present intensity value, current color temperature value, human face region brightness and the background area brightness of the preview image Ratio and current face position;
The comparison module is specifically used for:
By the ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and work as forefathers Face position is successively compared with pre-stored scene information;
First determining module is specifically used for:
If ratio between the present intensity value, current color temperature value, human face region brightness and background area brightness and working as forefathers There is at least one in face position to mismatch with pre-stored scene information, it is determined that target light exposure adjusted value;
Wherein, the pre-stored scene information includes pre-stored brightness value, pre-stored color temperature value, is stored in advance Face location and pre-stored human face region brightness and background area brightness between ratio.
12. mobile terminal according to claim 11, which is characterized in that first determining module includes:
First acquisition submodule, for obtaining the first luminance mean value of human face region in the preview image;
Second acquisition submodule, for obtaining the second luminance mean value of the background area in the preview image;
Computational submodule, for calculating the brightness ratio between first luminance mean value and second luminance mean value;
It compares submodule and obtains comparison result for the brightness ratio to be compared with preset target ratio;
First determines submodule, for determining target light exposure adjusted value according to the comparison result;
Wherein, the background area is all image-regions in the preview image in addition to the human face region.
13. mobile terminal according to claim 12, which is characterized in that described first determines that submodule includes:
First determination unit, if indicating that the brightness ratio is less than the target ratio for the comparison result, it is determined that expose Gain of light increment value and/or time for exposure increment value;
Second determination unit, if indicating that the brightness ratio is greater than the target ratio for the comparison result, it is determined that expose Gain of light decreasing value and/or time for exposure decreasing value;
Wherein, the target light exposure adjusted value includes the exposure gain increment value and/or time for exposure increment value;Alternatively, institute Stating target light exposure adjusted value includes the exposure gain decreasing value and/or time for exposure decreasing value.
14. mobile terminal according to claim 12, which is characterized in that the mobile terminal further include:
Second obtains module, if indicating that the brightness ratio is equal to the target ratio for the comparison result, acquisition is worked as Prior exposure parameter;
Relating module is used for the current exposure parameter, the present intensity value, the current color temperature value, the face area Ratio and the current face position between domain brightness and background area brightness are associated storage.
15. mobile terminal according to claim 11, which is characterized in that the mobile terminal further include:
Locking module, for locking current exposure parameter;
Generation module generates photo for taking pictures according to the current exposure parameter.
16. mobile terminal according to claim 12, which is characterized in that the mobile terminal further include:
Second determining module, for pre-stored brightness ratio to be determined as target ratio;
Alternatively, third determining module, for obtaining the reference picture of user's selection, and by the human face region in the reference picture Luminance mean value and background area luminance mean value between ratio be determined as target ratio.
17. mobile terminal according to claim 11, which is characterized in that first determining module further include:
Display sub-module, for showing at least one operating space in the shooting preview interface;
First detection sub-module, the pressing for detecting any one operating space of the user at least one described operating space are grasped Make;
Third acquisition submodule, if for detecting pressing operation, when obtaining the pressure rating and pressing of the pressing operation It is long;
Second determines submodule, for determining target light exposure adjusted value according to the pressure rating and pressing duration.
18. mobile terminal according to claim 17, which is characterized in that described second determines that submodule includes:
Third determination unit, for determining the adjustment direction of exposure parameter according to the pressure rating;
4th determination unit, for determining the adjustment amplitude of exposure parameter according to the pressing duration;
5th determination unit, for determining target light exposure adjusted value according to the adjustment direction and the adjustment amplitude;
Wherein, the exposure parameter includes exposure gain and time for exposure.
19. mobile terminal according to claim 11, which is characterized in that the mobile terminal further include:
Second detection module, for detecting in the preview image with the presence or absence of effective face;
Execution module executes the acquisition current scene letter if there are effective faces in the preview image for detecting The step of breath.
20. mobile terminal according to claim 19, which is characterized in that second detection module includes:
Second detection sub-module, for detecting the position of the face in the preview image;
4th acquisition submodule, if for detecting the positional shift of the position of the face within a preset period of time in default model In enclosing, then the area of the face is obtained;
Third determines submodule, if the area for the face is greater than preset threshold, it is determined that exist in the preview image Effective face.
21. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute State the computer program run on processor, when the computer program is executed by the processor realize as claim 1 to The step of image pickup method described in any one of 10.
22. a kind of computer-readable storage medium, which is characterized in that be stored with meter in the computer-readable storage medium Calculation machine program realizes the shooting side as described in any one of claims 1 to 10 when the computer program is executed by processor The step of method.
CN201711046335.7A 2017-10-31 2017-10-31 A kind of image pickup method and mobile terminal CN107580184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711046335.7A CN107580184B (en) 2017-10-31 2017-10-31 A kind of image pickup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711046335.7A CN107580184B (en) 2017-10-31 2017-10-31 A kind of image pickup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107580184A CN107580184A (en) 2018-01-12
CN107580184B true CN107580184B (en) 2019-11-19

Family

ID=61040743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711046335.7A CN107580184B (en) 2017-10-31 2017-10-31 A kind of image pickup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107580184B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848308B (en) * 2018-06-27 2019-12-31 维沃移动通信有限公司 Shooting method and mobile terminal
CN109743506A (en) * 2018-12-14 2019-05-10 维沃移动通信有限公司 A kind of image capturing method and terminal device
CN109495689A (en) * 2018-12-29 2019-03-19 北京旷视科技有限公司 A kind of image pickup method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994306A (en) * 2015-06-29 2015-10-21 厦门美图之家科技有限公司 Photographic method and photographic device capable of automatically adjusting exposure based on face brightness
CN105516613A (en) * 2015-12-07 2016-04-20 凌云光技术集团有限责任公司 Intelligent exposure method and system based on face recognition
CN105847704A (en) * 2016-04-01 2016-08-10 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106454104A (en) * 2016-10-28 2017-02-22 维沃移动通信有限公司 Photographing method and mobile terminal
CN106657994A (en) * 2017-03-03 2017-05-10 深圳市金立通信设备有限公司 Exposure testing method, control terminal, terminal to be tested, and exposure testing system
CN106713778A (en) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 Exposure control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994306A (en) * 2015-06-29 2015-10-21 厦门美图之家科技有限公司 Photographic method and photographic device capable of automatically adjusting exposure based on face brightness
CN105516613A (en) * 2015-12-07 2016-04-20 凌云光技术集团有限责任公司 Intelligent exposure method and system based on face recognition
CN105847704A (en) * 2016-04-01 2016-08-10 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106454104A (en) * 2016-10-28 2017-02-22 维沃移动通信有限公司 Photographing method and mobile terminal
CN106713778A (en) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 Exposure control method and device
CN106657994A (en) * 2017-03-03 2017-05-10 深圳市金立通信设备有限公司 Exposure testing method, control terminal, terminal to be tested, and exposure testing system

Also Published As

Publication number Publication date
CN107580184A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN104333701B (en) Method and device for displaying camera preview pictures as well as terminal
CN104135609B (en) Auxiliary photo-taking method, apparatus and terminal
US10510136B2 (en) Image blurring method, electronic device and computer device
CN107613191A (en) A kind of photographic method, equipment and computer-readable recording medium
CN108182896B (en) A kind of brightness detection method, device and mobile terminal
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN108459797A (en) A kind of control method and mobile terminal of Folding screen
CN107566730B (en) A kind of panoramic picture image pickup method and mobile terminal
CN107734251A (en) A kind of photographic method and mobile terminal
CN107786817A (en) A kind of photographic method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN107509034B (en) A kind of image pickup method and mobile terminal
CN107592466A (en) A kind of photographic method and mobile terminal
CN107943551A (en) A kind of screen display method and mobile terminal
CN107580209A (en) Take pictures imaging method and the device of a kind of mobile terminal
CN108227996A (en) A kind of display control method and mobile terminal
CN107734260A (en) A kind of image processing method and mobile terminal
CN107483836B (en) A kind of image pickup method and mobile terminal
CN108073343A (en) A kind of display interface method of adjustment and mobile terminal
CN107809598B (en) A kind of image pickup method, mobile terminal and server
CN107707827A (en) A kind of high-dynamics image image pickup method and mobile terminal
CN107665697B (en) A kind of adjusting method and mobile terminal of screen intensity
CN107820022A (en) A kind of photographic method and mobile terminal

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