CN104683680A - A method, device and mobile terminal for automatically taking a picture - Google Patents

A method, device and mobile terminal for automatically taking a picture Download PDF

Info

Publication number
CN104683680A
CN104683680A CN201310618722.9A CN201310618722A CN104683680A CN 104683680 A CN104683680 A CN 104683680A CN 201310618722 A CN201310618722 A CN 201310618722A CN 104683680 A CN104683680 A CN 104683680A
Authority
CN
China
Prior art keywords
mouth
holder
action
mobile terminal
out opening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310618722.9A
Other languages
Chinese (zh)
Inventor
柳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310618722.9A priority Critical patent/CN104683680A/en
Publication of CN104683680A publication Critical patent/CN104683680A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a method, device and mobile terminal for automatically taking a picture. The method includes: obtaining, by a mobile terminal, a facial image of a holder of the mobile terminal acquired from a front-facing camera; determining a mouth area in the facial image; when an attribute characteristic value of the mouth area meets a preset condition for a motion of opening the mouth, determining the holder of the mobile terminal performs the motion of opening the mouth; and when the time of duration of the motion of opening the mouth exceeds a preset time threshold, initiating a rear camera of the mobile terminal for taking a picture. Using the solution provided in the embodiment of the present invention, compared to the prior art, the problem of a vague image caused by jitter of the mobile terminal while taking a picture is avoided, and the quality of the imaging taken by the mobile terminal is increased.

Description

