CN106501917A - A kind of camera lens auxiliary focus adjustment method and device - Google Patents

A kind of camera lens auxiliary focus adjustment method and device Download PDF

Info

Publication number
CN106501917A
CN106501917A CN201611117050.3A CN201611117050A CN106501917A CN 106501917 A CN106501917 A CN 106501917A CN 201611117050 A CN201611117050 A CN 201611117050A CN 106501917 A CN106501917 A CN 106501917A
Authority
CN
China
Prior art keywords
matched curve
test
reference value
auxiliary
camera lens
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.)
Granted
Application number
CN201611117050.3A
Other languages
Chinese (zh)
Other versions
CN106501917B (en
Inventor
赵博刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201611117050.3A priority Critical patent/CN106501917B/en
Publication of CN106501917A publication Critical patent/CN106501917A/en
Application granted granted Critical
Publication of CN106501917B publication Critical patent/CN106501917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Eyeglasses (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention discloses a kind of camera lens aids in focus adjustment method and device, the method to include:Camera lens from starting point in terminating point single direction rotation process, calculate the test number of the corresponding test image of each lens location in real time, obtain test number sequence;Multiple test numbers are selected from the test number sequence as observation data according to test reference value set in advance;Determine the corresponding matched curve of the observation data, according to the focal length that the matched curve for determining adjusts the camera lens.Technical scheme represents the matched curve of test number characteristic distributions by calculating, focused using matched curve attachment lens, the secondary high level that operating personnel can be avoided to arrive subjective observation is poor as focusing accuracy caused by focusing result, as a result insecure defect.

Description

A kind of camera lens auxiliary focus adjustment method and device
Technical field
The present invention relates to camera lens debugging technique field, more particularly to a kind of camera lens auxiliary focus adjustment method and device.
Background technology
The focusing technique of general tight shot module is to ensure that lens package focusing accurately, and the image clearly of shooting can Lean on.
At present, in industry, mainly following two modes carry out lens focusing:
1st, automatic focusing apparatus are utilized, but this equipment manufacturing cost is high, complicated in mechanical structure, and require the outward appearance of camera lens Machinery positioning is must be appropriate for, all types of lens focusings are not applied to.
2nd, by manual focusing equipment, although this equipment manufacturing cost is cheap, however it is necessary that manual operation is fully relied on, manpower High cost, and focusing accuracy is not high, focusing result reliability is poor.
Content of the invention
The invention provides a kind of camera lens auxiliary focus adjustment method and device, to solve what existing lens focusing method was relied on Automation adjustment equipment cost is high, poor for applicability, and manual focusing equipment human cost is high, and focusing accuracy is not high, focusing knot Really insecure problem.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
On the one hand, the invention provides a kind of camera lens aids in focus adjustment method, the method to include:
Camera lens from starting point in terminating point single direction rotation process, calculate the corresponding survey of each lens location in real time Attempt the test number of picture, obtain test number sequence;
Multiple test numbers are selected from the test number sequence as observation according to test reference value set in advance Data;
Determine the corresponding matched curve of the observation data, according to the focal length that the matched curve for determining adjusts the camera lens.
On the other hand, the invention provides a kind of camera lens aids in focus control, camera lens auxiliary focus control includes:Calculate Unit, select unit and curve determining unit;
Computing unit, for camera lens from starting point in terminating point single direction rotation process, calculate each mirror in real time The test number of the corresponding test image in head position, obtains test number sequence;
Select unit, for selecting multiple tests according to test reference value set in advance from the test number sequence Numerical value is used as observation data;
Curve determining unit, for determining the corresponding matched curve of the observation data, adjusts according to the matched curve for determining The focal length of the whole camera lens.
The beneficial effect of the embodiment of the present invention is:Survey of the present invention by the corresponding test image of each lens location of calculating Examination numerical value, and qualified observation value is selected from observation value, corresponding matched curve, profit is calculated using observation value The focusing that camera lens is completed with matched curve auxiliary;The secondary high level that operating personnel can be avoided to arrive subjective observation is used as focusing result Caused focusing accuracy is poor, as a result insecure defect.
The characteristics of there is the present invention auxiliary focus adjustment method to be simple and convenient to operate, and high accuracy, efficient focusing can be met Require, and software equipment parameter can be changed, the focusing of products of different specifications, applicability is realized according to the camera lens of different size By force.
Description of the drawings
The focusing frock schematic diagram that Fig. 1 is provided for the present embodiment;
Fig. 2 aids in focus adjustment method flow chart for the camera lens that the present embodiment is provided;
Schematic diagram of the center using test pattern that Fig. 3 is provided for the present embodiment as object of observation;
Fig. 4 is the matched curve schematic diagram that the test number sequence based on test image center position determines;
Fig. 5 for the present embodiment provide using the center of test pattern and four peripheral positions showing as object of observation It is intended to;
Fig. 6 is the matched curve cluster schematic diagram that the test number sequence based on each object of observation in Fig. 5 determines;
Fig. 7 for the present embodiment provide using the center of test pattern and four peripheral positions showing as object of observation It is intended to, four corner locations are incomplete same with the distance of center;
Fig. 8 is the matched curve cluster schematic diagram that the test number sequence based on each object of observation in Fig. 7 determines;
Fig. 9 aids in focus control structured flowchart for the camera lens that the present embodiment is provided.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Conventional manual focusing frock is as shown in figure 1, in focussing process, the hand of operating personnel rotates the mirror of camera lens Head, the test number that the eye observation computer display screen of operating personnel shows, when test number is maximum, the hand of operation people stops Rotation stop is moved, and it is qualified that camera lens module at this time is considered as focusing.
In this operational method, the manual focusing lens are leaned on completely, staff is uneven to the velocity of rotation of camera lens, and having very much can The peak of test data can be missed, time high level is simply accommodated to, therefore focusing accuracy is not high enough, and result of focusing is unreliable.
The present invention design concept be:First coarse adjustment camera lens, calculates the test number of the corresponding test image of each lens location Value, calculates corresponding matched curve according to test number, the focusing for completing camera lens using matched curve auxiliary, for example will be bent for fitting The maximum of line is used as the attachment lens focusing of focusing reference quantity
Fig. 2 is that camera lens provided in an embodiment of the present invention aids in focus adjustment method flow chart, as shown in Fig. 2 the method includes:
S200, camera lens from starting point in terminating point single direction rotation process, calculate each lens location pair in real time The test number of the test image that answers, obtains test number sequence.
Wherein, test number be represent picture quality parameter, can be mtf value, SFR values or TV line values, this enforcement Example does not specifically limit specifically which kind of test number, as long as picture quality can be represented.Operating personnel in test process, Can be right so as to obtain according to a direction, such as according to camera lens rotationally clockwise, or according to rotate in an anti-clockwise direction camera lens The test number sequence that answers.
S220, selects multiple test numbers as observation from test number sequence according to test reference value set in advance Data.
In the design process, the maximum of focusing lens can will be treated according to the distribution of the test number sequence of sample camera lens The 40%-80% of test number makes partial test numerical value more than test reference value as test reference value, and partial test numerical value is little In test reference value, alternatively to observe the reference frame of data.It is of course also possible to be set according to the specification of sample camera lens Test reference value, in actual applications, can be specifically chosen according to demand.
S240, determines the corresponding matched curve of observation data, according to the focal length that the matched curve for determining adjusts camera lens.
Test number of the present embodiment by the corresponding test image of each lens location of calculating, and choose from observation value Qualified observation value is selected, corresponding matched curve is calculated using observation value, complete camera lens using matched curve auxiliary Focusing.
Above-mentioned steps S200 of the present embodiment~S240 by computing device with the manual focusing frock shown in Fig. 1 can be Example, step S200~S240 can be with the computing device of computer.
In step S220 shown in Fig. 2, observation data can be selected by following manner:
In test number sequence, the variation tendency of test number is by being higher than test reference less than test reference value changes Value becomes when turning to less than test reference value again, selects multiple tests not less than the test reference value from test number sequence Numerical value is used as observation data.Wherein, the number of selected observation data should be greater than 1, be the precision for improving follow-up matched curve, The number of observation data is preferably 3-10, when selecting observation data, divides equally observation data as far as possible and is distributed or dispersed distribution, enter one Step improves the precision of matched curve.
It should be noted that " in test number sequence, the variation tendency of test number by less than test reference value changes is Become higher than test reference value again and turn to less than test reference value " it is interpreted as:1. it is all full that whole test number sequence need not be limited The above-mentioned variation tendency of foot, only needs a certain section of test number subsequence of test number sequence to meet the variation tendency;2. full The test number number of each sub- test number sequence of the above-mentioned variation tendency of foot should be greater than corresponding number threshold value, to avoid people For the impact of operating error or system tolerance, for example, two sub- test number sequences of test reference value in variation tendency, are less than In test number number should at least above 2, preferably more than 3 or 4 or 5, in variation tendency higher than test reference value son The number of the test number in test number sequence should at least above 2, preferably more than 4 or 5 or 6.Additionally, " from test number Multiple test numbers not less than the test reference value are selected in sequence as observation data " it is interpreted as:Above-mentioned meeting Observation data are selected in the test number subsequence of variation tendency.
Generally camera lens quality, the test number of center position are represented using the test number of test image center position Bigger expression camera lens quality is better, and the mtf value of such as test image center position is bigger, shows that lens imaging quality is better.Cause This, in the camera lens auxiliary focus adjustment method shown in Fig. 2, can obtain test number sequence by following manner:
Calculate the test number of the corresponding test image center position of each lens location in real time, obtain in test image Corresponding test number sequence at heart position.
After test number sequence is obtained, can be according to from the corresponding test number sequence of test image center position The multiple observation data for selecting, determine a matched curve, and then calculate the maximum of the matched curve, rotate camera lens, when The test number of the corresponding test image center position of lens location is less than tolerable with the difference of the maximum of matched curve During error, that is, complete the focusing of camera lens;Wherein it is possible to true according to the structure tolerance of test fixture and the error of fitting of matched curve Determine tolerable error.
As shown in figure 3, the center for selecting test image is object of observation, the survey based on test image center position The matched curve that examination sequence of values determines refers to Fig. 4, after matched curve is obtained, can be auxiliary according to the maximum of the matched curve Help the focusing of camera lens.
By upper, test number sequence of the present embodiment by calculating test image center position, and from the test for obtaining Select qualified observation data to carry out curve fitting in sequence of values, obtain the maximum of matched curve, bent with the fitting The maximum of line as focusing reference quantity attachment lens focusing, the secondary high level that operating personnel can be avoided to arrive subjective observation as Caused by focusing result, focusing accuracy is poor, as a result insecure defect.
As in actual applications, when the test number of test image center position obtains maximum, test image is all Test number at the position of side cannot obtain maximum, may be smaller, cause camera lens optical center at the focusing position Quality better, but the inferior quality of camera lens periphery, in order to ensure the image quality of optical center and periphery simultaneously, shown in Fig. 2 In camera lens auxiliary focus adjustment method, test number sequence can be obtained by following manner:
Calculated at the corresponding test image center position of each lens location and one or more peripheral positions in real time Test number, to respectively obtaining corresponding test number sequence at each position.
At this point it is possible to according to the multiple observation numbers selected from the corresponding test number sequence of test image center position According to determining a main matched curve;And according in the corresponding test number sequence from test image each peripheral position The multiple observation data for each selecting, determine an auxiliary matched curve respectively, obtain auxiliary matched curve cluster.
As shown in figure 5, exemplarily select test image center and four peripheral positions as object of observation, In practical application, the other positions of test image can be selected as test object.
After the corresponding matched curve in each position is obtained, can with according to following any one auxiliary focusing modes carry out camera lens Focusing:
Auxiliary focusing mode one:Peak value according to main matched curve determines homophony Jiao's reference value M, and bent according to auxiliary fitting The peak value of line cluster determines auxiliary focusing reference value N;Wherein, peak value of homophony Jiao reference value less than main matched curve, auxiliary focusing reference Minimum peak of the value less than auxiliary matched curve cluster, and homophony Jiao's reference value is more than auxiliary focusing reference value;Determine homophony Jiao's reference value M With the corresponding focal range of auxiliary focusing reference value N, the intersection of focal range is pinpointed focus scope, rotates camera lens, works as mirror When head position is in the pinpointed focus scope, the focusing of camera lens is completed.
Fig. 5 for the present embodiment provide using the center of test pattern and four peripheral positions showing as object of observation It is intended to, Fig. 6 is the matched curve cluster schematic diagram that the test number sequence based on each object of observation in Fig. 5 determines;Test pattern The number of the middle corner location as object of observation and position do not limit, and Fig. 6 is exemplary to represent picture quality with mtf value, it is clear that SFR values or TV line values can also be utilized to represent picture quality.
The corresponding curve of the center position of the test pattern with reference to shown in Fig. 5 and Fig. 6, Fig. 5 refers to the curve in Fig. 6 The periphery top-left position of the test pattern shown in a, Fig. 5, periphery upper-right position, periphery lower left position and periphery bottom-right location pair The curve that answers can successively with reference to the curve d in Fig. 6, curve b, curve e and curve c.In matched curve coordinate system in figure 6, Transverse axis represents that the focussing distance of camera lens, the longitudinal axis represent the mtf value of picture quality, in the coordinate system, homophony Jiao's reference value M and auxiliary Focusing reference value N corresponds to two parallel lines line1 and line2 parallel to transverse axis in Fig. 6 respectively, and horizontal line line1 is corresponding Mtf value be M, the corresponding mtf values of horizontal line line2 be N, parallel lines line1 in horizontal line line2 top, from Fig. 6 As can be seen that horizontal range a of horizontal line line1 and the intersection point of main matched curve1a2Correspond to the focal length of homophony Jiao's reference value M Scope, horizontal line line2 are followed successively by b with the horizontal range of matched curve b, c, d and e intersection point in auxiliary matched curve cluster1b2, c1c2, d1d2, e1e2, horizontal range is followed successively by b1b2, c1c2, d1d2, e1e2The focal range of reference value N of focusing supplemented by corresponding to respectively, above-mentioned Intersection b of 5 focal ranges1e2For pinpointed focus scope.
Auxiliary focusing mode two:Song will be fitted corresponding at identical peripheral position with test image center position Line is divided into the auxiliary matched curve cluster of a class;Peak value according to main matched curve determines homophony Jiao's reference value, and auxiliary according to every class The peak value of matched curve cluster determines the auxiliary focusing reference value per the auxiliary matched curve cluster of class;Wherein, homophony Jiao reference value is less than main plan The peak value of curve is closed, minimum peak of the auxiliary focusing reference value per the auxiliary matched curve cluster of class less than the auxiliary matched curve cluster, and main Focusing reference value is more than the auxiliary focusing reference value per the auxiliary matched curve cluster of class;Determine homophony Jiao's reference value and each auxiliary focusing reference It is worth corresponding focal range, the intersection of focal range is pinpointed focus scope, rotates camera lens, when lens location is in this most During good focal range, the focusing of camera lens is completed.
Fig. 7 for the present embodiment provide using the center of test pattern and four peripheral positions showing as object of observation It is intended to, four peripheral positions are incomplete same with the distance of center, and Fig. 8 is the test based on each object of observation in Fig. 7 The matched curve cluster schematic diagram that sequence of values determines;The number of the peripheral position in test pattern as object of observation is not limited, It is that each peripheral position is incomplete same with the distance of center, Fig. 8 is exemplary to represent picture quality with mtf value, it is clear that SFR values or TV line values can also be utilized to represent picture quality.
The corresponding curve of the center position of the test pattern with reference to shown in Fig. 7 and Fig. 8, Fig. 7 refers to the curve in Fig. 8 The periphery top-left position of the test pattern shown in f, Fig. 7, periphery upper-right position, periphery lower left position and periphery bottom-right location pair The curve that answers can successively with reference to the curve i in Fig. 8, curve g, curve j and curve h.Understand according to Fig. 7, the test chart of Fig. 7 In card, periphery top-left position distance center position is nearest, and periphery upper-right position and periphery bottom-right location distance center position are taken second place, Periphery lower left position distance center position is farthest, therefore, it can divide the auxiliary matched curve cluster of three classes, i.e. periphery top-left position correspondingly Matched curve i and the corresponding matched curve j of periphery lower left position respectively be a class matched curve, the corresponding plan of periphery upper-right position It is that a class is fitted set of curves to close the curve g and corresponding matched curve h of periphery bottom-right location;Wherein, the corresponding auxiliary tune of matched curve i Burnt reference value be N1, matched curve g and matched curve h corresponding auxiliary focusing reference value be N2, the corresponding auxiliary focusing of matched curve j Reference value is N3.
In matched curve coordinate system in fig. 8, transverse axis represents that the focussing distance of camera lens, the longitudinal axis represent picture quality Mtf value, in the coordinate system, homophony Jiao's reference value M ' and correspond in Fig. 8 respectively four of auxiliary focusing reference value N1, N2, N3 flat In the parallel lines line1 ' of transverse axis, line2 ', line3 ', line4 ', the corresponding mtf values of horizontal line line1 ' are M ' to row, level The corresponding mtf values of line line2 ' are N1, and the corresponding mtf values of horizontal line line3 ' are N2, and the corresponding mtf values of horizontal line line4 ' are The top of N3, parallel lines line1 ' in horizontal line line2 ', horizontal line line3 ' and horizontal line line4 ', can be with from Fig. 8 Find out, horizontal range f of horizontal line line1 ' and the intersection point of main matched curve f1f2Correspond to homophony Jiao reference value M ' focal length model Enclose, horizontal range i of the intersection point of horizontal line line2 ' and matched curve i1i2The focal range of reference value N1 of focusing supplemented by corresponding, Horizontal line line3 ' is followed successively by g with the horizontal range of the intersection point of matched curve g and h1g2、h1h2, g1g2, h1h2Supplemented by corresponding to respectively The focal range of focusing reference value N2, horizontal range j of the intersection point of horizontal line line4 ' and matched curve j1j2Focus supplemented by corresponding The focal range of reference value N3, intersection g of above-mentioned 5 focal ranges1f2For pinpointed focus scope.
It should be noted that auxiliary focusing mode one do not limit in test image each peripheral position and center away from From whether identical, each peripheral position and center identical situation in the i.e. applicable test image of auxiliary focusing mode one, and Each peripheral position and the incomplete same situation in center suitable for test image, simply auxiliary focusing mode one is more suitable For each peripheral position in test image and center identical situation, and focusing mode two is aided in be suitable in test image Each peripheral position and the incomplete same situation in center.
Auxiliary focusing mode three:A tune is determined according to the peak value of main matched curve and according to the peak value of auxiliary matched curve cluster Burnt reference value, the focusing reference value determine the corresponding focal range of focusing reference value less than the peak value of arbitrary matched curve, burnt Intersection away from scope is pinpointed focus scope, rotates camera lens, when lens location is in the pinpointed focus scope, completes mirror The focusing of head.
Auxiliary focusing mode four:Peak value according to main matched curve determines homophony Jiao's reference value, and bent according to auxiliary fitting The peak value of each matched curve in line cluster determine to should matched curve auxiliary focusing reference value, each auxiliary focusing reference value is little In the peak value of its corresponding matched curve, and each auxiliary focusing reference value is respectively less than homophony Jiao's reference value, determines homophony Jiao's reference value With each auxiliary corresponding focal range of reference value of focusing, the intersection of focal range is pinpointed focus scope, rotates camera lens, when When lens location is in the pinpointed focus scope, the focusing of camera lens is completed.
In above-mentioned four kinds auxiliary focusing modes, all it is by determining a pinpointed focus scope, according to optimal Jiao Away from the focal length that scope adjusts camera lens, in order to improve the precision of lens focusing, the present embodiment is preferably determined in the range of pinpointed focus Main matched curve and the maximum average value of auxiliary matched curve cluster, will obtain the focussing distance of maximum average value as pinpointed focus, Lens focusing is carried out according to the pinpointed focus, that is, is rotated camera lens, when lens location is in is pinpointed focus, is completed the tune of camera lens Burnt.
The above-mentioned four kinds of auxiliary focusing mode of comparison, the first auxiliary focusing mode will be corresponding for test image center position Main matched curve auxiliary matched curve cluster corresponding with test image peripheral position makes a distinction, using the focal length of two class matched curves The intersection of scope determines that pinpointed focus scope, auxiliary complete lens focusing, and the first auxiliary focusing mode ensure that mirror Head center and the image quality of periphery, and computation complexity is low, more practical;Second auxiliary focusing mode is according to test image Peripheral position is different from the distance of center, the auxiliary matched curve cluster of Further Division, using main matched curve and all kinds of auxiliary plans The intersection for closing the scope of set of curves determines that pinpointed focus scope, auxiliary complete lens focusing, the second auxiliary focusing mode phase Than in the first auxiliary focusing mode, the image quality of camera lens various location can be further ensured that;And the third auxiliary is adjusted Burnt mode determines a focusing reference value due to not distinguishing main matched curve and auxiliary matched curve cluster, only so that obtained is optimal Focal range is excessive, there is lens focusing low precision;4th kind of auxiliary focusing mode is due to determining each matched curve Corresponding focal range, calculates complexity, and there is computing redundancy.Therefore, in actual applications, the first and second are preferably used Planting auxiliary focusing mode carries out lens focus regulation.
Step S240 in for Fig. 2, determines that the mode of the corresponding matched curve of observation data is as follows:
The corresponding matched curve of observation data is determined according to least square method;Or, solved using observation data and deposited in advance Each functional equation of storage, obtains the corresponding distribution curve of each functional equation, determines that the minimum distribution curve of error of fitting is The corresponding matched curve of observation data.
For describing the auxiliary focussing process of the present invention in detail, illustrated with a specific embodiment below.Originally it is embodied as Example carries out lens focusing using Fig. 1 manual focusings frock, and the camera lens auxiliary focus adjustment method step in Fig. 2 corresponds to operate in calculating Application program in machine.Focussing process is as follows:
Test reference value MTF is set according to the specification of sample camera lensvrf, camera lens module is placed into test by operating personnel The setting position of frock, clicks on the test start button of operation application program in a computer, and operating personnel is according to one Direction rotates camera lens, such as camera lens rotationally clockwise, or rotate in an anti-clockwise direction camera lens.
During camera lens is rotated, the application program that runs in a computer calculates corresponding test at each lens location Test number at image center location.Observe for ease of operating personnel, will be less than test reference value MTFvrfTest number Display properties is set to redness, will be above test reference value MTFvrfThe display properties of test number be set to green.Operation people When member is along single direction rotation camera lens, the color of the test number that computer display shows will be changed into green again from redness It is changed into red.
During operating personnel rotates camera lens, computer display shows calculated test number in real time, when Test number is less than test reference value MTFvrfWhen, test number is shown in red, when test number is more than test reference value MTFvrfWhen, test number is shown in green, display screen show test number from red to green again to red process when, from calculating Display properties be green test data in select a number of test number as observation data.
Exemplarily, 6 test numbers can be selected from the test data that display properties is green as observation data, Five function y=ax are solved using this 6 observation data5+bx4+cx3+dx2+ ex+f, obtains matched curve as shown in Figure 4, The maximum of matched curve is calculated and be shown, operating personnel sees the maximum for showing screen display, rotates camera lens manually, surveyed When examination numerical value reaches the maximum of the matched curve, that is, complete to focus.
In due to actual mechanical process, various errors are there are, possibly cannot obtain makes test number correspond to fitting song The lens location of line maximum, it is therefore desirable to which a tolerable error is set, when camera lens is rotated manually, a certain lens location pair When the test number of the test image center position that answers and the gap of matched curve maximum are within the tolerable error, complete Into focusing.
It should be noted that can be by quadratic function y1=d1x2+e1x+f1, cubic function y2=c2x3+d2x2+e2x+f2, Biquadratic function y3=b3x4+c3x3+d3x2+e3x+f3With five function y4=a4x5+b4x4+c4x3+d4x2+e4x+f4Store, root The function of error of fitting minimum is selected as distribution curve according to observation data.In actual applications, operating personnel can edit newly Function curve stored as distribution curve.
This specific embodiment illustrate only carries out camera lens auxiliary focusing using test image center as object of observation Method, when needing to make the center of camera lens and periphery have good image quality concurrently, can be by test image center and one Individual or multiple peripheral positions carry out the auxiliary focusing of camera lens as object of observation, at this point it is possible to reference to calculating test image center The mode of the corresponding matched curve in position, the corresponding matched curve of each peripheral position of calculating test image;Obtain matched curve After cluster, pinpointed focus scope is calculated and be shown, operating personnel sees the pinpointed focus scope for showing screen display, rotates mirror manually Head, the application program that now runs in a computer calculate the corresponding distance of camera lens of each lens location in real time, in distance of camera lens When being in the pinpointed focus scope, that is, complete to focus.
The auxiliary focus adjustment method of this specific embodiment at least has the advantage that:
1st, method is simple and convenient to operate;
2nd, lens focus regulation can be carried out with auxiliary hand-operating focusing frock, meets high accuracy, efficient focusing and require, very To the demand that disclosure satisfy that film coating process volume production focusing technique;
3rd, software equipment parameter can be changed, the focusing of products of different specifications is realized according to the camera lens of different size, be suitable for Property is strong.
Be based on and focus adjustment method identical technology design aided in above-mentioned camera lens, present invention also offers a kind of camera lens auxiliary is adjusted Coke installation.
Fig. 9 aids in focus control structured flowchart for the camera lens that the present embodiment is provided, as described in Figure 9, the camera lens auxiliary focusing Device includes:Computing unit 910, select unit 920 and curve determining unit 930;
Computing unit 910, for camera lens from starting point in terminating point single direction rotation process, calculate in real time each The test number of the corresponding test image of lens location, obtains test number sequence.
Select unit 920, multiple for being selected from the test number sequence according to test reference value set in advance Test number is used as observation data.
In the present embodiment select unit 920 specifically for the variation tendency of test number in test number sequence by being less than When test reference value changes are to become again to turn to less than test reference value higher than test reference value, select from test number sequence many The individual test number not less than test reference value is used as observation data.
Curve determining unit 930, for determining the corresponding matched curve of observation data, according to the matched curve adjustment for determining The focal length of camera lens.
In the present embodiment, according to least square method, curve determining unit 930 is specifically for determining that the observation data are corresponding Matched curve, or each functional equation for prestoring is solved using the observation data, obtain each functional equation corresponding Distribution curve, determine that the minimum distribution curve of error of fitting is the corresponding matched curve of the observation data.
The camera lens auxiliary focus control of the present embodiment calculates the corresponding test of each lens location by using computing unit The test number of image, and qualified observation value is selected from observation value using select unit so that curve is true Order unit can utilize observation value to calculate corresponding matched curve, so as to utilize the matched curve for obtaining to aid in completing camera lens Focusing.
In an implementation of the present embodiment, computing unit 910 is further used for calculating each lens location in real time The test number of corresponding test image center position, obtains the corresponding test number sequence of test image center position;
Curve determining unit 930 is further used for according to from the corresponding test number sequence of test image center position The multiple observation data for selecting, determine a matched curve, and the maximum of digital simulation curve, rotate camera lens, work as camera lens The test number of the corresponding test image center position in position is less than tolerable with the difference of the maximum of the matched curve During error, the focusing of camera lens is completed;Wherein, tolerable error is missed according to the structure tolerance of test system and the fitting of matched curve Difference determines.
In another implementation of the present embodiment, computing unit 910 is further used for calculating each lens location in real time Test number at corresponding test image center position and one or more peripheral positions, to respectively obtaining at each position Corresponding test number sequence;
Curve determining unit 930 includes fitting module and pinpointed focus range determination module,
Fitting module, for according to the multiple sights selected from the corresponding test number sequence of test image center position Data are surveyed, a main matched curve is determined;And according to the corresponding test number sequence from test image each peripheral position The multiple observation data each selected in row, determine an auxiliary matched curve respectively, obtain auxiliary matched curve cluster;
Pinpointed focus range determination module, for determining homophony Jiao's reference value, Yi Jigen according to the peak value of main matched curve Auxiliary focusing reference value is determined according to the peak value of auxiliary matched curve cluster;Wherein, peak value of homophony Jiao reference value less than main matched curve, auxiliary Minimum peak of the focusing reference value less than auxiliary matched curve cluster, and homophony Jiao's reference value is more than auxiliary focusing reference value;Determine homophony Burnt reference value and the corresponding focal range of auxiliary focusing reference value, the intersection of focal range is pinpointed focus scope, rotates mirror Head, when lens location is in the pinpointed focus scope, completes the focusing of camera lens;
Or, pinpointed focus range determination module, for will be with test image center position apart from identical periphery position The corresponding matched curve in the place of putting is divided into the auxiliary matched curve cluster of a class;Peak value according to the main matched curve determines the burnt ginseng of homophony Value is examined, and the auxiliary focusing reference value per the auxiliary matched curve cluster of class is determined according to the peak value of the auxiliary matched curve cluster of every class;Wherein, main Peak value of the focusing reference value less than main matched curve, the auxiliary focusing reference value per the auxiliary matched curve cluster of class are less than the auxiliary matched curve The minimum peak of cluster, and homophony Jiao's reference value is more than the auxiliary focusing reference value per the auxiliary matched curve cluster of class;Determine the burnt reference of homophony Value and each auxiliary corresponding focal range of reference value of focusing, the intersection of focal range is pinpointed focus scope, rotates camera lens, When lens location is in the pinpointed focus scope, the focusing of camera lens is completed.
The specific works mode of each unit of apparatus of the present invention embodiment may refer to method of the present invention embodiment, here Repeat no more.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in inventive embodiment, employ " first ", The identical entry essentially identical to function and effect such as " second " printed words or similar item make a distinction, and those skilled in the art can manage The printed words such as solution " first ", " second " are not defined to quantity and execution order.
The above, specific embodiment only of the invention, under the above-mentioned teaching of the present invention, those skilled in the art Other improvement or deformation can be carried out on the basis of above-described embodiment.It will be understood by those skilled in the art that above-mentioned tool Body description simply preferably explains that the purpose of the present invention, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of camera lens aids in focus adjustment method, it is characterised in that methods described includes:
Camera lens from starting point in terminating point single direction rotation process, calculate the corresponding test chart of each lens location in real time The test number of picture, obtains test number sequence;
Multiple test numbers are selected from the test number sequence as observation data according to test reference value set in advance;
Determine the corresponding matched curve of the observation data, according to the focal length that the matched curve for determining adjusts the camera lens.
2. camera lens according to claim 1 aids in focus adjustment method, it is characterised in that described according to test ginseng set in advance Examining value selects multiple test numbers to include as observation data from the test number sequence:
In the test number sequence, the variation tendency of test number is by being higher than test reference less than test reference value changes Value becomes when turning to less than test reference value again, selects multiple tests not less than the test reference value from test number sequence Numerical value is used as observation data.
3. camera lens according to claim 1 aids in focus adjustment method, it is characterised in that described calculate each lens location in real time The test number of corresponding test image, obtaining test number sequence includes:
Calculate the test number of the corresponding test image center position of each lens location in real time, obtain test image centre bit Put the corresponding test number sequence in place;
Or, calculated at the corresponding test image center position of each lens location and one or more peripheral positions in real time Test number, to respectively obtaining corresponding test number sequence at each position.
4. camera lens according to claim 3 aids in focus adjustment method, it is characterised in that when calculating each lens location pair in real time During the test number of the test image center position that answers, the determination is described to observe the corresponding matched curve of data, according to true Fixed matched curve adjusts the focal length of the camera lens to be included:
According to the multiple observation data selected from the corresponding test number sequence of test image center position, one is determined Matched curve;
The maximum of the matched curve is calculated, the camera lens is rotated, when the corresponding test image center position of lens location The difference of test number and the maximum of matched curve when being less than tolerable error, complete the focusing of the camera lens;
Wherein, tolerable error is determined according to the structure tolerance of test system and the error of fitting of matched curve.
5. camera lens according to claim 3 aids in focus adjustment method, it is characterised in that when calculating each lens location pair in real time During test number at the test image center position that answers and one or more peripheral positions, the determination observation data Corresponding matched curve, includes according to the focal length that the matched curve for determining adjusts the camera lens:
According to the multiple observation data selected from the corresponding test number sequence of test image center position, one is determined Main matched curve;And it is multiple according to each selected in the corresponding test number sequence from test image each peripheral position Observation data, determine an auxiliary matched curve respectively, obtain auxiliary matched curve cluster;
Peak value according to the main matched curve determines homophony Jiao's reference value, and true according to the peak value of the auxiliary matched curve cluster Fixed auxiliary focusing reference value;Wherein, peak value of the homophony Jiao reference value less than main matched curve, the auxiliary focusing reference value are less than The minimum peak of auxiliary matched curve cluster, and homophony Jiao's reference value is more than the auxiliary focusing reference value;
Determine homophony Jiao's reference value and the corresponding focal range of auxiliary focusing reference value, the intersection of the focal range is optimal Focal range, rotates the camera lens, when lens location is in the pinpointed focus scope, completes the focusing of the camera lens;
Or,
The auxiliary fitting of a class will be divided into test image center position apart from corresponding matched curve at identical peripheral position Set of curves;
Peak value according to the main matched curve determines homophony Jiao's reference value, and true according to the peak value of the auxiliary matched curve cluster of every class The fixed auxiliary focusing reference value per the auxiliary matched curve cluster of class;Wherein, peak value of homophony Jiao reference value less than main matched curve, auxiliary per class Minimum peak of the auxiliary focusing reference value of matched curve cluster less than the auxiliary matched curve cluster, and homophony Jiao's reference value is more than every The auxiliary focusing reference value of the auxiliary matched curve cluster of class;
Determine that homophony Jiao's reference value and each auxiliary corresponding focal range of reference value of focusing, the intersection of the focal range are Pinpointed focus scope, rotates the camera lens, when lens location is in the pinpointed focus scope, completes the focusing of the camera lens.
6. the camera lens auxiliary focus adjustment method according to any one of claim 1-5, it is characterised in that the determination observation The corresponding matched curve of data includes:
The corresponding matched curve of the observation data is determined according to least square method;
Or, each functional equation for prestoring is solved using the observation data, obtains corresponding point of each functional equation Cloth curve, determines that the minimum distribution curve of error of fitting is the corresponding matched curve of the observation data.
7. a kind of camera lens aids in focus control, it is characterised in that the camera lens auxiliary focus control includes:Computing unit, selection are single Unit and curve determining unit;
The computing unit, for camera lens from starting point in terminating point single direction rotation process, calculate each mirror in real time The test number of the corresponding test image in head position, obtains test number sequence;
The select unit, for selecting multiple tests according to test reference value set in advance from the test number sequence Numerical value is used as observation data;
The curve determining unit, for determining the corresponding matched curve of the observation data, adjusts according to the matched curve for determining The focal length of the whole camera lens.
8. camera lens according to claim 7 aids in focus control, it is characterised in that the select unit, specifically for In the test number sequence, the variation tendency of test number is by being to become higher than test reference value again less than test reference value changes When turning to less than test reference value, from test number sequence, multiple test numbers not less than the test reference value are selected to make For observing data.
9. camera lens according to claim 7 aids in focus control, it is characterised in that the computing unit, is further used for Calculate the test number of the corresponding test image center position of each lens location in real time, obtain test image center position Corresponding test number sequence;
The curve determining unit, is further used for selecting according to from the corresponding test number sequence of test image center position The multiple observation data that selects, determine a matched curve, and calculate the maximum of the matched curve, rotate the camera lens, When the test number of the corresponding test image center position of lens location is less than with the difference of the maximum of the matched curve During tolerable error, the focusing of the camera lens is completed;
Wherein, tolerable error is determined according to the structure tolerance of test system and the error of fitting of matched curve.
10. camera lens according to claim 7 aids in focus control, it is characterised in that the computing unit, is further used for Each lens location corresponding test image center position and test number one or more peripheral position at are calculated in real time, To respectively obtaining corresponding test number sequence at each position;
The curve determining unit includes fitting module and pinpointed focus range determination module,
The fitting module, for according to the multiple sights selected from the corresponding test number sequence of test image center position Data are surveyed, a main matched curve is determined;And according to the corresponding test number sequence from test image each peripheral position The multiple observation data each selected in row, determine an auxiliary matched curve respectively, obtain auxiliary matched curve cluster;
The pinpointed focus range determination module, for determining homophony Jiao's reference value according to the peak value of the main matched curve, with And auxiliary focusing reference value is determined according to the peak value of the auxiliary matched curve cluster;Wherein, homophony Jiao reference value is less than main fitting The peak value of curve, minimum peak of the auxiliary focusing reference value less than auxiliary matched curve cluster, and homophony Jiao's reference value are more than The auxiliary focusing reference value;Determine homophony Jiao's reference value and the corresponding focal range of auxiliary focusing reference value, the focal range Intersection is pinpointed focus scope, rotates the camera lens, when lens location is in the pinpointed focus scope, completes the mirror The focusing of head;
Or, the pinpointed focus range determination module, for will be with test image center position apart from identical periphery position The corresponding matched curve in the place of putting is divided into the auxiliary matched curve cluster of a class;Peak value according to the main matched curve determines the burnt ginseng of homophony Value is examined, and the auxiliary focusing reference value per the auxiliary matched curve cluster of class is determined according to the peak value of the auxiliary matched curve cluster of every class;Wherein, main Peak value of the focusing reference value less than main matched curve, the auxiliary focusing reference value per the auxiliary matched curve cluster of class are less than the auxiliary matched curve The minimum peak of cluster, and homophony Jiao's reference value is more than the auxiliary focusing reference value per the auxiliary matched curve cluster of class;Determine that homophony is burnt Reference value and each auxiliary corresponding focal range of reference value of focusing, the intersection of the focal range is pinpointed focus scope, The camera lens is rotated, when lens location is in the pinpointed focus scope, the focusing of the camera lens is completed.
CN201611117050.3A 2016-12-07 2016-12-07 Lens auxiliary focusing method and device Active CN106501917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611117050.3A CN106501917B (en) 2016-12-07 2016-12-07 Lens auxiliary focusing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611117050.3A CN106501917B (en) 2016-12-07 2016-12-07 Lens auxiliary focusing method and device

Publications (2)

Publication Number Publication Date
CN106501917A true CN106501917A (en) 2017-03-15
CN106501917B CN106501917B (en) 2019-12-27

Family

ID=58329800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611117050.3A Active CN106501917B (en) 2016-12-07 2016-12-07 Lens auxiliary focusing method and device

Country Status (1)

Country Link
CN (1) CN106501917B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513709A (en) * 2017-08-25 2018-09-07 深圳市大疆创新科技有限公司 Manual focus householder method, device and unmanned vehicle
CN109379582A (en) * 2018-10-29 2019-02-22 信利光电股份有限公司 A kind of detection method, device, equipment and the storage medium of fixed-focus camera module
CN109922241A (en) * 2019-03-11 2019-06-21 信利光电股份有限公司 A method of lower identification device camera module is shielded in assembling in batch
CN108965866B (en) * 2018-07-13 2020-02-18 高新兴科技集团股份有限公司 Method and system for acquiring focusing curved surface of camera movement lens
CN111800579A (en) * 2020-08-27 2020-10-20 杭州涂鸦信息技术有限公司 Lens focusing method and system and related equipment
CN113114905A (en) * 2021-04-16 2021-07-13 广州立景创新科技有限公司 Camera module, focusing adjustment system and focusing method
CN114025090A (en) * 2021-11-04 2022-02-08 深圳市志翀电子科技有限公司 Camera focusing mode and device based on MTF value

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067115A (en) * 1992-06-11 2000-05-23 Canon Kabushiki Kaisha Auto-focus adjusting apparatus such as for a video camera
CN101241223A (en) * 2008-01-28 2008-08-13 瑞声光电科技(常州)有限公司 Automatic focusing process
CN101790043A (en) * 2009-01-22 2010-07-28 华为终端有限公司 Control method for automatic focusing and device thereof
CN103162939A (en) * 2013-01-07 2013-06-19 福兴达科技实业(深圳)有限公司 Camera lens focusing detection method and device using the same
CN103257510A (en) * 2013-04-27 2013-08-21 宁波舜宇光电信息有限公司 Rapid automatic focusing method
JP2014123073A (en) * 2012-12-21 2014-07-03 Ricoh Imaging Co Ltd Image capturing device
CN104180971A (en) * 2014-07-24 2014-12-03 青岛歌尔声学科技有限公司 Method and system for obtaining optimal imaging focal length of lens and lens assembling method
CN104570569A (en) * 2015-01-27 2015-04-29 神画科技(深圳)有限公司 Projector automatic focusing method based on sensor
CN105093480A (en) * 2015-04-17 2015-11-25 江苏正桥影像科技股份有限公司 Method for improving optical lens focusing accuracy
CN105190392A (en) * 2013-02-14 2015-12-23 富士胶片株式会社 Image pickup device and focusing control method
CN105405121A (en) * 2015-10-21 2016-03-16 深圳市安健科技有限公司 Method and system used for adjusting X-ray perspective image brightness
CN105629628A (en) * 2014-10-30 2016-06-01 展讯通信(上海)有限公司 Automatic focusing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067115A (en) * 1992-06-11 2000-05-23 Canon Kabushiki Kaisha Auto-focus adjusting apparatus such as for a video camera
CN101241223A (en) * 2008-01-28 2008-08-13 瑞声光电科技(常州)有限公司 Automatic focusing process
CN101790043A (en) * 2009-01-22 2010-07-28 华为终端有限公司 Control method for automatic focusing and device thereof
JP2014123073A (en) * 2012-12-21 2014-07-03 Ricoh Imaging Co Ltd Image capturing device
CN103162939A (en) * 2013-01-07 2013-06-19 福兴达科技实业(深圳)有限公司 Camera lens focusing detection method and device using the same
CN105190392A (en) * 2013-02-14 2015-12-23 富士胶片株式会社 Image pickup device and focusing control method
CN103257510A (en) * 2013-04-27 2013-08-21 宁波舜宇光电信息有限公司 Rapid automatic focusing method
CN104180971A (en) * 2014-07-24 2014-12-03 青岛歌尔声学科技有限公司 Method and system for obtaining optimal imaging focal length of lens and lens assembling method
CN105629628A (en) * 2014-10-30 2016-06-01 展讯通信(上海)有限公司 Automatic focusing method and device
CN104570569A (en) * 2015-01-27 2015-04-29 神画科技(深圳)有限公司 Projector automatic focusing method based on sensor
CN105093480A (en) * 2015-04-17 2015-11-25 江苏正桥影像科技股份有限公司 Method for improving optical lens focusing accuracy
CN105405121A (en) * 2015-10-21 2016-03-16 深圳市安健科技有限公司 Method and system used for adjusting X-ray perspective image brightness

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513709A (en) * 2017-08-25 2018-09-07 深圳市大疆创新科技有限公司 Manual focus householder method, device and unmanned vehicle
CN108965866B (en) * 2018-07-13 2020-02-18 高新兴科技集团股份有限公司 Method and system for acquiring focusing curved surface of camera movement lens
CN109379582A (en) * 2018-10-29 2019-02-22 信利光电股份有限公司 A kind of detection method, device, equipment and the storage medium of fixed-focus camera module
CN109922241A (en) * 2019-03-11 2019-06-21 信利光电股份有限公司 A method of lower identification device camera module is shielded in assembling in batch
CN111800579A (en) * 2020-08-27 2020-10-20 杭州涂鸦信息技术有限公司 Lens focusing method and system and related equipment
CN113114905A (en) * 2021-04-16 2021-07-13 广州立景创新科技有限公司 Camera module, focusing adjustment system and focusing method
CN114025090A (en) * 2021-11-04 2022-02-08 深圳市志翀电子科技有限公司 Camera focusing mode and device based on MTF value
CN114025090B (en) * 2021-11-04 2024-03-19 深圳市志翀电子科技有限公司 Camera focusing mode and device based on MTF value

Also Published As

Publication number Publication date
CN106501917B (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN106501917A (en) A kind of camera lens auxiliary focus adjustment method and device
KR102171491B1 (en) Method for sorting products using deep learning
CN105842885B (en) A kind of liquid crystal display defect Hierarchical Location method and device
JP5427018B2 (en) System and method for fast approximate focus
CN103329540B (en) Utilize manually and semi-automated techniques calibrates the system and method for display system
CN108961184A (en) A kind of bearing calibration of depth image, device and equipment
CN107071258A (en) Chromatic aberration correction in imaging system including lens of variable focal length
CN106254860A (en) The calibration steps of the calibrating installation of photographing unit, camera arrangement and photographing unit
CN106482634A (en) Focused on using many level images of the tunable lens in machine vision inspection system
CN106097361A (en) A kind of defective area detection method and device
CN109559275A (en) A kind of Urine Analyzer MIcrosope image joining method
CN110378227A (en) Correct method, apparatus, equipment and the storage medium of sample labeled data
US20130293761A1 (en) Image enhancement via calibrated lens simulation
CN104011580A (en) Image Processing Device, Imaging Device, Microscope System, Image Processing Method, and Image Processing Program
CN109451304A (en) A kind of camera module batch focusing test method and system
TWI810595B (en) Parameter adjustment method, device and equipment of vibrating mirror
JP2016024052A (en) Three-dimensional measurement system, three-dimensional measurement method and program
CN109859155A (en) Image distortion detection method and system
CN108769668B (en) Method for determining position and device of the pixel in VR display screen in camera imaging
CN107851301A (en) System and method for selecting image to convert
CN105939474A (en) Test equipment and test method for testing camera
CN108986721A (en) A kind of test pattern generation method for display panel detection
CN106605162A (en) Method for correcting a color reproduction of a digital microscope and digital microscope
WO2021004642A1 (en) A camera calibration method, a computer program, a computer-readable recording medium and a camera calibration system
CN107529056A (en) Camera lens luminosity response degree method of testing, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201012

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Patentee after: GoerTek Optical Technology Co.,Ltd.

Address before: 266104 Laoshan Qingdao District North House Street investment service center room, Room 308, Shandong

Patentee before: GOERTEK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right