Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of method of automatic camera, and it can comprise: the reference image distance of obtaining the focusing zone; Gather the real-time image distance in described focusing zone; Judge whether the relation between described real-time image distance and the described reference image distance satisfies default shooting condition; If the relation of judging between described real-time image distance and the described reference image distance satisfies default shooting condition, then take based on described real-time image distance.The method of the automatic camera of the embodiment of the invention can be judged preferably shooting time automatically and take, and can improve shooting effect and take efficient.
Below in conjunction with the drawings and the specific embodiments, the technical scheme of the embodiment of the invention is elaborated.
As shown in Figure 1, the method for the automatic camera of the embodiment of the invention can may further comprise the steps:
Step S110 obtains the reference image distance in focusing zone.Wherein, the reference image obtained of terminal is apart from being the camera lens of back terminal and the distance between the object of reference projection of prefocusing.Reference image is apart from being mainly used in as the basis of reference in the shooting condition.For example, the terminal of the embodiment of the invention is carried out defocused at the object of reference to pre-selected, draws the reference image in focusing zone apart from being v
1, the data of obtaining in this step are that reference image is apart from v so
1
The reference image of obtaining focusing zone apart from before, terminal also needs pre-set shooting condition, is specially according to the acquisition parameters of taking device in the terminal and is given for image distance error burst as shooting condition.Because the shooting device parameter limit of terminal makes terminal have certain scope of application when taking.Concrete, supplier takes the observing and controlling of device parameters usually after producing capture apparatus, for example, can draw terminal by actual monitoring and can take the scope of object distance and be [u
a, u
b], according to the record that aperture in the observation process changes, can learn that the adjustable interval of focal distance f is [f
a, f
b], 1/u (object distance)+1/v (the image distance)=1/f (focal length) that concerns by image distance, object distance and focal length calculates so, can learn that the image distance that this terminal can be regulated and control in actual applications is v ∈ [v
a, v
b], and according to these actual data, need in the regulation embodiment of the invention the image distance error burst used, for example, can stipulate that the image distance error burst is [σ
x, σ
y], this interval is recorded as default shooting condition, then can directly use in the subsequent step as the image distance error burst of default shooting condition photo opportunity is judged.This step arrange the image distance error burst be the acquisition parameters of taking device be according to arranging, and can take the circumstances into consideration to adjust according to the shooting needs in the practical application.
Step S111 gathers the regional real-time image distance of described focusing.The camera lens of terminal and the distance between the object of reference projection when wherein, the real-time image distance obtained of terminal is current focusing.Image distance is mainly used in comparing with aforesaid reference image distance in real time, judges whether is preferable right moment for camera current opportunity of obtaining real-time image distance.Concrete acquisition method is that terminal selected object of reference in to step S110 carries out again the real-time image distance current to defocused collection.For example, the terminal of the embodiment of the invention is focused in real time to selected object of reference in this step again, and gathers current real-time image distance v
2
Step S112 judges whether the relation between real-time image distance and the reference image distance satisfies default shooting condition.This step is to judge according to the shooting condition that arranges before the step S110, and concrete enforcement can comprise: calculate the error amount between reference image distance and the real-time image distance; Judge that this error amount is whether in the image distance error burst of shooting condition; If this error amount in the image distance error burst, thinks then that the relation between real-time image distance and the reference image distance satisfies default shooting condition.
In the specific implementation, calculate reference image apart from and real-time image distance between the reference image distance can be directly obtained by step S110 of error amount and the real-time image distance of step S111 collection carry out error analysis, and error of calculation value.For example, according to the reference image of obtaining apart from v
1With the real-time image distance v that gathers
2Carry out error analysis, and draw real-time image distance error amount σ
1
In the specific implementation, judge that this error amount is whether in the image distance error burst.Wherein, judging whether to be contained in the image distance error burst can directly judge by aforesaid real-time image distance error amount, for example, has drawn real-time image distance error amount σ after the error analysis of abovementioned steps
1, check σ so
1Whether be contained in image distance error burst [σ
x, σ
y], if σ
1∈ [σ
x, σ
y], the error amount that then draws is in the image distance error burst; If
The error amount that then draws is not in the image distance error burst.
In the specific implementation, if error amount in the image distance error burst, thinks then that if the relation between real-time image distance and the reference image distance satisfies default shooting condition, gives an example, as described above σ
1∈ [σ
x, σ
y], collect real-time image distance v so
2The time be a right moment for camera preferably; Correspondingly, if error amount not in the image distance error burst, thinks then that the relation between real-time image distance and the reference image distance does not satisfy default shooting condition, give an example as described above, if
Collect real-time image distance v so
2The time be a right moment for camera preferably.
Step S113 if the relation of judging between real-time image distance and the reference image distance satisfies default shooting condition, then takes based on described real-time image distance.Judged right moment for camera preferably by step S112, this step will be taken based on representing preferably the real-time image distance of right moment for camera.
In addition, if the relation of judging among the step S112 between real-time image distance and the reference image distance does not satisfy default shooting condition, the right moment for camera that has yet just represented current real-time image distance representative is not to meet standard, terminal will be gathered real-time image distance again so, and carry out condition judgment based on default shooting condition and reference image distance.
When carrying out actual photographed by the method for the embodiment of the invention, owing to the process of gathering in the method, judging and take is all carried out automatically, so can avoid shooting effect virtualization, the inaccurate situation generation of focusing; Because the assurance of shooting quality has also been avoided repeating of same shooting work, accordingly so can improve shooting efficient.
The embodiment of the invention is by default shooting condition and reference image distance, automatically judges preferably right moment for camera and takes, and improved shooting effect and taken efficient, has stronger practicality.
Accordingly, the embodiment of the invention provides a kind of terminal to be used for automatic camera, and it can comprise: acquisition module is used for obtaining the reference image distance in focusing zone; Acquisition module is used for gathering the regional real-time image distance of described focusing; Judge module, whether the relation that is used between described real-time image distance and the described reference image distance satisfies default shooting condition; The relation that also is used for judging between described real-time image distance and the described reference image distance satisfies when presetting shooting condition, generates and judges success message and be sent to taking module; Taking module is used for taking based on described real-time image distance.The terminal of the embodiment of the invention can be judged preferably shooting time automatically and take, and can improve shooting effect and take efficient.
Below in conjunction with the drawings and the specific embodiments, the technical scheme of installing in the embodiment of the invention is elaborated.
Fig. 2 is that the structure of the terminal of the embodiment of the invention is formed schematic diagram.The device of this embodiment can be used for carrying out way shown in Figure 1, concrete, the device of this embodiment comprises: acquisition module 21, acquisition module 22, judge module 23 and taking module 24, can be in the lump form schematic diagram with reference to another structure of the terminal of the embodiment of the invention shown in Figure 3, the device of the embodiment of the invention also comprises module 25 is set, wherein, judge module 23 can further include computing unit 231 and error judgment unit 232, wherein:
Acquisition module 21 is used for obtaining the reference image distance in focusing zone.Wherein, reference image that acquisition module 21 gets access to is apart from the afterwards camera lens of terminal and the distance between the object of reference projection of prefocusing for terminal, and the method that embodiment can be mentioned with reference to step S110 is not done at this and to be given unnecessary details.
Acquisition module 22 is used for gathering the regional real-time image distance of focusing; After also being used for receiving the collection prompting message of judging unit 23 transmissions, gather real-time image distance again.Wherein, the real-time image distance that acquisition module 22 collects is the terminal camera lens of terminal and distance between the object of reference projection during current focusing when taking, and the method that embodiment can be mentioned with reference to step S110 is not done at this and to be given unnecessary details.
Judge module 23, be used for judging reference image that real-time image distance that acquisition module 22 gathers and acquisition module 21 obtain apart between the relation satisfied shooting condition of presetting whether; The relation that also is used for judging between real-time image distance and the reference image distance satisfies when presetting shooting condition, generates and judges success message and be sent to taking module 24.Wherein, judge module 23 mainly is according to the default shooting condition that module 25 arranges is set.Concrete, judge module 23 can further comprise computing unit 231 and error judgment unit 232.
Computing unit 231, be used for to calculate reference image that acquisition module 21 gets access to apart from and the real-time image distance that collects of acquisition module 22 between error amount.Computing unit 231 carries out the error amount analytical calculation and can carry out according to specific circumstances, and analysis and computational methods then are analysis and the computational methods of presetting in the terminal of the embodiment of the invention.Embodiment can be with reference to the mentioned method of step S111, does not do at this and gives unnecessary details.
Error judgment unit 232 is used for judging that error amount that computing unit 231 calculates is whether in the image distance error burst of the default shooting condition that module 25 settings are set; Also be used for judging error amount in the image distance error burst time, generate and judge that success message also is sent to taking module 24; Also be used for judging error amount not in the image distance error burst time, generate and gather prompting message and also be sent to collecting unit 22.The error amount that computing unit 231 draws is judged according to default shooting condition in error judgment unit 232, in the time of in this error amount is contained in the pixel error interval that unit 25 settings are set, error judgment unit 232 will think that are preferable right moments for camera opportunitys of real-time image distance representative of collecting unit 23 current collections, generate so to judge success message and be sent to taking module 24 and take based on real-time image distance with prompting taking module 24; In the time of in this error amount is not contained in the pixel error interval that unit 25 settings are set, error judgment unit 232 will think that not be preferable right moment for camera opportunity of real-time image distance representative of collecting unit 23 current collections, generate so to gather prompting message and be sent to collecting unit 22 to gather real-time image distance again with prompting collecting unit 22;
Taking module 24 after being used for receiving the judgement success message of judging unit 23 transmissions, is taken based on current real-time image distance.
Module 25 is set, is used for being given for image distance error burst as shooting condition according to the acquisition parameters that terminal is taken device.Wherein, the pixel error interval mainly is to stipulate according to each parameter configuration and actual operating position of taking device of terminal, and can take the circumstances into consideration to adjust according to the shooting needs in the practical application.Concrete prescriptive procedure can be with reference to the method for mentioning among the step S110, does not do at this and gives unnecessary details.
Judge module 23 can carry out data analysis and calculating based on a kind of program by processor in the embodiment of the invention, and module 25 is set in the embodiment of the invention can be arranged and change based on actual operating position by processor; 24 of the taking modules of the embodiment of the invention are taken after receiving prompting, have preferable quality and effect so take the picture of back generation.
The terminal that the process of the taking pictures implementing procedure schematic diagram of the terminal of the embodiment of the invention that can be in the lump provides with reference to Fig. 4, this figure have been showed the embodiment of the invention is carried out the flow process of better shooting according to default shooting condition, and wherein, the step of this flow process can comprise:
Step S410 is given for the image distance error burst as shooting condition.This step arranges by module 25 is set, and specific implementation method can not given unnecessary details at this with reference to the mentioned content of step S110.
Step S411 determines object of reference according to the distance of desiring photographed.
Step S412, selected object of reference is focused.
Step S413, the span of image distance comprises the reference image distance of obtaining.Wherein, the span of image distance mainly is to analyze according to each parameter of taking device of terminal, belongs to the device standard decision scope of taking.If the span of image distance comprises the reference image distance of obtaining, then continue execution in step S414; If the span of image distance does not comprise the reference image distance of obtaining, then finish this process.This step is mainly used in judging whether that the scenery of desire shooting belongs to the coverage of the terminal of present embodiment.
Step S414, record reference image distance.This step is obtained and record by the acquisition module 21 of the terminal of the embodiment of the invention, and specific implementation method can not given unnecessary details at this with reference to the mentioned content of step S110.
Step S415 enters automatic camera pattern and monitoring focusing zone.
Step S416, the regional scene change of whether focusing.If the regional scenery of focusing changes, then continue execution in step S417; If the regional scenery of focusing does not change, then return execution in step S416.
Step S417 focuses.Be current real-time focusing this moment.
Whether step S418 focuses and finishes.If based on current, focusing is in real time finished, and then continues execution in step S419; If based on current, fail to finish real-time focusing, then re-execute step S417.
Step S419 gathers real-time image distance.This step is gathered by the acquisition module 22 of the terminal of the embodiment of the invention, and specific implementation method can not given unnecessary details at this with reference to the mentioned content of step S111.
Step S4110, in real time whether the difference between image distance and the reference image distance is contained in the image distance error burst.If the difference between image distance and the reference image distance is contained in the image distance error burst in real time, then continue execution in step S4111; If the difference between image distance and the reference image distance is not contained in the image distance error burst in real time, then re-execute step S416.This step is judged that by the judge module 23 of the terminal of the embodiment of the invention specific implementation method can not given unnecessary details at this with reference to the mentioned content of step S112.
Step S4111 takes pictures.This step is taken by the taking module 24 of the terminal of the embodiment of the invention, and specific implementation method can not given unnecessary details at this with reference to the mentioned content of step S113.
The shooting condition of the terminal setting of the embodiment of the invention has flexibility and can be with reference to property, the picture virtualization of avoiding focal shift to cause when making actual photographed; The terminal of the embodiment of the invention can be carried out data analysis and calculating based on a kind of program by processor, and processing cost is lower; Owing to only after receiving prompting, just take, have preferable quality and effect so take the picture of back generation; The terminal of the embodiment of the invention can be judged preferably shooting time automatically and take, and has improved shooting efficient, has stronger practicality.
Module described in the embodiment of the invention or unit, can pass through universal integrated circuit, CPU(Central Processing Unit for example, central processing unit), or by ASIC(Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)) realize.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant shooting device to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and according to the equivalent variations that claim of the present invention is done, still belong to the scope that invention is contained.