Zoom lens correction method, device, storage medium and equipment

By correcting the zero-point deviation of the zoom motor and focus motor during monitoring equipment initialization, the problem of inaccurate coordinates of the zoom lens caused by mechanical errors is solved, ensuring the accuracy of the zoom process, avoiding out-of-focus, and improving the accuracy of lens use.

CN120512601BActive Publication Date: 2025-09-23CHENGDU POWER VIEW SCIENCE & TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511007241.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-09-23
Estimated Expiration
2045-07-22

AI Technical Summary

Technical Problem

Zoom lenses may have mechanical errors during production, resulting in inaccurate coordinate zero points, which in turn may cause out-of-focus and inability to focus at maximum magnification.

Method used

When the monitoring equipment is initialized, the zero point deviation values ​​of the zoom motor and the focus motor are determined, and the motors are corrected according to these deviation values ​​so that they rotate to the actual coordinate zero point, eliminating the coordinate zero point error.

Benefits of technology

By correcting the zero point deviation of the zoom motor and focus motor, the accuracy of the zoom process is ensured, the occurrence of out-of-focus phenomenon is avoided, and the accuracy of lens use is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120512601B_ABST
    Figure CN120512601B_ABST
Patent Text Reader

Abstract

The present invention provides a zoom lens correction method, apparatus, storage medium, and device. When a monitoring device is initialized, it is determined whether the monitoring device records a valid zero-point deviation value, wherein the zero-point deviation value includes the zoom motor zero-point deviation value and the focus motor zero-point deviation value. If so, the zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point. The zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that the coordinate zero point corresponding to the zoom motor and the coordinate zero point corresponding to the focus motor are aligned, eliminating the coordinate zero point error, ensuring the accuracy of subsequent zooming, and avoiding the occurrence of out-of-focus during the zooming process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of lens focusing, and in particular to a zoom lens correction method, device, storage medium and equipment. Background Art

[0002] With the explosive growth of the surveillance industry and the rapid development of technologies such as image processing and video surveillance, the demand for zoom lenses in various application scenarios is becoming increasingly obvious, and the requirements for large-magnification telephoto products are also becoming increasingly higher.

[0003] However, zoom lenses may have mechanical errors during production, which can cause the zero point of the zoom lens to be inaccurate. During the zoom process, this error in the zero point may cause out-of-focus conditions and even cause the lens to lose focus at maximum magnification.

[0004] How to overcome the above problems has become a difficult problem that those skilled in the art are concerned about. Summary of the Invention

[0005] The object of the present invention is to provide a zoom lens correction method, device, storage medium and equipment to improve the above-mentioned problems.

[0006] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:

[0007] In a first aspect, an embodiment of the present invention provides a zoom lens correction method, which is applied to a monitoring device, wherein the monitoring device includes a zoom motor and a focus motor. The method includes:

[0008] When the monitoring device is initialized, determining whether the monitoring device records a valid zero-point deviation value, wherein the zero-point deviation value includes a zoom motor zero-point deviation value and a focus motor zero-point deviation value;

[0009] If so, the zoom motor is corrected according to the zero point deviation value of the zoom motor, and the focus motor is corrected according to the zero point deviation value of the focus motor, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point.

[0010] In a second aspect, an embodiment of the present invention provides a zoom lens correction device, which is applied to a monitoring device, wherein the monitoring device includes a zoom motor and a focus motor, and the device includes:

[0011] a first processing unit, configured to determine whether the monitoring device records a valid zero-point deviation value when the monitoring device is initialized, wherein the zero-point deviation value includes a zoom motor zero-point deviation value and a focus motor zero-point deviation value;

[0012] The second processing unit is used to correct the zoom motor according to the zoom motor zero point deviation value and correct the focus motor according to the focus motor zero point deviation value when the monitoring device records a valid zero point deviation value, so that the zoom motor and the focus motor both rotate to the actual coordinate zero point.

[0013] In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, which implements the above method when executed by a processor.

[0014] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store one or more programs; when the one or more programs are executed by the processor, the above method is implemented.

