Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
A kind of method embodiments providing automatic camera, it comprises the steps that the ginseng obtaining focusing area
Examine image distance;Gather the real-time image distance of described focusing area;Judge that described real-time image distance and described reference image are away from it
Between relation whether meet and preset shooting condition;If judge described real-time image distance and described reference image away between
Relation meet preset shooting condition, then shoot based on described real-time image distance.The embodiment of the present invention from
The dynamic method taken pictures can go out preferable shooting time and shoot by automatic decision, it is possible to increase shooting effect and
Shooting efficiency.
Below in conjunction with the accompanying drawings and detailed description of the invention, the technical scheme of the embodiment of the present invention is described in detail.
As it is shown in figure 1, the method for the automatic camera of the embodiment of the present invention may comprise steps of:
Step S110, obtain focusing area reference image away from.Wherein, the reference image that terminal obtains is away from in advance
To the distance between camera lens and the object of reference projection of defocused terminal.Reference image is away from being mainly used in as shooting condition
In basis of reference.Such as, pre-selected object of reference is being carried out defocused by the terminal of the embodiment of the present invention,
Show that the reference image of focusing area is away from for v1, then the data obtained in this step are that reference image is away from v1。
Obtain focusing area reference image away from before, terminal also needs to pre-set shooting condition, specifically
For specifying according to the acquisition parameters shooting device in terminal for the image distance error burst as shooting condition.By
Shooting device parameters in terminal limits, and makes terminal have certain scope of application when shooting.Concrete,
Supplier, after producing capture apparatus, is generally carried out shooting the observing and controlling of device parameters, such as, is supervised by reality
Survey can draw terminal can subject away from the range of [ua, ub], according to the record of aperture change during monitoring,
Can learn that the adjustable interval of focal distance f is for [fa, fb], then by the relation 1/u (thing of image distance, object distance and focal length
Away from)+1/v (image distance)=1/f (focal length) calculates, can learn that the image distance that this terminal can regulate and control in actual applications is
v∈[va, vb], and according to the data of these reality, the regulation embodiment of the present invention needs the picture of application
Away from error burst, such as, could dictate that image distance error burst is for [σx, σy], it is recorded as presetting by this interval
Shooting condition, then can directly apply the image distance error burst as default shooting condition to taking pictures in subsequent step
Opportunity judges.It is with the acquisition parameters shooting device for according to carrying out that this step arranges image distance error burst
Arrange, and can need to take the circumstances into consideration to adjust according to the shooting in reality application.
Step S111, gathers the real-time image distance of described focusing area.Wherein, the real-time image distance that terminal obtains is
Distance between camera lens and the object of reference projection of terminal during current focusing.Image distance is mainly used in aforesaid in real time
Reference image is away from comparing, and whether judge currently to obtain opportunity of real-time image distance is preferably right moment for camera.
Concrete acquisition method is, the object of reference that terminal is selected in step S110 carries out again working as defocused collection
Front real-time image distance.Such as, the terminal of the embodiment of the present invention carries out reality in this step again to selected object of reference
Time focusing, and gather current real-time image distance v2。
Step S112, it is judged that in real time image distance and reference image away between relation whether meet and preset shooting condition.
This step is to carry out judging according to the shooting condition arranged before step S110, is embodied as comprising the steps that meter
Calculate reference image error amount between real-time image distance;Judge this error amount whether shooting condition image distance by mistake
In difference is interval;If this error amount is in image distance error burst, then it is assumed that in real time image distance and reference image away between
Relation meets presets shooting condition.
In implementing, calculate reference image error amount between real-time image distance and can directly pass through step S110
The reference image obtained carries out error analysis away from the real-time image distance gathered with step S111, and calculates error amount.Example
As, according to the reference image obtained away from v1With real-time image distance v gathered2Carry out error analysis, and draw real-time picture
Away from error amount σ1。
In implementing, it is judged that whether this error amount is in image distance error burst.Wherein, it may be judged whether comprise
Can directly be judged by aforesaid real-time image distance error amount in image distance error burst, such as, abovementioned steps
Error analysis after drawn real-time image distance error amount σ1, then check σ1Whether it is contained in image distance error burst
[σx, σy], if σ1∈[σx, σy], then the error amount drawn is in image distance error burst;If The error amount then drawn is not in image distance error burst.
In implementing, if error amount is in image distance error burst, then it is assumed that image distance and reference image are away from it in real time
Between relation meet and preset shooting condition, such as aforementioned citing, if σ1∈[σx, σy], then collect in real time
Image distance v2Time be a preferable right moment for camera;Correspondingly, if error amount is not in image distance error burst, then
Think real-time image distance and reference image away between relation be unsatisfactory for presetting shooting condition, such as aforementioned citing, ifSo collect real-time image distance v2Time be a preferable right moment for camera.
Step S113, if judge real-time image distance and reference image away between relation meet preset shooting condition,
Then shoot based on described real-time image distance.Preferable right moment for camera, this step has been judged by step S112
Suddenly will shoot based on the real-time image distance representing preferable right moment for camera.
Additionally, if step S112 is judged real-time image distance and reference image away between relation be unsatisfactory for preset bat
Take the photograph condition, the most just represent the current not conformance with standard of the right moment for camera representated by real-time image distance, then eventually
End is by real-time for Resurvey image distance, and based on default shooting condition and reference image away from carrying out conditional judgment.
When carrying out actual photographed by the method for the embodiment of the present invention, owing to method gathering, judge and clap
The process taken the photograph is carried out the most automatically, therefore shooting effect virtualization, inaccurate situation of focusing can be avoided to occur;
Due to the guarantee of shooting quality, avoid repeating of same shooting work the most accordingly, therefore bat can be improved
Take the photograph efficiency.
The embodiment of the present invention by the shooting condition preset and reference image away from, automatically determine preferably shooting
Opportunity also shoots, and improves shooting effect and shooting efficiency, has stronger practicality.
Accordingly, embodiments providing a kind of terminal for automatic camera, it comprises the steps that acquisition mould
Block, for obtain the reference image of focusing area away from;Acquisition module, for gathering the real-time of described focusing area
Image distance;Judge module, for described real-time image distance and described reference image away between relation whether meet and preset
Shooting condition;Be additionally operable to judge described real-time image distance and described reference image away between relation meet to preset and clap
When taking the photograph condition, generate and judge success message and send to taking module;Taking module, for based on described reality
Time image distance shoot.The terminal of the embodiment of the present invention can go out preferable shooting time and clap by automatic decision
Take the photograph, it is possible to increase shooting effect and shooting efficiency.
Below in conjunction with the accompanying drawings and detailed description of the invention, the technical scheme of device in the embodiment of the present invention is carried out in detail
Describe in detail bright.
Fig. 2 is the structure composition schematic diagram of the terminal of the embodiment of the present invention.The device of this embodiment can be used for holding
Way shown in row Fig. 1, concrete, the device of this embodiment includes: acquisition module 21, acquisition module 22,
Judge module 23 and taking module 24, can be in the lump with reference to another of terminal of the embodiment of the present invention shown in Fig. 3
Structure composition schematic diagram, the device of the embodiment of the present invention also includes arranging module 25, wherein, it is judged that module 23
Can further include computing unit 231 and error judgment unit 232, wherein:
Acquisition module 21, for obtain the reference image of focusing area away from.Wherein, acquisition module 21 gets
Distance between the camera lens of reference image terminal after prefocusing for terminal and object of reference projection, specific embodiment party
Formula can refer to the method that step S110 is mentioned, does not repeats at this.
Acquisition module 22, for gathering the real-time image distance of focusing area;It is additionally operable to receive judging unit 23
After the collection prompting message sent, the real-time image distance of Resurvey.Wherein, the real-time picture that acquisition module 22 collects
Distance between the camera lens of terminal and object of reference projection when currently focusing in time shooting for terminal, specifically real
The mode of executing can refer to the method that step S110 is mentioned, does not repeats at this.
Judge module 23, is used for judging real-time image distance and acquisition module 21 acquisition that acquisition module 22 gathers
Reference image away between relation whether meet and preset shooting condition;It is additionally operable to judge real-time image distance and reference image
When relation between away from meets default shooting condition, generate and judge success message and send to taking module 24.
Wherein, it is judged that module 23 is mainly according to arranging the default shooting condition that module 25 is arranged.Concrete, sentence
Disconnected module 23 can farther include computing unit 231 and error judgment unit 232.
Computing unit 231, the reference image got for calculating acquisition module 21 gathers away from acquisition module 22
Error amount between the real-time image distance arrived.Computing unit 231 carries out error amount analytical calculation can be according to concrete
Situation is carried out, and analyzes and computational methods are then the analyses and calculating preset in the terminal of the embodiment of the present invention
Method.Detailed description of the invention can refer to the method mentioned by step S111, does not repeats at this.
Error judgment unit 232, for judging whether the error amount that computing unit 231 calculates is arranging module
In the image distance error burst of the 25 default shooting conditions arranged;It is additionally operable to judge that error amount is at image distance error region
Time interior, generate and judge success message and send to taking module 24;It is additionally operable to judge that error amount is not at picture
Time in error burst, generate and gather prompting message and send to collecting unit 22.Error judgment unit 232
Judge, according to default shooting condition, the error amount that computing unit 231 draws, set when this error amount is contained in
When putting in the pixel error interval that unit 25 is arranged, error judgment unit 232 will be considered to collecting unit 23 and works as
The opportunity representated by real-time image distance of front collection is a preferably right moment for camera, then generates and judges successfully to disappear
Cease and send to taking module 24 to point out taking module 24 to shoot based on real-time image distance;When this misses
When difference is not included in arranging in the pixel error interval that unit 25 is arranged, error judgment unit 232 will be considered to
The most preferably right moment for camera on the opportunity representated by real-time image distance that collecting unit 23 currently gathers, then generate
Gather prompting message and send to collecting unit 22 to point out the collecting unit 22 real-time image distance of Resurvey;
Taking module 24, after receiving the judgement success message that judging unit 23 sends, based on current
Image distance shoots in real time.
Module 25 is set, for specifying for as shooting condition according to the acquisition parameters shooting device in terminal
Image distance error burst.Wherein, pixel error interval is mainly joined according to the parameter of each shooting device of terminal
Put and carry out specifying with actually used situation, and the shooting in can applying according to reality needs to take the circumstances into consideration to adjust.
Concrete prescriptive procedure can refer to the method mentioned in step S110, does not repeats at this.
In the embodiment of the present invention judge module 23 can by processor based on a kind of program carry out data analysis and
Calculate, the embodiment of the present invention is arranged module 25 can by processor based on actually used situation be configured with
Change;The taking module 24 of the embodiment of the present invention only shoots after receiving prompting, therefore generates after shooting
Picture there is preferable quality and effect.
The implementation Process schematic flow sheet of taking pictures of the terminal of the embodiment of the present invention that can provide with reference to Fig. 4 in the lump,
The terminal that the figure shows the embodiment of the present invention carries out the flow process of better shooting according to the shooting condition preset, its
In, the step of this flow process comprises the steps that
Step S410, it is stipulated that for the image distance error burst as shooting condition.This step is by arranging module 25
Being configured, specific implementation method can refer to the content mentioned by step S110, and therefore not to repeat here.
Step S411, the distance according to being intended to photographed determines object of reference.
Step S412, selected object of reference is focused.
Step S413, if the span of image distance comprise the reference image of acquisition away from.Wherein, the value of image distance
Scope is mainly analyzed according to the parameter of each shooting device of terminal, belongs to shooting device criteria and determines
Scope.If the span of image distance comprise the reference image of acquisition away from, then continue executing with step S414;If image distance
Span do not comprise the reference image of acquisition away from, then terminate this process.This step is mainly used in judging whether
The scenery to be shot belongs to the coverage of the terminal of the present embodiment.
Step S414, record reference image away from.This step is by the acquisition module 21 of the terminal of the embodiment of the present invention
Carrying out obtaining and record, specific implementation method can refer to the content mentioned by step S110, and therefore not to repeat here.
Step S415, enters automatic camera pattern and monitors focusing area.
Step S416, if focusing area scene change.If focusing area scenery changes, then continue to hold
Row step S417;If focusing area scenery does not changes, then return and perform step S416.
Step S417, focuses.It it is now current real-time focusing.
Step S418, if focused.If based on currently, having focused in real time, then continue executing with step
S419;If based on currently, having failed to focus in real time, then re-executed step S417.
Step S419, gathers real-time image distance.This step is by the acquisition module 22 of the terminal of the embodiment of the present invention
Being acquired, specific implementation method can refer to the content mentioned by step S111, and therefore not to repeat here.
Step S4110, if in real time image distance and reference image away between difference be contained in image distance error burst.If
In real time image distance and reference image away between difference be contained in image distance error burst, then continue executing with step S4111;
If in real time image distance and reference image away between difference be not included in image distance error burst, then re-execute step
S416.This step is judged by the judge module 23 of the terminal of the embodiment of the present invention, and specific implementation method can
With reference to the content mentioned by step S112, therefore not to repeat here.
Step S4111, takes pictures.This step is shot by the taking module 24 of the terminal of the embodiment of the present invention,
Specific implementation method can refer to the content mentioned by step S113, and therefore not to repeat here.
The shooting condition that the terminal of the embodiment of the present invention is arranged has motility and referring to property, makes actual photographed
Time avoid the picture virtualization that focal shift causes;The terminal of the embodiment of the present invention can be by processor based on one
Program carries out data analysis and calculating, and processing cost is relatively low;Owing to only just clapping after receiving prompting
Take the photograph, therefore the picture generated after shooting has preferable quality and effect;The terminal of the embodiment of the present invention can be certainly
Move and judge preferable shooting time and shoot, improve shooting efficiency, there is stronger practicality.
Module described in the embodiment of the present invention or unit, can pass through universal integrated circuit, such as CPU
(Central Processing Unit, central processing unit), or by ASIC(Application Specific
Integrated Circuit, special IC) realize.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant shooting device, described program can be stored in one
In computer read/write memory medium, this program is upon execution, it may include such as the embodiment of above-mentioned each method
Flow process.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only
Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc..
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it
Interest field, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment,
And according to the equivalent variations that the claims in the present invention are made, still fall within the scope that invention is contained.