A kind of automatic photographing method, device and mobile terminal
Technical field
The present invention relates to automatic camera field, particularly relate to a kind of automatic photographing method, device and mobile terminal.
Background technology
At present, the function of mobile terminal gets more and more, and the mobile terminal possessing camera function is also more and more general, under normal circumstances, when taking pictures, need the holder of mobile terminal to complete by hand click shoot button to take pictures, but, click shoot button the holder of mobile terminal and carry out in the process of taking pictures, easily cause the shake of mobile terminal, and then cause the image blurring of shooting, even if the shake of mobile terminal is smaller, the quality of the image of shooting also can be affected.Therefore, in order to avoid the problems referred to above, the research for mobile terminal automatic photo function becomes the focus of Recent study.
Summary of the invention
The embodiment of the present invention provides a kind of automatic photographing method, device and mobile terminal, in order to solve the click shoot button existed in prior art carry out taking pictures cause take image blurring problem.
The embodiment of the present invention provides a kind of automatic photographing method, comprising:
The face-image of the holder of this mobile terminal that acquisition for mobile terminal is gathered by front-facing camera;
Determine the mouth region in described face-image;
When the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of described mobile terminal carries out opening one's mouth action;
When described duration length of opening one's mouth is greater than preset time threshold, the post-positioned pick-up head starting described mobile terminal is taken pictures.
Adopt the said method that the embodiment of the present invention provides, holder due to mobile terminal does not need can complete by hand click shoot button to take pictures, avoid mobile terminal shake, and then avoid mobile terminal and shake the fuzzy problem of the photographic images that causes, improve the quality of mobile terminal photographic images.
Further, determine the mouth region in described face-image, specifically comprise:
The region meeting preset shape is determined in described face-image;
If the region meeting preset shape is unique, the described region meeting preset shape is defined as mouth region;
If the region meeting preset shape is not unique, the region meeting preset shape being positioned at described face-image bottom is defined as mouth region.
Due to the shape of eye and mouth shapes similar, so can avoid the judgement of ocular mistake is like this mouth region.
Further, when the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of described mobile terminal carries out opening one's mouth action, specifically comprise:
When the ratio that the area of described mouth region accounts for the area of described face-image is greater than the first preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the ratio that the area of the boundary rectangle of described mouth region accounts for the area of described face-image is greater than the second preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of the boundary rectangle of described mouth region is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action.
Like this, any one mode in above-mentioned various ways can be adopted in practical application flexibly to judge whether holder carries out opening one's mouth action, when opening one's mouth according to people, the setting of mouth feature situation is pre-conditioned, as long as when the attributive character value of this mouth region meets the pre-conditioned of action of opening one's mouth, can determine that this holder carries out opening one's mouth action.
Further, determine the sum of all pixels of white in described mouth region, specifically comprise:
The coloured image of described mouth region is converted to gray level image;
Determine the grey level histogram of described gray level image;
Number of pixels corresponding for gray scale each in pre-set interval in described grey level histogram is sued for peace, determines the sum of all pixels of white in described mouth region, each gray level expressing white in described pre-set interval.
Further, according to multiple face-images of the holder that continuous several times gathers, determine that holder continues to carry out opening one's mouth action, specifically comprise:
Determine that multiple face-images of the holder of continuous several times collection all represent that holder carries out opening one's mouth action; And by the time interval of often adjacent twice collection in multi collect and value, be defined as holder and carry out opening one's mouth the time duration of action; And when described time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action; Or
When the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
Like this, judging whether holder continues to carry out opening one's mouth action, be used as the trigger condition starting post-positioned pick-up head, can avoiding being mistaken for the trigger condition starting and take pictures by speaking normally.
Accordingly, the embodiment of the present invention also provides a kind of Automatic camera, comprising:
Image acquisition unit, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera;
Area determination unit, for determining the mouth region in described face-image;
Action determining unit, during for meeting action of opening one's mouth pre-conditioned when the attributive character value of described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action, wherein, described pre-conditioned when opening one's mouth according to people mouth feature situation determine;
Start unit, for the multiple face-images as the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting described mobile terminal is taken pictures.
Adopt the said apparatus that the embodiment of the present invention provides, holder due to mobile terminal does not need can complete by hand click shoot button to take pictures, avoid mobile terminal shake, and then avoid mobile terminal and shake the fuzzy problem of the photographic images that causes, improve the quality of mobile terminal photographic images.
Further, described area determination unit, determines the mouth region in described face-image, specifically for determining the region meeting preset shape in described face-image; If the region meeting preset shape is unique, the described region meeting preset shape is defined as mouth region; If the region meeting preset shape is not unique, the region meeting preset shape being positioned at described face-image bottom is defined as mouth region.
Due to the shape of eye and mouth shapes similar, so can avoid the judgement of ocular mistake is like this mouth region.
Further, described action determining unit, when the ratio specifically for accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the ratio that the area of the boundary rectangle of described mouth region accounts for the area of described face-image is greater than the second preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of the boundary rectangle of described mouth region is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action.
Like this, any one mode in above-mentioned various ways can be adopted in practical application flexibly to judge whether holder carries out opening one's mouth action, when opening one's mouth according to people, the setting of mouth feature situation is pre-conditioned, as long as when the attributive character value of this mouth region meets the pre-conditioned of action of opening one's mouth, can determine that this holder carries out opening one's mouth action.
Further, described action determining unit determines the sum of all pixels of white in described mouth region, specifically for the coloured image of described mouth region is converted to gray level image; And determine the grey level histogram of described gray level image; Number of pixels corresponding for gray scale each in pre-set interval in described grey level histogram is sued for peace, determines the sum of all pixels of white in described mouth region, each gray level expressing white in described pre-set interval.
Further, described start unit, according to multiple face-images of the holder that continuous several times gathers, determine that holder continues to carry out opening one's mouth action, specifically for determining that multiple face-images of the holder of continuous several times collection all represent that holder carries out opening one's mouth action; And by the time interval of often adjacent twice collection in multi collect and value, be defined as holder and carry out opening one's mouth the time duration of action; And when described time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action; Or when the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
Like this, judging whether holder continues to carry out opening one's mouth action, be used as the trigger condition starting post-positioned pick-up head, can avoiding being mistaken for the trigger condition starting and take pictures by speaking normally.
The embodiment of the present invention also provides a kind of mobile terminal, comprising: above-mentioned Automatic camera, front-facing camera and post-positioned pick-up head, wherein:
Described Automatic camera, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera; Determine the mouth region in described face-image; And when the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of described mobile terminal carries out opening one's mouth action; And work as multiple face-images of the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting described mobile terminal is taken pictures;
Described front-facing camera, for gathering the face-image of the holder of described mobile terminal;
Described post-positioned pick-up head, for after being started by described Automatic camera, carries out photographing operation.
Adopt the mobile terminal that the embodiment of the present invention provides, because holder does not need can complete by hand click shoot button to take pictures, avoid mobile terminal shake, and then avoid mobile terminal and shake the fuzzy problem of the photographic images that causes, improve the quality of mobile terminal photographic images.
The further feature of the application and advantage will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the application.The object of the application and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, is used from explanation the present invention, is not construed as limiting the invention with the embodiment of the present invention one.In the accompanying drawings:
One of flow chart of the automatic photographing method that Fig. 1 provides for the embodiment of the present invention;
The flow chart two of the automatic photographing method that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the Automatic camera that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the mobile terminal that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Avoid clicking shoot button to carry out taking pictures the fuzzy implementation of the photographic images that causes to provide, embodiments provide a kind of automatic photographing method, device and mobile terminal, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein, only for instruction and explanation of the present invention, is not intended to limit the present invention.And when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
The embodiment of the present invention provides a kind of automatic photographing method, and idiographic flow as shown in Figure 1, comprises
The face-image of the holder of this mobile terminal that step 101, acquisition for mobile terminal are gathered by front-facing camera.
Step 102, the mouth region determined in this face-image.
Step 103, when the attributive character value of this mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of this mobile terminal carries out opening one's mouth action, wherein, this is pre-conditioned when opening one's mouth according to people, and mouth feature situation is determined.
Step 104, multiple face-images as the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting this mobile terminal is taken pictures.
In the method that above-described embodiment provides, when the holder of mobile terminal is for certain scenery of shooting, start front-facing camera and post-positioned pick-up head simultaneously, the face-image of this holder gathered by front-facing camera, judge whether this holder continues to carry out opening one's mouth action, using the trigger condition that the action that continues to carry out to open one's mouth is taken pictures as post-positioned pick-up head, when judging that this holder continues to carry out opening one's mouth action, starting post-positioned pick-up head and taking pictures.Under normal circumstances, the action of opening one's mouth carried out when people speak is not continuation, and therefore, this method avoid the action recognition of opening one's mouth of being undertaken speaking normally is start the trigger condition of taking pictures.
Adopt the said method that the embodiment of the present invention provides, holder due to mobile terminal does not need can complete by hand click shoot button to take pictures, avoid mobile terminal shake, and then avoid mobile terminal and shake the fuzzy problem of the photographic images that causes, improve the quality of mobile terminal photographic images.
Below in conjunction with accompanying drawing, with specific embodiment, method provided by the invention and device and corresponding system are described in detail.
The face-image of the holder of this mobile terminal that step 201, acquisition for mobile terminal are gathered by front-facing camera.
In this step, mobile terminal starts front-facing camera and post-positioned pick-up head simultaneously, front-facing camera is aimed at the face of this mobile terminal holder, post-positioned pick-up head aims at the scenery that will take, in order to the face-image of holder can be gathered accurately, on this mobile terminal, the image that front-facing camera and post-positioned pick-up head collect can be shown, so simultaneously, be convenient to holder and front-facing camera is aimed at face, improve Consumer's Experience.
Step 202, in this face-image, determine the region meeting preset shape.
Wherein, because the mouth shapes of people is roughly ellipse, so, in this step, preset shape can be adopted to be that ellipse identifies, again due to the shape of mouth and the shape of eye similar, carry out ellipse identification and likely can identify multiple region, therefore, if when the region meeting preset shape is unique, the region meeting preset shape by this is defined as mouth region; If the region meeting preset shape is not unique, then the region meeting preset shape being positioned at this face-image bottom is defined as mouth region.
Step 203, determine the area of mouth region, and judge whether the area of this mouth region is greater than the first preset area threshold value.If so, step 204 is performed, otherwise, return step 201.
Step 204, the coloured image of this mouth region is converted to gray level image.
Step 205, determine the grey level histogram of this gray level image.
Wherein, grey level histogram is the function of gray scale, has the number of the pixel of certain gray scale in its presentation video, reflects the frequency that in image, certain gray scale occurs.
Step 206, number of pixels corresponding for gray scale each in pre-set interval in this grey level histogram to be sued for peace, determine the sum of all pixels of white in this mouth region.Gray level expressing white in this pre-set interval.
Such as, gray scale i represents, the number of pixels that i is corresponding is G(i), if set pre-set interval corresponding to white as [a, b], so by number of pixels corresponding for each gray scale in [a, b] summation, be formulated as:
P = Σ i = a b G ( i )
If P is greater than presetted pixel amount threshold, perform step 207, otherwise, return the face-image of this holder of step 201 Resurvey.
Above-mentioned steps 203 to step 206, for determining whether holder carries out opening one's mouth action, in practical application, can also adopt various ways to determine,
First kind of way, when the ratio that the area of this mouth region accounts for the area of this face-image is greater than the first preset ratio threshold value, determines that the holder of this mobile terminal carries out opening one's mouth action;
The second way, when the area of this mouth region is greater than the first preset area threshold value, determines that the holder of this mobile terminal carries out opening one's mouth action;
The third mode, when the ratio that the area of the boundary rectangle of this mouth region accounts for the area of this face-image is greater than the second preset ratio threshold value, determines that the holder of this mobile terminal carries out opening one's mouth action;
4th kind of mode, when the area of the boundary rectangle of this mouth region is greater than the second preset area threshold value, determines that the holder of this mobile terminal carries out opening one's mouth action;
5th kind of mode, when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determines that the holder of this mobile terminal carries out opening one's mouth action;
The ratio that 6th kind of mode accounts for the area of this face-image when the area of this mouth region is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action;
7th kind of mode, the ratio accounting for the area of this face-image when the area of the boundary rectangle of this mouth region is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action;
8th kind of mode, when the area of the boundary rectangle of this mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determines that the holder of this mobile terminal carries out opening one's mouth action.
Which kind of mode of concrete employing, can select flexibly, and when opening one's mouth according to people, the setting of mouth feature situation is pre-conditioned, as long as when the attributive character value of this mouth region meets the pre-conditioned of action of opening one's mouth, can determine that this holder carries out opening one's mouth action.
Step 207, determine whether this holder continues to carry out opening one's mouth action.
When judging that this holder continues to carry out opening one's mouth action, post-positioned pick-up head could be started and take pictures, therefore, in practical application, need the action that judges whether to open one's mouth of multiple face-images of this holder of multi collect to be continuation.When multiple face-images of the holder determining continuous several times collection all represent that holder carries out opening one's mouth action, by the time interval of often adjacent twice collection in multi collect and value, be defined as holder to carry out opening one's mouth the time duration of action, when this time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action.Or, preset a time cycle, when the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
If this holder continues to carry out opening one's mouth action, then perform step 208, otherwise, return step 201.
Step 208, the post-positioned pick-up head starting this mobile terminal are taken pictures.
Based on same inventive concept, according to the automatic photographing method that the above embodiment of the present invention provides, correspondingly, another embodiment of the present invention additionally provides a kind of Automatic camera, and apparatus structure schematic diagram as shown in Figure 3, specifically comprises:
Image acquisition unit 301, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera;
Area determination unit 302, for determining the mouth region in this face-image;
Action determining unit 303, during for meeting action of opening one's mouth pre-conditioned when the attributive character value of this mouth region, determines that the holder of this mobile terminal carries out opening one's mouth action, and wherein, this is pre-conditioned when opening one's mouth according to people, and mouth feature situation is determined;
Start unit 304, for the multiple face-images as the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting this mobile terminal is taken pictures.
Further, area determination unit 302, determines the mouth region in this face-image, specifically for determining the region meeting preset shape in this face-image; If the region meeting preset shape is unique, the region this being met preset shape is defined as mouth region; If the region meeting preset shape is not unique, the region meeting preset shape being positioned at this face-image bottom is defined as mouth region.
Further, action determining unit 303, when the ratio specifically for accounting for the area of this face-image when the area of this mouth region is greater than the first preset ratio threshold value, determines that the holder of this mobile terminal carries out opening one's mouth action; Or when the area of this mouth region is greater than the first preset area threshold value, determine that the holder of this mobile terminal carries out opening one's mouth action; Or when the ratio that the area of the boundary rectangle of this mouth region accounts for the area of this face-image is greater than the second preset ratio threshold value, determine that the holder of this mobile terminal carries out opening one's mouth action; Or when the area of the boundary rectangle of this mouth region is greater than the second preset area threshold value, determine that the holder of this mobile terminal carries out opening one's mouth action; Or when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action; Or the ratio that the area of working as this mouth region accounts for the area of this face-image is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action; Or when the area of this mouth region is greater than the first preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action; Or the ratio that the area of working as the boundary rectangle of this mouth region accounts for the area of this face-image is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action; Or when the area of the boundary rectangle of this mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in this mouth region, determine that the holder of this mobile terminal carries out opening one's mouth action.
Further, action determining unit 303, determines the sum of all pixels of white in this mouth region, specifically for the coloured image of this mouth region is converted to gray level image; And determine the grey level histogram of this gray level image; Number of pixels corresponding for gray scale each in pre-set interval in this grey level histogram is sued for peace, determines the sum of all pixels of white in this mouth region, each gray level expressing white in this pre-set interval.
Further, start unit 304, according to multiple face-images of the holder that continuous several times gathers, determines that holder continues to carry out opening one's mouth action, specifically for determining that multiple face-images of the holder of continuous several times collection all represent that holder carries out opening one's mouth action; And by the time interval of often adjacent twice collection in multi collect and value, be defined as holder and carry out opening one's mouth the time duration of action; And when this time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action; Or when the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
The function of above-mentioned each unit may correspond to the respective handling step in flow process shown in Fig. 1 to Fig. 2, does not repeat them here.
The embodiment of the present invention also provides a kind of mobile terminal, as shown in Figure 4, comprising: above-mentioned Automatic camera 401, front-facing camera 402 and post-positioned pick-up head 403, wherein:
Automatic camera 401, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera; Determine the mouth region in this face-image; And when the attributive character value of this mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of this mobile terminal carries out opening one's mouth action; And work as multiple face-images of the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting this mobile terminal is taken pictures;
Front-facing camera 402, for gathering the face-image of the holder of this mobile terminal;
Post-positioned pick-up head 403, for after being started by this Automatic camera, carries out photographing operation.
In sum, the scheme that the embodiment of the present invention provides, the face-image of the holder of this mobile terminal that acquisition for mobile terminal is gathered by front-facing camera; And determine the mouth region in this face-image; When the attributive character value of this mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of this mobile terminal carries out opening one's mouth action; And when this duration length of opening one's mouth is greater than preset time threshold, the post-positioned pick-up head starting this mobile terminal is taken pictures.The scheme that theres is provided of the embodiment of the present invention is provided, compared to prior art, avoids the problem that photographic images that when taking pictures, the shake of mobile terminal causes is fuzzy, improve the quality of mobile terminal photographic images.
The Automatic camera that the embodiment of the application provides realizes by computer program.Those skilled in the art should be understood that; above-mentioned Module Division mode is only the one in numerous Module Division mode; if be divided into other modules or do not divide module, as long as Automatic camera has above-mentioned functions, all should within the protection range of the application.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. an automatic photographing method, is characterized in that, comprising:
The face-image of the holder of this mobile terminal that acquisition for mobile terminal is gathered by front-facing camera;
Determine the mouth region in described face-image;
When the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of described mobile terminal carries out opening one's mouth action, wherein, described pre-conditioned when opening one's mouth according to people mouth feature situation determine;
When multiple face-images of the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting described mobile terminal is taken pictures.
2. the method for claim 1, is characterized in that, determines the mouth region in described face-image, specifically comprises:
The region meeting preset shape is determined in described face-image;
If the region meeting preset shape is unique, the described region meeting preset shape is defined as mouth region;
If the region meeting preset shape is not unique, the region meeting preset shape being positioned at described face-image bottom is defined as mouth region.
3. the method for claim 1, is characterized in that, when the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determines that the holder of described mobile terminal carries out opening one's mouth action, specifically comprises:
When the ratio that the area of described mouth region accounts for the area of described face-image is greater than the first preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the ratio that the area of the boundary rectangle of described mouth region accounts for the area of described face-image is greater than the second preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of the boundary rectangle of described mouth region is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action.
4. method as claimed in claim 3, is characterized in that, determines the sum of all pixels of white in described mouth region, specifically comprises:
The coloured image of described mouth region is converted to gray level image;
Determine the grey level histogram of described gray level image;
Number of pixels corresponding for gray scale each in pre-set interval in described grey level histogram is sued for peace, determines the sum of all pixels of white in described mouth region, each gray level expressing white in described pre-set interval.
5. the method for claim 1, is characterized in that, according to multiple face-images of the holder that continuous several times gathers, determines that holder continues to carry out opening one's mouth action, specifically comprises:
Determine that multiple face-images of the holder of continuous several times collection all represent that holder carries out opening one's mouth action; And by the time interval of often adjacent twice collection in multi collect and value, be defined as holder and carry out opening one's mouth the time duration of action; And when described time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action; Or
When the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
6. an Automatic camera, is characterized in that, comprising:
Image acquisition unit, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera;
Area determination unit, for determining the mouth region in described face-image;
Action determining unit, during for meeting action of opening one's mouth pre-conditioned when the attributive character value of described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action, wherein, described pre-conditioned when opening one's mouth according to people mouth feature situation determine;
Start unit, for the multiple face-images as the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting described mobile terminal is taken pictures.
7. device as claimed in claim 6, is characterized in that described area determination unit determines the mouth region in described face-image, specifically for determining the region meeting preset shape in described face-image; If the region meeting preset shape is unique, the described region meeting preset shape is defined as mouth region; If the region meeting preset shape is not unique, the region meeting preset shape being positioned at described face-image bottom is defined as mouth region.
8. device as claimed in claim 6, it is characterized in that, described action determining unit, when the ratio specifically for accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the ratio that the area of the boundary rectangle of described mouth region accounts for the area of described face-image is greater than the second preset ratio threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of described mouth region is greater than the first preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determines that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of described mouth region is greater than the first preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
The ratio accounting for the area of described face-image when the area of the boundary rectangle of described mouth region is greater than the second preset ratio threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action; Or
When the area of the boundary rectangle of described mouth region is greater than the second preset area threshold value, and when the sum of all pixels of white is greater than presetted pixel amount threshold in described mouth region, determine that the holder of described mobile terminal carries out opening one's mouth action.
9. device as claimed in claim 8, is characterized in that, described action determining unit determines the sum of all pixels of white in described mouth region, specifically for the coloured image of described mouth region is converted to gray level image; And determine the grey level histogram of described gray level image; Number of pixels corresponding for gray scale each in pre-set interval in described grey level histogram is sued for peace, determines the sum of all pixels of white in described mouth region, each gray level expressing white in described pre-set interval.
10. device as claimed in claim 6, it is characterized in that, described start unit, according to multiple face-images of the holder that continuous several times gathers, determine that holder continues to carry out opening one's mouth action, specifically for determining that multiple face-images of the holder of continuous several times collection all represent that holder carries out opening one's mouth action; And by the time interval of often adjacent twice collection in multi collect and value, be defined as holder and carry out opening one's mouth the time duration of action; And when described time duration is greater than preset time threshold, determine that holder continues to carry out opening one's mouth action; Or when the expression holder of consecutive periods collection carry out opening one's mouth the quantity of face-image of action be greater than pre-set image amount threshold time, determine that holder continues to carry out opening one's mouth action.
11. 1 kinds of mobile terminals, is characterized in that, comprising: Automatic camera, front-facing camera and post-positioned pick-up head as described in as arbitrary in claim 6-10, wherein:
Described Automatic camera, for obtaining the face-image of the holder of this mobile terminal gathered by front-facing camera; Determine the mouth region in described face-image; And when the attributive character value of described mouth region meets action of opening one's mouth pre-conditioned, determine that the holder of described mobile terminal carries out opening one's mouth action; And work as multiple face-images of the holder gathered according to continuous several times, when determining that holder continues to carry out opening one's mouth action, the post-positioned pick-up head starting described mobile terminal is taken pictures;
Described front-facing camera, for gathering the face-image of the holder of described mobile terminal;
Described post-positioned pick-up head, for after being started by described Automatic camera, carries out photographing operation.
CN201310618722.9A 2013-11-28 2013-11-28 A method, device and mobile terminal for automatically taking a picture Pending CN104683680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310618722.9A CN104683680A (en) 2013-11-28 2013-11-28 A method, device and mobile terminal for automatically taking a picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310618722.9A CN104683680A (en) 2013-11-28 2013-11-28 A method, device and mobile terminal for automatically taking a picture