[0015] Compared to the prior art, the zoom lens correction method, apparatus, storage medium, and device provided by the embodiments of the present invention determine whether the monitoring device records a valid zero-point deviation value when the monitoring device is initialized, wherein the zero-point deviation value includes the zoom motor zero-point deviation value and the focus motor zero-point deviation value; if so, the zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point. The zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that the coordinate zero point corresponding to the zoom motor and the coordinate zero point corresponding to the focus motor are aligned, eliminating the coordinate zero point error, ensuring the accuracy of subsequent zooming, and avoiding the occurrence of out-of-focus during the zooming process.

[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A schematic structural diagram of an electronic device provided by an embodiment of the present invention.

[0019] Figure 2 A schematic flow chart of a zoom lens correction method provided by an embodiment of the present invention.

[0020] Figure 3This is a schematic diagram of a process for obtaining the zero-point deviation value of a zoom motor and a zero-point deviation value of a focus motor of a monitoring device provided by an embodiment of the present invention.

[0021] Figure 4 The second schematic diagram of the process of obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device provided by the embodiment of the present invention.

[0022] Figure 5 A schematic diagram of the units of a zoom lens correction device provided by an embodiment of the present invention.

[0023] In the figure: 10 - processor; 11 - memory; 12 - bus; 13 - communication interface; 501 - first processing unit; 502 - second processing unit. DETAILED DESCRIPTION

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.

[0026] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are used only to distinguish the description and should not be understood as indicating or implying relative importance.

[0027] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0028] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the inventive product is usually placed when in use. They are only for the convenience of describing the present invention 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. Therefore, they should not be understood as limiting the present invention.

[0029] In the description of the present invention, it should also be noted that, unless otherwise expressly specified or limited, the terms "disposed" and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections, or electrical connections; direct connections, indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0030] The following embodiments of the present invention are described in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.

[0031] An embodiment of the present invention provides an electronic device, which may be a monitoring device. The monitoring device includes a zoom motor and a focus motor. Figure 1 , a schematic diagram of the structure of an electronic device. The electronic device includes a processor 10, a memory 11, and a bus 12. The processor 10 and the memory 11 are connected via the bus 12. The processor 10 is used to execute executable modules stored in the memory 11, such as computer programs.

[0032] Processor 10 can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the zoom lens correction method can be completed by hardware integrated logic circuits or software instructions in processor 10. The aforementioned processor 10 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0033] The memory 11 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0034] The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Figure 1 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus 12 or one type of bus 12.

[0035] Memory 11 is used to store programs, such as a program for a zoom lens correction device. The zoom lens correction device includes at least one software functional module, which can be stored in memory 11 in the form of software or firmware, or embedded in the operating system (OS) of the electronic device. Upon receiving an execution instruction, processor 10 executes the program to implement the zoom lens correction method.

[0036] Possibly, the electronic device provided by the embodiment of the present invention further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.

[0037] It should be understood that Figure 1 The structure shown is only a schematic diagram of a portion of the electronic device. The electronic device may also include Figure 1More or fewer components than shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0038] The zoom lens correction method provided by the embodiment of the present invention can be applied to, but not limited to, Figure 1 For detailed procedures, please refer to the electronic equipment shown in Figure 2 The zoom lens correction method includes: S31 and S32, which are described in detail as follows.

[0039] S31: When the monitoring device is initialized, determine whether the monitoring device records a valid zero-point deviation value. If so, execute S32; if not, end and skip zoom lens correction.

[0040] The zero point deviation value includes the zoom motor zero point deviation value and the focus motor zero point deviation value;

[0041] S32, correcting the zoom motor according to the zero point deviation value of the zoom motor, and correcting the focus motor according to the zero point deviation value of the focus motor, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point.

[0042] Specifically, according to the zoom motor zero point deviation value Controls the number of steps corresponding to the rotation of the zoom motor, and the rotation direction and the zero point deviation value of the zoom motor The positive and negative correlation, when △Z is negative, it rotates in the reverse direction, when △Z is positive, it rotates in the forward direction, according to the zero point deviation value of the focus motor Controls the number of steps corresponding to the rotation of the focus motor, and the rotation direction and the zero point deviation value of the focus motor The positive and negative of △F are related. When △F is negative, it rotates in the opposite direction, and when △F is positive, it rotates in the positive direction.

