A method, device, medium and equipment for calibrating a lens module
By obtaining the field angle and actual stroke in the lens module, and calculating the motor stroke correction amount using the reference calibration function, the problem of inaccurate calibration relationship of the finished lens module is solved, and an efficient calibration process is achieved.
Patent Information
- Application Number
- CN202310079983.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-31
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2043-01-31
AI Technical Summary
In the prior art, the calibration relationship between the motor stroke and field angle of the finished lens module is inaccurate, resulting in cumbersome calibration steps and low efficiency.
By controlling the target lens to move to the preset calibration position, obtain the current field of view angle and actual stroke, use the reference calibration function to calculate the motor stroke correction amount, and quickly calibrate.
The calibration steps are simplified and the efficiency of lens module calibration is improved.
Smart Images

Figure CN116193255B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of camera modules, and particularly to a lens module calibration method, device, medium and equipment. Background Art
[0002] When a zoom lens module switches between different magnifications, the corresponding field of view (FOV, Angle Of View) of the lens module will change accordingly, and the relationship between the magnification and the FOV value is fixed.
[0003] When switching between different magnifications, generally a motor is used to drive the lens to move a corresponding displacement amount to achieve magnification switching. However, after the lens is assembled into a finished lens module, due to the influence of assembly factors, the calibration relationship between the motor stroke and the FOV in the finished module is inaccurate. That is, when the lens is pushed according to the corresponding motor stroke during incoming materials when switching magnifications, the required field of view cannot be achieved.
[0004] Based on this, it is necessary to recalibrate the motor stroke and the FOV of the finished lens module. The calibration method in the related art needs to judge the current FOV corresponding to each current stroke one by one. If the current FOV is within the allowable error range, the current stroke is recorded; if the current FOV is not within the allowable error range, fine-tuning still needs to be continued. It can be seen that the calibration method in the prior art is relatively cumbersome and the calibration efficiency cannot be ensured. Summary of the Invention
[0005] In view of the problems existing in the prior art, embodiments of the present invention provide a lens module calibration method, device, medium and equipment to solve or partially solve the technical problem that when calibrating the motor stroke and the field of view angle of a finished lens module in the prior art, the calibration steps are cumbersome, resulting in the inability to ensure the calibration efficiency of the lens module.
[0006] In the first aspect of the present invention, a lens module calibration method is provided, and the method includes:
[0007] When controlling the target lens to move to each preset calibration position, obtain the current field of view angle corresponding to the focus clear point of the reference lens and the current actual stroke of the target lens;
[0008] Determine a first reference stroke corresponding to the current field of view angle according to the current field of view angle and a reference calibration function;
[0009] Determine a motor stroke correction amount according to the current actual stroke and the first reference stroke;
[0010] Calibrate the target lens based on the motor stroke correction amount.
[0011] In the above solution, determining the first reference stroke corresponding to the current field of view angle according to the current field of view angle and the reference calibration function includes:
[0012] According to the reference calibration function y1 = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023 to determine the first reference stroke y1 corresponding to the current field of view angle; where x is the current field of view angle; the reference calibration function is a function fitted based on the field of view angle data and the motor stroke data of the incoming lens module.
[0013] In the above solution, determining the motor stroke correction amount according to the current actual stroke and the first reference stroke includes:
[0014] For any calibration position, determine the stroke difference between the first reference stroke and the current actual stroke;
[0015] Determine the average value of each stroke difference, and use the average value of each stroke difference as the motor stroke correction amount.
[0016] In the above solution, calibrating the target lens based on the motor stroke correction amount includes:
[0017] Obtain the second reference stroke corresponding to each lens magnification;
[0018] Use the sum of the second reference stroke and the motor stroke correction amount as the calibration stroke of the target lens;
[0019] Correspond the lens magnification, the calibration stroke, and the field of view angle one by one.
[0020] In the above solution, calibrating the target lens based on the motor stroke correction amount includes:
[0021] Obtain the first constant in the reference calibration function;
[0022] Determine the second constant in the actual calibration function according to the first constant and the motor correction amount;
[0023] Determine the calibration stroke of the target lens according to the field of view angle corresponding to each lens magnification and the actual calibration function;
[0024] Correspond the lens magnification, the calibration stroke, and the field of view angle one by one.
[0025] In the above solution, determining the second constant in the actual calibration function according to the first constant and the motor correction amount includes:
[0026] Determine the sum of the first constant and the motor correction amount;
[0027] Determine the sum of the first constant and the motor correction amount as the second constant in the actual calibration function.
[0028] In a second aspect of the present invention, there is provided a lens module calibration device, the device comprising:
[0029] An acquisition unit, configured to acquire the current field of view angle corresponding to the focus clear point of the reference lens and the current actual travel of the target lens when controlling the target lens to move to each preset calibration position;
[0030] A first determination unit, configured to determine a first reference travel corresponding to the current field of view angle according to the current field of view angle and the reference calibration function;
[0031] A second determination unit, configured to determine a motor travel correction amount according to the current actual travel and the first reference travel;
[0032] A calibration unit, configured to calibrate the target lens based on the motor travel correction amount.
[0033] In the above solution, the first determination unit is configured to:
[0034] According to the reference calibration function y = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023 to determine the first reference travel y corresponding to the current field of view angle; wherein, x is the current field of view angle; the reference calibration function is a function fitted according to the field of view angle data and motor travel data of the incoming lens module.
[0035] In a third aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method according to any one of the first aspects are implemented.
[0036] In a fourth aspect of the present invention, there is provided a computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the method according to any one of the first aspects are implemented.
[0037] The present invention provides a method, apparatus, medium, and device for calibrating a lens module. The method includes: when controlling the target lens to move to each preset calibration position, obtaining the current field of view angle corresponding to the focus clear point of the reference lens and the current actual travel of the target lens; determining a first reference travel corresponding to the current field of view angle according to the current field of view angle and a reference calibration function; determining a motor travel correction amount according to the current actual travel and the first reference travel; and calibrating the target lens based on the motor travel correction amount. In this way, only at each calibration position, by using the current field of view angle, the current actual travel of the target lens, and the reference calibration function to determine the motor travel correction amount, the target lens can be calibrated using the motor travel correction amount, without complicated calibration steps, so the calibration efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Also, throughout the drawings, the same reference numerals are used to represent the same components.
[0039] In the drawings:
[0040] Figure 1 shows a schematic flowchart of a method for calibrating a lens module according to an embodiment of the present invention;
[0041] Figure 2 shows a fitting curve graph of the motor travel and the field of view angle in a lens module for incoming materials and a finished lens module according to an embodiment of the present invention;
[0042] Figure 3 shows a travel schematic diagram corresponding to the current actual travel of the target lens and the calibration position according to an embodiment of the present invention;
[0043] Figure 4 shows a travel schematic diagram corresponding to the current actual travel of the reference lens and the calibration position according to an embodiment of the present invention;
[0044] Figure 5 shows a schematic structural diagram of a lens module calibration apparatus according to an embodiment of the present invention;
[0045] Figure 6 shows a schematic structural diagram of a computer device according to an embodiment of the present invention;
[0046] Figure 7 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0047] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.
[0048] An embodiment of the present invention provides a method for calibrating a lens module, as Figure 1 shown, the method includes the following steps:
[0049] S110, when controlling the target lens to move to each preset calibration position, obtain the current field of view angle corresponding to the focus clear point of the reference lens and the current actual travel of the target lens;
[0050] In this embodiment, the finished lens module is a dual-lens module, and each lens needs to be calibrated. The target lens is the lens being calibrated, and the other lens is the reference lens.
[0051] To better understand the technical solution of the present application, the calibration principle is introduced here first. As Figure 2 shown, whether it is the finished lens module after assembly or the incoming lens module before assembly, the motor travel and the field of view angle FOV both satisfy a certain functional relationship. Figure 2 In
[0052] Mark 21 is a curve fitted according to the motor travel and FOV data of the finished lens module, and mark 22 is a curve fitted according to the motor travel and FOV data of the incoming lens module.
[0053] That is, the motor travel and FOV data of the incoming lens module satisfy the function: 3 y1 = ax 2 + bx
[0054] - cx + d1
[0055] The motor travel and FOV data of the finished lens module satisfy the function: 3 y2 = ax 2 + bx
[0056] Figure 2 where y1 is the motor travel of the incoming lens module, specifically the ordinates of each point on the curve of mark 22 in Figure 2 ; y2 is the motor travel of the finished lens module, specifically the ordinates of each point on the curve of mark 21 in
[0057] ordinates of each point on the curve of mark 21 in Figure 2 ; x is the abscissa, specifically FOV.
[0057] Theoretically speaking, if there are differences in the motor travel results between the incoming lens module and the finished lens module, it is mainly due to the differences between the first constant d1 and the second constant d2. Therefore, if the difference between d1 and d2 can be determined, the motor travel of the finished lens module can be recalibrated according to the difference between d1 and d2.
[0058] Then, in this embodiment, it is first necessary to control the target lens to move to each preset calibration position, and obtain the current field of view angle corresponding to the in-focus clear point of the reference lens and the current actual travel of the target lens. Among them, the preset calibration positions can be any positions, and the number of calibration positions includes at least 2.
[0059] Specifically, first control the target lens to move to the calibration position, and then control the reference lens to start focusing. When the clear point is found, obtain the current actual travel of the target lens and the current field of view angle of the entire finished lens module.
[0060] It should be noted that theoretically speaking, the current actual travel of the target lens is consistent with the travel corresponding to the calibration position. However, due to mechanical errors, there will be a slight difference between the current actual travel and the travel corresponding to the calibration position. Therefore, after the reference lens focuses, it is necessary to re-obtain the current actual travel of the target lens.
[0061] For example, assume that the calibration positions include A and B. First, control the target lens to move from point O to the calibration position A, and then control the reference lens to focus. After finding the clear point, obtain the current field of view angle FOV of the finished lens module A and the current actual travel S A . As Figure 3 shown, there will be a slight error between the distance between point O and point A and the current actual travel S A .
[0062] Then control the target lens to move to the calibration position B, and then control the reference lens to focus. After finding the clear point, obtain the current field of view angle FOV of the finished lens module B and the current actual travel S of the target lens B . As Figure 4 shown, there will be a slight error between the distance between point O and point B and the current actual travel S B .
[0063] S111, determine the first reference travel corresponding to the current field of view angle according to the current field of view angle and the reference calibration function;
[0064] As described above, the field of view angle and the motor travel of the incoming lens module satisfy a certain functional relationship, and this function is the reference calibration function. That is to say, the reference calibration function is a function fitted according to the field of view angle data and the motor travel data of the incoming lens module.
[0065] Therefore, after the current field of view angle of the target lens is determined, the first reference stroke corresponding to the current field of view angle can be determined based on the current field of view angle and the reference calibration function, specifically including:
[0066] According to the reference calibration function y1 = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023, determine the first reference stroke y1 corresponding to the current field of view angle. Wherein, x is the current field of view angle;
[0067] Continuing with the above example, after obtaining the current field of view angle FOV A substitute the current field of view angle FOV A into the reference calibration function, and the corresponding first reference stroke S A1 can be obtained.
[0068] After obtaining the current field of view angle FOV B substitute the current field of view angle FOV B into the reference calibration function, and the corresponding first reference stroke S B1 can be obtained.
[0069] After determining the first reference stroke in this embodiment, the motor stroke correction amount can be determined based on the first reference stroke in the subsequent stage, so as to quickly calibrate the target lens module according to the motor stroke correction amount.
[0070] S112. Determine the motor stroke correction amount according to the current actual stroke and the first reference stroke;
[0071] In one implementation manner, determining the motor stroke correction amount according to the current actual stroke and the first reference stroke includes:
[0072] For any calibration position, determine the stroke difference between the first reference stroke and the current actual stroke;
[0073] Determine the average value of each stroke difference, and use the average value of each stroke difference as the motor stroke correction amount.
[0074] It can be understood that if there are multiple calibration positions, there will be multiple stroke differences. Therefore, in this embodiment, the average value of multiple stroke differences is used as the final motor stroke correction amount.
[0075] Continuing with the above example, the stroke difference E1 corresponding to the calibration position A = S A - S A1 ;
[0076] The stroke difference E2 corresponding to the calibration position B = S B - S B1 ;
[0077] Then the motor stroke correction amount E = (E1+E2) / 2.
[0078] S113: Calibrate the target lens based on the motor stroke correction amount.
[0079] After the motor stroke correction amount is determined, the target lens can be calibrated based on the motor stroke correction amount.
[0080] This embodiment includes two calibration methods. In one embodiment, calibration is performed based on the motor stroke correction amount and the target lens, including:
[0081] Obtaining a second reference stroke corresponding to each lens magnification;
[0082] The sum of the second reference stroke and the motor stroke correction amount is used as the calibration stroke of the target lens;
[0083] Match the lens magnification, calibration stroke and field of view angle one to one.
[0084] Specifically, since the calibration data of the incoming lens module is known, each lens magnification corresponds to a motor stroke, so the second reference stroke corresponding to each lens magnification can be directly obtained from the calibration data of the incoming lens module.
[0085] From the above, it can be seen that the difference in motor stroke between the finished lens module and the incoming lens module is actually the motor stroke correction amount. Therefore, after the second reference stroke is obtained, the calibrated stroke of the finished lens module is the sum of the second reference stroke and the motor stroke correction amount.
[0086] In this way, the calibration stroke of the finished lens module can be quickly determined based on the motor stroke correction amount, thereby improving calibration efficiency.
[0087] In another embodiment, calibrating the target lens based on the motor stroke correction value includes:
[0088] Get the first constant in the reference calibration function;
[0089] Determining a second constant in the actual calibration function according to the first constant and the motor correction value;
[0090] Determine the calibration stroke of the target lens according to the field of view angle corresponding to each lens magnification and the actual calibration function;
[0091] Match the lens magnification, calibration stroke and field of view angle one to one.
[0092] In one embodiment, determining the second constant in the actual calibration function based on the first constant and the motor correction value includes:
[0093] Determine the sum of the first constant and the motor correction value;
[0094] The sum of the first constant and the motor correction value is determined as the second constant in the actual calibration function.
[0095] Specifically, as described above, the difference between the first constant d1 in the reference calibration function and the second constant d2 in the actual calibration function is the determined motor correction value E, so:
[0096] E=d2-d1.
[0097] Then we get:
[0098] d2=d1+E.
[0099] Therefore, the actual calibration function can be:
[0100] y2=ax 3 +bx 2 -cx+d1+E
[0101] After assigning values to a, b, and c, we get:
[0102] y2=0.1339x 3 +31.717x 2 -2750.6x+81023+E
[0103] Based on this, the calibrated stroke y2 of the target lens can be quickly obtained by directly substituting the field of view angle corresponding to each lens magnification into the actual calibration function.
[0104] In this way, at each calibration position, it is only necessary to use the current field of view angle, the current actual stroke of the target lens and the reference calibration function to determine the motor stroke correction amount, and then the target lens can be calibrated using the motor stroke correction amount. There is no need for complicated calibration steps, so the calibration efficiency can be improved.
[0105] Based on the same inventive concept as in the above embodiment, this embodiment also provides a lens module calibration device, such as Figure 5 As shown, the device includes:
[0106] An acquisition unit 51 is used to control the target lens to move to each preset calibration position, and acquire the current field of view angle corresponding to the focus clear point of the reference lens and the current actual travel of the target lens;
[0107] A first determining unit 52 is configured to determine a first reference range corresponding to the current field of view angle according to the current field of view angle and a reference calibration function;
[0108] a second determining unit 53, configured to determine a motor stroke correction value according to the current actual stroke and the first reference stroke;
[0109] A calibration unit 54 for calibrating the target lens based on the motor stroke correction amount.
[0110] In one embodiment, the first determination unit 52 is configured to:
[0111] Determine a first reference stroke y corresponding to the current field of view angle according to the reference calibration function y = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023; where x is the current field of view angle; the reference calibration function is a function fitted according to the field of view angle data and motor stroke data of the incoming lens module.
[0112] Since the device introduced in the embodiments of the present invention is the device adopted for implementing the lens module calibration method of the embodiments of the present invention, based on the method introduced in the embodiments of the present invention, those skilled in the art can understand the specific structure and variations of the device, so it will not be elaborated here. Any device adopted by the method of the embodiments of the present invention belongs to the scope to be protected by the present invention.
[0113] Based on the same inventive concept, this embodiment provides a computer device 600, as Figure 6 shown, including a memory 610, a processor 620, and a computer program 611 stored on the memory 610 and executable on the processor 620. When the processor 620 executes the computer program 611, any step of the method described above is implemented.
[0114] Based on the same inventive concept, this embodiment provides a computer-readable storage medium 700, as Figure 7 shown, on which a computer program 711 is stored. When the computer program 711 is executed by a processor, the steps of any of the methods described above are implemented.
[0115] Through one or more embodiments of the present invention, the present invention has the following beneficial effects or advantages:
[0116] The present invention provides a method, apparatus, medium and device for calibrating a lens module. The method includes: when controlling a target lens to move to each preset calibration position, obtaining a current field of view angle corresponding to a focus clear point of a reference lens and a current actual stroke of the target lens; determining a first reference stroke corresponding to the current field of view angle according to the current field of view angle and a reference calibration function; determining a motor stroke correction amount according to the current actual stroke and the first reference stroke; and calibrating the target lens based on the motor stroke correction amount. In this way, only at each calibration position, by using the current field of view angle, the current actual stroke of the target lens and the reference calibration function to determine the motor stroke correction amount, the target lens can be calibrated by using the motor stroke correction amount, without complicated calibration steps, so the calibration efficiency can be improved.
[0117] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings based herein. The structure required to construct such a system will be apparent from the above description. In addition, the present invention is not directed to any particular programming language. It should be understood that the content of the present invention described herein can be implemented using various programming languages, and the description of the specific language above is for the purpose of disclosing the best mode of the present invention.
[0118] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.
[0119] Similarly, it should be understood that, in order to streamline this disclosure and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, the inventive aspects lie in less than all the features of the single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of the present invention.
[0120] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise clearly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.
[0121] In addition, those skilled in the art can understand that although some of the embodiments herein include certain features included in other embodiments rather than other features, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
[0122] Each component embodiment of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components of the gateway, proxy server, and system according to the embodiments of the present invention. The present invention can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0123] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims listing several devices, several of these devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names.
[0124] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0125] The above is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A lens module calibration method, characterized in that, The method includes: When controlling the target lens to move to each preset calibration position, obtaining the current field of view angle corresponding to the focus clear point of the reference lens and the current actual stroke of the target lens; Determining a first reference stroke corresponding to the current field of view angle according to the current field of view angle and a reference calibration function; Determining a motor stroke correction amount according to the current actual stroke and the first reference stroke; Calibrating the target lens based on the motor stroke correction amount; wherein, The step of determining a first reference stroke corresponding to the current field of view angle according to the current field of view angle and a reference calibration function includes: According to the reference calibration function y1 = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023 to determine the first reference stroke y1 corresponding to the current field of view angle; where x is the current field of view angle; the reference calibration function is a function fitted according to the field of view angle data and the motor stroke data of the incoming lens module.
2. The method according to claim 1, characterized in that, The step of determining a motor stroke correction amount according to the current actual stroke and the first reference stroke includes: For any calibration position, determining the stroke difference between the first reference stroke and the current actual stroke; Determining the average value of each stroke difference, and taking the average value of each stroke difference as the motor stroke correction amount.
3. The method according to claim 1, characterized in that, The step of calibrating the target lens based on the motor stroke correction amount includes: Obtaining a second reference stroke corresponding to each lens magnification; Taking the sum value of the second reference stroke and the motor stroke correction amount as the calibration stroke of the target lens; Establishing a one-to-one correspondence between the lens magnification, the calibration stroke, and the field of view angle.
4. The method according to claim 1, wherein The step of calibrating the target lens based on the motor stroke correction amount includes: Obtaining a first constant in the reference calibration function; Determining a second constant in the actual calibration function according to the first constant and the motor stroke correction amount; Determining the calibration stroke of the target lens according to the field of view angle corresponding to each lens magnification and the actual calibration function; Establishing a one-to-one correspondence between the lens magnification, the calibration stroke, and the field of view angle.
5. The method according to claim 4, characterized in that, The step of determining a second constant in the actual calibration function according to the first constant and the motor stroke correction amount includes: Determining the sum value of the first constant and the motor stroke correction amount; Determining the sum value of the first constant and the motor stroke correction amount as the second constant in the actual calibration function.
6. A lens module calibration device, characterized in that, The device includes: An acquisition unit, configured to obtain the current field of view angle corresponding to the focus clear point of the reference lens and the current actual stroke of the target lens when controlling the target lens to move to each preset calibration position; A first determination unit, configured to determine a first reference stroke corresponding to the current field of view angle according to the current field of view angle and a reference calibration function; A second determination unit, configured to determine a motor stroke correction amount according to the current actual stroke and the first reference stroke; A calibration unit, configured to calibrate the target lens based on the motor stroke correction amount; wherein, The first determination unit is used for: According to the reference calibration function y = 0.1339x 3 + 31.717x 2 - 2750.6x + 81023 to determine the first reference stroke y corresponding to the current field of view angle; wherein, the x is the current field of view angle; the reference calibration function is a function fitted according to the field of view angle data and the motor stroke data of the incoming lens module.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, implementing the steps of the method according to any one of claims 1-5.
8. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, implementing the steps of the method according to any one of claims 1-5.
Citation Information
Patent Citations
Voice coil motor stroke calibration method and device and test fixture
CN105787947A
High-precision photoelectric sensor angle detection system, calibration method and detection method
CN109186501A