Lens testing method, testing system, control device and storage medium
By calculating the lens's defocus curve and deviation angle and simulating optical deviation compensation, the lens fails due to deviation angle in MTF test, and the pass rate and output quality of the lens test are improved.
Patent Information
- Application Number
- CN202211090188.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-09-07
AI Technical Summary
During the MTF test, the lens fails due to the deviation angle between the image sensor of the test device, and the subsequent system compensation cannot fully cover the deviation angle in the test, reducing the lens test pass rate.
By obtaining the imaging data of the lens on the test equipment plate, calculating its defocus curve and deviation angle, moving the defocus curve according to the preset angle, simulating optical deviation compensation, thereby improving the test yield of the lens.
It improves the pass rate of lens tests, avoids overkill caused by tilting the lens fixture, and improves the output quality of the lens.
Smart Images

Figure CN115436023B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging, and in particular to a lens testing method, a testing system, a control device and a storage medium. Background Art
[0002] When the lens is tested for MTF, it may fail the test due to the misalignment angle between the lens and the image sensor of the test equipment. In fact, when the lens and the image sensor of the camera module are assembled into a camera module, the system will actively compensate (active alignment, AA) for the misalignment angle between the lens and the image sensor. That is, the MTF test of the lens does not take into account the post-correction, which reduces the pass rate of the lens test. Summary of the invention
[0003] Embodiments of the present application provide a lens testing method, a testing system, a control device, and a storage medium.
[0004] The lens testing method provided in the embodiment of the present application includes:
[0005] Acquire test data received by an image sensor of the test device, which is obtained by imaging a target plate of the test device by the lens at different positions relative to the image sensor;
[0006] Obtaining a defocus curve of the lens according to the test data;
[0007] Obtaining a deviation angle of the lens according to the defocus curve;
[0008] When the deviation angle is greater than a preset angle, moving the defocus curve according to a preset angle;
[0009] When the deviation angle is less than or equal to a preset angle, moving the defocus curve according to the deviation angle;
[0010] According to the defocus curve after the movement, the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are read, and when the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are greater than or equal to the preset values, the lens is judged to be a qualified product.
[0011] The test system provided in the embodiment of the present application includes a test device, a lens, a memory and a controller. The test device includes an image sensor and a stage. The lens is arranged on a side of the stage away from the image sensor. The memory is used to store a computer program. The controller is used to execute the above-mentioned lens test method of the computer program.
[0012] The control device provided in the embodiment of the present application includes:
[0013] A first acquisition module, used for acquiring test data received by an image sensor of the test device, of the image of a target plate of the test device by the lens at different positions relative to the image sensor;
[0014] A second acquisition module, used for obtaining a defocus curve of the lens according to the test data;
[0015] A third acquisition module, used for obtaining a deviation angle of the lens according to the defocus curve;
[0016] A first correction module, configured to move the defocus curve according to a preset angle when the deviation angle is greater than a preset angle;
[0017] A second correction module, configured to move the defocus curve according to the deviation angle when the deviation angle is less than or equal to a preset angle;
[0018] The judgment module is used to read the test values of multiple preset fields of view at the peak value when the lens is in the center field of view according to the defocus curve after the movement, and judge that the lens is a qualified product when the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are greater than or equal to the preset values.
[0019] In the lens testing method, testing system, control device and storage medium provided in the embodiments of the present application, optical deviation compensation of the lens is simulated during the test process, thereby improving the test yield of the lens, avoiding overkill caused by tilt of the lens fixture, and thus improving the output of the lens.
[0020] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0022] Figure 1 is a flowchart of a lens testing method according to an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of the structure of a test system according to an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of a module of a control device in an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a target plate according to an embodiment of the present application;
[0026] Figure 5is a defocus curve diagram of the lens of the embodiment of the present application at a 0.7F field of view;
[0027] Figure 6 is a defocus curve diagram of the lens of the embodiment of the present application after moving under a 0.7F field of view;
[0028] Figure 7 is another flowchart of the lens testing method according to the embodiment of the present application;
[0029] Figure 8 is another flowchart of the lens testing method according to an embodiment of the present application;
[0030] Fig. 9 is another schematic diagram of a target plate according to an embodiment of the present application;
[0031] Fig.10 is another flowchart of the lens testing method according to the embodiment of the present application;
[0032] Fig.11 is another schematic diagram of a target plate according to an embodiment of the present application;
[0033] Fig.12 It is another flowchart of the lens testing method according to the embodiment of the present application.
[0034] Fig.13 is another flowchart of the lens testing method according to the embodiment of the present application;
[0035] Fig.14 is another flowchart of the lens testing method according to the embodiment of the present application;
[0036] Fig.15 This is another flowchart of the lens testing method according to the embodiment of the present application.
[0037] Description of main component symbols:
[0038] The test system 100, the lens 10, the test device 20, the image sensor 21, the stage 22, the target plate 23, the memory 30, the controller 40, the control device 50, the first acquisition module 51, the second acquisition module 52, the third acquisition module 53, the first correction module 54, the second correction module 55 and the judgment module 56. DETAILED DESCRIPTION
[0039] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0040] In the description of the present application, it should be understood that the terms, "length", "width", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0041] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0042] The terms "first" and "second" in this application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0043] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the various specific processes and material examples provided by the present application, but those of ordinary skill in the art can appreciate the application of other processes and / or the use of other materials.
[0044] See also Figure 1 and Figure 2 The lens testing method provided in the embodiment of the present application includes:
[0045] S10: Acquire test data of imaging of the target plate 22 of the test device 20 by the lens 10 at different positions relative to the image sensor 20 and received by the image sensor 21 of the test device 20;
[0046] S20: Obtaining a defocus curve of the lens 10 according to the test data;
[0047] S30: Obtaining a deviation angle θ1 of the lens 10 according to the defocus curve;
[0048] S40: when the deviation angle θ1 is greater than the preset angle θ2, moving the defocus curve according to the preset angle θ2;
[0049] S50: when the deviation angle θ1 is less than or equal to the preset angle θ2, moving the defocus curve according to the deviation angle θ1;
[0050] S60: Read the test values of multiple preset fields of view at the peak value when the lens 10 is in the center field of view according to the defocus curve after the movement. When the test values of multiple preset fields of view at the peak value when the lens 10 is in the center field of view are greater than or equal to the preset values, judge that the lens 10 is a qualified product.
[0051] See also Figure 2 The test system 100 provided in the embodiment of the present application includes a test device 20, a lens 10, a memory 30 and a controller 40. The test device 20 includes an image sensor 21 and a stage 22. The lens 10 is arranged on a side of the stage 22 away from the image sensor 21. The memory 24 is used to store a computer program. The controller 25 is used to execute the computer program to implement the above-mentioned lens test method.
[0052] In other words, the controller 25 is used to obtain test data of the lens 10 receiving the image sensor 21 of the test device 20 imaging the target plate 22 of the test device 20 at different positions relative to the image sensor 20; it is also used to obtain the defocus curve of the lens 10 according to the test data; it is also used to obtain the deviation angle θ1 of the lens 10 according to the defocus curve; and when the deviation angle θ1 is greater than the preset angle θ2, move the defocus curve according to the preset angle θ2; and when the deviation angle θ1 is less than or equal to the preset angle θ2, move the defocus curve according to the deviation angle θ1; and according to the moved defocus curve, read the test values of multiple preset fields of view at the peak value when the lens 10 is in the center field of view, and when the test values of multiple preset fields of view at the peak value when the lens 10 is in the center field of view are greater than or equal to the preset values, judge that the lens 10 is a qualified product.
[0053] See also Figure 3 The control device 50 provided in the embodiment of the present application includes a first acquisition module 51, a second acquisition module 52, a third acquisition module 53, a first correction module 54, a second correction module 55 and a judgment module 56.
[0054] The first acquisition module 51 is used to acquire test data of the lens 10 receiving the image sensor 21 of the test device 20 imaging the target plate 22 of the test device 20 at different positions relative to the image sensor 20. The second acquisition module 52 is used to obtain the defocus curve of the lens 10 according to the test data. The second acquisition module 52 is used to obtain the deviation angle θ1 of the lens 10 according to the defocus curve. The first correction module 54 is used to move the defocus curve according to the preset angle θ2 when the deviation angle θ1 is greater than the preset angle θ2. The second correction module 55 is used to move the defocus curve according to the deviation angle θ1 when the deviation angle θ1 is less than or equal to the preset angle θ2. The judgment module 56 is used to read the test values of multiple preset fields of view at the peak value when the lens 10 is in the central field of view according to the defocus curve after the shift, and judge that the lens 10 is a qualified product when the test values of multiple preset fields of view at the peak value when the lens 10 is in the central field of view are greater than or equal to the preset value.
[0055] In this way, the optical deviation compensation of the lens 10 is simulated during the test process, thereby improving the test yield of the lens 10 and avoiding overkill caused by the tilt of the lens 10 fixture, thereby improving the output of the lens 10.
[0056] Specifically, in step S10, the lens 10 is placed in a testing device 20 of a testing device 20, and the testing device 20 may include a target plate 23 as a photographing object and an image sensor 21. The image sensor 21 is used to receive imaging data of the lens 10 on the target plate 23, or to receive a plurality of identification patterns representing a specific field of view in the target plate 23 of the lens 10, such as Figure 4 As shown. The lens 10 is set on the side of the stage 22 away from the image sensor 21, and the image sensor 21 is controlled to move toward the direction close to the lens 10. During the movement of the image sensor 21 relative to the lens 10, the test data of the lens 10 imaging the target plate 22 received by the image sensor 21 is obtained. By moving the image sensor 21, the imaging capability of the lens 10 at different distances is simulated.
[0057] In some embodiments, the testing device 20 may further include a motor connected to the image sensor 21 , and the motor is used to drive the image sensor 21 to move relative to the lens 10 .
[0058] In step S20, the test data of the lens 10 and the image sensor 21 imaging the target plate 23 of the test device 20 is processed to obtain the defocus curve of the lens 10. The defocus curve of the lens 10 is used to characterize the resolution capability of the lens 10, that is, to determine whether the image of the lens 10 is clear.
[0059] The defocus curve refers to the curve of each marking pattern drawn based on the data obtained by measuring the resolution data of each marking pattern on the target plate 23 corresponding to each axial distance by changing the axial distance between the lens 10 and the image sensor 21. In other words, each marking pattern can measure the defocus curve corresponding to it. In the defocus curve, the horizontal axis can represent the distance between the lens 10 and the image sensor 21, and the vertical axis can represent the resolution data, such as the SFR value and the MTF value.
[0060] MTF (Modulation Transfer Function) is a modulation transfer function, which refers to the function of modulation degree changing with spatial frequency. The modulation transfer function is used to illustrate the ability of the lens 10. SFR (Spatial Frequency Response) is a spatial frequency response, which is mainly used to measure the impact of increasing spatial frequency lines on a single image. It can be understood that SFR is another test method of MTF.
[0061] The multiple identification patterns on the target plate 23 represent at least two fields of view, namely, the edge field of view and the central field of view, wherein the edge field of view may be, for example, a 0.8F field of view, a 0.3F field of view, etc. (of course, the edge field of view may also be other values), and the edge field of view may be represented by four identification patterns. In one embodiment, an edge field of view may include an upper left identification, an upper right identification, a lower left identification, and a lower right identification.
[0062] Based on multiple identification patterns of the edge field of view and the central field of view, multiple defocus curves can be obtained. The defocus curves can be used to simulate the position adjustment and correction of the lens 10 by numerical calculation in subsequent steps, thereby eliminating the need to perform actual position adjustment on the lens 10 component.
[0063] In some embodiments, the defocus curve obtained in step S20 may also be fitted, thereby avoiding interference from various factors such as environmental factors, tolerances of the measuring equipment, and tolerances of the lens 10 itself, so as to accurately fit the true position of the defocus curve.
[0064] In step S30, the deviation angle θ1 of the lens 10 is obtained according to the defocus curve obtained in step S20. Specifically, the maximum value of the test value and the corresponding distance value, the minimum value of the test value and the corresponding distance value, and the position of the test value can be obtained by analyzing the defocus curve, and the deviation angle θ1 of the lens 10 can be further obtained through the corresponding conversion relationship.
[0065] Since the defocus curve is obtained by moving the image sensor 21 in a certain step length to obtain the resolution value of the image captured by the image sensor 21 at a series of discrete axial positions, the distance value corresponding to the maximum or minimum value refers to the position of the image sensor 21 after each step.
[0066] In step S40, when the deviation angle θ1 is greater than the preset angle θ2, the defocus curve is moved according to the preset angle θ2, and the preset angle θ2 is used as a compensation parameter, and the defocus curve is moved according to the movement amount converted from the preset angle θ2 to simulate the compensation of the angle deviation of the lens 10. The correction parameter is converted into the movement amount of the defocus curve according to the corresponding conversion relationship, and the defocus curve is moved according to the movement amount to simulate the adjustment and correction of the lens 10.
[0067] The preset angle θ2 is the maximum adjustment deviation angle of the lens 10. When the deviation angle θ1 is greater than the preset angle θ2, the preset angle θ2 can only be used as a compensation parameter to move the defocus curve. Specifically, the preset angle θ2 can be set according to the whole machine module used to install the lens 10. Since the size of the whole machine is fixed, it is impossible to adjust and compensate the lens 10 completely according to the deviation angle θ1 of the lens 10. Otherwise, overcompensation may cause the height of the module and the shoulder height to exceed the standard.
[0068] In step S50, when the deviation angle θ1 is less than or equal to the preset angle θ2, the deviation angle θ1 is used as a compensation parameter, and the defocus curve is moved according to the movement amount converted from the deviation angle θ1 to simulate the angular offset of the compensation lens 10. Similarly, the correction parameter can be converted into the movement amount of the defocus curve according to the corresponding conversion relationship, and the defocus curve is moved according to the movement amount.
[0069] It should be noted that in steps S40 and S50 , the compensation parameter determined according to the deviation angle θ1 or the preset angle θ2 is a simulated adjustment amount used for numerical calculation, rather than an actual adjustment of the lens 10 .
[0070] In one embodiment, the multiple identification patterns on the target plate 23 represent the two fields of view of the edge field of view of 0.7F and the central field of view 0F, and the 0.7F field of view includes an upper left identification, an upper right identification, a lower left identification, and a lower right identification. The image sensor 21 of the test device 20 is controlled to move relative to the lens 10, and the image sensor 21 receives the imaging data of the lens 10 on the target plate 23, and processes the data to obtain the defocus curve of the lens 10 in the 0.7F field of view, such as Figure 5 As shown. According to the defocus curve obtained in the previous step, the deviation angle θ1 of the lens 10 is calculated. Since the deviation angle θ1 is greater than the preset angle θ2, the preset angle θ2 is used as the compensation parameter. The preset angle θ2 is converted into a corresponding movement amount, and the lens 10 is moved according to the movement amount to obtain the defocus curves of each mark in the 0.7F field of view, as shown in FIG. Figure 6As shown, the angular deviation of the compensation lens 10 under the 0.7F field of view is simulated.
[0071] The multiple identification patterns on the target plate 23 represent the central field of view and multiple edge fields of view at different distances from the central field of view. The deviation angle θ1 of the lens 10 in any field of view is calculated based on the defocus curve in a certain edge field of view obtained in steps S10 and S20, and the magnitude relationship between the deviation angle θ1 and the preset angle θ2 is determined to determine the compensation parameter. The defocus curve in the edge field of view is moved according to the compensation parameter to simulate the angular deviation of the compensation lens 10 in the edge field of view. In addition, the defocus curves in other edge fields of view are moved with the compensation parameter to simulate the angular deviation of the compensation lens 10 in other edge fields of view.
[0072] In one embodiment, the multiple identification patterns on the target plate 23 are used to represent the central field of view and four edge fields of view at different distances from the central field of view, which are 0.3F, 0.5F, 0.7F and 0.8F respectively. According to the defocus curve of the lens 10 under the 0.3F field of view, the deviation angle θ1 of the lens 10 under the 0.3F field of view is calculated to be 0.5°, and the preset angle θ2 is 0.6°. Taking 0.5° as a compensation parameter, the compensation parameter is converted into the movement amount of the defocus curve of the lens 10 under the 0.3F field of view to simulate the compensation of the angle deviation of the lens 10 under the 0.3F field of view. Taking 0.5° as the compensation parameter, the defocus curves of the lens 10 under 0.5F, 0.7F and 0.8F are moved accordingly to simulate the angle deviation of the lens 10 under 0.5F, 0.7F and 0.8F.
[0073] In step S60, according to the defocus curve after the shift, that is, after simulating the adjustment and correction of the lens 10, the test values of multiple preset fields of view of the lens 10 at the peak value in the center field of view are read, wherein the preset field of view is also the edge field of view. When the test values of multiple preset fields of view at the peak value in the center field of view of the lens 10 are greater than or equal to the preset value, the lens 10 is judged to be a qualified product. As long as the test values of each field of view at the peak value in the center field of view under one field of view can meet the standard, the lens 10 is judged to be a qualified product.
[0074] In this way, during the test process, by moving the defocus curve to simulate the optical deviation compensation of the lens 10, the test yield of the lens 10 can be improved, and overkill caused by the tilt of the lens 10 fixture can be avoided, thereby improving the output of the lens 10. In addition, the lens testing method of the present application also has a significant performance improvement for lenses with obvious field curvature.
[0075] See also Figure 4 and Figure 7 In some embodiments, the step of obtaining the deviation angle θ1 of the lens 10 according to the defocus curve (step S30) includes:
[0076] S31: calculating a first deviation of the lens 10 along a first direction X according to the defocus curve;
[0077] S32: calculating a second deviation of the lens 10 along a second direction Y according to the defocus curve, where the first direction X is perpendicular to the second direction Y;
[0078] S33: calculating the deviation between the lens 10 and the image sensor 21 according to the first deviation and the second deviation;
[0079] S34: Calculate the deviation angle θ1 based on the deviation amount.
[0080] In some embodiments, the controller 25 is used to calculate a first deviation of the lens 10 along a first direction X according to the defocus curve; is also used to calculate a second deviation of the lens 10 along a second direction Y according to the defocus curve, the first direction X is perpendicular to the second direction Y; and is used to calculate a deviation between the lens 10 and the image sensor 21 according to the first deviation and the second deviation; and is also used to calculate a deviation angle θ1 according to the deviation.
[0081] In some embodiments, the third acquisition module 53 is used to calculate a first deviation of the lens 10 along a first direction X according to the defocus curve; is also used to calculate a second deviation of the lens 10 along a second direction Y according to the defocus curve, the first direction X is perpendicular to the second direction Y; and is used to calculate a deviation between the lens 10 and the image sensor 21 according to the first deviation and the second deviation; and is also used to calculate a deviation angle θ1 according to the deviation.
[0082] Thus, according to the defocus curve, the first deviation and the second deviation of the lens 10 can be calculated to obtain the deviation between the lens 10 and the image sensor 21, thereby determining the deviation angle θ1 of the lens 10. Specifically, the multiple identification patterns on the target plate 23 can be used to represent the central field of view and at least one edge field of view, wherein the edge field of view includes multiple identification patterns, and the multiple identification patterns are arranged along the first direction X and the second direction Y.
[0083] See also Figure 8 and Fig. 9 In some embodiments, along the first direction X, the target plate 23 includes a first area and a second area arranged opposite to the first area, and the step of calculating the first deviation of the lens 10 along the first direction X according to the defocus curve (step S31) includes:
[0084] S311: Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the first area;
[0085] S312: Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the second area;
[0086] S313: Calculate the deviation amount t1=(AB) / 2 of the lens 10 along the first direction X, where A is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area, and B is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area.
[0087] In some embodiments, the controller 25 is used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area; it is also used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area; it is also used to obtain the deviation amount t1=(AB) / 2 of the lens 10 along the first direction X, wherein A is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area, and B is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area.
[0088] In some embodiments, the third acquisition module 53 is used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area; it is also used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area; it is also used for the deviation amount t1=(AB) / 2 of the lens 10 along the first direction X, wherein A is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area, and B is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area.
[0089] In this way, according to the defocus curve, the sum of the distance values corresponding to the maximum values of the test values at multiple preset positions in the first area and the second area is obtained, and then the deviation of the lens 10 along the first direction X is calculated, which is convenient for subsequently obtaining the deviation between the lens 10 and the image sensor 21.
[0090] In one embodiment, the multiple identification patterns on the target plate 23 represent two fields of view, namely, the edge field of view of 0.7F and the center field of view of 0F. The 0.7F field of view includes an upper left identification, an upper right identification, a lower left identification, and a lower right identification. The image sensor 21 of the test device 20 is controlled to move relative to the lens 10. The image sensor 21 receives the imaging data of the lens 10 on the target plate 23, and processes the data to obtain the defocus curve of the lens 10 in the 0.7F field of view, such as Figure 5 As shown. Along the first direction X, the upper left identification pattern and the lower left identification pattern are arranged alternately in the first area, and the upper right identification pattern and the lower right identification pattern are arranged alternately in the second area, as shown in FIG. Figure 8 shown.
[0091] Under the 0.7 field of view, the distance value C1 corresponding to the maximum value of the test value corresponding to the upper left area is 160, the distance value D1 corresponding to the maximum value of the test value corresponding to the lower left area is 110, and the sum C of the distance values corresponding to the maximum values of the test values at two preset positions in the third area is calculated to be 270. The distance value C2 corresponding to the maximum value of the test value corresponding to the upper right area is 150, the distance value D2 corresponding to the maximum value of the test value corresponding to the lower right area is 210, and the sum D of the distance values corresponding to the maximum values of the test values at two preset positions in the fourth area is calculated to be 360. Therefore, the deviation t2 of the lens 10 along the second direction Y can be calculated to be -45.
[0092] See also Fig.10 and Fig.11 In some embodiments, along the second direction Y, the target plate 23 includes a third area and a fourth area arranged opposite to the third area, and the step of calculating the second deviation of the lens 10 along the second direction Y according to the defocus curve (step S32) includes:
[0093] S321: Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the third area;
[0094] S322: Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area;
[0095] S323: Calculate the deviation t2 of the lens 10 along the second direction Y = (CD) / 2, where C is the sum of the distance values corresponding to the maximum values of the test values of multiple preset positions in the third area, and D is the sum of the maximum values of the test values of multiple preset positions in the fourth area.
[0096] In some embodiments, the controller 25 is used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the third area; it is also used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area; it is also used to calculate the deviation t2=(CD) / 2 of the lens 10 along the second direction Y, where C is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the third area, and D is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area.
[0097] In some embodiments, the third acquisition module 53 is used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the third area; it is also used to obtain the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area; it is also used to calculate the deviation t2=(CD) / 2 of the lens 10 along the second direction Y, where C is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the third area, and D is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area.
[0098] In this way, according to the defocus curve, the sum of the distance values corresponding to the maximum values of the test values in the third area and at multiple preset positions in the third area is obtained, and then the deviation of the lens 10 along the second direction Y is calculated, which is convenient for the subsequent determination of the deviation between the lens 10 and the image sensor 21.
[0099] In one embodiment, the multiple identification patterns on the target plate 23 represent two fields of view, namely, the edge field of view of 0.7F and the center field of view of 0F. The 0.7F field of view includes an upper left identification, an upper right identification, a lower left identification, and a lower right identification. The image sensor 21 of the test device 20 is controlled to move relative to the lens 10. The image sensor 21 receives the imaging data of the lens 10 on the target plate 23, and processes the data to obtain the defocus curve of the lens 10 in the 0.7F field of view, such as Figure 5 As shown. Wherein, along the second direction Y, the upper left identification pattern and the upper right identification pattern are alternately arranged in the third area. The lower left identification pattern and the lower right identification pattern are alternately arranged in the fourth area, as shown. Fig.11 shown.
[0100] Under the 0.7 field of view, the distance value C1 corresponding to the maximum value of the test value corresponding to the upper left area is 160, the distance value C2 corresponding to the maximum value of the test value corresponding to the upper right area is 150, and the sum C of the distance values corresponding to the maximum values of the test values at the two preset positions in the third area is calculated to be 310. The distance value D1 corresponding to the maximum value of the test value corresponding to the lower left area is 110, the distance value D2 corresponding to the maximum value of the test value corresponding to the lower right area is 210, and the sum D of the distance values corresponding to the maximum values of the test values at the two preset positions in the fourth area is calculated to be 320. Therefore, the deviation t2 of the lens 10 along the second direction Y can be calculated to be -5.
[0101] See also Fig.12 In some embodiments, the step of calculating the deviation between the lens 10 and the image sensor 21 according to the first deviation t1 and the second deviation t2 (step S33) includes:
[0102] S331: Calculating the deviation between the lens 10 and the image sensor 21 Wherein, t1 is the deviation of the lens 10 along the first direction X, and t2 is the deviation of the lens 10 along the second direction Y.
[0103] In some embodiments, the controller 25 is used to calculate the deviation between the lens 10 and the image sensor 21. Wherein, t1 is the deviation of the lens 10 along the first direction X, and t2 is the deviation of the lens 10 along the second direction Y.
[0104] In some embodiments, the third acquisition module 53 is used to calculate the deviation between the lens 10 and the image sensor 21. Wherein, t1 is the deviation of the lens 10 along the first direction X, and t2 is the deviation of the lens 10 along the second direction Y.
[0105] In this way, the deviation between the lens 10 and the image sensor 21 can be calculated by the deviation angle θ1 of the lens 10 along the first direction X and the second direction Y. The deviation T1 can be subsequently converted into the deviation angle θ1 of the lens 10, thereby facilitating the movement of the defocus curve to simulate the position adjustment and correction of the lens 10.
[0106] Specifically, the deviation amount t1 of the lens 10 along the first direction X obtained in step S213 and the deviation amount t2 of the lens 10 along the second direction Y obtained in step S223 are calculated according to the formula The offset T between the lens 10 and the image sensor 21 is obtained.
[0107] See also Fig.13 In some embodiments, the step of obtaining the deviation angle θ1 of the lens 10 according to the defocus curve (step S30) includes:
[0108] S35: Obtaining a distance value corresponding to a maximum value of test values in a plurality of preset areas of the lens 10 according to the defocus curve;
[0109] S36: Obtaining a distance value corresponding to a minimum value of test values in a plurality of preset areas of the lens 10 according to the defocus curve;
[0110] S37: calculating the deviation T1 between the lens 10 and the image sensor 21 according to the distance value corresponding to the maximum value of the test values in the plurality of preset areas of the lens 10 and the distance value corresponding to the minimum value of the test values in the plurality of preset areas of the lens 10;
[0111] S38: Calculate the deviation angle θ1 based on the deviation amount T1.
[0112] In some embodiments, the controller 25 is used to obtain a distance value corresponding to a maximum value of a test value within a plurality of preset areas of the lens 10 according to a defocus curve; is also used to obtain a distance value corresponding to a minimum value of a test value within a plurality of preset areas of the lens 10 according to a defocus curve; is also used to calculate a deviation T1 between the lens 10 and the image sensor 21 according to a distance value corresponding to a maximum value of a test value within a plurality of preset areas of the lens 10 and a distance value corresponding to a minimum value of a test value within a plurality of preset areas of the lens 10; and is used to calculate a deviation angle θ1 according to the deviation T1.
[0113] In some embodiments, the third acquisition module 53 is used to obtain the distance value corresponding to the maximum value of the test value within multiple preset areas of the lens 10 according to the defocus curve; it is also used to obtain the distance value corresponding to the minimum value of the test value within the multiple preset areas of the lens 10 according to the defocus curve; it is also used to calculate the deviation T1 between the lens 10 and the image sensor 21 according to the distance value corresponding to the maximum value of the test value within the multiple preset areas of the lens 10 and the distance value corresponding to the minimum value of the test value within the multiple preset areas of the lens 10; and it is used to calculate the deviation angle θ1 according to the deviation T1.
[0114] In this way, the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test values in multiple preset areas of the lens 10 can be obtained according to the defocus curve, and the deviation T1 of the lens 10 can be calculated.
[0115] Under a certain preset field of view, according to the defocus curve, the distance value corresponding to the maximum value of the test value in each preset area of the lens 10 and the distance value corresponding to the minimum value of the test value in each preset area are obtained, the distance values corresponding to the maximum value of the test value in all preset areas are summed, the distance values corresponding to the minimum value of the test value in all preset areas are summed, and then the sum of the distance values corresponding to the maximum value of the test value in each preset area is subtracted from the sum of the distance values corresponding to the minimum value of the test value in each preset area to obtain the deviation T1 between the lens 10 and the image sensor 21.
[0116] In one embodiment, the multiple identification patterns on the target plate 23 represent two fields of view, namely, the edge field of view of 0.7F and the center field of view of 0F. The 0.7F field of view includes an upper left identification, an upper right identification, a lower left identification, and a lower right identification. The image sensor 21 of the test device 20 is controlled to move relative to the lens 10. The image sensor 21 receives the imaging data of the lens 10 on the target plate 23, and processes the data to obtain the defocus curve of the lens 10 in the 0.7F field of view, such as Figure 5 According to the defocus curve, the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test values of the lens 10 in the upper left area, the upper right area, the lower left area and the lower right area of the target plate 23 are obtained respectively.
[0117] Under the field of view of 0.7, the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test value corresponding to the upper left area are 160 and 240 respectively, the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test value corresponding to the upper right area are 150 and 240 respectively, the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test value corresponding to the lower left area are 110 and 200 respectively, and the distance value corresponding to the maximum value and the distance value corresponding to the minimum value of the test value corresponding to the lower right area are 210 and 260 respectively.
[0118] The sum of the distance values corresponding to the maximum values of the test values in the four preset areas is 630, and the difference 940 of the distance values corresponding to the maximum values of the test values in the four preset areas is subtracted, so as to calculate the deviation T1 between the lens 10 and the image sensor 21 as 310. Finally, the deviation T1 is converted into the deviation angle θ1 of the lens 10 according to a certain conversion relationship.
[0119] In some embodiments, the step of calculating the deviation angle θ1 according to the deviation amount T1 (step S24 or step S28) includes:
[0120] The deviation angle θ1 of the lens 10 is calculated as actan(T1 / L1), wherein T1 is the deviation between the lens 10 and the image sensor 21, and L1 is the length of the hypotenuse of the image sensor 21 in the preset field of view.
[0121] In some implementations, the controller 25 is configured to calculate the deviation angle θ1 of the lens 10 =actan(T1 / L1).
[0122] In some implementations, the third acquisition module is used to calculate the deviation angle θ1 =actan(T1 / L1) of the lens 10 .
[0123] In this way, the deviation T1 between the lens 10 and the image sensor 21 can be converted into the deviation angle θ1 of the lens 10. The size of the image sensor 21 is a fixed value, and the length of the hypotenuse of the photosensitive area of the image sensor 21 is also a fixed value. The length of the hypotenuse of the photosensitive area of the image sensor 21 is divided into a plurality of equal parts to form a plurality of fields of view, so that the length of the hypotenuse of the image sensor 21 in the corresponding preset field of view can be known.
[0124] See also Fig.14 In some embodiments, the lens testing method further comprises:
[0125] S39 : Calculate the preset angle θ2=actan(T2 / L2), where T2 is the maximum deviation that the lens 10 can tolerate, and L2 is the hypotenuse length of the module, and the module includes the lens 10 and the image sensor 21 .
[0126] In some embodiments, the controller 25 is configured to calculate a preset angle θ2 =actan(T2 / L2).
[0127] In some embodiments, the third acquisition module is used to calculate a preset angle θ2=actan(T2 / L2).
[0128] In this way, the preset angle θ2 is calculated based on the maximum deviation that the lens 10 can tolerate and the hypotenuse length of the image sensor 21. The preset angle θ2 is the maximum offset angle that the lens 10 can be adjusted in the whole machine, and the size of the maximum deviation T2 that the lens 10 can tolerate is related to the size of the whole machine module used to install the lens 10. The preset angle θ2 is used to limit the adjustment amount of the lens 10 to avoid excessive adjustment that may cause the height of the whole machine or the shoulder height to exceed the standard.
[0129] See also Fig.15 In some embodiments, the lens testing method further comprises:
[0130] S36: Setting corresponding weights of the lens 10 under multiple preset fields of view;
[0131] The step of moving the defocus curve according to the preset angle θ2 includes:
[0132] S41: moving the defocus curve according to the preset angle θ2 and the corresponding weights of the lens 10 under a plurality of preset fields of view;
[0133] The steps of moving the defocus curve according to the deviation angle θ1 include:
[0134] S51 : moving the defocus curve according to the deviation angle θ1 and the corresponding weights of the lens 10 under a plurality of preset fields of view.
[0135] In some embodiments, the controller 25 is used to set the corresponding weights of the lens 10 under multiple preset fields of view, and is also used to move the defocus curve according to the preset angle θ2 and the corresponding weights of the lens 10 under multiple preset fields of view; and is used to move the defocus curve according to the deviation angle θ1 and the corresponding weights of the lens 10 under multiple preset fields of view.
[0136] In some embodiments, the second acquisition module 52 is used to set the corresponding weights of the lens 10 under multiple preset fields of view, the first correction module 54 is used to move the defocus curve according to the preset angle θ2 and the corresponding weights of the lens 10 under multiple preset fields of view; the second correction module 55 is used to move the defocus curve according to the deviation angle θ1 and the corresponding weights of the lens 10 under multiple preset fields of view.
[0137] In this way, different weights can be set independently under different preset fields of view, and each field of view can be compensated by different proportions, so that the compensation of the lens 10 is more reasonable, and the deviation T1 between the lens 10 and the image sensor 21 can be calculated to be smaller, thereby improving the overall performance of the lens 10.
[0138] Specifically, moving the defocus curve according to the corresponding weight is to simulate the compensation of the lens 10. It can avoid over-compensation or under-compensation of the lens 10 in another field of view with the compensation parameters in a certain preset field of view. Exemplarily, the deviation angle θ1 is calculated according to the defocus curve of the lens 10 in the first field of view, and the deviation angle θ1 is less than the preset angle θ2. The defocus curve of the lens 10 in the first field of view is moved according to the deviation angle θ1 to simulate the adjustment and correction of the lens 10 in the first field of view.
[0139] The deviation T1 of the defocus curve of the lens 10 in the second field of view is relatively poor, and a larger weight of the lens 10 in the second field of view can be set. When compensating the lens 10 in the second field of view, the calculated deviation angle θ1 in the first field of view can be multiplied by the weight as a compensation parameter, thereby compensating the lens 10 in the second field of view.
[0140] The deviation T1 of the defocus curve of the lens 10 in the third field of view is relatively good, and a smaller weight of the lens 10 in the third field of view can be set. When compensating the lens 10 in the third field of view, the calculated deviation angle θ1 in the first field of view can be multiplied by the weight as a compensation parameter, thereby compensating the lens 10 in the third field of view.
[0141] In one embodiment, the multiple identification patterns on the target plate 23 are used to represent the central field of view and four edge fields of view at different distances from the central field of view, namely, the 0.3F field of view, the 0.5F field of view, the 0.7F field of view, and the 0.8F field of view. According to the defocus curve of the lens 10 under the 0.5F field of view, the deviation angle θ1 of the lens 10 under the 0.5F field of view is calculated to be 0.5°, and the preset angle θ2 is 0.6°. 0.5° is used as a compensation parameter, and the compensation parameter is converted into the movement amount of the defocus curve of the lens 10 under the 0.3F field of view through a certain numerical calculation, so as to simulate and compensate for the angular deviation of the lens 10 under the 0.3F field of view. The weights of the lens 10 in the 0.5F field of view, 0.7F field of view and 0.8F field of view are X1, X2 and X3 respectively. X1*0.5° is used as a compensation parameter to compensate the lens 10 in the 0.5F field of view; X2*0.5° is used as a compensation parameter to compensate the lens 10 in the 0.7F field of view; and X3*0.5° is used as a compensation parameter to compensate the lens 10 in the 0.8F field of view. The compensation parameters are converted into simulated adjustment amounts to move the defocus curve instead of actually adjusting the lens 10.
[0142] In some embodiments, the test device 20 includes an MTF test device, the target plate 23 includes an SFR target plate, and the test value includes an SFR value. In this way, the lens 10 is tested using an SFR target plate, and the test value includes an SFR value, that is, the SFR algorithm is applied to the lens 10 test. The SFR algorithm is relatively simple, and is less affected by the environment during the test, resulting in better stability. The lens 10 is tested after simulating the module assembly to improve the correspondence between the lens 10 and the module test.
[0143] In the description of this specification, the description with reference to the terms "one embodiment", "certain embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0144] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0145] In the description of this specification, the description with reference to the terms "one embodiment", "certain embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0146] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A lens testing method, characterized in that: include: Acquire test data received by an image sensor of the test device, which is obtained by imaging a target plate of the test device by the lens at different positions relative to the image sensor; Obtaining a defocus curve of the lens according to the test data; Obtaining a deviation angle of the lens according to the defocus curve; When the deviation angle is greater than a preset angle, moving the defocus curve according to a preset angle; When the deviation angle is less than or equal to a preset angle, moving the defocus curve according to the deviation angle; According to the defocus curve after the movement, the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are read, and when the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are greater than or equal to the preset values, the lens is judged to be a qualified product.
2. The lens testing method according to claim 1, characterized in that: The step of obtaining the deviation angle of the lens according to the defocus curve comprises: Calculating a first deviation of the lens along a first direction according to the defocus curve; Calculating a second deviation of the lens along a second direction according to the defocus curve, where the first direction is perpendicular to the second direction; Calculating the deviation between the lens and the image sensor according to the first deviation and the second deviation; The deviation angle is calculated based on the deviation amount.
3. The lens testing method according to claim 2, characterized in that: Along the first direction, the target plate includes a first area and a second area arranged opposite to the first area, and the step of calculating a first deviation of the lens along the first direction according to the defocus curve includes: Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the first area; Obtaining the sum of distance values corresponding to the maximum value of the test values of multiple preset positions in the second area; Calculate the deviation of the lens along the first direction t1 = (AB) / 2, where A is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the first area, and B is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the second area.
4. The lens testing method according to claim 2, characterized in that: Along the second direction, the target plate includes a third area and a fourth area arranged opposite to the third area, and the step of calculating a second deviation of the lens along the second direction according to the defocus curve includes: Obtaining the sum of distance values corresponding to the maximum value of the test values of the multiple preset positions in the third area; Obtaining the sum of distance values corresponding to the maximum value of the test values of the multiple preset positions in the fourth area; Calculate the deviation of the lens along the second direction t2 = (CD) / 2, where C is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the third area, and D is the sum of the distance values corresponding to the maximum value of the test values of multiple preset positions in the fourth area.
5. The lens testing method according to claim 2, characterized in that: The step of calculating the deviation between the lens and the image sensor according to the first deviation and the second deviation comprises: Calculate the deviation between the lens and the image sensor Wherein, t1 is the deviation of the lens along the first direction, and t2 is the deviation of the lens along the second direction.
6. The lens testing method according to claim 1, characterized in that: The defocus curve is obtained according to The steps for the deviation angle of the lens include: According to the defocus curve, a distance value corresponding to a maximum value of test values in a plurality of preset areas of the lens is obtained; according to the defocus curve, a distance value corresponding to a minimum value of test values in a plurality of preset areas of the lens is obtained; Calculating the deviation between the lens and the image sensor according to a distance value corresponding to a maximum value of test values within a plurality of preset areas of the lens and a distance value corresponding to a minimum value of test values within a plurality of preset areas of the lens; The deviation angle is calculated based on the deviation amount.
7. The lens testing method according to claim 2 or 6, characterized in that: The step of calculating the deviation angle according to the deviation comprises: The deviation angle θ1 of the lens is calculated as actan(T1 / L1), wherein T1 is the deviation between the lens and the image sensor, and L1 is the length of the hypotenuse of the image sensor in the preset field of view.
8. The lens testing method according to claim 1, characterized in that: The lens testing method further comprises: The preset angle θ2=actan(T2 / L2) is calculated, wherein T2 is the maximum deviation that the lens can tolerate, and L2 is the hypotenuse length of the module, and the module includes the lens and the image sensor.
9. The lens testing method according to claim 1, characterized in that: The lens testing method further comprises: Setting corresponding weights of the lens under multiple preset fields of view; The step of moving the defocus curve according to a preset angle comprises: The defocus curve is moved according to the preset angle and the corresponding weights of the lens under multiple preset fields of view; the step of moving the defocus curve according to the deviation angle comprises: The defocus curve is moved according to the deviation angle and corresponding weights of the lens under a plurality of preset fields of view.
10. The lens testing method according to claim 1, characterized in that: The test equipment includes an MTF test equipment, the target plate includes an SFR target plate, and the test value includes an SFR value.
11. A testing system, characterized in that: include: A testing device, the testing device comprising an image sensor and a stage; a lens, the lens being disposed on a side of the stage away from the image sensor; a memory, the memory being used to store a computer program; and A controller, wherein the controller is used to execute the computer program to implement the lens testing method according to any one of claims 1 to 10.
12. A lens testing device, characterized in that: include: A first acquisition module, used for acquiring test data received by an image sensor of the test device, of the image of a target plate of the test device by the lens at different positions relative to the image sensor; A second acquisition module, used for obtaining a defocus curve of the lens according to the test data; A third acquisition module, used for obtaining a deviation angle of the lens according to the defocus curve; A first correction module, configured to move the defocus curve according to a preset angle when the deviation angle is greater than a preset angle; A second correction module, configured to move the defocus curve according to the deviation angle when the deviation angle is less than or equal to a preset angle; The judgment module is used to read the test values of multiple preset fields of view at the peak value when the lens is in the center field of view according to the defocus curve after the movement, and judge that the lens is a qualified product when the test values of multiple preset fields of view at the peak value when the lens is in the center field of view are greater than or equal to the preset values.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is processed by the processor When executed, the lens testing method as described in any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Calibratability pre-judging method for lens assembly to be assembled and camera module assembling method
CN114598859A
Method for measuring defocus curve of lens assembly
CN114598860A