Focusing compensation method for continuous zoom lens
By temporarily replacing the automatic focus compensation value with the manual focus value in the continuous zoom lens, and updating the automatic compensation table when the field of view is switched, the problem of unsatisfactory automatic focusing effect is solved, and clear automatic compensation is achieved throughout the field of view. Effective and efficient human-computer interaction.
Patent Information
- Application Number
- CN202410789205.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The automatic focus compensation effect of a continuous zoom lens is not ideal under extreme circumstances. Temperature changes after manual focus cause the automatic compensation value to replace the current manual focus compensation value, affecting the observation effect, and the human-machine efficiency of focus compensation is not high.
By temporarily replacing the automatic focus compensation value read by the FLASH memory chip with the manual focus compensation value, turning off the automatic compensation function, and controlling the motor movement to the manual focus compensation value position, if the automatic focus effect is not good after switching the field of view, then Continue manual focus compensation, turn on the automatic compensation function when switching fields of view, and update the automatic focus compensation table to achieve the best state.
It achieves a clear automatic focusing effect in the entire field of view under extreme conditions, and improves the human-machine efficiency of focus compensation, ensuring the best observation effect of the continuous zoom lens under different temperatures and fields of view.
Smart Images

Figure CN118540587A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of continuous zoom lens servo control, and in particular to a continuous zoom lens focus compensation method. Background Art
[0002] Continuous zoom lens control generally requires the use of limit values, fixed debugging position values and focal length compensation tables.
[0003] The continuous zoom lens operates in a safe range according to the pre-stored servo control parameters, and quickly matches the field of view with the focus compensation value, and finally realizes the parfocality of the continuous zoom lens in the full temperature range through electronic control. Generally, the focus compensation value is pre-calibrated data. Since the working temperature range of the continuous zoom lens is -45℃~70℃ (a sub-temperature range), the field of view will be divided into multiple field segments (assuming b) according to the lens' own parfocality. Therefore, there are a×b focus compensation values, and abnormal calibration points may appear (1 to 2 steps away from the clear point); at the same time, after the lens is impacted by force majeure, the mechanism coordination will have relative displacement. In both of the above situations, the focus compensation effect is not ideal. Therefore, it is necessary to manually adjust the focus compensation value to achieve a good observation effect, which leads to the contradiction between manual compensation and automatic compensation.
[0004] Since the parameter table is pre-calibrated data, users do not have the authority to change the calibration data. After the field of view is switched, the previous manual focus compensation value and the calibration value in the parameter table need to be traded off. Therefore, it is necessary to design a continuous zoom lens focus compensation memory function, so that in extreme cases, not only a single field of view can be clear through a manual focus adjustment, but also the continuous zoom field of view can be clear throughout the entire process. In order to achieve the above functions, the following problems must be solved: a) Solve the problem that the automatic focus compensation effect of continuous zoom lenses is not ideal under extreme conditions; b) After the unclear field of view is compensated by manual focus adjustment once, only the manual focus adjustment compensation value is used in the same power-on interval; c) After manual focus adjustment, temperature changes cause the automatic compensation value to replace the current manual focus compensation value, thereby deteriorating the observation effect of the continuous zoom lens; d) Improve the focus compensation ergonomics. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a focus compensation method for a continuous zoom lens, so as to solve the problem that the automatic focus compensation effect of the continuous zoom lens is not ideal under extreme conditions, and to improve the human-machine effect of focus compensation.
[0006] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.
[0007] A focus compensation method for a continuous zoom lens temporarily replaces an automatic focus compensation value read from a FLASH storage chip with a manual focus compensation value, turns off the automatic compensation function, controls a motor to move to the manual focus compensation value position, and turns on the automatic compensation function if the field of view is switched. If the automatic focus compensation effect is not good after the field of view is switched, manual focus compensation is continued.
[0008] Preferably, the method specifically comprises the following steps: A1. Read the auto focus compensation parameters stored in the FLASH memory chip and assign them to the auto focus compensation table; A2. When receiving a manual focus command, turn off the automatic focus function, set the manual focus compensation value target value, control the motor to move to the focus compensation value, and traverse the automatic focus compensation table array and update it according to the current temperature and field of view; A3. When receiving the field of view switching command, turn on the automatic focus function, control the zoom motor to move to the specified field of view position, and traverse the updated automatic focus compensation table to perform automatic focus compensation, otherwise the focus compensation will remain at the manual focus compensation value.
[0009] Preferably, in step A3, the updated automatic focus compensation table is traversed to search for focus compensation parameters according to the current temperature and the zoom code value.
[0010] Preferably, the parameters of the auto-focus compensation table in step A1 are Auto_compensate_table[i][j], wherein i∈[0,a] is the temperature segment index; j∈[0,b] is the field of view segment index; and the step length is 1.
[0011] Preferably, the method manually focuses all b calibrated field of view segments, and realizes a manual focus memory function in combination with an automatic focus state.
[0012] Due to the adoption of the above technical scheme, the technical progress achieved by the present invention is as follows.
[0013] The present invention temporarily replaces the automatic focus compensation value read from the FLASH storage chip with the manual focus compensation value, turns off the automatic compensation function, controls the motor to move to the manual focus compensation value position, and turns on the automatic compensation function if the field of view is switched. If the automatic focus compensation effect is not good after the field of view is switched, manual focus compensation is continued. Therefore, by manually focusing all b calibrated field of view segments, the optimal state of the automatic compensation effect of the full field of view at the current temperature can be achieved, which not only solves the problem that the automatic focus compensation effect of the continuous zoom lens is not ideal under extreme conditions, but also improves the human-machine efficacy of focus compensation. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1It is a hardware connection block diagram of the present invention; Figure 2 is a block diagram of the software system of the present invention; Figure 3 It is the PID control flow chart of the present invention; Figure 4 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0015] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0016] A focus compensation method for a continuous zoom lens temporarily replaces an automatic focus compensation value read from a FLASH storage chip with a manual focus compensation value, turns off the automatic compensation function, controls a motor to move to the manual focus compensation value position, and turns on the automatic compensation function if the field of view is switched. If the automatic focus compensation effect is not good after the field of view is switched, manual focus compensation is continued.
[0017] like Figure 1 As shown, the hardware of the present invention mainly consists of: A servo control board, a brushed DC motor with an encoder, and a variable-focus lens. The brushed DC motor with an encoder is connected to the servo control board through a connector. The connector includes two motor power supply lines, two encoder power supply lines, and two encoder signal lines (phase A and phase B). The motor controls the rotation of the variable-focus lens sleeve through gear transmission, thereby driving the lens group to perform linear motion in the sleeve. When the motor rotates, the two signal lines of the encoder output a set of orthogonal signals. The servo control board is an MCU board, which receives and analyzes the current absolute position of the motor through the encoder's dedicated interface.
[0018] like Figure 2 As shown, the software of the present invention mainly consists of: The motor drive interface is configured to realize the forward, reverse and speed control of the motor; the motor encoder interface is configured to realize the real-time acquisition of the absolute position of the motor; the position loop + speed loop PID cascade control algorithm is used to realize the self-check of the continuous zoom lens servo control system and manual focus memory control, and finally the motor is controlled to rotate to the target position according to the result calculated by the position loop + speed loop PID cascade control algorithm, such as Figure 3 shown.
[0019] like Figure 4 As shown, a focus compensation method for a continuous zoom lens of the present invention mainly includes updating an automatic focus compensation table with a manual focus compensation value and switching between manual focus and automatic focus states.
[0020] Let the auto-focus compensation table be Auto_compensate_table, and the auto-focus compensation table parameter be Auto_compensate_table[i][j], where i∈[0,a] is the temperature segment index, j∈[0,b] is the field of view segment index, and the step length is 1. The method specifically includes the following steps: A1. Read the auto focus compensation parameters stored in the FLASH memory chip and assign them to the auto focus compensation table Auto_compensate_table (two-dimensional array, global variable).
[0021] A2. When receiving a manual focus command, turn off the automatic focus function, set the manual focus compensation value target value, control the motor to move to the focus compensation value, and traverse the automatic focus compensation table Auto_compensate_table array and update it according to the current temperature and field of view.
[0022] In this step, the automatic focus function is turned off because under normal working conditions, the ambient temperature changes slowly and the manual focus compensation effect is optimal for a long time.
[0023] A3. When receiving the field of view switching command, turn on the automatic focus function, control the zoom motor to move to the specified field of view position, and traverse the updated automatic focus compensation table Auto_compensate_table to perform automatic focus compensation, otherwise the focus compensation is always maintained at the manual focus compensation value.
[0024] In this step, when switching the field of view, the automatic focus function is turned on in order to check whether the automatic focus compensation effect of other fields of view is optimal so as to perform manual focus compensation in time.
[0025] In this step, the updated automatic focus compensation table is traversed to search for focus compensation parameters according to the current temperature and zoom code value.
[0026] The present invention uses the above method to manually focus all b calibrated field of view segments clearly, and can achieve the best state of full field of view automatic compensation effect at the current temperature; and realize the manual focus memory function in combination with the automatic focusing state, thereby improving the human-machine efficiency.
[0027] When the present invention is in use, the automatic focus compensation value read from the FLASH storage chip is temporarily replaced by the manual focus compensation value, and the automatic compensation function is turned off at the same time, and the motor is controlled to move to the manual focus compensation value position. If the field of view is switched, the automatic compensation function is turned on again. If the automatic focus compensation effect is not good after the field of view is switched, the manual focus compensation is continued. Therefore, by manually focusing all b calibrated field of view segments, the optimal state of the automatic compensation effect of the full field of view at the current temperature can be achieved, which not only solves the problem that the automatic focus compensation effect of the continuous zoom lens is not ideal under extreme conditions, but also improves the human-machine efficacy of focus compensation.
Claims
1. A focusing compensation method for a continuous zoom lens, characterized in that: The method comprises: temporarily replacing the automatic focus compensation value read from the FLASH storage chip with the manual focus compensation value, turning off the automatic compensation function, controlling the motor to move to the manual focus compensation value position, and if the field of view is switched, turning on the automatic compensation function again; if the automatic focus compensation effect is not good after the field of view is switched, continuing the manual focus compensation.
2. A focus compensation method for a continuous zoom lens according to claim 1, characterized in that: The method specifically comprises the following steps: A1. Read the auto focus compensation parameters stored in the FLASH memory chip and assign them to the auto focus compensation table; A2. When receiving a manual focus command, turn off the automatic focus function, set the manual focus compensation value target value, control the motor to move to the focus compensation value, and traverse the automatic focus compensation table array and update it according to the current temperature and field of view; A3. When receiving the field of view switching command, turn on the automatic focus function, control the zoom motor to move to the specified field of view position, and traverse the updated automatic focus compensation table to perform automatic focus compensation, otherwise the focus compensation will remain at the manual focus compensation value.
3. A focus compensation method for a continuous zoom lens according to claim 2, characterized in that: In step A3, the updated automatic focus compensation table is traversed to search for focus compensation parameters according to the current temperature and the zoom code value.
4. The focus compensation method of a continuous zoom lens according to claim 2, characterized in that: The parameters of the auto-focus compensation table in step A1 are set to Auto_compensate_table[i][j], wherein i∈[0,a] is the temperature segment index; j∈[0,b] is the field of view segment index; and the step length is 1.
5. A focus compensation method for a continuous zoom lens according to claim 4, characterized in that: The method manually adjusts the focus of all b calibrated visual field segments to make them clear, and realizes the manual focusing memory function in combination with the automatic focusing state.
Citation Information
Patent Citations
Lens focusing method for stepping motor based on temperature compensation
CN107942601A
Focusing method and device, computer equipment and storage medium
CN109946911A
Infrared continuous zoom lens and infrared continuous zoom lens definition compensation method
CN111650718A
Temperature drift coefficient compensation method and device, lens, imaging device and movable platform
CN112567274A
Method for actively compensating image quality of continuous zoom lens in full temperature range
CN114660753A
Cited By
Focusing processing design method for compensation and focusing type continuous zooming imaging system
CN121477430A
A focusing processing design method for a compensation and focusing type continuous zoom imaging system
CN121477430B
