A method for focusing of dynamic tilt
By optimizing the focusing process through gradient algorithms and data analysis modules, the optimal code position was found, solving the dynamic tilt problem when a large motor drives a large lens for focusing, and improving focusing accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TRULY OPTO ELECTRONICS
- Filing Date
- 2024-06-11
- Publication Date
- 2026-07-10
AI Technical Summary
In existing technologies, when a large motor drives a large lens for focusing, a dynamic tilt problem is prone to occur, resulting in insufficient focusing accuracy.
The gradient algorithm is used to find the cleaning code, which drives the camera module to acquire images and calculate the SFR value. Multiple modules are used for data analysis and judgment to find the best focus position to optimize focus accuracy.
It improves focusing accuracy, solves the problem of center dynamic tilt, and achieves higher focusing accuracy.
Smart Images

Figure CN119136049B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of focusing methods for camera modules, and in particular to a focusing method for solving dynamic tilt. Background Technology
[0002] Currently, with the continuous advancement of technology and the increasing prevalence of AI, more and more products require high-end cameras. However, high-end cameras need to be matched with larger and heavier lenses, and such lenses need to achieve 1X-7X or 10X zoom, which in turn requires larger VCMs, such as stepper motors. The large motor driving the large lens for focusing causes greater dynamic tilt issues. Therefore, this paper presents a focusing method to solve dynamic tilt, optimizing the best code, improving focusing accuracy, and resolving center dynamic tilt. Summary of the Invention
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a focusing method for solving dynamic tilt.
[0004] The objective of this invention is achieved through the following technical solution:
[0005] A focusing method for solving dynamic tilt issues includes: a focusing system and a camera module; the focusing system includes a camera module startup module, an image acquisition and transmission camera module module, a code driving and image saving SFR calculation module, a code stopping module, a data analysis module, an SFR calculation module, a maximum value determination module, a condition module one, a condition module two, a condition module three, a maximum value calculation and determination module, a value selection module for condition module one, and an end module.
[0006] In one embodiment, the starting camera module is data-connected to the camera module, and the starting camera module is data-connected to the image acquisition and transmission camera module module. The image acquisition and transmission camera module module acquires images from the camera module and powers on the camera motor.
[0007] In one embodiment, there is a data connection between the image acquisition and transmission camera module and the drive code and save image SFR calculation module. The drive code and save image SFR calculation module drives each step of the code and saves the image SFR value.
[0008] In one embodiment, the code-stopping module accepts the driver code and saves the value transmitted by the image SFR calculation module, and determines whether the code has stopped. If it has, the data is transmitted to the data analysis module; otherwise, the driver code is returned and the image SFR calculation module is saved.
[0009] In one embodiment, the data analysis module analyzes the SFR value and transmits the analyzed data to the SFR calculation module. The SFR calculation module calculates the value of the central SFR and transmits the calculated result to the maximum value determination module.
[0010] In one embodiment, the maximum value determination module calculates the maximum value and passes it to the first judgment condition module. The first judgment condition module determines whether the value meets the condition. If it does, it directly enters the end module; otherwise, it enters the second judgment condition module.
[0011] In one embodiment, if the condition in the second judgment condition module is met, the judgment condition module three is used for judgment; if the condition is not met, the maximum value is calculated and judged.
[0012] In one embodiment, if the value judged by the third judgment condition module meets the standard, it will enter the termination module; if the value judged by the third judgment condition module does not meet the standard, it will enter the maximum value calculation and judgment module.
[0013] In one embodiment, if the value calculated by the maximum value and judgment module meets the judgment condition, the module proceeds to the end module; otherwise, the module proceeds to the value selection module.
[0014] In one embodiment, there is a data connection between the extraction judgment condition module - the value selection module and the termination module.
[0015] Compared with the prior art, the present invention has at least the following advantages:
[0016] The focusing method for solving dynamic tilt in this invention pre-finds a clean code using a gradient algorithm, then starts the camera module. The program then initiates multiple code values through various modules: image acquisition and transmission to the camera module, code driving and image saving, SFR calculation, code stopping, data analysis, and SFR calculation. These values are then compared and judged using SFR calculation, maximum value determination, conditional decision module one, conditional decision module two, conditional decision module three, and maximum value calculation and judgment module. If the code value meets the judgment conditions, the value is directly output and the program ends. If a suitable code value is not found, the value is selected directly from conditional decision module one and the program ends. This optimizes the code, improves focusing accuracy, and solves the problem of center dynamic tilt. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the focusing method for solving dynamic tilting according to the present invention.
[0019] In the diagram: 1. Focusing system; 11. Start camera module; 12. Image acquisition and transmission camera module; 13. Drive code and save image to calculate SFR module; 14. Determine if code stops module; 15. Data analysis module; 16. Calculate SFR module; 17. Determine the maximum value module; 18. Judgment condition module one; 19. Judgment condition module two; 101. Judgment condition module three; 102. Calculate the maximum value and judge module; 103. Retrieve the value selected by judgment condition module one module; 104. End module. Detailed Implementation
[0020] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of the invention.
[0021] In the description of this application, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0022] Unless otherwise explicitly specified and limited, the terms “installation,” “connection,” “linking,” “fixing,” etc., should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; they can refer to the internal connection of two components or the interaction between two components.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0024] like Figure 1 As shown, a focusing method for solving dynamic tilt includes: a focusing system 1 and a camera module 2; the focusing system 1 includes a camera module startup 11, an image acquisition and transmission camera module module 12, a code driving and image saving SFR calculation module 13, a code stopping module 14, a data analysis module 15, an SFR calculation module 16, a maximum value determination module 17, a judgment condition module 18, a judgment condition module 2, a judgment condition module 3 101, a maximum value calculation and judgment module 102, a value selection module 103 for the judgment condition module 1, and an end module 104. It should be noted that the basic idea of this program is to find a clear code through a gradient algorithm, drive the lens up and down based on this code, take an image for each code and calculate the center resolution value, and finally find the optimal code and stop at it.
[0025] like Figure 1 As shown in one embodiment, the data connection between camera module 11 and camera module 2 is initiated. The data connection between camera module 11 and image acquisition and transmission camera module 12 is also initiated. Image acquisition and transmission camera module 12 acquires images from the camera modules and powers on the camera motor. Image acquisition and transmission camera module 12 is then connected to the drive code and image saving SFR calculation module 13. Drive code and image saving SFR calculation module 13 drives each step of the code and saves the calculated SFR value. It should be noted that the powered motor can move the lens to take pictures and calculate each SFR value.
[0026] like Figure 1 As shown in one embodiment, the code-stopping module 14 receives the driver code and saves the value transmitted by the image SFR calculation module 13, and determines whether the code has stopped. If so, the data is transmitted to the data analysis module 15; otherwise, the driver code is returned and the image SFR calculation module 13 is saved. It should be noted that if the code stops, the data is then analyzed in the data analysis module 15.
[0027] like Figure 1As shown in one embodiment, the data analysis module 15 analyzes the SFR value and transmits the analyzed data to the SFR calculation module 16. The SFR calculation module 16 calculates the central SFR value and transmits the calculated result to the maximum value determination module 17. It should be noted that the calculation method of the SFR calculation module 16 is |H+V| / 2, and the technical method of the maximum value determination module 17 is |H+V| / 2.
[0028] like Figure 1 As shown in one embodiment, the maximum value determination module 17 calculates the maximum value and passes it to the first judgment condition module 18. The first judgment condition module 18 determines whether the value meets the condition. If it does, it directly enters the end module 104; otherwise, it enters the second judgment condition module 19. It should be noted that the judgment condition of the first judgment condition module 18 is to determine |H1-V1|<1. If the condition is met, the end module 104 will select the data set and display it, and the camera will stay on this code based on the value.
[0029] like Figure 1 As shown in one embodiment, if the condition in the second judgment condition module 19 is met, the system proceeds to the third judgment condition module 101 for judgment; otherwise, it proceeds to the maximum value calculation and judgment module 102. It should be noted that the judgment condition of the second judgment condition module 19 is to find the maximum value of |H2+V2| / 2 and confirm that |H2-V2|<1.
[0030] like Figure 1 As shown in one embodiment, if the judgment condition module 3 101 judges that the value meets the standard, it will enter the end module 104; if the judgment condition module 3 101 judges that the value does not meet the standard, it will enter the maximum value calculation and judgment module 102. It should be noted that the judgment condition of the judgment condition module 3 101 is to determine whether H2 is greater than H1, or whether V2 is greater than V1.
[0031] like Figure 1 As shown in one embodiment, if the value calculated by the maximum value calculation and judgment module 102 meets the judgment condition, it enters the end module 104; otherwise, it enters the value selection module 103 of the judgment condition extraction module. It should be noted that the calculation method of the maximum value calculation and judgment module 102 is |H3+V3| / 2, while its judgment method is |H3-V3|<1. If none of the four judgment modules meet the requirements, the data passed to the judgment condition module 18 is directly extracted, and the code is set according to this value.
[0032] like Figure 1As shown in one embodiment, the data connection between the judgment condition module 103 (selection value module) and the end module 104 is retrieved. (Terminology clarification: "code": refers to the position control signal or step value that drives the autofocus (AF) motor. Each code corresponds to a specific physical position of the lens. "SFR": Spatial Frequency Response, is an objective indicator of the image sharpness of an optical system. The higher the value, the sharper the image. "H" and "V": represent the horizontal and vertical SFR values calculated from the acquired image, respectively. "H1, V1" and "H2, V2": represent the horizontal and vertical SFR values calculated at different focus code positions (e.g., position 1 and position 2), respectively.)
[0033] In the specific implementation, step A (driving and acquisition): The control system drives the AF motor sequentially to each code position within a preset focus range. At each position, the camera captures and saves an image of a test chart (such as a slanted chart). Step B (calculation and analysis): For the image saved at each code position, the horizontal SFR value (H) and vertical SFR value (V) are calculated separately using an SFR algorithm known in the art (as described in ISO 12233). Step C (overall scoring and selection): First, an overall score is calculated for each position: Overall SFR = (H + V) / 2. This formula aims to comprehensively evaluate the overall sharpness of the position using a single numerical value. Second, to assess "dynamic tilt" (i.e., image unevenness caused by optical axis tilt), the sharpness uniformity of each position is calculated: Uniformity = |H - V|. A threshold (e.g., 1) is set to select positions where |H - V| < the threshold. These positions represent small differences in horizontal and vertical sharpness, with minimal impact from dynamic tilt. Step D (Determining the optimal focus point): Among all positions that meet the balance condition (i.e., |H - V| < threshold), select the position with the highest overall score (H+V) / 2. The code corresponding to this position is determined as the final focus position, and the drive motor moves to and locks onto it.
[0034] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. A focusing method for solving dynamic tilt, characterized in that, include: Focusing system (1) and camera module; The focusing system (1) includes a camera module start-up module (11), an image acquisition and transmission camera module module (12), a code drive and image saving SFR calculation module (13), a code stop determination module (14), a data analysis module (15), an SFR calculation module (16), a maximum value determination module (17), a judgment condition module one (18), a judgment condition module two (19), a judgment condition module three (101), a maximum value calculation and judgment module (102), a value selection module for the judgment condition module one (103), and an end module (104). The module (14) that determines whether the code has stopped will accept the driving code and save the value passed by the image calculation SFR module (13), and determine whether the code has stopped. If it has, the data will be passed to the data analysis module (15). Otherwise, the driving code will be returned and the image calculation SFR module (13) will be saved. The calculation method of the SFR module (16) is (H+V) / 2. The data analysis module (15) analyzes the SFR value and transmits the analyzed data to the SFR calculation module (16). The SFR calculation module (16) calculates the value of the center SFR and transmits the calculated result to the maximum value determination module (17). The determination condition of the first determination module (18) is to determine |H1-V1|<1. If the end module (104) reaches the end, it will select the data and display it, and let the camera stay on this code according to the value. The maximum value determination module (17) calculates the maximum value and passes it to the first judgment condition module (18). The first judgment condition module (18) determines whether the value meets the condition. If it does, it directly enters the end module (104). If it does not meet the condition, it enters the second judgment condition module (19). The judgment condition of the second judgment condition module (19) is to find the maximum value of |H2+V2| / 2 and confirm that |H2-V2|<1. If the conditions in the second judgment condition module (19) are met, the judgment condition module (101) will be entered for judgment. If the conditions are not met, the judgment condition module (102) will be entered for calculation of maximum value and judgment. The judgment condition of the third judgment condition module (101) is to determine whether H2 is greater than H1 or whether V2 is greater than V1. If the value judged by the third judgment condition module (101) meets the standard, it will enter the end module (104). If the value judged by the third judgment condition module (101) does not meet the standard, it will enter the maximum value calculation and judgment module (102). If the value calculated by the maximum value calculation and judgment module (102) meets the judgment condition, it will enter the end module (104); otherwise, it will enter the value selection module (103) of the first judgment condition module (103).
2. The focusing method for solving dynamic TILT according to claim 1, characterized in that, The starting camera module (11) and the camera module (2) are connected to each other via data. The starting camera module (11) and the image acquisition and transmission camera module (12) are connected via data. The image acquisition and transmission camera module (12) acquires the image of the camera module and powers on the camera motor.
3. The focusing method for solving dynamic TILT according to claim 1, characterized in that, The data connection between the image acquisition and transmission camera module (12) and the drive code and save image SFR calculation module (13) is established. The drive code and save image SFR calculation module (13) will drive each step of the code and save the image SFR value.
4. The focusing method for solving dynamic TILT according to claim 1, characterized in that, The data connection between the extraction judgment condition module 1 selection value module (103) and the end module (104) is established.