CN106610553B - A kind of method and device of auto-focusing - Google Patents
A kind of method and device of auto-focusing Download PDFInfo
- Publication number
- CN106610553B CN106610553B CN201510690355.2A CN201510690355A CN106610553B CN 106610553 B CN106610553 B CN 106610553B CN 201510690355 A CN201510690355 A CN 201510690355A CN 106610553 B CN106610553 B CN 106610553B
- Authority
- CN
- China
- Prior art keywords
- optical system
- imaging optical
- control voltage
- scene
- focusing
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000003384 imaging method Methods 0.000 claims abstract description 224
- 230000003287 optical effect Effects 0.000 claims abstract description 158
- 238000013507 mapping Methods 0.000 claims description 13
- 239000000571 coke Substances 0.000 claims description 2
- 241000406668 Loxodonta cyclotis Species 0.000 claims 1
- 230000000149 penetrating effect Effects 0.000 claims 1
- 239000004973 liquid crystal related substance Substances 0.000 description 14
- 230000008569 process Effects 0.000 description 9
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B13/00—Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
- G03B13/32—Means for focusing
- G03B13/34—Power focusing
- G03B13/36—Autofocus systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
- Focusing (AREA)
Abstract
The present invention provides a kind of method and device of auto-focusing, and the method for the auto-focusing includes: the depth information of scene for obtaining imaging object under current scene;According to the calibration relationship between the depth information of scene and the control voltage of the imaging optical system, the control voltage of the imaging optical system is determined;The imaging optical system auto-focusing is controlled using the control voltage.The embodiment of the present invention passes through the calibration relationship between depth information of scene and the control voltage of imaging optical system, control voltage is directly determined according to the depth information of scene of imaging object under current scene, so as to directly realize auto-focusing according to control voltage, it realizes rapid focus and does not realize focusing by mechanical movement, reduce the power consumption of imaging optical system, extend the service life of imaging optical system.
Description
Technical field
The present invention relates to technical field of imaging, in particular to a kind of method and device of auto-focusing.
Background technique
Imaging system all has irreplaceability, auto-focusing unit (device and method) in national defence, scientific research and life
It is one of the critical function module of imaging system, service life, power consumption and size are all concerned.Common auto-focusing unit
(such as voice coil motor VCM) is all to change image distance by mechanical movement to realize focusing, and service life, power consumption and size have very big
Limitation.
Summary of the invention
The purpose of the present invention is to provide a kind of method and device of auto-focusing, solve existing focusing method at
As the limitation of the service life of optical system, power consumption and size.
In order to achieve the above object, the embodiment of the present invention provides a kind of method of auto-focusing, is used for imaging optical system,
Include:
Obtain the depth information of scene of imaging object under current scene;
According to the calibration relationship between the depth information of scene and the control voltage of the imaging optical system, institute is determined
State the control voltage of imaging optical system;
The imaging optical system auto-focusing is controlled using the control voltage.
Wherein, the depth information of scene step of imaging object includes: under acquisition current scene
Under current scene, obtain the first focusing state when imaging object the first defocusing degree and the second focusing state when at
As the second defocusing degree of object;
The depth information of scene of the imaging object is determined according to first defocusing degree and second defocusing degree.
Wherein, the calibration according between the depth information of scene and the control voltage of the imaging optical system is closed
System, the step of determining the control voltage of the imaging optical system include:
Obtain the calibration relationship between the depth information of scene and the control voltage of the imaging optical system;
According to the depth information of scene and the calibration relationship, the control voltage of the imaging optical system is determined.
Wherein, the calibration obtained between the depth information of scene and the control voltage of the imaging optical system is closed
The step of being include:
Obtain the first calibration relationship between the focal length of imaging optical system and the control voltage of imaging optical system;
Obtain the second calibration relationship between the object distance of imaging optical system and the focal length of imaging optical system;
The third obtained between the object distance of imaging optical system and the depth information of scene of imaging object demarcates relationship;
Relationship, which is demarcated, according to the first calibration relationship, the second calibration relationship and third determines the depth information of scene
Calibration relationship between the control voltage of the imaging optical system.
Wherein, the first calibration between the focal length for obtaining imaging optical system and the control voltage of imaging optical system
The step of relationship includes:
Obtain the expression formula of the focal length of imaging optical system;
According to root-mean-square value RMS, imaging when determining the minimum focus of imaging optical system and recording minimum focus
The control voltage of system is minimum control voltage;
On the basis of the minimum control voltage, control voltage described in consecutive variations is simultaneously recorded under each control voltage
Focal length, so that it is determined that the first calibration relationship between the focal length of imaging optical system and the control voltage of imaging optical system.
Wherein, the second calibration relationship between the object distance for obtaining imaging optical system and the focal length of imaging optical system
The step of include:
Based on Gauss imaging theory, second between the object distance of imaging optical system and the focal length of imaging optical system is obtained
Calibration relationship.
Wherein, the third between the object distance for obtaining imaging optical system and the depth information of scene of imaging object is demarcated
The step of relationship includes:
Imaging object is placed at different object distances;
The depth information of scene of the imaging object at each object distance is obtained respectively;
Establish the mapping relations one by one of the object distance Yu the depth information of scene, the mapping relations one by one are described the
Three calibration relationships.
The embodiment of the present invention also provides a kind of device of auto-focusing, is used for imaging optical system, comprising:
Module is obtained, for obtaining the depth information of scene of imaging object under current scene;
Determining module, for according to the mark between the depth information of scene and the control voltage of the imaging optical system
Determine relationship, determines the control voltage of the imaging optical system;
Focusing module, for controlling the imaging optical system auto-focusing using the control voltage.
Wherein, the acquisition module includes:
First acquisition submodule, under current scene, the first of imaging object to defocus journey when obtaining the first focusing state
Second defocusing degree of imaging object when degree and the second focusing state;
Second acquisition submodule, for determining the imaging according to first defocusing degree and second defocusing degree
The depth information of scene of object.
Wherein, the determining module includes:
Module is obtained, for obtaining the mark between the depth information of scene and the control voltage of the imaging optical system
Determine relationship;
Submodule is determined, for determining the image optics according to the depth information of scene and the calibration relationship
The control voltage of system.
Wherein, the acquisition module includes:
First acquisition submodule, for obtaining between the focal length of imaging optical system and the control voltage of imaging optical system
First calibration relationship;
Second acquisition submodule, for obtaining between the object distance of imaging optical system and the focal length of imaging optical system
Two calibration relationships;
Third acquisition submodule, for obtaining between the object distance of imaging optical system and the depth information of scene of imaging object
Third demarcate relationship;
4th acquisition submodule, for demarcating relationship according to the first calibration relationship, the second calibration relationship and third
Determine the calibration relationship between the depth information of scene and the control voltage of the imaging optical system.
Wherein, first acquisition submodule includes:
Acquiring unit, the expression formula of the focal length for obtaining imaging optical system;
First recording unit, for determining the minimum focus of imaging optical system and recording minimum according to root-mean-square value RMS
The control voltage of the imaging optical system is minimum control voltage when focal length;
Second recording unit, on the basis of the minimum control voltage, control voltage described in consecutive variations simultaneously to be recorded
Focal length under each control voltage, so that it is determined that between the focal length of imaging optical system and the control voltage of imaging optical system
First calibration relationship.
Wherein, second acquisition submodule includes:
Gauss demarcates unit, for being based on Gauss imaging theory, obtains object distance and the image optics system of imaging optical system
The second calibration relationship between the focal length of system.
Wherein, the third acquisition submodule includes:
Placement unit, for imaging object to be placed at different object distances;
Depth unit, for obtaining the depth information of scene of the imaging object at each object distance respectively;
Relationship establishes unit, for establishing the mapping relations one by one of the object distance Yu the depth information of scene, described one
One mapping relations are that the third demarcates relationship.
Above-mentioned technical proposal of the invention at least has the following beneficial effects:
In the method and device of the auto-focusing of the embodiment of the present invention, pass through depth information of scene and imaging optical system
The calibration relationship between voltage is controlled, control voltage is directly determined according to the depth information of scene of imaging object under current scene,
So as to directly realize auto-focusing according to control voltage, realizes rapid focus and do not realized by mechanical movement pair
Coke reduces the power consumption of imaging optical system, extends the service life of imaging optical system.
Detailed description of the invention
Fig. 1 shows the basic step flow charts of the method for auto-focusing provided in an embodiment of the present invention;
Fig. 2 indicates the specific steps process that calibration relationship is obtained in the method for auto-focusing provided in an embodiment of the present invention
Figure;
Fig. 3 indicates to obtain the detailed of calibration relationship in the concrete application of the method for auto-focusing provided in an embodiment of the present invention
Procedure chart;
Fig. 4 indicates the composite structural diagram of the device of auto-focusing provided in an embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
The present invention has very overall situation to the service life of imaging optical system, power consumption and size for focusing method in the prior art
Sex-limited problem provides a kind of method and device of auto-focusing, passes through the control of depth information of scene and imaging optical system
Calibration relationship between voltage directly determines control voltage according to the depth information of scene of imaging object under current scene, thus
Auto-focusing directly can be realized according to control voltage, realize rapid focus and do not realize focusing by mechanical movement, drop
The power consumption of low imaging optical system, the service life for extending imaging optical system.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of auto-focusing, it to be used for imaging optical system, comprising:
Step 11, the depth information of scene of imaging object under current scene is obtained;
Step 12, it is closed according to the calibration between the depth information of scene and the control voltage of the imaging optical system
System, determines the control voltage of the imaging optical system;
Step 13, the imaging optical system auto-focusing is controlled using the control voltage.
In the above embodiment of the present invention, scene depth is exactly the definition range before and after focus, and scene depth is bigger, entirely
Image will be more clear from distant view to close shot;Scene depth is more shallow, and focus main body is clear and foreground and background will be blurred more, from
And more prominent main body.The factor for influencing scene depth is mainly focal length, aperture and shooting distance.Focal length is longer, and aperture is bigger, claps
Photographic range is closer, then scene depth is more shallow;Conversely, focal length is shorter, aperture is smaller, and shooting distance is remoter, then scene depth is bigger.
The control voltage of its imaging optical system is generally two voltage values i.e. (V1, V2), by pair of imaging optical system
Burnt voltage, which is set as two above-mentioned voltage values, can be realized the auto-focusing of imaging optical system.Therefore root in the embodiment of the present invention
According to a calibration relationship, control voltage directly can be obtained according to depth information of scene, to realize rapid focus.
Atomatic focusing method provided in an embodiment of the present invention, without realizing focusing by mechanical movement, it is only necessary to by changing
Rapid focus can be realized in the mode for becoming control voltage;It reduces the power consumption of imaging optical system, extend the longevity of imaging optical system
Life, and improve focusing rate.
Further, step 11 includes: in the embodiment of the present invention
Step 111, under current scene, the first defocusing degree of imaging object and the second focusing when obtaining the first focusing state
Second defocusing degree of imaging object when state;
Step 112, the scene of the imaging object is determined according to first defocusing degree and second defocusing degree
Depth information.
The above embodiment of the present invention calculates depth information of scene using the method for range of defocusing DFD.Specifically, DFD
Be one by object in the difference of the defocusing degree of defocus condition come the method that calculates depth.Wherein, when an object is in
When focal plane, object can present one clearly as.And when object distance focal plane a distance, image objects can be by
It gradually obscures, we term it objects to be in defocus condition.Object distance focal plane is remoter, then defocusing degree is heavier.Therefore root
The scene depth of object is speculated according to difference degree of defocusing degree of the object under the same scene in different focus state.
The method of general DFD is to calculate depth according to two figures.By changing the image distance or focal length of imaging system, respectively
Obtain imaging 1 of the same scene under two different focus states, imaging 2;Then multiple groups narrow band filter (pass- is used
Band filter) or FRACTIONAL FILTER (rational filter) etc. obtain the opposite degree of defocusing of scene.Object it is opposite
Degree of defocusing and scene depth are into one-to-one relationship in a certain range, therefore can be calculated centainly by this method
Scene depth in range.
Preferably, it is minimum focus f that its first focusing state, which may be configured as focal length,minState, imaging optical system at this time
The state fuzzy in prospect clear (focusing to most preceding scene) and background, can obtain image I-F in this case;It second
It is maximum focal length f that focusing state, which may be configured as focal length,maxState, it is clear (to last to be in background for imaging optical system at this time
Scene focusing) and prospect obscure state, image I-B can be obtained in this case.It is subsequent individually to obtain defocusing for image I-F
The defocusing degree of degree and image I-B can also obtain the opposite defocusing degree of image I-F and image I-B, thus according to acquisition
Defocusing degree determines scene depth.And under normal conditions, above-mentioned depth bounds are pairs when generating image I-F and image I-B
Depth between focal plane.
It should be noted that the focusing state of its minimum focus and maximum focal length is only the preferred embodiment of the application,
The image that other any focusing states between maximum focal length and minimum focus obtain can be used to calculate scene depth,
A different citing herein.
Preferably, step 12 includes: in the above embodiment of the present invention
Step 121, the calibration obtained between the depth information of scene and the control voltage of the imaging optical system is closed
System;
Step 122, according to the depth information of scene and the calibration relationship, the control of the imaging optical system is determined
Voltage processed.
Due to the mark between depth information of scene and the control voltage of imaging optical system in the above embodiment of the present invention
Determine the content that relationship is not the prior art, therefore in order to smoothly realize auto-focusing provided by the invention, it need to first determine scene depth
It spends information and controls the calibration relationship between voltage, be generally available functional relation expression;Field to be obtained in step 11
Scape depth information substitutes into functional relation, obtains it and controls voltage.It below will be to the depth information of scene and the imaging
The acquisition process of calibration relationship between the control voltage of optical system is described in detail.
Specifically, as shown in Fig. 2, step 121 includes: in the above embodiment of the present invention
Step 1211, the first calibration between the focal length of imaging optical system and the control voltage of imaging optical system is obtained
Relationship;
Step 1212, the second calibration obtained between the object distance of imaging optical system and the focal length of imaging optical system is closed
System;
Step 1213, the third calibration between the object distance of imaging optical system and the depth information of scene of imaging object is obtained
Relationship;
Step 1214, relationship is demarcated according to the first calibration relationship, the second calibration relationship and third and determines the field
Calibration relationship between scape depth information and the control voltage of the imaging optical system.
Specifically, the first calibration relationship between focal length f and control voltage (V1, V2) can indicate are as follows: f=fun1 (V1,
V2);The second calibration relationship between object distance u and focal length f can indicate are as follows: u=fun2 (f);Depth information of scene Depth and object
It can be indicated away from the third calibration relationship between u are as follows: Depth=fun3 (u);Then basis
F=fun1 (V1, V2);
U=fun2 (f);
Depth=fun3 (u);
It can release, control the calibration relationship between voltage (V1, V2) and depth information of scene Depth, can be expressed as
(V1, V2)=fun4 (Depth).
To sum up, the above embodiment of the present invention finally can be achieved to inquire image optics system by depth information of scene Depth
The control voltage (V1, V2) of the focusing of system, to realize rapid focus.
The acquisition process of the first calibration relationship, the second calibration relationship and third calibration relationship is carried out separately below detailed
Description:
Specifically, the acquisition process of the first calibration relationship is as follows:
I.e. step 1211 includes:
Step 21, the expression formula of the focal length of imaging optical system is obtained;
Step 22, according to root-mean-square value RMS, when determining the minimum focus of imaging optical system and recording minimum focus described in
The control voltage of imaging optical system is minimum control voltage;
Step 23, on the basis of the minimum control voltage, control voltage described in consecutive variations simultaneously records each control
Focal length under voltage, so that it is determined that the first calibration between the focal length of imaging optical system and the control voltage of imaging optical system
Relationship.
Wherein, liquid crystal lens are provided in the above embodiment of the present invention in imaging optical system, then the first calibration relationship
Acquisition process in, interference coherent light is formed into interference fringe by liquid crystal lens, and adopted interference pattern with imaging optical system
Collection record;And the position of whole dark fringes or bright fringes is obtained using the software FringeXP that third party provides, then use software
FringeXP obtains the zernike coefficient (Ze Ni can coefficient) of liquid crystal lens, to obtain the expression formula f of the focal length of liquid crystal lens
=z3/r2, by constantly changing control voltage (V1, V2), focal length is minimum when obtaining integrating phase residual quantity RMS < 0.07 λ, i.e., the smallest
Focal length fmin, and control voltage (V1 when recording minimum focusfmin, V2fmin).Then V1=V1 is fixedfmin, consecutive variations V2=
V2fmin+ Vstep, Vstep can choose 0.1V or 0.05V according to the requirement of precision.Record each voltage (V1fmin, V2fmin
+ K*Vstep) combination under focal length fK, wherein K ∈ [0, (V1fmin-V2fmin)/Vstep], so that it is determined that focal length fKIt needs
Control voltage (V1fmin, V2fmin+ K*Vstep), so that it is determined that the first calibration relationship f=fun1 (V1, V2).
Specifically, the acquisition process of the second calibration relationship is as follows:
I.e. step 1212 includes:
Step 24, be based on Gauss imaging theory, obtain imaging optical system object distance and imaging optical system focal length it
Between second calibration relationship.
It should be noted that must satisfy Gauss imaging theory: 1/f=1/u+1/v at sharply defined image, wherein f is imaging
The focal length of system, u object distances, v is image distance.Due to using liquid crystal lens in the embodiment of the present invention, i.e., in liquid crystal imaging system
In, without any Mechanical Moving, therefore image distance v is remained unchanged;So the object distance u and focal length f of focusing are corresponded: u=vf/ (v-
f).U=fun2 (f)=vf/ (v-f) can be obtained.
Specifically, the acquisition process of third calibration relationship is as follows:
I.e. step 1213 includes:
Step 25, imaging object is placed at different object distances;
Step 26, the depth information of scene of the imaging object at each object distance is obtained respectively;
Step 27, the mapping relations one by one of the object distance Yu the depth information of scene, the mapping relations one by one are established
Relationship is demarcated for the third.
In the above embodiment of the present invention, demarcate object distance u and depth Depth between relationship: object is placed in difference
Object distance u' ∈ [uClosely, uFar], liquid crystal lens are respectively set at each object distance to work in minimum focus and maximum focal length
State, and obtain the image of both states: I_Fu' and I_Bu' respectively, pass through DFD algorithm and obtain object distance u' depth information
Depth' thus establishes object distance u and depth Depth mapping relations.
Preferably, 10 different distance u' can be taken [u is close, and u is remote] to improve the speed of calibration, pass through DFD algorithm
10 corresponding depth informations are obtained, the method for then using linear interpolation obtains the corresponding intensive Depth' of intensive u', close
The u' set of collection is denoted as U, and it is also the relationship mapped one by one that intensive Depth' set, which is denoted as D, set D and set U,.
In other words, object distance u indicates the distance between camera and object unit m, u ∈ [0, umax], depth Depth indicates phase
The distance between machine and object relationship, Depth ∈ [0,2BiteWidth], BiteWidth is the digit of the pixel of image.Due to it
Physical significance be it is the same, depth Depth can be done with u and be mapped one by one, Depth=(2BiteWidth/umax)*u。
To sum up, the inside in the embodiment of the present invention executes process and specifically includes: object distance u is obtained by depth information Depth, by
Object distance u obtains focal length f=uv/ (u+v), then obtains corresponding control voltage (V1, V2) by focal length f, output voltage (V1, V2),
It can then focus at once in the object that object distance is u;Under normal conditions focusing time be liquid crystal lens response time t <
500ms。
In order to preferably realize above-mentioned purpose, below with reference to Fig. 3 to acquisition provided in an embodiment of the present invention control voltage with
The detailed process of the calibration relationship of depth information of scene is as follows:
Step 301, measurement liquid crystal lens focal length f is obtained with voltage (V1, V2) relationship after measurement and calibration
The relationship of the careless voltage change of liquid crystal lens focal length: f=fun1 (V1, V2).
Step 302, must satisfy Gauss imaging theory at sharply defined image: 1/f=1/u+1/v, f are that imaging optical system is burnt
Away from u object distances, v is image distance.In liquid crystal imaging system, without any Mechanical Moving, image distance v is remained unchanged, so focusing
Object distance u and focal length f is corresponded: u=fun2 (f)=vf/ (v-f).
Step 303, the focal length f of liquid crystal lens is adjusted to by minimum value fmin by imaging device, imaging device is in pair
The state that most preceding scene focusing and background obscure, obtains image I_F in this case.
Step 304, liquid crystal lens focal length f is modulated by maximum value fmax by imaging device, imaging device is in background
Clear and prospect fringe obtains image I_B in this case.
Step 305, depth information of scene is obtained using the method for DFD;Depth is calculated according to image I_F and image I_B
Spend information;Use multiple groups narrow band filter (pass-band filter) or FRACTIONAL FILTER (rational filter) etc.
Obtain the opposite degree of defocusing of image I_F and image I_B.Object is into one relative to degree of defocusing and scene depth in a certain range
One corresponding relationship, therefore a certain range of scene depth can be calculated by this method.
Step 306, object distance u is remoter, and the depth value Depth being calculated is bigger, and depth Depth and object distance u mono-
One mapping (Depth → u and u → Depth): Depth=fun4 (u).
Step 307, there is depth Depth to map to obtain object distance u, focal length f is back-calculated to obtain by object distance u, can be inquired by focal length f
Control voltage (V1, V2) is obtained, the calibration relationship of liquid crystal lens control voltage (V1, V2) and scene depth can be obtained: (V1,
V2)=fun5 (Depth).
To sum up, Atomatic focusing method provided in an embodiment of the present invention, which can be realized, directly inquires focusing by depth information
Voltage is controlled, to realize automatic rapid focus according to control voltage;Focusing efficiency is improved, while being not necessarily to mechanical movement, is mentioned
The high service life of imaging optical system.
In order to preferably realize above-mentioned purpose, as shown in figure 4, the embodiment of the present invention also provides a kind of dress of auto-focusing
It sets, is used for imaging optical system, comprising:
Module 41 is obtained, for obtaining the depth information of scene of imaging object under current scene;
Determining module 42, for according between the depth information of scene and the control voltage of the imaging optical system
Calibration relationship determines the control voltage of the imaging optical system;
Focusing module 43, for controlling the imaging optical system auto-focusing using the control voltage.
Specifically, acquisition module 41 described in the above embodiment of the present invention includes:
First acquisition submodule, under current scene, the first of imaging object to defocus journey when obtaining the first focusing state
Second defocusing degree of imaging object when degree and the second focusing state;
Second acquisition submodule, for determining the imaging according to first defocusing degree and second defocusing degree
The depth information of scene of object.
Specifically, determining module 42 described in the above embodiment of the present invention includes:
Module is obtained, for obtaining the mark between the depth information of scene and the control voltage of the imaging optical system
Determine relationship;
Submodule is determined, for determining the image optics according to the depth information of scene and the calibration relationship
The control voltage of system.
Specifically, acquisition module 41 described in the above embodiment of the present invention includes:
First acquisition submodule, for obtaining between the focal length of imaging optical system and the control voltage of imaging optical system
First calibration relationship;
Second acquisition submodule, for obtaining between the object distance of imaging optical system and the focal length of imaging optical system
Two calibration relationships;
Third acquisition submodule, for obtaining between the object distance of imaging optical system and the depth information of scene of imaging object
Third demarcate relationship;
4th acquisition submodule, for demarcating relationship according to the first calibration relationship, the second calibration relationship and third
Determine the calibration relationship between the depth information of scene and the control voltage of the imaging optical system.
Specifically, the first acquisition submodule described in the above embodiment of the present invention includes:
Acquiring unit, the expression formula of the focal length for obtaining imaging optical system;
First recording unit, for determining the minimum focus of imaging optical system and recording minimum according to root-mean-square value RMS
The control voltage of the imaging optical system is minimum control voltage when focal length;
Second recording unit, on the basis of the minimum control voltage, control voltage described in consecutive variations simultaneously to be recorded
Focal length under each control voltage, so that it is determined that between the focal length of imaging optical system and the control voltage of imaging optical system
First calibration relationship.
Specifically, the second acquisition submodule described in the above embodiment of the present invention includes:
Gauss demarcates unit, for being based on Gauss imaging theory, obtains object distance and the image optics system of imaging optical system
The second calibration relationship between the focal length of system.
Specifically, third acquisition submodule described in the above embodiment of the present invention includes:
Placement unit, for imaging object to be placed at different object distances;
Depth unit, for obtaining the depth information of scene of the imaging object at each object distance respectively;
Relationship establishes unit, for establishing the mapping relations one by one of the object distance Yu the depth information of scene, described one
One mapping relations are that the third demarcates relationship.
It should be noted that the method using above-mentioned auto-focusing of the device of auto-focusing provided in an embodiment of the present invention
Device, then all embodiments of the method for above-mentioned auto-focusing are suitable for the device of the auto-focusing, and can reach phase
Same or similar beneficial effect.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, several improvements and modifications can also be made, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (14)
1. a kind of method of auto-focusing is used for imaging optical system characterized by comprising
Obtain the depth information of scene of imaging object under current scene;
According to the calibration relationship between the control voltage of the depth information of scene and the imaging optical system, determine it is described at
As the control voltage of optical system;
The imaging optical system auto-focusing is controlled using the control voltage;
Wherein, the control voltage of imaging optical system include two voltage values, it is described using the control voltage control it is described at
As optical system auto-focusing, comprising:
Above-mentioned two voltage value is set by the focusing voltage of imaging optical system, completes the auto-focusing of the optical system.
2. the method for auto-focusing according to claim 1, which is characterized in that obtain the field of imaging object under current scene
Depth of field degree information Step includes:
Under current scene, imaging pair when the first defocusing degree and the second focusing state of imaging object when obtaining the first focusing state
The second defocusing degree of elephant;
The depth information of scene of the imaging object is determined according to first defocusing degree and second defocusing degree.
3. the method for auto-focusing according to claim 1, which is characterized in that it is described according to the depth information of scene with
Calibration relationship between the control voltage of the imaging optical system, the step of determining the control voltage of the imaging optical system
Include:
Obtain the calibration relationship between the depth information of scene and the control voltage of the imaging optical system;
According to the depth information of scene and the calibration relationship, the control voltage of the imaging optical system is determined.
4. the method for auto-focusing according to claim 3, which is characterized in that it is described obtain the depth information of scene with
The step of calibration relationship between the control voltage of the imaging optical system includes:
Obtain the first calibration relationship between the focal length of imaging optical system and the control voltage of imaging optical system;
Obtain the second calibration relationship between the object distance of imaging optical system and the focal length of imaging optical system;
The third obtained between the object distance of imaging optical system and the depth information of scene of imaging object demarcates relationship;
Relationship, which is demarcated, according to the first calibration relationship, the second calibration relationship and third determines the depth information of scene and institute
State the calibration relationship between the control voltage of imaging optical system.
5. the method for auto-focusing according to claim 4, which is characterized in that the focal length for obtaining imaging optical system
First between the control voltage of imaging optical system includes: the step of demarcating relationship
Obtain the expression formula of the focal length of imaging optical system;
According to root-mean-square value RMS, image optics system when determining the minimum focus of imaging optical system and recording minimum focus
The control voltage of system is minimum control voltage;
On the basis of the minimum control voltage, control voltage described in consecutive variations simultaneously records the coke under each control voltage
Away from so that it is determined that the first calibration relationship between the focal length of imaging optical system and the control voltage of imaging optical system.
6. the method for auto-focusing according to claim 4, which is characterized in that the object distance for obtaining imaging optical system
Second between the focal length of imaging optical system includes: the step of demarcating relationship
Based on Gauss imaging theory, the second calibration between the object distance of imaging optical system and the focal length of imaging optical system is obtained
Relationship.
7. the method for auto-focusing according to claim 4, which is characterized in that the object distance for obtaining imaging optical system
Third between the depth information of scene of imaging object demarcates the step of relationship and includes:
Imaging object is placed at different object distances;
The depth information of scene of the imaging object at each object distance is obtained respectively;
The mapping relations one by one of the object distance Yu the depth information of scene are established, the mapping relations one by one are the third mark
Determine relationship.
8. a kind of device of auto-focusing is used for imaging optical system characterized by comprising
Module is obtained, for obtaining the depth information of scene of imaging object under current scene;
Determining module, for being closed according to the calibration between the depth information of scene and the control voltage of the imaging optical system
System, determines the control voltage of the imaging optical system;
Focusing module, for controlling the imaging optical system auto-focusing using the control voltage;
Wherein, the control voltage of imaging optical system includes two voltage values, and the Focusing module is further used for:
Above-mentioned two voltage value is set by the focusing voltage of imaging optical system, completes the auto-focusing of the optical system.
9. the device of auto-focusing according to claim 8, which is characterized in that the acquisition module includes:
First acquisition submodule, under current scene, when obtaining the first focusing state the first defocusing degree of imaging object and
Second defocusing degree of imaging object when the second focusing state;
Second acquisition submodule, for determining the imaging object according to first defocusing degree and second defocusing degree
Depth information of scene.
10. the device of auto-focusing according to claim 8, which is characterized in that the determining module includes:
Module is obtained, is closed for obtaining the calibration between the depth information of scene and the control voltage of the imaging optical system
System;
Submodule is determined, for determining the imaging optical system according to the depth information of scene and the calibration relationship
Control voltage.
11. the device of auto-focusing according to claim 10, which is characterized in that the acquisition module includes:
First acquisition submodule, for obtaining the between the focal length of imaging optical system and the control voltage of imaging optical system
One calibration relationship;
Second acquisition submodule, for obtaining the second mark between the object distance of imaging optical system and the focal length of imaging optical system
Determine relationship;
Third acquisition submodule, for obtaining between the object distance of imaging optical system and the depth information of scene of imaging object
Three calibration relationships;
4th acquisition submodule, for being determined according to the first calibration relationship, the second calibration relationship and third calibration relationship
Calibration relationship between the depth information of scene and the control voltage of the imaging optical system.
12. the device of auto-focusing according to claim 11, which is characterized in that first acquisition submodule includes:
Acquiring unit, the expression formula of the focal length for obtaining imaging optical system;
First recording unit, for determining the minimum focus of imaging optical system and recording minimum focus according to root-mean-square value RMS
The control voltage of Shi Suoshu imaging optical system is minimum control voltage;
Second recording unit, on the basis of the minimum control voltage, control voltage described in consecutive variations simultaneously to be recorded each
Focal length under a control voltage, so that it is determined that the between the control voltage of the focal length of imaging optical system and imaging optical system
One calibration relationship.
13. the device of auto-focusing according to claim 11, which is characterized in that second acquisition submodule includes:
Gauss demarcates unit, for being based on Gauss imaging theory, obtains the object distance and imaging optical system of imaging optical system
The second calibration relationship between focal length.
14. the device of auto-focusing according to claim 11, which is characterized in that the third acquisition submodule includes:
Placement unit, for imaging object to be placed at different object distances;
Depth unit, for obtaining the depth information of scene of the imaging object at each object distance respectively;
Relationship establishes unit, described to reflect one by one for establishing the mapping relations one by one of the object distance Yu the depth information of scene
Penetrating relationship is that the third demarcates relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510690355.2A CN106610553B (en) | 2015-10-22 | 2015-10-22 | A kind of method and device of auto-focusing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510690355.2A CN106610553B (en) | 2015-10-22 | 2015-10-22 | A kind of method and device of auto-focusing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106610553A CN106610553A (en) | 2017-05-03 |
CN106610553B true CN106610553B (en) | 2019-06-18 |
Family
ID=58610354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510690355.2A Expired - Fee Related CN106610553B (en) | 2015-10-22 | 2015-10-22 | A kind of method and device of auto-focusing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106610553B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11368614B2 (en) | 2018-07-23 | 2022-06-21 | Genemind Biosciences Company Limited | Imaging method, device and system |
CN109451241B (en) * | 2018-12-10 | 2021-06-18 | 无锡祥生医疗科技股份有限公司 | Automatic focus adjusting method and device for ultrasonic image |
CN110099211B (en) | 2019-04-22 | 2021-07-16 | 联想(北京)有限公司 | Video shooting method and electronic equipment |
CN118301473A (en) * | 2022-04-15 | 2024-07-05 | 深圳市道通智能航空技术股份有限公司 | Focusing method, focusing device, electronic equipment and unmanned aerial vehicle |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009082822A1 (en) * | 2007-12-27 | 2009-07-09 | Qualcomm Incorporated | Method and apparatus with depth map generation |
CN101770573A (en) * | 2010-01-14 | 2010-07-07 | 沈洪泉 | Automatic focusing iris image imaging device for iris recognition and control method thereof |
CN102314683A (en) * | 2011-07-15 | 2012-01-11 | 清华大学 | Computational imaging method and imaging system based on nonplanar image sensor |
TWI382267B (en) * | 2008-09-24 | 2013-01-11 | Univ Nat Taiwan | Auto depth field capturing system and method thereof |
CN102997891A (en) * | 2012-11-16 | 2013-03-27 | 上海光亮光电科技有限公司 | Device and method for measuring scene depth |
CN103053154A (en) * | 2010-08-09 | 2013-04-17 | 高通股份有限公司 | Autofocus for stereo images |
CN106226975A (en) * | 2016-07-20 | 2016-12-14 | 成都微晶景泰科技有限公司 | Atomatic focusing method, equipment and imaging device |
-
2015
- 2015-10-22 CN CN201510690355.2A patent/CN106610553B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009082822A1 (en) * | 2007-12-27 | 2009-07-09 | Qualcomm Incorporated | Method and apparatus with depth map generation |
TWI382267B (en) * | 2008-09-24 | 2013-01-11 | Univ Nat Taiwan | Auto depth field capturing system and method thereof |
CN101770573A (en) * | 2010-01-14 | 2010-07-07 | 沈洪泉 | Automatic focusing iris image imaging device for iris recognition and control method thereof |
CN103053154A (en) * | 2010-08-09 | 2013-04-17 | 高通股份有限公司 | Autofocus for stereo images |
CN102314683A (en) * | 2011-07-15 | 2012-01-11 | 清华大学 | Computational imaging method and imaging system based on nonplanar image sensor |
CN102997891A (en) * | 2012-11-16 | 2013-03-27 | 上海光亮光电科技有限公司 | Device and method for measuring scene depth |
CN106226975A (en) * | 2016-07-20 | 2016-12-14 | 成都微晶景泰科技有限公司 | Atomatic focusing method, equipment and imaging device |
Also Published As
Publication number | Publication date |
---|---|
CN106610553A (en) | 2017-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106610553B (en) | A kind of method and device of auto-focusing | |
US10122908B2 (en) | Image pickup apparatus, lens apparatus, and image pickup system | |
CN106454090B (en) | Atomatic focusing method and system based on depth camera | |
JP5995969B2 (en) | Lens unit, imaging device, and control method thereof | |
US8953090B2 (en) | Camera device, interchangeable lens device, camera main body, and focus control method | |
EP3907544B1 (en) | Lens barrel, camera system, and imaging device | |
JP5883654B2 (en) | Image signal processing device | |
CN106226975B (en) | Atomatic focusing method, equipment and imaging device | |
KR20170013904A (en) | High speed variable focal field lens assembly and related methods | |
TW200740211A (en) | Imaging apparatus and exposure control method | |
CN207799234U (en) | A kind of Network Video Surveillance high definition Penetrating Fog zoom lens | |
CN107544102B (en) | Lens module compensation confocal system and method | |
JP2019092119A (en) | Imaging device, lens device, and control method thereof | |
CN105554387A (en) | Zoom tracking curve correction method and device | |
CN107147907B (en) | A kind of detection method of camera module | |
EP2672304A2 (en) | Image-pickup apparatus, lens unit, control method of the image-pickup apparatus, control method of the lens unit, and image-pickup system | |
CN112585518A (en) | Focus point determining method and device, lens, imaging device and movable platform | |
AU2014208246A1 (en) | Method for synchronising several cameras with each other in a photographic system, in particular a stereoscopic system, and photographic system for implementing said method | |
CN103986866A (en) | Imaging device, imaging method, and light-emitting device | |
CN203658653U (en) | Optical zooming and automatic focusing lens | |
CN106773458A (en) | A kind of method and apparatus for focusing | |
JP2014215476A (en) | Imaging apparatus and method for controlling the same | |
CN103916584A (en) | Image acquisition system | |
CN105676563B (en) | A kind of focusing method and camera of zoom camera | |
CN209512829U (en) | A kind of electromotion focusing range-finding telescope |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180703 Address after: 518054 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Applicant after: SUPERD Co.,Ltd. Address before: 518053 H-1 Tung 101, overseas Chinese town, Nanshan District, Shenzhen, Guangdong. Applicant before: SHENZHEN SUPER PERFECT OPTICS Ltd. Applicant before: SHENZHEN MERCURY OPTOELECTRONICS Research Institute |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190618 |