[0043] In the zoom lens correction method provided in an embodiment of the present invention, the zoom motor is corrected according to the zero point deviation value of the zoom motor, and the focus motor is corrected according to the zero point deviation value of the focus motor, so that the coordinate zero point corresponding to the zoom motor and the coordinate zero point corresponding to the focus motor are aligned, the coordinate zero point error is eliminated, the accuracy of subsequent zooming is guaranteed, and the occurrence of out-of-focus during the zooming process is avoided.

[0044] It should be understood that accurately obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor is the key to eliminating the coordinate zero-point error. To this end, regarding how to obtain the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device, the embodiment of the present invention also provides an optional implementation method, please refer to Figure 3 , Figure 3The present invention provides a first schematic diagram of a process for obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of a monitoring device. The process for obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device includes: S12 and S13, which are described in detail as follows.

[0045] S12: Acquire a first focus value and a first zoom value.

[0046] Among them, the first focus value is the actual focus value of the focus motor when the monitoring device collects the minimum magnification image that meets the clarity requirement, and the first zoom value is the actual zoom value of the zoom motor when the monitoring device collects the maximum magnification image that meets the clarity requirement; when the monitoring device collects the maximum magnification image and the minimum magnification image, the collection position and the collection posture are the same, and the collection distance between the monitoring device and the target object is greater than the preset distance threshold, and the distance threshold can be but is not limited to 500M, which is equivalent to a target object at infinity.

[0047] It should be understood that both the maximum-magnification image and the minimum-magnification image include the target object, and the above clarity requirements refer to the clarity requirements for the target object in the image. To facilitate identification, the target object can also be defined as an identification object that includes at least two contour areas, with each area accounting for no less than 30%, and adjacent contour areas of different colors.

[0048] The following is an example of the process of obtaining the first focus value and the first zoom value.

[0049] After controlling the zoom motor in the monitoring device to adjust to the minimum focal length (corresponding to the minimum magnification), fix the zoom motor and adjust the focus motor in the monitoring device (fine-tune) to obtain the minimum magnification image that meets the clarity requirements (climbing algorithm requirements). At this time, the actual focus value of the focus motor is the first focus value. .

[0050] After the zoom motor and focus motor in the monitoring device are controlled to be adjusted to the maximum focal length, the focus motor is fixed and does not move. The zoom motor in the monitoring device is adjusted (fine-tuned) to obtain the maximum magnification image that meets the clarity requirement (climbing algorithm requirement). At this time, the actual zoom value of the zoom motor is the first zoom value. .

