Focusing method for solving dynamic tilt
By using gradient algorithm to optimize code in the focus system, the focus accuracy problem caused by dynamic tilt in the zoom process of high-end camera lenses is solved, and higher focus accuracy is achieved.
Patent Information
- Application Number
- CN202410746865.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-06-11
AI Technical Summary
When the lens of high-end cameras realizes 1X-7X or 10X zoom, the dynamic tilt problem caused by affecting the focus accuracy, which is difficult to effectively solve in the existing technology.
A focusing system is adopted that includes starting the camera module, acquiring the image delivery module, driving the code and saving the picture calculation SFR module, determining whether the Code is stopped, data analysis module, calculating the SFR module, determining the maximum value module, and determining the condition module , optimize code through gradient algorithm, find the best focus parameters, and solve the dynamic tilt problem.
By using the gradient algorithm in advance to find the best code, optimize the focus accuracy, output the value directly and end the program, the problem of central dynamic tilt is solved and the focus accuracy is improved.
Smart Images

Figure CN119136049A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera module focusing methods, and in particular to a focusing method for solving dynamic tilt. Background Art
[0002] At present, with the continuous advancement of technology and the popularization of AI, more and more products require more high-end cameras. However, high-end cameras need to match larger and heavier lenses. Such lenses need to achieve 1X-7X or 10X zoom and need to match larger VCMs, such as stepper motors. Large motors drive large lenses to focus, which will cause greater dynamic tilt problems. Therefore, a focusing method to solve dynamic tilt is developed to optimize the best code, improve focusing accuracy, and solve center dynamic tilt. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a focusing method for solving dynamic tilt.
[0004] The objective of the present invention is achieved through the following technical solutions:
[0005] A focusing method for solving dynamic tilt comprises: a focusing system and a camera module; the focusing system comprises a camera module starting module, an image transmission camera module acquisition module, a code driving and image saving SFR calculation module, a code stopping judgment module, a data analysis module, an SFR calculation module, a maximum value finding judgment module, a judgment condition module 1, a judgment condition module 2, a judgment condition module 3, a maximum value calculation and judgment module, a value selection module taking out the judgment condition module 1 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 will acquire the image of the camera module and power on the camera motor.
[0007] In one of the embodiments, the image acquisition and transmission camera module module is data connected with the drive code and save the image calculation SFR module, and the drive code and save the image calculation SFR module will drive each step of the code and save the image calculation SFR value.
[0008] In one embodiment, the module for determining whether the Code stops will accept the driving code and save the value passed by the image calculation SFR module, and determine whether the Code stops. If so, it will pass the data to the data analysis module, otherwise it will return to the driving code and save the image calculation SFR module.
[0009] In one embodiment, the data analysis module analyzes the SFR value and transmits the analyzed data to the SFR calculation module, and the SFR calculation module calculates the value of the center 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 judgment condition module one. The judgment condition module one determines whether its value meets the condition. If it meets the condition, it directly enters the end module; if not, it enters the judgment condition module two.
[0011] In one embodiment, if the condition in the judgment condition module 2 is met, the judgment is entered into the judgment condition module 3; if not met, the maximum value calculation and judgment module is entered.
[0012] In one embodiment, if the determination condition module 3 determines that the value meets the standard, the module will enter the end module. If the determination condition module 3 determines that the value does not meet the standard, the module will enter the maximum value calculation and determination module.
[0013] In one embodiment, if the value finally calculated by the maximum value calculation and judgment module meets the judgment condition, the module enters the end module, otherwise the module enters the extraction judgment condition module-the value selection module.
[0014] In one embodiment, the extraction judgment condition module-the value selection module is data-connected to the end module.
[0015] Compared with the prior art, the present invention has at least the following advantages:
[0016] The focusing method for solving dynamic TILT of the present invention uses the gradient algorithm to find the cleaned code in advance, then starts the camera module, and starts the program to find multiple Code values from the module of acquiring image transmission camera module, driving code and saving picture calculation SFR module, judging whether Code stops module, data analysis module and SFR calculation module, and then compares and judges the values through the SFR calculation module, the maximum value finding module, the judgment condition module 1, the judgment condition module 2, the judgment condition module 3, the maximum value calculation and judgment module. If the Code value meets the judgment condition, the value is directly output and the program is terminated. If the appropriate Code value is still not obtained in the end, the value selection module is taken out of the judgment condition module 1 to directly select the value and end the module. Thus, the best code is optimized, the focusing accuracy is improved, and the problem of center dynamic tilt is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 The figure is a flow chart of a focusing method for solving dynamic tilt according to the present invention.
[0019] In the figure: 1. Focus system; 11. Start camera module; 12. Get image transmission camera module module; 13. Drive code and save picture to calculate SFR module; 14. Determine whether Code stops module; 15. Data analysis module; 16. Calculate SFR module; 17. Determine and find the maximum value module; 18. Determine condition module one; 19. Determine condition module two; 101. Determine condition module three; 102. Calculate maximum value and judge module; 103. Take out judgment condition module one and select value module; 104. End module. DETAILED DESCRIPTION
[0020] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.
[0021] In the description of the present application, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "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, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0022] Unless otherwise clearly stipulated and limited, terms such as "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integrated connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related 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 starting the camera module 11, acquiring an image transmission camera module module 12, driving the code and saving the picture to calculate the SFR module 13, determining whether the code stops the module 14, the data analysis module 15, calculating the SFR module 16, determining to find the maximum value module 17, determining condition module 1 18, determining condition module 2 19, determining condition module 3 101, calculating the maximum value and judging module 102, taking out the determination condition module 1 to select the value module 103 and ending module 104. It should be noted that the basic idea of the program is to find a clear code through a gradient algorithm, drive the lens up and down based on this code, and let each code take a picture and calculate the center resolution value, and finally find the best and stay at this code.
[0025] like Figure 1 As shown, in one embodiment, the camera module 11 is started to be data-connected with the camera module 2, and the camera module 11 is started to be data-connected with the acquisition image transmission camera module module 12. The acquisition image transmission camera module module 12 will acquire the image of the camera module and power on the camera motor. The acquisition image transmission camera module module 12 is data-connected with the drive code and save the picture calculation SFR module 13. The drive code and save the picture calculation SFR module 13 will drive each step of the code and save the picture calculation 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 module 14 for determining whether the code stops will accept the driving code and save the value transmitted by the image calculation SFR module 13, and determine whether the code stops. If yes, the data will be transmitted to the data analysis module 15, otherwise, the driving code will be returned and the image calculation SFR module 13 will be saved. It should be noted that if yes, the data analysis module 15 will be entered to analyze the obtained data.
[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 value of the center SFR 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 determination condition module 1 18. The determination condition module 1 18 determines whether the value meets the condition. If it meets the condition, it directly enters the end module 104. If it does not meet the condition, it enters the determination condition module 2 19. It should be noted that the determination condition of the determination condition module 1 18 is to determine that (H1-V1) < 1. If it meets the end module 104, the group of data will be selected and displayed, and the camera will stay at this code according to the value.
[0029] like Figure 1 As shown, in one embodiment, if the condition in the judgment condition module 2 19 is met, the judgment is entered into the judgment condition module 3 101, and if it is not met, the maximum value calculation and judgment module 102 is entered. It should be noted that the judgment condition of the judgment condition module 2 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 determination condition module 3 101 determines that the value meets the standard, it will enter the end module 104. If the determination condition module 3 101 determines 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 determination condition of the determination 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 finally calculated by the maximum value calculation and judgment module 102 meets the judgment condition, the module enters the end module 104, otherwise it enters the module for selecting the value by taking out the judgment condition module 103. It should be noted that the calculation method of the maximum value calculation and judgment module 102 is (H3+V3) / 2, and its judgment method is (H3-V3)<1. If the four judgment modules do not meet the requirements, the data passed to the judgment condition module 18 is directly taken out, and the code is set according to this value.
[0032] like Figure 1 As shown, in one embodiment, the data connection between the judgment condition module 1 and the value selection module 103 and the end module 104 is taken out.
[0033] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A focusing method for solving dynamic tilt, characterized in that: include: Focusing system (1) and camera module; The focusing system (1) comprises a camera module start-up module (11), an image acquisition and transmission camera module module (12), a code drive and image storage 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 1 (18), a judgment condition module 2 (19), a judgment condition module 3 (101), a maximum value calculation and determination module (102), a value selection module (103) and an end module (104).
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 data-connected to each other, and the starting camera module (11) is data-connected to the image acquisition and transmission camera module module (12). The image acquisition and transmission camera module 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 image acquisition and transmission camera module (12) is data-connected to the module (13) for driving the code and saving the image calculation SFR. The module (13) for driving the code and saving the image calculation SFR will drive each step of the code and save the image calculation SFR value.
4. The focusing method for solving dynamic TILT according to claim 1, characterized in that: The module (14) for determining whether the code stops will receive the driving code and save the value passed by the image calculation SFR module (13), and determine whether the code stops. If so, the data will be passed to the data analysis module (15). If not, the module returns to the driving code and saves the value of the image calculation SFR module (13).
5. The focusing method for solving dynamic TILT according to claim 1, characterized in that: 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 center SFR value and transmits the calculated result to the maximum value determination module (17).
6. The focusing method for solving dynamic TILT according to claim 1, characterized in that: The maximum value determination module (17) calculates the maximum value and passes it to the judgment condition module (18). The judgment condition module (18) determines whether its value meets the condition. If it meets the condition, it directly enters the end module (104). If it does not meet the condition, it enters the judgment condition module (19).
7. The focusing method for solving dynamic TILT according to claim 1, characterized in that: If the conditions in the judgment condition module 2 (19) are met, the process proceeds to the judgment condition module 3 (101) for judgment; if not, the process proceeds to the maximum value calculation and judgment module (102).
8. The focusing method for solving dynamic TILT according to claim 1, characterized in that: If the determination condition module 3 (101) determines that the value meets the standard, the module will enter the end module (104). If the determination condition module 3 (101) determines that the value does not meet the standard, the module will enter the maximum value calculation and judgment module (102).
9. The focusing method for solving dynamic TILT according to claim 1, characterized in that: If the value finally calculated by the maximum value calculation and judgment module (102) meets the judgment condition, the module enters the end module (104); otherwise, the module enters the extraction judgment condition module - value selection module (103).
10. The focusing method for solving dynamic TILT according to claim 1, characterized in that: The data connection between the extraction judgment condition module and the value selection module (103) is established with the end module (104).
Citation Information
Patent Citations
Rapid focusing method, camera module and computer readable storage medium
CN115767267A
Camera focusing method and system
CN116112793A
Focus searching method and device for camera module, medium and equipment
CN116684733A
Autofocus system
JP2004151608A
Feed for companion animals including black soldier fly, juice pieces and egg shell
KR102609443B1
