Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing, and obviously, described embodiment only is a part of embodiment of the present invention, 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 all other embodiment that obtain under the creative work prerequisite.
The embodiment of the invention provides a kind of camera, as shown in Figure 1, comprising:
Input module 101 is used for receiving the object distance adjusting parameter that the user imports, and above-mentioned object distance adjusting parameter is sent to central processing unit 102;
Central processing unit 102 is used for regulating the calculation of parameter image distance according to the object distance that receives, and obtains output control data according to the image distance of calculating, and will export and control data and send to driver module 103; Receive the view data of camera module transmission and will send to display module;
Driver module 103 is controlled data for the output that receives from central processing unit 102, and becomes the driving signal to send to camera module 104 above-mentioned output control data transaction;
Camera module 104 is used for receiving the driving signal that driver module 103 sends, and carries out object distance according to the driving signal and regulate; The view data of object distance being regulated the back imaging sends to central processing unit 102;
Display module 105 is used for the view data that receives being converted to image and showing.
The camera that above-described embodiment provides is regulated on the basis of parameter in the object distance that receives user's input, realization is according to the adjusting of the object distance of user's needs, need not use complex mechanical construction to realize the manual adjustments object distance, realize having the miniaturization that the camera of manual adjustments object distance function is made.
Alternatively, the embodiment of the invention provides one of implementation that image distance obtains output control data for example, and as shown in Figure 2, said apparatus also comprises:
Memory module 201 is used for store look-up tables, above-mentioned look-up table stores image distance and the output control data corresponding with above-mentioned image distance;
Above-mentioned central processing unit 102 specifically is used for: regulate the calculation of parameter image distance according to the above-mentioned object distance that receives, read the look-up table in the memory module 201, search above-mentioned look-up table according to image distance and obtain controlling data for the output of object distance adjusting, and above-mentioned output control data are sent to driver module 103; Receive the view data of camera module transmission and will send to display module 105.
Alternatively, above-mentioned memory module 201, the concrete storage two-dimensional look-up table that is used for, the two-dimensional coordinate in the above-mentioned two-dimensional look-up table is respectively the amount that characterizes current image distance and target image distance, and the list item at each two-dimensional coordinate place has a value that characterizes the required driving energy of focusing coil.So above-mentioned central processing unit 102 specifically is used for: regulate the calculation of parameter image distance according to the above-mentioned object distance that receives, read the two-dimensional look-up table in the memory module 201, search according to current image distance and target image distance that coordinate is the list item at the two-dimensional coordinate place of above-mentioned current image distance and above-mentioned target image distance in the above-mentioned two-dimensional look-up table, obtain being used in the above-mentioned list item characterizing the value of the required driving energy of coil of focusing, and above-mentioned output control data are sent to driver module 103; Receive the view data of camera module transmission and will send to display module 105.
As shown in table 1, be an example of two-dimensional look-up table:
Table 1
Two-dimensional coordinate |
The value of the required driving energy of focusing coil |
(X,Y) |
Z |
The user regulates the input operation next time of image distance for convenience, and the embodiment of the invention also further provides following scheme: central processing unit 102, and the object distance adjusting parameter that also is used for the view data correspondence of transmission sends to display module 105; Display module 105 also is used for when showing image, shows the object distance adjusting parameter that receives.
Particularly, above-mentioned camera module 104 specifically is used for: receive the above-mentioned driving signal that driver module 103 sends, adjust lens or set of lenses in the camera module according to the current drives focusing coil of input, with relative position between the center and the relative position between the transducer that change said lens or the equivalent center that changes the said lens group and the transducer; The view data of object distance being regulated the back imaging sends to central processing unit 102.
Particularly, central processing unit 102 comprises according to the object distance adjusting calculation of parameter image distance that receives: central processing unit 102 is regulated parameter according to the object distance that receives and is calculated image distance according to imaging formula.
Imaging formula is as follows: 1/U+1/V=1/f
Wherein: U is object distance, and V is image distance, and f is the focal length of lens or the equivalent focal length of set of lenses.Object distance refers to that the center (the perhaps equivalent center of set of lenses) of lens is to the distance on target imaging plane; Image distance refers to lens centre or set of lenses equivalence center to the distance of sensor surface, focal length refer to the lens centre to the distance between the lens focus or set of lenses equivalence center to the distance between the set of lenses equivalent focus.
Particularly, above-mentioned object distance is regulated parameter and is comprised: the object distance of camera, with the physical quantity of the proportional relation of object distance of camera, with the object distance of camera have fixing difference physical quantity, and the object distance of camera have the physical quantity of identical imaging characteristic.
Because the physical quantity of the proportional relation of object distance of above-mentioned and camera, have the physical quantity of fixing difference and have the physical quantity of identical imaging characteristic with the object distance of camera with the object distance of camera, all with imaging formula in the object distance of needed camera have fixing mathematical relationship, it will be understood by those skilled in the art that, only need be when using imaging formula to calculate image distance, so can be according to the fixedly mathematical relationship of the object distance of itself and camera, it is just passable that imaging formula is carried out the equation conversion, for example: it is transformed to the object distance of camera, for example: object distance adjusting parameter is that the object distance of camera has the fixedly physical quantity of difference, such as the object distance big 10CM of this physical quantity than camera, so this physical quantity is deducted 10CM then as the above-mentioned imaging formula of object distance substitution of camera, just can calculate image distance.
Particularly, physical quantity with identical imaging characteristic of above-mentioned and the object distance of camera comprises: the plane, transducer place of above-mentioned camera is to the distance of photographic subjects focus.Need to prove that above-mentioned " lens focus " is the focus of said lens, above-mentioned " photographic subjects focus " then is the focus that needs the target of shooting.
The embodiment of the invention also provides a kind of image presentation method, as shown in Figure 3, comprising:
301: the object distance that receives user's input is regulated parameter;
Alternatively, the object distance of above-mentioned reception user input is regulated parameter and is comprised: receive the camera of user's input object distance, with the physical quantity of the proportional relation of object distance of camera, with the object distance of camera have fixing difference physical quantity, and the object distance of camera have in the physical quantity of identical imaging characteristic any one.
More specifically, physical quantity with identical imaging characteristic of above-mentioned and the object distance of camera comprises: the plane, transducer place of above-mentioned camera is to the distance of photographic subjects focus.
302: regulate the calculation of parameter image distance according to the object distance that receives, obtain output control data according to the image distance of calculating;
Alternatively, the image distance of above-mentioned foundation calculating is obtained output control data and is comprised: read the look-up table in the memory module, search above-mentioned look-up table according to image distance and obtain controlling data for the output of object distance adjusting; Above-mentioned look-up table stores image distance and the output corresponding with above-mentioned image distance control data.
More specifically, above-mentioned look-up table is two-dimensional look-up table, and the two-dimensional coordinate in the above-mentioned two-dimensional look-up table is respectively the amount that characterizes current image distance and target image distance, and the list item at each two-dimensional coordinate place has a value that characterizes the required driving energy of focusing coil; The above-mentioned look-up table that reads in the memory module, searching above-mentioned look-up table according to image distance obtains comprising for the output control data of object distance adjusting: read the two-dimensional look-up table in the memory module, search according to current image distance and target image distance that coordinate is the list item at the two-dimensional coordinate place of above-mentioned current image distance and above-mentioned target image distance in the above-mentioned two-dimensional look-up table, obtain being used for characterizing in the above-mentioned list item value of the required driving energy of focusing coil.
Alternatively, the object distance that receives of above-mentioned foundation is regulated the calculation of parameter image distance and is comprised: regulate parameter according to the object distance that receives and calculate image distance according to imaging formula.
303: above-mentioned output control data transaction is become to drive signal send to the camera module, be used for making above-mentioned camera module to carry out object distance according to above-mentioned driving signal and regulate;
304: the view data of the camera module being carried out object distance adjusting back imaging is converted to image and demonstration.
Further, in the said method, in 304 steps, also comprise: when showing image, show the object distance adjusting parameter that receives.
Following examples will be carried out the explanation of using method with regard to the device that the embodiment of the invention provides, and see also Fig. 1 and Fig. 2.
The user is used for the conditioning signal that object distance saves by input module 101 inputs, the parameter that this signal has indicated object distance to regulate; The input module 101 here can be button, touch-screen, roller, trace ball etc.Input module 101 sends to central processing unit with the conditioning signal that receives.
Central processing unit 102 (Central Processing Unit, CPU) receive the conditioning signal that input module sends, calculate image distance then, then by reading the look-up table in the memory module 201, data are controlled in the output that obtains regulating for object distance, and export to driver module 103.
Driver module 103 receives the output control data of CPU transmission and converts the driving signal to camera module 104 is carried out the object distance adjusting.
Camera module 104 is output into the picture view data in real time and gives CPU, and CPU sends to display module 105 with view data and shows, display module 105 all right simultaneously real-time explicit users are regulated the object distance adjusting parameter of setting.
The user need can determine whether continuation to regulate according to the demonstration of display module 105, can regulate the object distance adjusting parameter that parameter is determined input next time according to the object distance that shows.Import object distance each time and regulate the identical step of parameter device execution afterwards, carry out shooting operation up to the user, can determine that so the object distance adjustment process finishes.
By top flow process as can be known, camera module 104 possesses optical imagery, optical imagery to the opto-electronic conversion between the digital picture and the function of regulating photographic parameter by external control, and also possessing can be by the mechanism of the instrumentality distance of external signal control.This mechanism generally can be focusing motor, and focusing motor is by lens or set of lenses in the current drives focusing coil adjustment camera module, changes lens or set of lenses and reaches parts regulating focus function to the distance between the transducer.
It should be noted that among the said apparatus embodiment that each included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step that realizes among above-mentioned each method embodiment is to instruct relevant hardware to finish by program, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Below only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses, the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.