CN107707910A - A kind of method and device for obtaining verification lens parameters - Google Patents
A kind of method and device for obtaining verification lens parameters Download PDFInfo
- Publication number
- CN107707910A CN107707910A CN201710983638.5A CN201710983638A CN107707910A CN 107707910 A CN107707910 A CN 107707910A CN 201710983638 A CN201710983638 A CN 201710983638A CN 107707910 A CN107707910 A CN 107707910A
- Authority
- CN
- China
- Prior art keywords
- camera lens
- electric current
- lens module
- image
- detection value
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- 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
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Focusing (AREA)
Abstract
The present invention provides a kind of method for obtaining verification lens parameters, in the case where the focusing drive motor electric current of loading is 0, by the farthest effectively focal distance object of camera lens module alignment, display obtains an image, electric current is loaded onto maximum from 0 afterwards, camera lens module is moved as electric current increases, and the detection value of image is obtained by detection program, takes the camera lens module motivation value of the as farthest effectively focal distance object of motivation value corresponding to maximum in the detection value;In the case where the focusing drive motor electric current of loading is 0, by the nearest effectively focal distance object of camera lens module alignment, display obtains an image, electric current is loaded onto maximum from 0 afterwards, camera lens module moves as electric current increases, the detection value of image is obtained by detection program, take the camera lens module motivation value of the as nearest effectively focal distance object of maximum in the detection value, the present invention also provides a kind of device for obtaining verification lens parameters, utilize lens optical video detection value, it is convenient, the true stroke of accurate detector lens.
Description
Technical field
The present invention relates to a kind of method and device for obtaining verification lens parameters.
Background technology
Contrast formula, which is focused, is widely used in camera, mobile phone, and in the focusing of camera, it can be in no increase physical hardware
On the basis of, realize fast and accurate focus, the principle of contrast formula focusing is as follows:Driving camera lens moves in the range of stroke, to mirror
The position that head passes through carries out image sampling, obtains the contrast value of image, by the comparison of contrast value, obtains the position of maximum contrast value
Put, moving lens to the position, so as to obtain clearly image.
Because the assembling of each camera lens can have error, the movement travel of each camera lens is different, is dispatched from the factory in camera lens module
Before need to carry out it stroke verification, and check value write camera lens OTP (EPROM) be supplied to focusing driver use.
In the focusing of contrast formula, camera lens can be loaded electric current, and with electric current value changes, camera lens is moved by drives edge axis within the scope of one
It is dynamic.The scope of electric current is 0~120mA, but is not that electric current is loaded into 120mA from 0 to move camera lens during actual focusing driving
It is dynamic, but be to allow camera lens loading current in the range of focus scope, such as infinity~100mm.
According to camera lens depth of field data, as shown in Figure 4, it is known that if the design focusing range of the camera lens is infinitely as far as 100mm,
It is infinity focus when then camera lens is moved to 0.005mm, is 100mm focuss when camera lens is to 0.090mm.This is the physics of camera lens
What design determined, therefore, method of calibration of today is to give camera lens module loading current, the displacement of detector lens, when being moved to
During 0.005mm (infinity focus), record current value such as 45mA, when being moved to 0.090mm (100mm focuss), electricity is included in
Motivation value a corresponding to 45mA and 60mA, b are then write the EEPROM of camera lens by flow valuve such as 60mA., complete Shot Detection.
But this method can not be actual reaction shot optical condition, it is a variety of bad during lens assembling, tilt, deformation,
Loosening, gap length can all cause the deviation (i.e. the position of focus can change) of actual optical parametric and theoretical parameter, go out
Existing optical system field of view picture paste, the error for also resulting in verification data and actual optical imagery are larger.
The content of the invention
The technical problem to be solved in the present invention, it is to provide a kind of method and device for obtaining verification lens parameters, profit
It is convenient with lens optical video detection value, the true stroke of accurate detector lens.
What one of present invention was realized in:A kind of method for obtaining verification lens parameters, including:
In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at farthest effectively focal distance quilt
Thing is taken the photograph, display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module is moved as electric current increases, passed through
Detection program obtains the detection value of image, and it is farthest effectively focal distance quilt to take motivation value corresponding to maximum in the detection value
Take the photograph the camera lens module motivation value of thing;
In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at recently effectively focal distance quilt
Thing is taken the photograph, display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module is moved as electric current increases, passed through
Detection program obtains the detection value of image, takes the camera lens mould of the as nearest effectively focal distance object of maximum in the detection value
Group motivation value.
Further, the detection value is a terminal connection lens module, and obtains image by lens driving program
Detection value.
What the two of the present invention were realized in:A kind of device for obtaining verification lens parameters, including:
Farthest check and correction focal length acquisition module, in the case where the focusing drive motor electric current of loading is 0, by camera lens module pair
Accurate farthest effectively focal distance object, display obtain an image, and electric current is loaded onto into maximum from 0 afterwards, camera lens module with
Electric current increase and move, the detection value of image is obtained by detection program, takes motivation value corresponding to maximum in the detection value
The camera lens module motivation value of as farthest effectively focal distance object;
Check and correction focal length acquisition module recently, in the case where the focusing drive motor electric current of loading is 0, by camera lens module pair
Accurate effectively focal distance object, display obtain an image recently, and electric current is loaded onto into maximum from 0 afterwards, camera lens module with
Electric current increase and move, the detection value of image is obtained by detection program, it is effective recently to take maximum in the detection value
The camera lens module motivation value of focal distance object.
Further, the detection value is a terminal connection lens module, and obtains image by lens driving program
Detection value.
The invention has the advantages that:A kind of method and device for obtaining verification lens parameters, in whole electric current stroke
In the range of moving lens, using detection value caused by the optical imagery of camera lens, the most distant and nearest focusing object of design is entered
Row total travel continuous optical detection, so as to the video detection curve of total travel taken, take two of most distant and nearest focusing object
The check value that motivation value during the detection maximum of curve is used as.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method execution flow chart.
Motivation value change curve Fig. 2 is shoots recently effectively focal distance object in the present invention when.
Motivation value change curve Fig. 3 is shoots farthest effectively focal distance object in the present invention when.
Fig. 4 is camera module of the present invention focusing numerical value corresponding table.
Embodiment
As shown in figure 1, the method that the present invention obtains verification lens parameters, including:
In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at farthest effectively focal distance quilt
Thing is taken the photograph, display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module is moved as electric current increases, passed through
Detection program obtains the detection value of image, and it is farthest effectively focal distance quilt to take motivation value corresponding to maximum in the detection value
Take the photograph the camera lens module motivation value of thing;
In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at recently effectively focal distance quilt
Thing is taken the photograph, display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module is moved as electric current increases, passed through
Detection program obtains the detection value of image, takes the camera lens mould of the as nearest effectively focal distance object of maximum in the detection value
Group motivation value.
Above-mentioned two step part tandem.
The detection value is a terminal connection lens module, and the detection value of image is obtained by lens driving program.
The present invention obtains the device of verification lens parameters, including:
Farthest check and correction focal length acquisition module, in the case where the focusing drive motor electric current of loading is 0, by camera lens module pair
Accurate farthest effectively focal distance object, display obtain an image, and electric current is loaded onto into maximum from 0 afterwards, camera lens module with
Electric current increase and move, the detection value of image is obtained by detection program, takes motivation value corresponding to maximum in the detection value
The camera lens module motivation value of as farthest effectively focal distance object;
Check and correction focal length acquisition module recently, in the case where the focusing drive motor electric current of loading is 0, by camera lens module pair
Accurate effectively focal distance object, display obtain an image recently, and electric current is loaded onto into maximum from 0 afterwards, camera lens module with
Electric current increase and move, the detection value of image is obtained by detection program, it is effective recently to take maximum in the detection value
The camera lens module motivation value of focal distance object.
It is farthest to proofread focal length acquisition module and proofread focal length acquisition module order in no particular order recently.
The detection value is a terminal connection lens module, and the detection value of image is obtained by lens driving program.
A kind of embodiment of the present invention:
Step 1. first, shoots to most distant and nearest object, object is presented on display picture.At this moment by
There is no focus in object, so object is fuzzy, can only obtain a general image.Now current value is 0.
Motivation value is gradually increased from 0, electric current is loaded onto maximum from 0, at this moment camera lens increases and moved with electric current, so as to
To a series of images of camera lens movement, the picture of object can be significantly from obscuring clearly again to obscuring, being obtained by detection program
To a series of detection values of image.As shown in Figures 2 and 3:
Abscissa is motivation value, and ordinate is video detection value, and when Fig. 3 is shoots farthest (infinity) object, Fig. 2 is bat
When taking the photograph nearest (100mm) object
Motivation value during record such as two peak values of figure curve, two motivation values now obtained are exactly farthest (infinity)
With real motivation value when nearest (100mm).
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this
The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's
In scope of the claimed protection.
Claims (4)
- A kind of 1. method for obtaining verification lens parameters, it is characterised in that:Including:In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at farthest effectively focal distance object, Display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module moves as electric current increases, and passes through detection Program obtains the detection value of image, and it is farthest effectively focal distance object to take motivation value corresponding to maximum in the detection value Camera lens module motivation value;In the case where the focusing drive motor electric current of loading is 0, camera lens module is directed at recently effectively focal distance object, Display obtains an image, electric current is loaded onto into maximum from 0 afterwards, camera lens module moves as electric current increases, and passes through detection Program obtains the detection value of image, and it is that effectively the camera lens module of focal distance object drives recently to take maximum in the detection value Dynamic value.
- A kind of 2. method for obtaining verification lens parameters according to claim 1, it is characterised in that:The detection value is one Terminal connection lens module, and pass through the detection value of lens driving program acquirement image.
- A kind of 3. device for obtaining verification lens parameters, it is characterised in that:Including:Farthest check and correction focal length acquisition module, in the case where the focusing drive motor electric current of loading is 0, by the alignment of camera lens module most Remote effectively focal distance object, display obtain an image, electric current are loaded onto into maximum from 0 afterwards, camera lens module is with electricity Stream increase and move, the detection value of image is obtained by detection program, takes the motivation value corresponding to maximum in the detection value to be The camera lens module motivation value of farthest effectively focal distance object;Check and correction focal length acquisition module recently, in the case where the focusing drive motor electric current of loading is 0, by the alignment of camera lens module most Nearly effectively focal distance object, display obtain an image, electric current are loaded onto into maximum from 0 afterwards, camera lens module is with electricity Stream increases and moved, and the detection value of image is obtained by detection program, and it is effectively focusing recently to take maximum in the detection value Apart from the camera lens module motivation value of object.
- A kind of 4. device for obtaining verification lens parameters according to claim 3, it is characterised in that:The detection value is one Terminal connection lens module, and pass through the detection value of lens driving program acquirement image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710983638.5A CN107707910A (en) | 2017-10-20 | 2017-10-20 | A kind of method and device for obtaining verification lens parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710983638.5A CN107707910A (en) | 2017-10-20 | 2017-10-20 | A kind of method and device for obtaining verification lens parameters |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107707910A true CN107707910A (en) | 2018-02-16 |
Family
ID=61182053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710983638.5A Pending CN107707910A (en) | 2017-10-20 | 2017-10-20 | A kind of method and device for obtaining verification lens parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107707910A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300267A (en) * | 2019-07-19 | 2019-10-01 | 维沃移动通信有限公司 | Photographic method and terminal device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1976387A (en) * | 2005-11-28 | 2007-06-06 | 索尼株式会社 | Solid-state image-pickup device, method of driving solid-state image-pickup device and image-pickup apparatus |
CN101086549A (en) * | 2006-06-08 | 2007-12-12 | 华硕电脑股份有限公司 | Lens module |
CN103986876A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring terminal and image acquiring method |
CN105530421A (en) * | 2014-09-30 | 2016-04-27 | 宇龙计算机通信科技(深圳)有限公司 | Terminal, focusing method and device based on double cameras |
CN105824098A (en) * | 2016-05-04 | 2016-08-03 | 广东欧珀移动通信有限公司 | Focusing control method and device, imaging control method and device, and electronic device |
-
2017
- 2017-10-20 CN CN201710983638.5A patent/CN107707910A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1976387A (en) * | 2005-11-28 | 2007-06-06 | 索尼株式会社 | Solid-state image-pickup device, method of driving solid-state image-pickup device and image-pickup apparatus |
CN101086549A (en) * | 2006-06-08 | 2007-12-12 | 华硕电脑股份有限公司 | Lens module |
CN103986876A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring terminal and image acquiring method |
CN105530421A (en) * | 2014-09-30 | 2016-04-27 | 宇龙计算机通信科技(深圳)有限公司 | Terminal, focusing method and device based on double cameras |
CN105824098A (en) * | 2016-05-04 | 2016-08-03 | 广东欧珀移动通信有限公司 | Focusing control method and device, imaging control method and device, and electronic device |
Non-Patent Citations (1)
Title |
---|
王虎: "自动对焦原理及方法", 《科技信息》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110300267A (en) * | 2019-07-19 | 2019-10-01 | 维沃移动通信有限公司 | Photographic method and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101911671B (en) | Imaging device and optical axis control method | |
CN103986876B (en) | A kind of image obtains terminal and image acquiring method | |
CN106482640B (en) | Device and method for correcting optical axis of integrated machine core | |
WO2015180509A1 (en) | Image capturing terminal and image capturing method | |
CN101344702B (en) | Automatic focusing system and automatic focusing method | |
CN111932636B (en) | Calibration and image correction method and device for binocular camera, storage medium, terminal and intelligent equipment | |
US20080247741A1 (en) | Image-taking apparatus | |
CN109451237A (en) | A kind of focusing AA method and apparatus of camera module | |
TW201520633A (en) | Automatic focusing method, and automatic focusing device, image capturing device using the same | |
EP2006733B1 (en) | Auto focus apparatus and method for camera | |
CN110248097A (en) | Chase after burnt method, apparatus, terminal device, computer readable storage medium | |
CN103748493A (en) | Image pickup device and program | |
CN104503189A (en) | Automatic focusing method | |
CN112505876A (en) | Lens, image capturing device and electronic equipment | |
US11575821B2 (en) | Camera device having first and second cameras, and method of operating same | |
CN101788743B (en) | Image sensing apparatus and control method thereof | |
US9584717B2 (en) | Focusing method, and image capturing device for implementing the same | |
CN105554387A (en) | Zoom tracking curve correction method and device | |
CN106210548B (en) | A kind of method and device of rapid focus | |
CN107147907B (en) | A kind of detection method of camera module | |
WO2020057331A1 (en) | Adjustable camera module and assembly test method therefor | |
CN107707910A (en) | A kind of method and device for obtaining verification lens parameters | |
US7589768B2 (en) | Image-taking apparatus and focus control method of image-taking apparatus with first and second control method in first zoom state and only second control method in second zoom state | |
JP6639117B2 (en) | Optical equipment and focus control program | |
US20230137118A1 (en) | Linkage apparatus, camera module, and electronic device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180216 |