Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of photographic method and photo terminal, terminal inspection
It is at least two people to measure in shooting preview picture, and detects that someone is in human eye closed state at least two people
When, terminal executes the action continuously taken pictures automatically, and since the time interval that people blinks when taking pictures is very short, terminal is executing
The picture that at least two people is completely in eyes-open state can be captured when continuously taking pictures, and ensure that the coordination of shooting photo
It is beautiful.
In a first aspect, an embodiment of the present invention provides a kind of photographic methods, including:
Preview screen is obtained under exposal model;
Detect the number in the preview screen;
If detecting in the preview screen there are at least two people, detect at least two people whether someone is in
Human eye closed state is continuously taken pictures if someone is in the human eye closed state at least two people.
With reference to first aspect, in the first possible implementation, the number in the detection preview screen, packet
It includes:
The portrait number in the preview screen is detected by face recognition technology, if the portrait in the preview screen
Number is more than or equal to two, then testing result is that there are at least two people in the preview screen.
With reference to first aspect, in second of possible realization method, number in the detection preview screen it
Afterwards, further include:
A people is only existed in the preview screen if detecting, whether detects one people from the human eye closed form
State switchs to human eye and opens state, if one people switchs to the human eye from the human eye closed state opens state, is connected
It is continuous to take pictures.
Second of possible realization method with reference to first aspect, in the third possible realization method of first aspect
In, if one people switchs to the human eye from the human eye closed state opens state, after continuously being taken pictures, also
Including:
Whether the eyeball size for detecting one people meets default eyeball size, if so, stopping taking pictures.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method of first aspect
In, whether the eyeball size of the one people of detection meets default eyeball size, including:
The eyeball size that one people is detected by iris recognition technology judges eyeball size and the institute of one people
Whether the difference for stating default eyeball size is less than predetermined threshold value;
If the difference of the eyeball size for judging one people and the default eyeball size is less than the predetermined threshold value,
Then testing result is that the eyeball size of one people meets the default eyeball size, if judging the eyeball of one people
The difference of size and the default eyeball size is more than or equal to the predetermined threshold value, then testing result is one people's
Eyeball size does not meet the default eyeball size.
Second aspect, an embodiment of the present invention provides a kind of photo terminals, including:
Acquiring unit, for obtaining preview screen under exposal model;
First detection unit, for detecting the number in the preview screen;
First photographing unit, if for detecting in the preview screen there are at least two people, at least two described in detection
Whether someone is in human eye closed state in individual, if someone is in the human eye closed state at least two people, into
Row is continuously taken pictures.
In conjunction with second aspect, in the first possible implementation, the first detection unit is specifically used for passing through people
Face identification technology detects the portrait number in the preview screen, if the portrait number in the preview screen is more than or equal to
Two, then testing result is that there are at least two people in the preview screen.
Further include in second of possible realization method in conjunction with second aspect:
Second photographing unit, if only existing a people in the preview screen for detecting, detecting one people is
It is no to switch to human eye from the human eye closed state and open state, if one people switchs to the people from the human eye closed state
Eye opens state, is continuously taken pictures.
In conjunction with second of possible realization method of second aspect, in the third possible realization method of second aspect
In, further include:
Second detection unit, whether the eyeball size for detecting one people meets default eyeball size, if so, stopping
Only take pictures.
In conjunction with the third possible realization method of second aspect, in the 4th kind of possible realization method of second aspect
In, the second detection unit is specifically used for detecting the eyeball size of one people by iris recognition technology, described in judgement
Whether the eyeball size of one people and the difference of the default eyeball size are less than predetermined threshold value;
If the difference of the eyeball size for judging one people and the default eyeball size is less than the predetermined threshold value,
Then testing result is that the eyeball size of one people meets the default eyeball size, if judging the eyeball of one people
The difference of size and the default eyeball size is more than or equal to the predetermined threshold value, then testing result is one people's
Eyeball size does not meet the default eyeball size.
By implementing the embodiment of the present invention, it is at least two people that terminal, which detects in shooting preview picture, and detects institute
When stating that someone is in human eye closed state at least two people, terminal executes the action continuously taken pictures automatically, since people is taking pictures
When the time interval blinked it is very short, therefore terminal can capture at least two people and be completely in executing the when of continuously taking pictures
The picture of eyes-open state;A people is only existed in shooting preview picture when terminal detects, and detects that this person is closed from human eye
State is changed into human eye when opening state, and terminal executes the action continuously taken pictures automatically, so as to avoid this in the photo taken
People is in human eye closed state, and when terminal detects that the eyeball size of this person reaches preset best size, stops taking pictures,
It ensure that the coordination of shooting photo is beautiful, using the embodiment of the present invention, the more satisfied photo of user can be shot.
Specific implementation mode
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 describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is the mesh only merely for description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singulative used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other meanings.It is also understood that this
Term "and/or" used herein refers to and includes one or more associated any or all possible group of list items purposes
It closes.
An embodiment of the present invention provides a kind of photographic method and photo terminal, terminal detects in shooting preview picture as extremely
When lacking two people, and detecting that someone is in human eye closed state at least two people, terminal is executed and is continuously taken pictures automatically
Action, since the time interval that people blinks when taking pictures is very short, terminal execute continuously take pictures when can capture institute
The picture that at least two people are completely in eyes-open state is stated, ensure that the coordination of shooting photo is beautiful.For the ease of understanding this hair
Bright embodiment is below first described the photographic method of the embodiment of the present invention.
It is the flow diagram of the first embodiment of photographic method provided in an embodiment of the present invention referring to Fig. 1, this method is answered
For terminal, this method can include but is not limited to following steps.
S101, preview screen is obtained under exposal model.
In the embodiment of the present invention, terminal obtains the preview screen of shooting under exposal model.Wherein, the terminal include but
It is not limited to camera apparatus (digital camera etc.), PC, smart mobile phone (such as Android phone, iOS mobile phones), tablet
The tools such as computer, palm PC, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent equipment
There is the equipment of camera function.After the terminal starts camera application, the automatic preview screen for obtaining shooting, to described pre-
Picture of looking at carries out analyzing processing.
Number in S103, the detection preview screen.
In the embodiment of the present invention, the terminal detects after getting the preview screen of shooting in the preview screen
Number, existing photo terminal generally have face identification functions, enter exposal model in the terminal and get shooting
Preview screen after, the terminal is identified the face in the preview screen by face recognition technology, to confirm
Number in the preview screen.
It should be noted that the terminal can detect the portrait in the preview screen by face recognition technology
Number, so that it is determined that the number in the preview screen, if the portrait number in the preview screen is more than or equal to two,
Testing result is that there are at least two people in the preview screen, if the portrait number in the preview screen is one, is examined
It is to only exist a people in the preview screen to survey result.Alternatively, the terminal can also detect institute by face recognition technology
The human eye number in preview screen is stated, so that it is determined that the number in the preview screen, if the human eye in the preview screen
Number is more than or equal to four, then testing result is that there are at least two people in the preview screen, if in the preview screen
Human eye number be two, then testing result be the preview screen in only exist a people.
Whether if S105, detecting that there are at least two people in the preview screen, detecting has at least two people
People is in human eye closed state, if someone is in the human eye closed state at least two people, is continuously taken pictures.
In the embodiment of the present invention, if the terminal detects in the preview screen there are when at least two people, the end
End continues to detect at least two people whether someone is in human eye closed state, if the terminal detects described at least two
Someone is in the human eye closed state in individual, then the terminal executes the action continuously taken pictures automatically, since people is taking pictures
When the time interval blinked it is very short, at least two people can be captured in the photo for the default number being continuously shot and is all located
Picture when eyes-open state.For example, the terminal can by face recognition technology to described in the preview screen at least
The human eye state of each in two people is detected, so that it is determined that whether someone is in the people at least two people
Eye closed state, wherein the human eye closed state can be pre-set by terminal user, can also taking pictures by the terminal
System default is arranged, and the number that the terminal is continuously taken pictures can be set by terminal user, can also be write from memory by the terminal system
Recognize setting, the embodiment of the present invention is not especially limited.
Further, it is that the flow of second embodiment of photographic method provided in an embodiment of the present invention is shown as shown in Figure 2
It is intended to, this method is applied to terminal, and this method can include but is not limited to following steps.
S201, preview screen is obtained under exposal model.
In the embodiment of the present invention, terminal obtains the preview screen of shooting under exposal model.Wherein, the terminal include but
It is not limited to camera apparatus (digital camera etc.), PC, smart mobile phone (such as Android phone, iOS mobile phones), tablet
The tools such as computer, palm PC, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent equipment
There is the equipment of camera function.After the terminal starts camera application, the automatic preview screen for obtaining shooting, to described pre-
Picture of looking at carries out analyzing processing.
Number in S203, the detection preview screen.
In the embodiment of the present invention, the terminal detects after getting the preview screen of shooting in the preview screen
Number, existing photo terminal generally have face identification functions, enter exposal model in the terminal and get shooting
Preview screen after, the terminal is identified the face in the preview screen by face recognition technology, to confirm
Number in the preview screen.
It should be noted that the terminal can detect the portrait in the preview screen by face recognition technology
Number, so that it is determined that the number in the preview screen, if the portrait number in the preview screen is more than or equal to two,
Testing result is that there are at least two people in the preview screen, if the portrait number in the preview screen is one, is examined
It is to only exist a people in the preview screen to survey result.Alternatively, the terminal can also detect institute by face recognition technology
The human eye number in preview screen is stated, so that it is determined that the number in the preview screen, if the human eye in the preview screen
Number is more than or equal to four, then testing result is that there are at least two people in the preview screen, if in the preview screen
Human eye number be two, then testing result be the preview screen in only exist a people.
Whether if S205, detecting that there are at least two people in the preview screen, detecting has at least two people
People is in human eye closed state, if someone is in the human eye closed state at least two people, is continuously taken pictures.
In the embodiment of the present invention, if the terminal detects in the preview screen there are when at least two people, the end
End continues to detect at least two people whether someone is in human eye closed state, if the terminal detects described at least two
Someone is in the human eye closed state in individual, then the terminal executes the action continuously taken pictures automatically, since people is taking pictures
When the time interval blinked it is very short, at least two people can be captured in the photo for the default number being continuously shot and is all located
Picture when eyes-open state.For example, the terminal can by face recognition technology to described in the preview screen at least
The human eye state of each in two people is detected, so that it is determined that whether someone is in the people at least two people
Eye closed state, wherein the human eye closed state can be pre-set by terminal user, can also taking pictures by the terminal
System default is arranged, and the number that the terminal is continuously taken pictures can be set by terminal user, can also be write from memory by the terminal system
Recognize setting, the embodiment of the present invention is not especially limited.
If S207, detecting and only existing a people in the preview screen, whether one people is detected from the human eye
Closed state switchs to human eye and opens state, if one people switchs to the human eye from the human eye closed state opens state,
Continuously taken pictures.
In the embodiment of the present invention, if the terminal detects that the preview is drawn using face recognition technology or other technologies
When only existing a people in face, the terminal continues to detect whether one people is in human eye closed state, if detecting institute
It states a people and is in the human eye closed state, then the terminal persistently detects the human eye state of one people, when the end
When end detects that one people is changed into human eye from the human eye closed state and opens state, the terminal executes continuous automatically
The action taken pictures is in shooting picture when human eye opens state to capture one people, what the terminal was continuously taken pictures
Number can be set by terminal user, can also be opened by the terminal system default setting, the human eye closed state and human eye
Open state can be pre-set by user, can also be not especially limited by terminal system default setting, the embodiment of the present invention.
Further, it is that the flow of 3rd embodiment of photographic method provided in an embodiment of the present invention is shown as shown in Figure 3
It is intended to, this method is applied to terminal, and this method can include but is not limited to following steps.
S301, preview screen is obtained under exposal model.
Number in S303, the detection preview screen.
Whether if S305, detecting that there are at least two people in the preview screen, detecting has at least two people
People is in human eye closed state, if someone is in the human eye closed state at least two people, is continuously taken pictures.
If S307, detecting and only existing a people in the preview screen, whether one people is detected from the human eye
Closed state switchs to human eye and opens state, if one people switchs to the human eye from the human eye closed state opens state,
Continuously taken pictures.
S301-S307 in the embodiment of the present invention can be found in the S201-S207 of embodiment illustrated in fig. 2, and this will not be repeated here.
Whether S309, the eyeball size for detecting one people meet default eyeball size, if so, stopping taking pictures.
In the embodiment of the present invention, a people of the terminal in detecting the preview screen is from the human eye closed form
State switchs to after the human eye opens state, execute the action continuously taken pictures automatically, the terminal executes continuously take pictures during,
The terminal continues to detect the eyeball size of one people, to judge it is default whether the eyeball size of one people meets
Eyeball size, when the terminal detects that the eyeball size of one people meets the default eyeball size, i.e., the described end
When end detects that the eyeball size of one people reaches the eyeball size for being most suitable for shooting, the terminal triggering stops clapping
According to, wherein the default eyeball size can be pre-set by terminal user, can also pass through the camera system of the terminal
Default setting, the embodiment of the present invention are not especially limited.
It should be noted that the terminal can detect the eyeball size of one people by iris recognition technology, from
And judge whether the eyeball size of one people is less than predetermined threshold value with the difference of the default eyeball size, if judging institute
The difference of the eyeball size and the default eyeball size of stating a people is less than the predetermined threshold value, then testing result is described one
Personal eyeball size meets the default eyeball size, if judging the eyeball size of one people and the default eyeball
The difference of size is more than or equal to the predetermined threshold value, then testing result is not met described for the eyeball size of one people
Default eyeball size.
The above-mentioned method for illustrating the embodiment of the present invention, following for convenient for preferably implementing the embodiment of the present invention
Said program is correspondingly also provided below for coordinating the associated terminal for implementing said program.
The structural schematic diagram of the first embodiment of photo terminal provided in an embodiment of the present invention as shown in Figure 4, takes pictures end
End 40 includes:Acquiring unit 401, first detection unit 403 and the first photographing unit 405, wherein
Acquiring unit 401, for obtaining preview screen under exposal model.
First detection unit 403, for detecting the number in the preview screen.
The first detection unit 403 is specifically used for detecting the portrait in the preview screen by face recognition technology
Number, if the portrait number in the preview screen is more than or equal to two, testing result is to exist in the preview screen
At least two people.
First photographing unit 405, if for detecting in the preview screen there are at least two people, described in detection at least
Whether someone is in human eye closed state in two people, if someone is in the human eye closed state at least two people,
Continuously taken pictures.
It will be appreciated that the function of each function module of the photo terminal 40 of the present embodiment can be according to above-mentioned Fig. 1 methods reality
The method specific implementation of example is applied, details are not described herein again.
Further, the structural representation of the second embodiment of photo terminal provided in an embodiment of the present invention as shown in Figure 5
Figure, photo terminal 40 include:Outside acquiring unit 401, first detection unit 403 and the first photographing unit 405, further include:Second
Photographing unit 407, wherein
Second photographing unit 407 detects one people if only existing a people in the preview screen for detecting
Whether switch to human eye from the human eye closed state and open state, if one people switch to from the human eye closed state it is described
Human eye opens state, is continuously taken pictures.
It will be appreciated that the function of each function module of the photo terminal 40 of the present embodiment can be according to above-mentioned Fig. 2 methods reality
The method specific implementation of example is applied, details are not described herein again.
Further, the structural representation of the 3rd embodiment of photo terminal provided in an embodiment of the present invention as shown in Figure 6
Figure, photo terminal 40 include:Acquiring unit 401, first detection unit 403, the first photographing unit 405 and the second photographing unit
Outside 407, further include:Second detection unit 409, wherein
Whether second detection unit 409, the eyeball size for detecting one people meet default eyeball size, if
It is to stop taking pictures.
The second detection unit 409 is specifically used for detecting the eyeball size of one people by iris recognition technology,
Whether the difference of the eyeball size for judging one people and the default eyeball size is less than predetermined threshold value.
It will be appreciated that the function of each function module of the photo terminal 40 of the present embodiment can be according to above-mentioned Fig. 3 methods reality
The method specific implementation of example is applied, details are not described herein again.
It is the structural schematic diagram of the fourth embodiment of photo terminal provided by the invention referring to Fig. 7.Wherein, such as Fig. 7 institutes
Show, photo terminal 70 may include:At least one processor 701, such as CPU, at least one bus 702, at least one input
Device 703 and at least one output device 704, memory 705.Wherein, bus 702 is for realizing the communication between these components
Connection;The touch panel of the concretely terminal of input unit 703, including touch screen and touch screen are used for detection terminal touch surface
Operational order on plate;Output device 704 may include the display screen (Display) of terminal, for export, show image or
Data;Memory 705 can be high-speed RAM display, can also be non-labile display (non-volatile
Memory), a for example, at least disk display, memory 705 optionally can also be at least one and be located remotely from aforementioned place
Manage the display device of device 701.As shown in fig. 7, as may include operation system in a kind of memory 705 of Computer display medium
System, network communication module, Subscriber Interface Module SIM and camera program.
In terminal 70 shown in Fig. 7, processor 701 can be used for sharing the camera program stored in memory 705, and
Execute following operation:
Preview screen is obtained under exposal model;
Detect the number in the preview screen;
If detecting in the preview screen there are at least two people, detect at least two people whether someone is in
Human eye closed state is continuously taken pictures if someone is in the human eye closed state at least two people.
Further, processor 701, which executes the step of number in the detection preview screen, to be specially:
The portrait number in the preview screen is detected by face recognition technology, if the portrait in the preview screen
Number is more than or equal to two, then testing result is that there are at least two people in the preview screen.
Further, after processor 701 executes the step of number in the detection preview screen, processor
If 701 are additionally operable to detect and only exist a people in the preview screen, detect whether one people is closed from the human eye
State switchs to human eye and opens state, if one people switchs to the human eye from the human eye closed state opens state, carries out
Continuously take pictures.
Further, if processor 701 executes one people and switchs to the people from the human eye closed state
After eye the step of opening state, continuously being taken pictures, processor 701 be additionally operable to detect one people eyeball size whether
Meet default eyeball size, if so, stopping taking pictures.
Further, processor 701 executes whether the eyeball size for detecting one people meets default eyeball
The step of size can be specially:
The eyeball size that one people is detected by iris recognition technology judges eyeball size and the institute of one people
Whether the difference for stating default eyeball size is less than predetermined threshold value;
If the difference of the eyeball size for judging one people and the default eyeball size is less than the predetermined threshold value,
Then testing result is that the eyeball size of one people meets the default eyeball size, if judging the eyeball of one people
The difference of size and the default eyeball size is more than or equal to the predetermined threshold value, then testing result is one people's
Eyeball size does not meet the default eyeball size.
It will be appreciated that for details, reference can be made in described in Fig. 1 or Fig. 2 or Fig. 3 embodiments for the execution step of processor 701
Hold, which is not described herein again.
In conclusion by implementing the embodiment of the present invention, terminal detects in shooting preview picture to be at least two people, and
When detecting that someone is in human eye closed state at least two people, terminal executes the action continuously taken pictures automatically, due to
The time interval that people blinks when taking pictures is very short, therefore terminal can capture at least two people when executing continuous take pictures
It is completely in the picture of eyes-open state;A people is only existed in shooting preview picture when terminal detects, and detect this person from
Human eye closed state is changed into human eye when opening state, and terminal executes the action continuously taken pictures automatically, so as to avoid what is taken
This person is in human eye closed state in photo, and when terminal detects that the eyeball size of this person reaches preset best size,
Stopping is taken pictures, and be ensure that the coordination of shooting photo is beautiful, using the embodiment of the present invention, can be shot the more satisfied photograph of user
Piece.
Module in all embodiments of the invention or submodule can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application-specific integrated circuit) it realizes.
The step of method of the embodiment of the present invention, sequentially can be adjusted, merges or delete according to actual needs.This hair
The module of the terminal of bright embodiment can be integrated, further divide or delete according to actual needs.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention
Equivalent variations made by profit requirement, still belong to the scope covered by the invention.