Publications (1)

Publication Number Publication Date
CN104683680A true CN104683680A (en) 2015-06-03

Family

ID=53318193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310618722.9A Pending CN104683680A (en) 2013-11-28 2013-11-28 A method, device and mobile terminal for automatically taking a picture

Country Status (1)

Country Link
CN (1) CN104683680A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994300A (en) * 2015-07-20 2015-10-21 魅族科技(中国)有限公司 Photographing method and terminal
CN105718194A (en) * 2016-01-15 2016-06-29 深圳市金立通信设备有限公司 Image pick-up device control method and terminal
CN106101529A (en) * 2016-06-07 2016-11-09 广东欧珀移动通信有限公司 A kind of camera control method and mobile terminal
CN110493503A (en) * 2019-08-27 2019-11-22 Oppo广东移动通信有限公司 A kind of image-pickup method, electronic equipment and storage medium
CN112422823A (en) * 2020-11-09 2021-02-26 广汽本田汽车有限公司 Automatic visual shooting triggering method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627335A (en) * 2007-03-02 2010-01-13 索尼爱立信移动通讯股份有限公司 Remote control of an image capturing unit in a portable electronic device
JP2010011253A (en) * 2008-06-30 2010-01-14 Nikon Corp Photographing apparatus
CN101646017A (en) * 2008-08-07 2010-02-10 华晶科技股份有限公司 Automatic photographing method for face detection
CN102868857A (en) * 2009-07-15 2013-01-09 联发科技股份有限公司 Electronic device and method for operating the same
CN103269415A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Automatic photo taking method for face recognition and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627335A (en) * 2007-03-02 2010-01-13 索尼爱立信移动通讯股份有限公司 Remote control of an image capturing unit in a portable electronic device
JP2010011253A (en) * 2008-06-30 2010-01-14 Nikon Corp Photographing apparatus
CN101646017A (en) * 2008-08-07 2010-02-10 华晶科技股份有限公司 Automatic photographing method for face detection
CN102868857A (en) * 2009-07-15 2013-01-09 联发科技股份有限公司 Electronic device and method for operating the same
CN103269415A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Automatic photo taking method for face recognition and mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994300A (en) * 2015-07-20 2015-10-21 魅族科技(中国)有限公司 Photographing method and terminal
CN105718194A (en) * 2016-01-15 2016-06-29 深圳市金立通信设备有限公司 Image pick-up device control method and terminal
CN106101529A (en) * 2016-06-07 2016-11-09 广东欧珀移动通信有限公司 A kind of camera control method and mobile terminal
CN106101529B (en) * 2016-06-07 2019-05-21 Oppo广东移动通信有限公司 A kind of camera control method and mobile terminal
CN110493503A (en) * 2019-08-27 2019-11-22 Oppo广东移动通信有限公司 A kind of image-pickup method, electronic equipment and storage medium
CN112422823A (en) * 2020-11-09 2021-02-26 广汽本田汽车有限公司 Automatic visual shooting triggering method and device
CN112422823B (en) * 2020-11-09 2022-08-09 广汽本田汽车有限公司 Automatic visual shooting triggering method and device

Similar Documents

Publication Publication Date Title
CN110225248B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
CN107483834B (en) Image processing method, continuous shooting method and device and related medium product
EP3200446A1 (en) Method and apparatus for generating high dynamic range image
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
EP3323238B1 (en) Photographing apparatus using multiple exposure sensor and photographing method thereof
CN113395419A (en) Electronic device, control method, and computer-readable medium
CN104683680A (en) A method, device and mobile terminal for automatically taking a picture
CN103888683A (en) Mobile terminal and shooting method thereof
EP3062513B1 (en) Video apparatus and photography method thereof
CN104052933A (en) Method for determining dynamic range mode, and image obtaining apparatus
CN108307120B (en) Image shooting method and device and electronic terminal
CN106331497B (en) A kind of image processing method and terminal
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
CN105323484B (en) Rapid photographing method and electronic equipment
CN108419012A (en) Photographic method, device, storage medium and electronic equipment
CN104994305B (en) A kind of photographic method and equipment
CN110049240B (en) Camera control method and device, electronic equipment and computer readable storage medium
CN110731076A (en) Shooting processing method and device and storage medium
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
CN103179349A (en) Automatic photographing method and device
CN108492266B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
EP3304551B1 (en) Adjusting length of living images
CN109120856B (en) Camera shooting method and device
CN104978566A (en) Picture processing method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150603

RJ01 Rejection of invention patent application after publication