[0051] For example, the horizontal axis of the zoom tracking theoretical curve represents the zoom value Z of the zoom motor, and the vertical axis of the zoom tracking theoretical curve represents the focus value F of the focus motor. The zoom value increases from right to left, and the focus value increases from bottom to top. In the zoom tracking theoretical curve, the rightmost point (Z0, F0) corresponds to the theoretical minimum magnification image. Indicates the theoretical zoom value of the zoom motor when the monitoring device collects the minimum magnification image in the zoom tracking theoretical curve. Indicates the theoretical focus value of the focus motor when the monitoring device collects the minimum magnification image in the zoom tracking theoretical curve (in the zoom tracking theoretical curve and The leftmost point (Z2, F2) corresponds to the theoretical maximum magnification image. Indicates the theoretical zoom value of the zoom motor when the monitoring device captures the maximum magnification image in the zoom tracking theoretical curve (i.e., the second zoom value in this article). Indicates the theoretical focus value of the focus motor when the monitoring device collects the maximum magnification image in the zoom tracking theoretical curve (in the zoom tracking theoretical curve and correspond).

[0052] It should be understood that the theoretical zoom tracking curve represents the theoretical correspondence between the zoom value Z and the focus value F when the image is clearest. Based on the theoretical zoom tracking curve between the zoom motor and the focus motor in the monitoring device, it can be seen that at the minimum magnification side, when the focus value F changes, the change in the zoom value Z is more sensitive. Therefore, a correction of the focus value F can be performed at the minimum magnification side. This means that the actual focus value of the focus motor when the monitoring device captures an image at the minimum magnification that meets the required clarity is obtained, and this is used as the first focus value. At the maximum magnification side, when the zoom value Z changes, the change in the focus value F is more sensitive. Therefore, a correction of the zoom value Z can be performed at the maximum magnification side. This means that the actual zoom value of the zoom motor when the monitoring device captures an image at the maximum magnification that meets the required clarity is obtained, and this is used as the first zoom value.

[0053] S13, determine the zoom motor zero point deviation value and the focus motor zero point deviation value of the monitoring device according to the first focus value, the first zoom value, the second focus value, the second zoom value and the zoom focus theoretical conversion coefficient, wherein the second focus value is the theoretical focus value of the focus motor when the monitoring device captures the minimum magnification image, and the second zoom value is the theoretical zoom value of the zoom motor when the monitoring device captures the maximum magnification image.

[0054] Optionally, the formula for the zoom motor zero point deviation value is:

[0055]

[0056] in, Indicates the zero point deviation value of the zoom motor. represents the first zoom value, Indicates the second zoom value, represents the first focus value, represents the second focus value, Indicates the first zoom focus theoretical conversion coefficient, Indicates the second zoom focus theoretical conversion coefficient.

[0057] Optionally, the formula for the focus motor zero point deviation value is:

[0058]

[0059] in, Indicates the zero point deviation value of the focus motor. represents the first zoom value, Indicates the second zoom value, represents the first focus value, represents the second focus value, Indicates the first zoom focus theoretical conversion coefficient, Indicates the second zoom focus theoretical conversion coefficient.

[0060] Please refer to Figure 4 , Figure 4 Schematic diagram of the second process of obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device provided by the embodiment of the present invention. Optionally, the process of obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device further includes: S11, which is described in detail as follows.

[0061] S11 , determining a first zoom and focus theoretical conversion coefficient and a second zoom and focus theoretical conversion coefficient according to a zoom tracking theoretical curve between the zoom motor and the focus motor.

[0062] It should be understood that the second focus value is the theoretical focus value of the focus motor when the monitoring device captures the minimum magnification image, and the second zoom value is the theoretical zoom value of the zoom motor when the monitoring device captures the maximum magnification image, both of which can be determined by the zoom tracking theoretical curve.

[0063] It should be understood that the zoom tracking theoretical curve almost satisfies a linear function relationship within a certain range of the zoom value Z and the focus value F on the minimum magnification side and the maximum magnification side. It can be equivalently understood as F=αZ+C1 on the minimum magnification side and Z=βF+C2 on the maximum magnification side, and then the formula for the first zoom and focus theoretical conversion coefficient and the formula for the second zoom and focus theoretical conversion coefficient can be obtained.

[0064] Optionally, the formula for the first zoom focus theoretical conversion coefficient is:

[0065]

[0066] in, Indicates the first zoom focus theoretical conversion coefficient, Indicates the theoretical zoom value of the zoom motor when the monitoring device collects the minimum magnification image in the zoom tracking theoretical curve. Indicates the theoretical focus value of the focus motor when the monitoring device collects the minimum magnification image in the zoom tracking theoretical curve (that is, the second focus value mentioned above, in the zoom tracking theoretical curve and correspond), For more than , and the zoom value beyond the preset range, Indicates the zoom tracking theory curve The corresponding focus value.

[0067] The preset range is 100-200 zoom values ​​(corresponding to the number of zoom steps), that is, - If the value is greater than 100 but less than 200 as much as possible, the curve between Z0 and Z1 will be closer to a linear function, making the correction more accurate.

[0068] Optionally, the formula for the second zoom focus theoretical conversion coefficient is:

[0069]

[0070] in, Indicates the second zoom focus theoretical conversion coefficient, Indicates the theoretical zoom value of the zoom motor when the monitoring device captures the maximum magnification image in the zoom tracking theoretical curve (i.e. the second zoom value mentioned above). Indicates the theoretical focus value of the focus motor when the monitoring device collects the maximum magnification image in the zoom tracking theoretical curve (in the zoom tracking theoretical curve and correspond), To lag behind , and the lag value is within the preset range of zoom values, Indicates the zoom tracking theory curve The corresponding focus value.

[0071] The preset range is 100-200 zoom values ​​(corresponding to the number of zoom steps), that is, - If the value is greater than 100 but less than 200 as much as possible, the curve between Z2 and Z3 will be closer to a linear function, making the correction more accurate.

[0072] While some error occurs in the S11 approximate linear function used to obtain the zero-point offset values ​​for the zoom and focus motors of surveillance equipment, this error is limited to decimals, while the final lens offset value must be an integer. Therefore, this error has no impact on calibration, allowing precise calculation of the zero-point offset values ​​for the zoom and focus motors. Furthermore, repeated calibration is unnecessary, significantly reducing calibration time and improving production testing efficiency by 90%.

[0073] See also Figure 5 , Figure 5 An embodiment of the present invention provides a zoom lens correction device. Optionally, the zoom lens correction device is applied to the electronic device described above.

[0074] The zoom lens correction device includes a first processing unit 501 and a second processing unit 502 .

[0075] The first processing unit 501 is configured to determine whether the monitoring device records a valid zero-point offset value when the monitoring device is initialized, wherein the zero-point offset value includes a zoom motor zero-point offset value and a focus motor zero-point offset value;

[0076] The second processing unit 502 is used to correct the zoom motor according to the zoom motor zero point deviation value and correct the focus motor according to the focus motor zero point deviation value when the monitoring device records a valid zero point deviation value, so that the zoom motor and the focus motor both rotate to the actual coordinate zero point.

[0077] It should be noted that the zoom lens correction device provided in this embodiment can implement the method flow shown in the above method flow embodiment to achieve the corresponding technical effects. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiment.

[0078] Embodiments of the present invention further provide a storage medium storing computer instructions and programs that, when read and executed, execute the zoom lens correction method described above. The storage medium may include memory, flash memory, registers, or a combination thereof.

[0079] The following provides an electronic device, which may be a monitoring device. Figure 1 As shown, the above-described zoom lens correction method can be implemented. Specifically, the electronic device includes: a processor 10, a memory 11, and a bus 12. The processor 10 may be a CPU. The memory 11 is used to store one or more programs. When the one or more programs are executed by the processor 10, the zoom lens correction method of the above-described embodiment is performed.

[0080] In summary, the embodiments of the present invention provide a zoom lens correction method, apparatus, storage medium, and device. When the monitoring device is initialized, it is determined whether the monitoring device records a valid zero-point deviation value, wherein the zero-point deviation value includes the zoom motor zero-point deviation value and the focus motor zero-point deviation value. If so, the zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point. The zoom motor is corrected according to the zoom motor zero-point deviation value, and the focus motor is corrected according to the focus motor zero-point deviation value, so that the coordinate zero point corresponding to the zoom motor and the coordinate zero point corresponding to the focus motor are aligned, eliminating the coordinate zero point error, ensuring the accuracy of subsequent zooming, and avoiding the occurrence of defocus during the zooming process.

[0081] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

[0082] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims, not the foregoing description, and all variations within the meaning and range of equivalents of the claims are intended to be included therein. Any reference sign in a claim should not be construed as limiting the claim to which it relates.

Claims

1. A zoom lens correction method, characterized in that: Applied to a monitoring device, the monitoring device includes a zoom motor and a focus motor, and the method includes: When the monitoring device is initialized, determining whether the monitoring device records a valid zero-point deviation value, wherein the zero-point deviation value includes a zoom motor zero-point deviation value and a focus motor zero-point deviation value; If so, correcting the zoom motor according to the zero-point deviation value of the zoom motor, and correcting the focus motor according to the zero-point deviation value of the focus motor, so that both the zoom motor and the focus motor rotate to the actual coordinate zero point; The formula for the zero point deviation value of the zoom motor and the formula for the zero point deviation value of the focus motor are: in, Indicates the zero point deviation value of the zoom motor, represents the first zoom value, Indicates the second zoom value, represents the first focus value, represents the second focus value, Indicates the first zoom focus theoretical conversion coefficient, Indicates the second zoom focus theoretical conversion coefficient, It represents the zero point deviation value of the focus motor. The first focus value is the actual focus value of the focus motor when the monitoring device collects the minimum magnification image that meets the clarity requirement. The first zoom value is the actual zoom value of the zoom motor when the monitoring device collects the maximum magnification image that meets the clarity requirement. The second focus value is the theoretical focus value of the focus motor when the monitoring device collects the minimum magnification image. The second zoom value is the theoretical zoom value of the zoom motor when the monitoring device collects the maximum magnification image. The first zoom focus theoretical conversion coefficient is the conversion coefficient from the zoom value to the focus value when collecting a small magnification linear segment image. The second zoom focus theoretical conversion coefficient is the conversion coefficient from the focus value to the zoom value when collecting a large magnification linear segment image.

2. The zoom lens correction method according to claim 1, wherein: The process of obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device includes: Obtaining a first focus value and a first zoom value; Wherein, when the monitoring device collects the maximum magnification image and the minimum magnification image, the collection position and the collection posture are the same, and the collection distance between the monitoring device and the target object is greater than a preset distance threshold; A zoom motor zero point deviation value and a focus motor zero point deviation value of the monitoring device are determined according to the first focus value, the first zoom value, the second focus value, the second zoom value and a zoom-focus theoretical conversion coefficient.

3. The zoom lens correction method according to claim 2, wherein: The process of obtaining the zero-point deviation value of the zoom motor and the zero-point deviation value of the focus motor of the monitoring device further includes: According to a zoom tracking theoretical curve between the zoom motor and the focus motor, a first zoom and focus theoretical conversion coefficient and a second zoom and focus theoretical conversion coefficient are determined.

4. The zoom lens correction method according to claim 3, wherein: The formula for the first zoom focus theoretical conversion coefficient is: in, Indicates the theoretical zoom value of the zoom motor when the monitoring device captures a small-magnification linear segment image as described in the zoom tracking theoretical curve. Indicates the theoretical focus value of the focus motor when the monitoring device captures a small-magnification linear segment image as described in the zoom tracking theoretical curve. For more than , and the zoom value beyond the preset range, Indicates the zoom tracking theory curve The corresponding focus value.

5. The zoom lens correction method according to claim 3, wherein: The formula for the second zoom focus theoretical conversion coefficient is: in, Indicates the theoretical zoom value of the zoom motor when the monitoring device captures a large-scale linear segment image as described in the zoom tracking theoretical curve. Indicates the theoretical focus value of the focus motor when the monitoring device captures a large-scale linear segment image as described in the zoom tracking theoretical curve. To lag behind , and the lag value is within the preset range of zoom values, Indicates the zoom tracking theory curve The corresponding focus value.

6. A zoom lens correction device, characterized in that: Applied to a monitoring device, the monitoring device includes a zoom motor and a focus motor, and the device includes: a first processing unit, configured to determine whether the monitoring device records a valid zero-point deviation value when the monitoring device is initialized, wherein the zero-point deviation value includes a zoom motor zero-point deviation value and a focus motor zero-point deviation value; a second processing unit, configured to, when the monitoring device records a valid zero point deviation value, correct the zoom motor according to the zoom motor zero point deviation value, and correct the focus motor according to the focus motor zero point deviation value, so that both the zoom motor and the focus motor rotate to an actual coordinate zero point; The formula for the zero point deviation value of the zoom motor and the formula for the zero point deviation value of the focus motor are: in, Indicates the zero point deviation value of the zoom motor, represents the first zoom value, Indicates the second zoom value, represents the first focus value, represents the second focus value, Indicates the first zoom focus theoretical conversion coefficient, Indicates the second zoom focus theoretical conversion coefficient, It represents the zero point deviation value of the focus motor. The first focus value is the actual focus value of the focus motor when the monitoring device collects the minimum magnification image that meets the clarity requirement. The first zoom value is the actual zoom value of the zoom motor when the monitoring device collects the maximum magnification image that meets the clarity requirement. The second focus value is the theoretical focus value of the focus motor when the monitoring device collects the minimum magnification image. The second zoom value is the theoretical zoom value of the zoom motor when the monitoring device collects the maximum magnification image. The first zoom focus theoretical conversion coefficient is the conversion coefficient from the zoom value to the focus value when collecting a small magnification linear segment image. The second zoom focus theoretical conversion coefficient is the conversion coefficient from the focus value to the zoom value when collecting a large magnification linear segment image.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: a processor and a memory, the memory being configured to store one or more programs; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Lens calibration method and device, electronic device and storage medium

    CN114900683A