CN105933607B - A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal - Google Patents
A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal Download PDFInfo
- Publication number
- CN105933607B CN105933607B CN201610362764.4A CN201610362764A CN105933607B CN 105933607 B CN105933607 B CN 105933607B CN 201610362764 A CN201610362764 A CN 201610362764A CN 105933607 B CN105933607 B CN 105933607B
- Authority
- CN
- China
- Prior art keywords
- preview image
- mobile terminal
- region
- human face
- taking pictures
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides take pictures effect method of adjustment and the mobile terminals of a kind of mobile terminal, this method comprises: obtaining the first preview image of the camera acquisition of mobile terminal;Face datection is carried out to first preview image, determines at least one human face region;It focuses to all human face regions, obtains the second preview image;It detects in second preview image with the presence or absence of default influential effect factor of taking pictures;Based on the default influential effect factor of taking pictures detected, the mobile terminal user is guided to adjust shooting style to eliminate the default influential effect factor of taking pictures.The solution of the present invention, it can be when taking pictures preview, by whether there is default influential effect factor of taking pictures in detection preview image, and it is prompted when detecting, guidance user is blocked by relevant operation with eliminating face, human face region overexposure takes pictures the factor of effect in photo there are the influence of the incomplete object of profile, and then promotes the shooting effect of photo.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of mobile terminal take pictures effect method of adjustment and it is mobile eventually
End.
Background technique
With advances in technology with the development of society, mobile terminal has more and more amusement functions, melted
Enter in our life, and have more will important role.Wherein, core one of of the camera function as amusement function,
An importance of mobile terminal is considered as user.And camera camera function in the prior art, some also have beauty concurrently
Face tupe, such as Auto-Sensing face, amplification eyes, whitening and mill skin processing etc., can be improved the imaging effect of face.
But during taking pictures, however it remains some influences are taken pictures the factor of effect, such as face is blocked by leaf, people
Vitrea eye domain overexposure, there are these three factors of the incomplete object of profile in photo, to affect effect of taking pictures.
Summary of the invention
The embodiment of the present invention provides take pictures effect method of adjustment and the mobile terminal of a kind of mobile terminal, to solve to take pictures
There are faces to be blocked in journey, human face region overexposure, takes pictures effect factor in photo there are the influence of the incomplete object of profile
The problem of.
In a first aspect, the embodiment of the invention provides a kind of effect methods of adjustment of taking pictures of mobile terminal, comprising:
Obtain the first preview image of the camera acquisition of mobile terminal;
Face datection is carried out to first preview image, determines at least one human face region;
It focuses to all human face regions, obtains the second preview image;
It detects in second preview image with the presence or absence of default influential effect factor of taking pictures;
Based on the default influential effect factor of taking pictures detected, the mobile terminal user is guided to adjust shooting style
To eliminate the default influential effect factor of taking pictures.
Second aspect, the embodiment of the invention also provides a kind of mobile terminals, comprising:
Module is obtained, the first preview image that the camera for obtaining mobile terminal acquires;
Determining module, first preview image for obtaining to the acquisition module carry out Face datection, determine extremely
A few human face region;
Focusing module, all human face regions for determining to the determining module are focused, and it is pre- to obtain second
Look at image;
Detection module is taken pictures for detecting in second preview image that the Focusing module obtains with the presence or absence of default
Influential effect factor;
Guiding module, the default influential effect factor of taking pictures for being detected based on the detection module, guides institute
It states mobile terminal user and adjusts shooting style to eliminate the default influential effect factor of taking pictures.
In this way, in the embodiment of the present invention, by obtaining the first preview image of camera acquisition, thus to the first preview
Image carries out Face datection, determines human face region, and then focus to human face region, obtains to the second defocused preview graph
Picture, and detect with the presence or absence of default influential effect factor of taking pictures in the second preview image, and when detecting above-mentioned influence factor,
Guidance user is forgone above-mentioned influence factor by relevant operation, and then promotes the shooting effect of photo, promotes the use body of user
It tests, there are faces to be blocked during solution is taken pictures, human face region overexposure, and there are the influences of the incomplete object of profile in photo
Take pictures effect factor the problem of.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow charts of the effect method of adjustment of taking pictures of the mobile terminal of first embodiment of the invention;
Fig. 2 indicates the flow chart of the effect method of adjustment of taking pictures of the mobile terminal of second embodiment of the invention;
Fig. 3 indicates the flow chart of the effect method of adjustment of taking pictures of the mobile terminal of third embodiment of the invention;
Fig. 4 indicates the flow chart of the effect method of adjustment of taking pictures of the mobile terminal of fourth embodiment of the invention;
One of the structural block diagram of mobile terminal of Fig. 5 expression fifth embodiment of the invention;
Fig. 6 indicates the two of the structural block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 7 indicates the three of the structural block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 8 shows the four of the structural block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 9 indicates the structural block diagram of the mobile terminal of sixth embodiment of the invention;
Figure 10 indicates the structural block diagram of the mobile terminal of seventh embodiment of the 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.
First embodiment
As shown in Figure 1, the effect method of adjustment of taking pictures of the mobile terminal for the embodiment of the present invention, comprising:
Step 101: obtaining the first preview image of the camera acquisition of mobile terminal.
The effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, sets applied to electronics such as mobile phone, tablet computers
It is standby.Wherein, mobile terminal can acquire the image in coverage and in preview interface after starting camera function by camera
It is shown.The first preview image obtained in step 101 is the image in the coverage of camera acquisition.Wherein, originally
The preview image that the effect method of adjustment of taking pictures of the mobile terminal of inventive embodiments acquires the front camera of mobile terminal
It is applicable with the preview image of rear camera acquisition.
Step 102: Face datection being carried out to first preview image, determines at least one human face region.
After the first preview image of camera acquisition for getting mobile terminal by step 101, it is also necessary to further right
First preview graph image carries out Face datection, determines the number and specific location of face in preview area, subsequent in order to carry out
Focusing and human face region other detection.
Step 103: focusing to all human face regions, obtain the second preview image.
In a step 102, it has been determined that go out face number and specific location, then can further to determining human face region into
Row focusing.Wherein, if focusing successfully, subsequent step can be performed, if focusing failure, can prompt user to carry out manual focus, directly
Until focusing successfully.In addition, focusing success or not, has relevant flag bit, so can be by detecting correlating markings position
No is preset value to determine whether to focus successfully.For example, the flag bit is 1 success of focusing, focuses and fail for 0.Wherein, right
After coke success, then second preview image with focus effects is obtained.
Step 104: with the presence or absence of default influential effect factor of taking pictures in detection second preview image.
Wherein, the default influential effect factor of taking pictures is to reduce the influence factor of picture quality, such as there are overexposure areas
Domain, face are blocked, there are incomplete objects etc..In the presence of the default influential effect factor of taking pictures, effect of taking pictures can be reduced
Fruit, for example, when face is blocked there are overexposure region or face, so that the picture that shooting obtains can not see clearly people
Face;There are when incomplete object so that exist in the picture that shooting obtains with the discordant factor of whole picture, reduce figure
The overall effect of piece.Therefore, it is necessary to detect to whether there is default influential effect factor of taking pictures in defocused preview image,
User can be made to pass through relevant operation to eliminate above-mentioned influence factor, and shoot the picture for meeting user's requirement.
Step 105: based on the default influential effect factor of taking pictures detected, the mobile terminal user being guided to adjust
Shooting style is to eliminate the default influential effect factor of taking pictures.
Wherein, when detect in the second preview image there are it is above-mentioned it is default take pictures influential effect factor when, can it is mobile eventually
On the display screen at end, which default influential effect factor of taking pictures is detected specifically with written form prompt user, and provide operation
Opinion, so that user evades above-mentioned influence factor by relevant operation.Alternatively, in a manner of vibration or jingle bell or vibration and jingle bell
There is default influential effect factor of taking pictures in the current preview image of prompt user, optimized image can not be shot, so that handy
Family adjusts shooting style according to autoscopia.
Therefore, the effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, can be in shooting preview, to acquisition
Camera acquisition the first preview image carry out Face datection, determine human face region, and then focus to human face region, obtain
It obtains to the second defocused preview image, and detects and whether there is default influential effect factor of taking pictures in second preview image,
And guide user to evade above-mentioned influence factor by relevant operation when detecting, achieve the purpose that adjust effect of taking pictures, thus
The image for more meeting user demand is shot, there are faces to be blocked during solution is taken pictures, human face region overexposure, in photo
There are problems that the influence of the incomplete object of profile is taken pictures effect factor.
Second embodiment
As shown in Fig. 2, the effect method of adjustment of taking pictures of the mobile terminal for the embodiment of the present invention, comprising:
Step 201: obtaining the first preview image of the camera acquisition of mobile terminal.
The effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, sets applied to electronics such as mobile phone, tablet computers
It is standby.Wherein, mobile terminal can acquire the image in coverage and in preview interface after starting camera function by camera
It is shown.The first preview image obtained in step 201 is the image in the coverage of camera acquisition.Wherein, originally
The preview image that the effect method of adjustment of taking pictures of the mobile terminal of inventive embodiments acquires the front camera of mobile terminal
It is applicable with the preview image of rear camera acquisition.
Step 202: Face datection being carried out to first preview image, determines at least one human face region.
After the first preview image of camera acquisition for getting mobile terminal by step 201, it is necessary first to first
Preview graph image carries out Face datection, determines the number and specific location of face in preview area, subsequent right in order to carry out
Other burnt and human face region detections.
Step 203: focusing to all human face regions, obtain the second preview image.
In step 202, it has been determined that go out face number and specific location, then can further to determining human face region into
Row focusing.Wherein, if focusing successfully, subsequent step can be performed, if focusing failure, can prompt user to carry out manual focus, directly
Until focusing successfully.In addition, focusing success or not, has relevant flag bit, so can be by detecting correlating markings position
No is preset value to determine whether to focus successfully.For example, the flag bit is 1 success of focusing, focuses and fail for 0.Wherein, right
After coke success, then second preview image with focus effects is obtained.
Step 204: all human face regions in second preview image are determined as first object region.
Wherein, when face wearing spectacles, during being taken pictures, the overexposure of lens area easily occurs.So step
204, it can also be further, comprising:
Glasses detection is carried out to all human face regions in second preview image, obtains lens area;By the eye
Mirror region is determined as the first object region.
Wherein, Glasses detection can detect the lower frame and spectacle pad bridge of glasses according to the discontinuous variation of grey scale pixel value
Then beam detects glasses by the marginal information in region between two, but this method is easy by noise jamming, and detection is quasi-
True rate is lower.Or also using the target detection thought of Like-Fenton Oxidation and cascaded iteration algorithm (AdaBoost), from sample
The classifying rules of study sets out, and the specific location of glasses is detected according to the layering eyeglass detection method of Stepwise Refinement.
Step 205: detecting in the first object region with the presence or absence of overexposure region.
Preferably, step 205 specifically includes:
Obtain the color mode value of each pixel in the first object region;Color mode value is greater than first to preset
Region locating for all pixels point of threshold value is determined as the second target area;Judging the pixel sum of second target area is
It is no to be greater than the second preset threshold;If the pixel sum of second target area is greater than second preset threshold, determine
For there are overexposure regions in the first object region, and the overexposure region is second target area.
Wherein, color mode (RGB) value refers to brightness, is indicated with integer, it is generally the case that RGB respectively has 256 grades
Brightness is from 0,1,2 ... until 255 with digital representation.In the embodiment of the present invention, whether deposited in detection first object region
In overexposure region, the rgb value of each pixel, it is pre- greater than first then to find out rgb value first in extraction first object region
If the second target area locating for the pixel of threshold value, and then judge the number of the pixel for each second target area found out
Whether the second preset threshold is greater than, if more than, then second target area belongs to overexposure region, it is otherwise not belonging to overexposure region,
It may thereby determine that in first object region with the presence or absence of overexposure region.
Step 206: identifying the overexposure region.
It, can be in the corresponding position of the second preview image when detecting in above-mentioned first object region there are when overexposure region
Place, identifies overexposure region, mobile terminal user is expressly understood that specifically and where overexposure occurs, to be directed to institute
It states overexposure region and adjusts exposure parameter by adjusting shooting style.
Wherein, specifically, if detecting face wearing spectacles, and there are overexposure regions for lens area, then can be in glasses area
Overexposure position is identified at domain, with this come remind user current preview image in there are overexposures in lens area, can not shoot
Clear image out allows user to adjust shooting style according to autoscopia, to eliminate above-mentioned overexposure region.
Step 207: guiding the mobile terminal user according to default exposure parameter, adjust the exposure ginseng of the overexposure region
Number.
Wherein, it guides the mobile terminal user to eliminate the concrete mode of overexposure region, may include:
Taking pictures, preview interface shows exposure parameter editing interface, the exposure information based on overexposure region, according to preset
Corresponding relationship between exposure information and exposure parameter shows at least one exposure parameter adjusted value in exposure parameter editing interface
It is selected for user, the operation for receiving mobile terminal user's adjustment exposure parameter adjusts the overexposure area according to default exposure parameter
The exposure parameter in domain.
In addition, when detecting face wearing spectacles, and the mobile terminal may be guided there are when overexposure region in lens area
User adjusts photo angle or the prompt mobile terminal user removes the glasses worn.
The effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, can be in shooting preview to the camera shooting of acquisition
First preview image of head acquisition carries out Face datection, determines human face region, and then focus to human face region, is focused
The second preview image afterwards, and all human face regions in second preview image are determined as first object region, in turn
Detecting whether there is overexposure region in first object region, and in the presence of, identify the overexposure region, and then guide movement
Terminal user eliminates the exposure area to adjust exposure parameter, to shoot the image for more meeting user demand, mentions
Rise the usage experience of user.
3rd embodiment
As shown in figure 3, the effect method of adjustment of taking pictures of the mobile terminal for the embodiment of the present invention, comprising:
Step 301: obtaining the first preview image of the camera acquisition of mobile terminal.
The effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, sets applied to electronics such as mobile phone, tablet computers
It is standby.Wherein, mobile terminal can acquire the image in coverage and in preview interface after starting camera function by camera
It is shown.The first preview image obtained in step 301 is the image in the coverage of camera acquisition.Wherein, originally
The preview image that the effect method of adjustment of taking pictures of the mobile terminal of inventive embodiments acquires the front camera of mobile terminal
It is applicable with the preview image of rear camera acquisition.
Step 302: Face datection being carried out to first preview image, determines at least one human face region.
After the first preview image of camera acquisition for getting mobile terminal by step 301, it is also necessary to further right
First preview graph image carries out Face datection, determines the number and specific location of face in preview area, subsequent in order to carry out
Focusing and human face region other detection.
Step 303: focusing to all human face regions, obtain the second preview image.
In step 302, it has been determined that the number and specific location for going out face, then it can be further to determining people
It focuses in face region.Wherein, if focusing successfully, subsequent step can be performed, if focusing failure, can prompt user
Manual focus is carried out, until focusing successfully.In addition, focusing success or not, has relevant flag bit, so can pass through inspection
Survey whether correlating markings position is preset value to determine whether to focus successfully.For example, the flag bit is 1 success of focusing, it is 0 right
Coke failure.Wherein, after focusing successfully, then second preview image with focus effects is obtained.
Step 304: whether thering is human face region to be blocked in detection second preview image.
Specifically, step 305 includes:
Obtain the number of the human face region in second preview image;To all face areas of second preview image
Domain carries out Face Detection, obtains area of skin color;Morphological transformation is carried out to the area of skin color;After carrying out morphological transformation
The area of skin color carries out ellipses detection, obtains elliptical number;If the elliptical number is less than of the human face region
Number, then be judged to having human face region to be blocked in second preview image.
Wherein, when carrying out ellipses detection, if detecting an ellipse, then it represents that complete there are one in the second preview image
Whole face, i.e. a face are not blocked.So when the elliptical number detected by ellipses detection is less than the face
When the number in region, then it represents that there are incomplete face in the second preview image, i.e. have human face region in the second preview image
It is blocked.In addition, judging in second preview image if the elliptical number is equal to the number of the human face region
Face is not blocked.
Step 305: facial contour identification being carried out to second preview image, identifies the human face region that is blocked.
When by step 304 detect be blocked in the second preview image there are face when, identified by facial contour, can
It further determines that out that specifically which human face region is blocked, and then identifies the human face region being blocked, in order to user
It can more clearly from understand which human face region in preview image is blocked when being taken pictures, and then for the people being blocked
The adjustment of face region progress shooting style.
Step 306: the mobile terminal user being guided to adjust posture of taking pictures.
Wherein, when identifying the human face region being blocked, in order to help user go to eliminate the influence that is blocked of face because
Element further guiding mobile terminal user can adjust posture of taking pictures, specifically, such as near the human face region being blocked,
It avoids face from being blocked by adjusting posture is taken pictures with written form guiding mobile terminal user, or identifies mobile terminal use
The target position that family should be moved to, guidance user adjust posture.
Therefore, the effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, can be in shooting preview, to acquisition
Camera acquisition the first preview image carry out Face datection, determine human face region, and then focus to human face region, obtain
It obtains to the second defocused preview image, and detects whether the face for being in second preview image is blocked, and detecting
When guidance user's adjustment take pictures posture so that human face region is complete, to shoot the image for more meeting user demand, solve
There are problems that influence that face is blocked is taken pictures effect factor during taking pictures.
Fourth embodiment
As shown in figure 4, the effect method of adjustment of taking pictures of the mobile terminal for the embodiment of the present invention, comprising:
Step 401: obtaining the first preview image of the camera acquisition of mobile terminal.
The effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, sets applied to electronics such as mobile phone, tablet computers
It is standby.Wherein, mobile terminal can acquire the image in coverage and in preview interface after starting camera function by camera
It is shown.The first preview image obtained in step 401 is the image in the coverage of camera acquisition.Wherein, originally
The preview image that the effect method of adjustment of taking pictures of the mobile terminal of inventive embodiments acquires the front camera of mobile terminal
It is applicable with the preview image of rear camera acquisition.
Step 402: Face datection being carried out to first preview image, determines at least one human face region.
After the first preview image of camera acquisition for getting mobile terminal by step 401, it is also necessary to further right
First preview graph image carries out Face datection, determines the number and specific location of face in preview area, subsequent in order to carry out
Focusing and human face region other detection.
Step 403: focusing to all human face regions, obtain the second preview image.
In step 402, it has been determined that go out face number and specific location, then can further to determining human face region into
Row focusing.Wherein, if focusing successfully, subsequent step can be performed, if focusing failure, can prompt user to carry out manual focus, directly
Until focusing successfully.In addition, focusing success or not, has relevant flag bit, so can be by detecting correlating markings position
No is preset value to determine whether to focus successfully.For example, the flag bit is 1 success of focusing, focuses and fail for 0.Wherein, right
After coke success, then second preview image with focus effects is obtained.
Step 404: whether having the incomplete object of profile in detection second preview image.
Wherein, the incomplete target object of profile be preview image in the discordant object of general image, for example, in benefit
When carrying out self-timer with the front camera of mobile terminal, a part of finger for holding mobile terminal is entered in preview image, then
This Toe Transplantation for Segmental Finger existing for preview image edge then belongs to the incomplete target object of profile, makes the entirety of preview image
The requirement of user is not achieved in effect.
Specifically, step 404 includes:
The detection of object outline feature is carried out to second preview image, determines the incomplete target object of profile;It obtains
The characteristic information of the target object;Corresponding relationship between characteristic information and object oriented according to the pre-stored data, determines institute
State target object title.
Wherein, the incomplete target object of profile can be detected by object detection algorithms.Common object detection algorithms
There are Scale invariant features transform (SIFT)/acceleration robust feature (SURF), haar feature, Generalized Hough (hough) transformation etc..Its
In, SIFT/SURF is characterized in a kind of feature with strong directionality and brightness, suitable for rigid deformation and slightly thoroughly
Depending on the occasion of deformation;Haar characteristic recognition method has the characteristics that certain artificial intelligence, for as face is this have it is apparent, steady
The object for determining the haar feature of structure is most suitably used, as long as even if the relatively fixed equal non-linear deformations that are distorted of structure can still be known
Not;Generalized h ough transformation is entirely accurate matching, and the parameter informations such as the locality of object can be obtained, be a kind of overall situation
Feature --- profile gradients, but can also regard as entire profile each point position and gradient be feature, Mei Gedian
All identification is contributed, with intuitive ballot, how much goes to determine whether to identify object according to poll.
In addition, the corresponding relationship of object features and object names can be stored in the terminal, then in the form of object library
It, can be according to spy after detecting the incomplete target object of profile by object detection algorithms and extract the characteristic information of target object
Reference is ceased in the corresponding object of object library searching, to obtain the title of target object.Wherein object features include: color spy
Sign, textural characteristics, shape feature etc., and testing result may be half of face, the objects such as half tree.
Step 405: identifying the target object and the target object title.
Detect that there are the incomplete target objects of profile in the second preview image when passing through step 404, and special from object
, can be in preview interface when finding target object title in sign library, the corresponding position of the target object identifies the target
Object, and displaying target object oriented, so that user is expressly understood that at which position in the second preview image shadow occur
The factor of entirety picture effect is rung, and then is taken pictures convenient for executing relevant operation for the identification information for preview interface to adjust
Effect.
Step 406: guide the mobile terminal user to adjust photo angle so that the profile of the target object it is complete or
Remove the target object from preview interface of taking pictures.
Wherein, guiding mobile terminal user adjusts photo angle to eliminate the tool for detecting the incomplete target object of profile
How body mode can move mobile terminal in preview interface prompt by written form, or prompt user with arrow form
The moving direction of mobile terminal or direction of rotation, so that the profile of the target object is complete or makes the target object from taking pictures
It is removed in preview interface.
Therefore, the effect method of adjustment of taking pictures of the mobile terminal of the embodiment of the present invention, can be in shooting preview, to acquisition
Camera acquisition the first preview image carry out Face datection, determine human face region, and then focus to human face region, obtain
It obtains to the second defocused preview image, and detects and whether there is the incomplete target object of profile in second preview image,
And guide user to adjust photo angle when detecting so that the profile of the target object it is complete or make the target object from
It removes in preview interface of taking pictures, to shoot the image for more meeting user demand, exists in photo during solution is taken pictures
The influence of the incomplete object of profile take pictures effect factor the problem of.
5th embodiment
The embodiment provides a kind of mobile terminals, as shown in figure 5, the mobile terminal 500 includes:
Module 501 is obtained, the first preview image that the camera for obtaining mobile terminal acquires;
Determining module 502, first preview image for obtaining to the acquisition module 501 carry out Face datection,
Determine at least one human face region;
Focusing module 503, all human face regions for determining to the determining module 502 are focused, are obtained
Second preview image;
Detection module 504, for detecting in second preview image that the Focusing module 503 obtains with the presence or absence of pre-
If taking pictures influential effect factor;
Guiding module 505, the default influential effect factor of taking pictures for being detected based on the detection module 504,
The mobile terminal user is guided to adjust shooting style to eliminate the default influential effect factor of taking pictures.
Preferably, as shown in fig. 6, the detection module 504 includes:
Area determination unit 5041, for all human face regions in second preview image to be determined as first object
Region;
Overexposure detection unit 5042, for detecting in the first object region that the area determination unit 5041 determines
With the presence or absence of overexposure region.
Preferably, as shown in fig. 6, the area determination unit 5041 includes:
Glasses detection subelement 50411, for carrying out glasses inspection to all human face regions in second preview image
It surveys, obtains lens area;
First area determines subelement 50412, the glasses area for obtaining the Glasses detection subelement 50411
Domain is determined as the first object region.
Preferably, as shown in fig. 6, the overexposure detection unit 5042 includes:
Color mode value obtains subelement 50421, for obtaining the color of each pixel in the first object region
Mode value;
Second area determines subelement 50422, for color mode value to be greater than to all pixels point of the first preset threshold
Locating region is determined as the second target area;
Judgment sub-unit 50423, second target for determining that subelement 50422 determines for judging the second area
Whether the pixel sum in region is greater than the second preset threshold;
Subelement 50424 is determined, if the pixel sum for second target area is greater than the described second default threshold
Value is then determined as in the first object region that there are overexposure regions, and the overexposure region is second target area.
Preferably, as shown in fig. 6, the guiding module 505 includes:
Face overexposure identifies unit 5051, for identifying the overexposure region;
First guidance unit 5052 adjusts the mistake for guiding the mobile terminal user according to default exposure parameter
Expose the exposure parameter in region.
Preferably, as shown in fig. 6, the guiding module 505 includes:
Glasses overexposure identifies unit 5053, for identifying the overexposure region;
Second guidance unit 5054, for guiding, the mobile terminal user adjusts photo angle or prompt is described mobile whole
End subscriber removes the glasses worn.
Preferably, as shown in fig. 7, the detection module 504 includes:
Whether occlusion detection unit 5043 has human face region to be blocked for detecting in second preview image.
Preferably, as shown in fig. 7, the occlusion detection unit 5043 includes:
Face number obtains subelement 50431, for obtaining the number of the human face region in second preview image;
Face Detection subelement 50432 carries out Face Detection for all human face regions to second preview image,
Obtain area of skin color;
Morphological transformation subelement 50433, the area of skin color for being obtained to the Face Detection subelement 50432
Carry out morphological transformation;
Ellipses detection subelement 50434, for carrying out ellipses detection to the area of skin color after progress morphological transformation,
Obtain elliptical number;
Shadowing subelement 50435 determines if being less than the number of the human face region for the elliptical number
To there is human face region to be blocked in second preview image.
Preferably, as shown in fig. 7, the guiding module 505 includes:
Mark unit 5055 is blocked, for carrying out facial contour identification to second preview image, identifies and is blocked
Human face region;
Third guidance unit 5056, for guiding the mobile terminal user to adjust posture of taking pictures.
Preferably, as shown in figure 8, the detection module 504 includes:
Whether imperfect subject detecting unit 5044 has profile incomplete right for detecting in second preview image
As.
Preferably, as shown in figure 8, the imperfect subject detecting unit 5044 includes:
Contour feature detection sub-unit 50441, for carrying out the detection of object outline feature to second preview image, really
The wide incomplete target object of fixed wheel;
Information extraction subelement 50442, the target determined for obtaining the contour feature detection sub-unit 50441
The characteristic information of object;
Title determines subelement 50443, for the corresponding pass between characteristic information according to the pre-stored data and object oriented
System, determines the target object title.
Preferably, as shown in figure 8, the guiding module 505 includes:
Target object identifies unit 5057, for identifying the target object and the target object title;
4th guidance unit 5058, for guiding the mobile terminal user to adjust photo angle, so that the target pair
The profile of elephant is complete or removes the target object from preview interface of taking pictures.
The mobile terminal 500 of the embodiment of the present invention can obtain movement eventually by obtaining module 501 when taking pictures preview
First preview image of the camera acquisition at end carries out Face datection to the first preview image to trigger determining module 502, really
It makes human face region, and then triggers Focusing module 503 and focus to human face region, so that detection module 504 can detecte pair
With the presence or absence of default influential effect factor of taking pictures in the second preview image that burnt module 503 obtains, and in the presence of triggering guidance
505 guiding mobile terminal user of module adjusts shooting style to eliminate above-mentioned default influential effect factor of taking pictures, to be promoted whole
Body picture effect promotes the usage experience of user, and there are faces to be blocked during solution is taken pictures, human face region overexposure, photo
The middle influence that there are problems that the incomplete object of profile is taken pictures effect factor.In addition, the mobile terminal of the embodiment of the present invention
500, while not increasing mobile terminal hardware, optimize effect of taking pictures.
Sixth embodiment
Fig. 9 is the structural block diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal 900 in Fig. 9
It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 900 in Fig. 9 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 960, mould group 950 of taking pictures, voicefrequency circuit 970, WiFi (Wireless Fidelity)
Module 980 and power supply 990, wherein including camera in mould group 950 of taking pictures.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.
Optionally, touch panel 931 may include both touch detecting apparatus and touch controller.Wherein, inspection is touched
The touch orientation of device detection user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;It touches
Controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives the processor 960, and
The order that processor 960 is sent can be received and 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 931.In addition to touch panel 931, input unit 930 can also include that other inputs are set
Standby 932, other input equipments 932 can include but is not limited to physical keyboard, function key (for example press by volume control button, switch
Key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device
960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage
Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, processor 960 obtains the first preview image of the camera acquisition of mobile terminal, and right
First preview image carries out Face datection, determines at least one human face region, to carry out to all human face regions
Focusing obtains the second preview image, and then detects and whether there is default influential effect factor of taking pictures in second preview image,
And based on the default influential effect factor of taking pictures detected, the mobile terminal user is guided to adjust shooting style to eliminate
The default influential effect factor of taking pictures.
Preferably, processor 960 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: all human face regions in second preview image is determined as first object region;Detect described first
It whether there is overexposure region in target area.
Preferably, all human face regions of the processor 960 in second preview image are determined as first object region
When, it is specifically used for: Glasses detection is carried out to all human face regions in second preview image, obtains lens area;By institute
It states lens area and is determined as the first object region.
Preferably, when processor 960 whether there is overexposure region in detecting the first object region, it is specifically used for:
Obtain the color mode value of each pixel in the first object region;Color mode value is greater than to the institute of the first preset threshold
There is region locating for pixel to be determined as the second target area;Judge whether the pixel sum of second target area is greater than
Two preset thresholds;If the pixel sum of second target area is greater than second preset threshold, it is determined as described the
There are overexposure regions in one target area, and the overexposure region is second target area.
Preferably, processor 960 is guided described mobile whole based on the default influential effect factor of taking pictures detected
End subscriber adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the overexposure region;
It guides the mobile terminal user according to default exposure parameter, adjusts the exposure parameter of the overexposure region.
Preferably, processor 960 is guided described mobile whole based on the default influential effect factor of taking pictures detected
End subscriber adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the overexposure region;
It guides the mobile terminal user to adjust photo angle or the mobile terminal user is prompted to remove the glasses worn.
Preferably, processor 960 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: whether has human face region to be blocked in detection second preview image.
Preferably, processor 960 detect in second preview image when whether thering is human face region to be blocked, specifically
For: obtain the number of the human face region in second preview image;To all human face regions of second preview image
Face Detection is carried out, area of skin color is obtained;Morphological transformation is carried out to the area of skin color;To the institute after progress morphological transformation
It states area of skin color and carries out ellipses detection, obtain elliptical number;If the elliptical number is less than the number of the human face region,
Then it is judged to having human face region to be blocked in second preview image.
Preferably, processor 960 is guided described mobile whole based on the default influential effect factor of taking pictures detected
End subscriber adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: to second preview graph
As carrying out facial contour identification, the human face region that is blocked is identified;The mobile terminal user is guided to adjust posture of taking pictures.
Preferably, processor 960 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: whether has the incomplete object of profile in detection second preview image.
Preferably, when whether processor 960 has the incomplete object of profile in detecting second preview image, specifically
For: the detection of object outline feature is carried out to second preview image, determines the incomplete target object of profile;Described in acquisition
The characteristic information of target object;Corresponding relationship between characteristic information and object oriented according to the pre-stored data, determines the mesh
Mark object oriented.
Preferably, processor 960 is guided described mobile whole based on the default influential effect factor of taking pictures detected
End subscriber adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the target object
With the target object title;The mobile terminal user is guided to adjust photo angle, so that the profile of the target object is complete
It is whole or remove the target object from preview interface of taking pictures.
Mobile terminal 900 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 900 of the embodiment of the present invention, can be pre- to the first of the camera acquisition of acquisition in shooting preview
Image of looking at carries out Face datection, determines human face region, and then focus to human face region, obtains to the second defocused preview graph
Picture, and detect with the presence or absence of default influential effect factor of taking pictures in second preview image, and user is guided when detecting
Evade above-mentioned influence factor by relevant operation, achievees the purpose that adjust effect of taking pictures, more meet user's need to shoot
The image asked, there are faces to be blocked during solution is taken pictures, human face region overexposure, and there are the incomplete objects of profile in photo
Influence take pictures effect factor the problem of.
7th embodiment
Figure 10 is the block diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal 1000 in Figure 10
It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 1000 shown in Fig. 10 includes: at least one processor 1001, memory 1002, at least one network
Interface 1004, other users interface 1003 and mould group 1006 of taking pictures, wherein including camera in mould group 1006 of taking pictures.Mobile terminal
Various components in 1000 are coupled by bus system 1005.It is understood that bus system 1005 is for realizing these groups
Connection communication between part.Bus system 1005 further includes power bus, control bus and state in addition to including data/address bus
Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 1005 in Figure 10.
Wherein, user interface 1003 may include display, keyboard or pointing device.For example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 1002 in the embodiment of the present invention can be volatile memory or non-volatile memories
Device, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory
(Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only
Read memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM,
) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use
Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access
Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access
Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data
Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous
Connect dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory
(Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 1002 be intended to include but
It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1002 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 10021 and application program 10022.
Wherein, operating system 10021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 10022 includes various application programs, such as matchmaker
Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented
The program of example method may be embodied in application program 10022.
In embodiments of the present invention, by the program or instruction of calling memory 1002 to store, processor 1001 is for obtaining
The first preview image for taking the camera of mobile terminal to acquire, and Face datection is carried out to first preview image, it determines extremely
A few human face region obtains the second preview image to focus to all human face regions, and then detects described the
With the presence or absence of default influential effect factor of taking pictures in two preview images, and based on detect it is described it is default take pictures influential effect because
Element guides the mobile terminal user to adjust shooting style to eliminate the default influential effect factor of taking pictures.
The method that the embodiments of the present invention disclose can be applied in processor 1001, or real by processor 1001
It is existing.Processor 1001 may be a kind of IC chip, the processing capacity with signal.During realization, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1001 or software form.Above-mentioned
Processor 1001 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated
Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 1002, processor 1001 reads the information in memory 1002, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come
Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can
With portion realizes in the processor or outside the processor.
Preferably, processor 1001 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: all human face regions in second preview image is determined as first object region;Detect described first
It whether there is overexposure region in target area.
Preferably, all human face regions of the processor 1001 in second preview image are determined as first object region
When, it is specifically used for: Glasses detection is carried out to all human face regions in second preview image, obtains lens area;By institute
It states lens area and is determined as the first object region.
Preferably, when processor 1001 whether there is overexposure region in detecting the first object region, it is specifically used for:
Obtain the color mode value of each pixel in the first object region;Color mode value is greater than to the institute of the first preset threshold
There is region locating for pixel to be determined as the second target area;Judge whether the pixel sum of second target area is greater than
Two preset thresholds;If the pixel sum of second target area is greater than second preset threshold, it is determined as described the
There are overexposure regions in one target area, and the overexposure region is second target area.
Preferably, processor 1001 guides the movement based on the default influential effect factor of taking pictures detected
Terminal user adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the overexposure area
Domain;It guides the mobile terminal user according to default exposure parameter, adjusts the exposure parameter of the overexposure region.
Preferably, processor 1001 guides the movement based on the default influential effect factor of taking pictures detected
Terminal user adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the overexposure area
Domain;It guides the mobile terminal user to adjust photo angle or the mobile terminal user is prompted to remove the glasses worn.
Preferably, processor 1001 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: whether has human face region to be blocked in detection second preview image.
Preferably, processor 1001 detect in second preview image when whether thering is human face region to be blocked, tool
Body is used for: obtaining the number of the human face region in second preview image;To all face areas of second preview image
Domain carries out Face Detection, obtains area of skin color;Morphological transformation is carried out to the area of skin color;After carrying out morphological transformation
The area of skin color carries out ellipses detection, obtains elliptical number;If the elliptical number is less than of the human face region
Number, then be judged to having human face region to be blocked in second preview image.
Preferably, processor 1001 guides the movement based on the default influential effect factor of taking pictures detected
Terminal user adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: to second preview
Image carries out facial contour identification, identifies the human face region that is blocked;The mobile terminal user is guided to adjust posture of taking pictures.
Preferably, processor 1001 is in detecting second preview image with the presence or absence of default influential effect factor of taking pictures
When, it is specifically used for: whether has the incomplete object of profile in detection second preview image.
Preferably, when whether processor 1001 has the incomplete object of profile in detecting second preview image, tool
Body is used for: being carried out the detection of object outline feature to second preview image, is determined the incomplete target object of profile;Obtain institute
State the characteristic information of target object;Corresponding relationship between characteristic information and object oriented according to the pre-stored data, determine described in
Target object title.
Preferably, processor 1001 guides the movement based on the default influential effect factor of taking pictures detected
Terminal user adjust shooting style with eliminate it is described it is default take pictures influential effect factor when, be specifically used for: identifying the target pair
As with the target object title;The mobile terminal user is guided to adjust photo angle, so that the profile of the target object
Completely or remove the target object from preview interface of taking pictures.
Mobile terminal 1000 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, this
In repeat no more.
The mobile terminal 1000 of the embodiment of the present invention, can be in shooting preview, to the first of the camera acquisition of acquisition
Preview image carries out Face datection, determines human face region, and then focus to human face region, obtains to the second defocused preview
Image, and detect with the presence or absence of default influential effect factor of taking pictures in second preview image, and guide and use when detecting
Above-mentioned influence factor is evaded by relevant operation in family, achievees the purpose that adjust effect of taking pictures, more meets user to shoot
The image of demand, there are faces to be blocked during solution is taken pictures, human face region overexposure, and there are the incomplete objects of profile in photo
The influence of body take pictures effect factor the problem of.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the effect of this embodiment scheme
Fruit.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (12)
1. a kind of effect method of adjustment of taking pictures of mobile terminal characterized by comprising
Obtain the first preview image of the camera acquisition of mobile terminal;
Face datection is carried out to first preview image, determines at least one human face region;
It focuses to all human face regions, obtains the second preview image;
It detects in second preview image with the presence or absence of default influential effect factor of taking pictures;
Based on the default influential effect factor of taking pictures detected, the mobile terminal user is guided to adjust shooting style to disappear
Except the default influential effect factor of taking pictures;
It whether there is in detection second preview image and preset the step of taking pictures influential effect factor, comprising:
All human face regions in second preview image are determined as first object region;
It detects in the first object region with the presence or absence of overexposure region;
The step of all human face regions by second preview image are determined as first object region, comprising:
Glasses detection is carried out to all human face regions in second preview image, obtains lens area;
The lens area is determined as the first object region.
2. the method according to claim 1, wherein whether there is in the detection first object region
The step of exposing region, comprising:
Obtain the color mode value of each pixel in the first object region;
Color mode value is greater than region locating for all pixels point of the first preset threshold and is determined as the second target area;
Judge whether the pixel sum of second target area is greater than the second preset threshold;
If the pixel sum of second target area is greater than second preset threshold, it is determined as the first object area
There are overexposure regions in domain, and the overexposure region is second target area.
3. the method according to claim 1, wherein described based on the default influential effect of taking pictures detected
Factor, guide the mobile terminal user to adjust shooting style with eliminate it is described it is default take pictures influential effect factor the step of, packet
It includes:
Identify the overexposure region;
It guides the mobile terminal user according to default exposure parameter, adjusts the exposure parameter of the overexposure region.
4. the method according to claim 1, wherein described based on the default influential effect of taking pictures detected
Factor, guide the mobile terminal user to adjust shooting style with eliminate it is described it is default take pictures influential effect factor the step of, packet
It includes:
Identify the overexposure region;
It guides the mobile terminal user to adjust photo angle or the mobile terminal user is prompted to remove the glasses worn.
5. a kind of effect method of adjustment of taking pictures of mobile terminal characterized by comprising
Obtain the first preview image of the camera acquisition of mobile terminal;
Face datection is carried out to first preview image, determines at least one human face region;
It focuses to all human face regions, obtains the second preview image;
It detects in second preview image with the presence or absence of default influential effect factor of taking pictures;
Based on the default influential effect factor of taking pictures detected, the mobile terminal user is guided to adjust shooting style to disappear
Except the default influential effect factor of taking pictures;
It whether there is in detection second preview image and preset the step of taking pictures influential effect factor, comprising:
Whether detect in second preview image has human face region to be blocked;
Whether there is the step of human face region is blocked in detection second preview image, comprising:
Obtain the number of the human face region in second preview image;
Face Detection is carried out to all human face regions of second preview image, obtains area of skin color;
Morphological transformation is carried out to the area of skin color;
Ellipses detection is carried out to the area of skin color after progress morphological transformation, obtains elliptical number;
If the elliptical number is less than the number of the human face region, it is determined as the second preview image Zhong You face area
Domain is blocked.
6. according to the method described in claim 5, it is characterized in that, described based on the default influential effect of taking pictures detected
Factor, guide the mobile terminal user to adjust shooting style with eliminate it is described it is default take pictures influential effect factor the step of, packet
It includes:
Facial contour identification is carried out to second preview image, identifies the human face region that is blocked;
The mobile terminal user is guided to adjust posture of taking pictures.
7. a kind of mobile terminal characterized by comprising
Module is obtained, the first preview image that the camera for obtaining mobile terminal acquires;
Determining module, first preview image for obtaining to the acquisition module carry out Face datection, determine at least one
A human face region;
Focusing module, all human face regions for determining to the determining module are focused, and the second preview graph is obtained
Picture;
Detection module, for detecting in second preview image that the Focusing module obtains with the presence or absence of default effect of taking pictures
Influence factor;
Guiding module, the default influential effect factor of taking pictures for being detected based on the detection module, guides the shifting
Dynamic terminal user adjusts shooting style to eliminate the default influential effect factor of taking pictures;
The detection module includes:
Area determination unit, for all human face regions in second preview image to be determined as first object region;
Overexposure detection unit, for detecting in the first object region that the area determination unit determines with the presence or absence of overexposure
Region;
The area determination unit includes:
Glasses detection subelement obtains eye for carrying out Glasses detection to all human face regions in second preview image
Mirror region;
First area determines subelement, and the lens area for obtaining the Glasses detection subelement is determined as described
One target area.
8. mobile terminal according to claim 7, which is characterized in that the overexposure detection unit includes:
Color mode value obtains subelement, for obtaining the color mode value of each pixel in the first object region;
Second area determines subelement, true for color mode value to be greater than to region locating for all pixels point of the first preset threshold
It is set to the second target area;
Judgment sub-unit, for judging that the second area determines that the pixel of determining second target area of subelement is total
Whether number is greater than the second preset threshold;
Determine subelement, if the pixel sum for second target area is greater than second preset threshold, determines
For there are overexposure regions in the first object region, and the overexposure region is second target area.
9. mobile terminal according to claim 7, which is characterized in that the guiding module includes:
Face overexposure identifies unit, for identifying the overexposure region;
First guidance unit adjusts the overexposure region for guiding the mobile terminal user according to default exposure parameter
Exposure parameter.
10. mobile terminal according to claim 7, which is characterized in that the guiding module includes:
Glasses overexposure identifies unit, for identifying the overexposure region;
Second guidance unit, for guiding, the mobile terminal user adjusts photo angle or the prompt mobile terminal user will
The glasses worn are removed.
11. a kind of mobile terminal characterized by comprising
Module is obtained, the first preview image that the camera for obtaining mobile terminal acquires;
Determining module, first preview image for obtaining to the acquisition module carry out Face datection, determine at least one
A human face region;
Focusing module, all human face regions for determining to the determining module are focused, and the second preview graph is obtained
Picture;
Detection module, for detecting in second preview image that the Focusing module obtains with the presence or absence of default effect of taking pictures
Influence factor;
Guiding module, the default influential effect factor of taking pictures for being detected based on the detection module, guides the shifting
Dynamic terminal user adjusts shooting style to eliminate the default influential effect factor of taking pictures;
The detection module includes:
Whether occlusion detection unit has human face region to be blocked for detecting in second preview image;
The occlusion detection unit includes:
Face number obtains subelement, for obtaining the number of the human face region in second preview image;
Face Detection subelement carries out Face Detection for all human face regions to second preview image, obtains the colour of skin
Region;
Morphological transformation subelement, the area of skin color for obtaining to the Face Detection subelement carry out morphology change
It changes;
Ellipses detection subelement obtains ellipse for carrying out ellipses detection to the area of skin color after progress morphological transformation
Number;
Shadowing subelement is determined as described the if being less than the number of the human face region for the elliptical number
There is human face region to be blocked in two preview images.
12. mobile terminal according to claim 11, which is characterized in that the guiding module includes:
Mark unit is blocked, for carrying out facial contour identification to second preview image, identifies the human face region that is blocked;
Third guidance unit, for guiding the mobile terminal user to adjust posture of taking pictures.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362764.4A CN105933607B (en) | 2016-05-26 | 2016-05-26 | A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362764.4A CN105933607B (en) | 2016-05-26 | 2016-05-26 | A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933607A CN105933607A (en) | 2016-09-07 |
CN105933607B true CN105933607B (en) | 2019-01-22 |
Family
ID=56841325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610362764.4A Active CN105933607B (en) | 2016-05-26 | 2016-05-26 | A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933607B (en) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375665A (en) * | 2016-09-23 | 2017-02-01 | 深圳市金立通信设备有限公司 | Photographing method and terminal |
CN108259817B (en) * | 2016-12-28 | 2021-03-19 | 南宁富桂精密工业有限公司 | Picture shooting system and method |
CN106791204A (en) * | 2017-02-27 | 2017-05-31 | 努比亚技术有限公司 | Mobile terminal and its image pickup method |
JP6923754B2 (en) * | 2017-06-09 | 2021-08-25 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Image capture method and equipment |
CN107832769A (en) * | 2017-11-09 | 2018-03-23 | 苏州铭冠软件科技有限公司 | Object is located at the visual identity method in environment |
CN108419019A (en) * | 2018-05-08 | 2018-08-17 | Oppo广东移动通信有限公司 | It takes pictures reminding method, device, storage medium and mobile terminal |
CN108712606B (en) * | 2018-05-14 | 2019-10-29 | Oppo广东移动通信有限公司 | Reminding method, device, storage medium and mobile terminal |
JP7130839B2 (en) * | 2018-07-16 | 2022-09-05 | オーナー・デヴァイス・カンパニー・リミテッド | Dye detection method and electronics |
WO2020024112A1 (en) * | 2018-07-31 | 2020-02-06 | 深圳市大疆创新科技有限公司 | Photography processing method, device and storage medium |
CN109086742A (en) * | 2018-08-27 | 2018-12-25 | Oppo广东移动通信有限公司 | scene recognition method, scene recognition device and mobile terminal |
CN109246360B (en) * | 2018-11-23 | 2021-01-26 | 维沃移动通信(杭州)有限公司 | Prompting method and mobile terminal |
CN109831632B (en) * | 2019-01-21 | 2021-08-10 | 思特威(上海)电子科技股份有限公司 | Imaging method of image sensor |
CN110086990B (en) * | 2019-04-28 | 2021-01-12 | 深圳回收宝科技有限公司 | Terminal photographing method and device, portable terminal and storage medium |
CN110348419B (en) * | 2019-07-18 | 2023-03-24 | 三星电子(中国)研发中心 | Method and device for photographing |
CN110557575B (en) * | 2019-08-28 | 2021-04-27 | 维沃移动通信有限公司 | Method for eliminating glare and electronic equipment |
CN113138387B (en) * | 2020-01-17 | 2024-03-08 | 北京小米移动软件有限公司 | Image acquisition method and device, mobile terminal and storage medium |
CN113938597B (en) * | 2020-06-29 | 2023-10-10 | 腾讯科技(深圳)有限公司 | Face recognition method, device, computer equipment and storage medium |
CN114727006A (en) * | 2021-01-06 | 2022-07-08 | 北京小米移动软件有限公司 | Image shooting method and device |
CN113301250A (en) * | 2021-05-13 | 2021-08-24 | Oppo广东移动通信有限公司 | Image recognition method and device, computer readable medium and electronic equipment |
CN114885092A (en) * | 2022-03-23 | 2022-08-09 | 青岛海尔科技有限公司 | Control method and device of image acquisition device, storage medium and electronic device |
CN115835005A (en) * | 2022-10-31 | 2023-03-21 | 泰康保险集团股份有限公司 | Method and device for guiding user to shoot and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006421A (en) * | 2009-09-01 | 2011-04-06 | 华晶科技股份有限公司 | Processing method for image with face |
CN102262727A (en) * | 2011-06-24 | 2011-11-30 | 常州锐驰电子科技有限公司 | Method for monitoring face image quality at client acquisition terminal in real time |
CN103369214A (en) * | 2012-03-30 | 2013-10-23 | 华晶科技股份有限公司 | An image acquiring method and an image acquiring apparatus |
CN103533226A (en) * | 2013-06-07 | 2014-01-22 | Tcl集团股份有限公司 | Shooting method and system with voice prompt function |
CN104754216A (en) * | 2015-03-06 | 2015-07-01 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN105554371A (en) * | 2015-10-28 | 2016-05-04 | 东莞酷派软件技术有限公司 | Photographing method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4264663B2 (en) * | 2006-11-21 | 2009-05-20 | ソニー株式会社 | Imaging apparatus, image processing apparatus, image processing method therefor, and program causing computer to execute the method |
-
2016
- 2016-05-26 CN CN201610362764.4A patent/CN105933607B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006421A (en) * | 2009-09-01 | 2011-04-06 | 华晶科技股份有限公司 | Processing method for image with face |
CN102262727A (en) * | 2011-06-24 | 2011-11-30 | 常州锐驰电子科技有限公司 | Method for monitoring face image quality at client acquisition terminal in real time |
CN103369214A (en) * | 2012-03-30 | 2013-10-23 | 华晶科技股份有限公司 | An image acquiring method and an image acquiring apparatus |
CN103533226A (en) * | 2013-06-07 | 2014-01-22 | Tcl集团股份有限公司 | Shooting method and system with voice prompt function |
CN104754216A (en) * | 2015-03-06 | 2015-07-01 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN105554371A (en) * | 2015-10-28 | 2016-05-04 | 东莞酷派软件技术有限公司 | Photographing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105933607A (en) | 2016-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105933607B (en) | A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal | |
CN105847674B (en) | A kind of preview image processing method and mobile terminal based on mobile terminal | |
CN106295638B (en) | Certificate image sloped correcting method and device | |
KR102173123B1 (en) | Method and apparatus for recognizing object of image in electronic device | |
CN106228168B (en) | The reflective detection method of card image and device | |
CN106265006B (en) | A kind of control method and mobile terminal of the apparatus for correcting of dominant eye | |
CN105915782A (en) | Picture obtaining method based on face identification, and mobile terminal | |
CN107220578A (en) | A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium | |
CN110166600B (en) | Electronic device and control method thereof | |
EP2079009A1 (en) | Apparatus and methods for a touch user interface using an image sensor | |
KR20170061629A (en) | Method and device for identifying region | |
CN106973222A (en) | The control method and mobile terminal of a kind of Digital Zoom | |
CN106791416A (en) | A kind of background blurring image pickup method and terminal | |
CN107124543A (en) | A kind of image pickup method and mobile terminal | |
CN105528078B (en) | The method and device of controlling electronic devices | |
CN107613202A (en) | A kind of image pickup method and mobile terminal | |
CN105894042B (en) | The method and apparatus that detection certificate image blocks | |
CN105678242A (en) | Focusing method and apparatus in the mode of holding certificate in hands | |
CN109167893A (en) | Shoot processing method, device, storage medium and the mobile terminal of image | |
CN106161933B (en) | A kind of image processing method and mobile terminal | |
CN109359582B (en) | Information searching method, information searching device and mobile terminal | |
CN106454085A (en) | Image processing method and mobile terminal | |
CN107480500A (en) | The method and mobile terminal of a kind of face verification | |
CN113873166A (en) | Video shooting method and device, electronic equipment and readable storage medium | |
CN106981048A (en) | A kind of image processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |