A real-time correction method for temperature-induced visual measurement error of camera lens

By setting a light source and a convex lens in front of the camera lens of the vision measuring instrument, the temperature scaling is calculated using the pixel changes of the light spot and the measurement point, the measurement error problem caused by temperature changes in the low-temperature environment is solved and the measurement accuracy is improved.

CN118464068BActive Publication Date: 2024-11-26FUSHIDA TECH (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410911629.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-26
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

There is currently a lack of effective solutions to the measurement error caused by the equivalent focal length changes caused by the camera lens temperature in a low-temperature environment.

Method used

By setting multiple light sources and convex lenses in front of the camera lens, the light spots and measurement points in four equally divided images in the imaging screen are formed, and the temperature scaling amount is calculated using the pixel coordinate changes of the light spots and measurement points, and the displacement amount of the measurement points is corrected. Achieve accurate correction of lens focal length.

Benefits of technology

It realizes accurate correction of the imaging picture scaling phenomenon caused by temperature changes, improves the camera measurement accuracy, simplifies the method, and has strong applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118464068B_ABST
    Figure CN118464068B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for real-time correction of temperature to visual measurement error of camera lens, the method comprising: a plurality of light sources are respectively arranged in the same plane in front of the lens of the camera to form light spots in the imaging picture; a plurality of convex lenses are arranged in the same plane between the lens of the camera and the light source to form measuring points in the imaging picture; a two-dimensional coordinate axis is established according to the resolution of the camera, and the initial pixel coordinates of four light spots and the initial pixel coordinates of four measuring points are determined; when the temperature changes, the real-time pixel coordinates of the light spots are respectively obtained and the picture temperature scaling amount and the displacement amount of the measuring points are calculated to obtain the real-time pixel coordinates of the measuring points. The present invention calculates the picture temperature scaling amount and the displacement amount of the measuring points through the pixel coordinates of the light spots before and after the temperature change, and then obtains the corrected real-time pixel coordinates of the measuring points, so as to realize accurate correction of the influence of temperature on the focal length of the lens, the method is simple, and it is conducive to improving the measurement accuracy of the camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual measurement technology, and in particular to a method and system for real-time correction of temperature-induced visual measurement errors of camera lenses. Background Art

[0002] Displacement monitoring is required before, during and after the construction of conventional structures. Visual measurement is a new automated measurement technology. Its main features include non-contact measurement, high precision, strong platform scalability, and good integration with artificial intelligence technology. It is gradually attracting many relevant people in engineering measurement. Its main principle is to continuously capture images and analyze the changes of feature points in the image over time. When the feature points move in the picture, the system accurately captures the pixel changes and converts the pixel changes into actual displacement through the object distance.

[0003] The main components of visual measurement are cameras and lenses, and the performance of cameras and lenses directly affects the reliability of measurement data. In practical applications, temperature is the most important influencing factor. This is very obvious when the machine is turned on and preheated. In a low-temperature outdoor environment, the visual measuring instrument began to observe after it was turned on. The horizontal axis is time, the vertical axis is displacement, and each curve represents the displacement of a measurement point over time. The data results continue to rise, with the change reaching 1.5mm in 10 minutes and 4mm in half an hour. However, the measured target actually has almost no displacement change. This phenomenon is an error caused by the change in equivalent focal length caused by the change in lens or camera temperature. In the imaging picture, the displacement direction of the measuring point always moves to the four sides, that is, the picture zooms. At present, there is no solution to this problem in the field of measurement. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and system for real-time correction of camera lens visual measurement error due to temperature in view of the above-mentioned deficiencies in the prior art, so as to eliminate the problem of image scaling caused by temperature changes.

[0005] The technical solution of the present invention to solve the above technical problem is as follows: A method for real-time correction of temperature to camera lens visual measurement error, comprising the following steps:

[0006] Using the principle of light source imaging, multiple light sources are coplanarly arranged in front of the camera lens, so that light spots are formed at the corners of four equally divided images in the imaging picture, wherein the plane where all the light sources are located is parallel to the plane where the camera lens is located;

[0007] A plurality of convex lenses are arranged coplanarly between the lens of the camera and the light source, so that measuring points are respectively formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lenses;

[0008] Establish a two-dimensional coordinate axis according to the resolution of the camera, and determine the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points;

[0009] When the temperature changes, the real-time pixel coordinates of the light spot are respectively obtained, and the image temperature scaling amount is calculated according to the real-time pixel coordinates of the light spot and the initial pixel coordinates;

[0010] The displacement of the measuring point is calculated according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and the real-time pixel coordinates of the measuring point are calculated according to the displacement of the measuring point.

[0011] The beneficial effects of the present invention are as follows: the real-time correction method of the temperature to the visual measurement error of the camera lens of the present invention calculates the picture temperature scaling amount through the pixel coordinates of the light spots respectively formed by the light source at the corner positions of the four equally divided pictures in the imaging picture before and after the temperature transformation, and then calculates the displacement of the measuring point according to the temperature scaling amount and the initial pixel coordinates of the measuring point, and then obtains the real-time pixel coordinates of the corrected measuring point, so as to realize the accurate correction of the influence of temperature on the focal length of the lens, and the method is simple, convenient and practical, and is conducive to improving the measurement accuracy of the camera.

[0012] On the basis of the above technical solution, the present invention can also be improved as follows:

[0013] Further: the distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens.

[0014] The beneficial effect of the above further solution is: by setting the distance between the plane where the light source is located and the center point of the camera lens to twice the focal length of the camera lens, it can ensure normal imaging of the camera lens and avoid excessive imaging size.

[0015] Further: the step of calculating the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot specifically includes the following steps:

[0016] The calculation formula for the horizontal scaling amount σx is:

[0017]

[0018] Vertical zoom amount The calculation formula is:

[0019]

[0020] Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

[0021] The beneficial effect of the above further scheme is that the horizontal displacement of the light spots in the four equally divided images in the imaging picture and the number of pixels in the length direction and the number of pixels in the width direction of the camera lens resolution can be accurately calculated to accurately calculate the horizontal temperature scaling amount and the vertical scaling amount of the picture, thereby facilitating the horizontal scaling correction and vertical scaling correction of the picture.

[0022] Further: the step of calculating the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling value specifically comprises the following steps:

[0023] The calculation formula for the horizontal displacement of the measuring point is:

[0024]

[0025] The calculation formula for the vertical displacement of the measuring point is:

[0026]

[0027] in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

[0028] The beneficial effect of the above further scheme is that the horizontal displacement and vertical displacement of the measuring point can be accurately calculated through the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and then the real-time pixel coordinates of the measuring point are calculated according to the displacement of the measuring point to complete the correction of the measuring point coordinates.

[0029] The present invention also provides a real-time correction system for temperature to camera lens visual measurement error, comprising a camera, multiple light sources, multiple convex lenses and a main control module;

[0030] The plurality of light sources are respectively arranged in the same plane in front of the camera lens, and light spots are respectively formed at the corners of four equally divided images in the imaging image by using the light source imaging principle, wherein the plane where all the light sources are located is arranged parallel to the plane where the camera lens is located;

[0031] The plurality of convex lenses are respectively coplanarly arranged between the lens of the camera and the light source, so that measuring points are respectively formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lens;

[0032] The main control module is used to establish a two-dimensional coordinate axis according to the resolution of the camera, and determine the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points;

[0033] The main control module is further used to obtain the real-time pixel coordinates of the light spot when the temperature changes, and calculate the screen temperature scaling amount according to the real-time pixel coordinates of the light spot and the initial pixel coordinates;

[0034] The main control module is further used to calculate the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and calculate the real-time pixel coordinates of the measuring point according to the displacement of the measuring point.

[0035] The temperature-induced visual measurement error correction system of the present invention calculates the temperature scaling of the image through the pixel coordinates of the light spots respectively formed by the light source at the corner positions of four equally divided images in the imaging image before and after the temperature transformation, and then calculates the displacement of the measuring point according to the temperature scaling and the initial pixel coordinates of the measuring point, thereby obtaining the corrected real-time pixel coordinates of the measuring point, and realizing the accurate correction of the influence of temperature on the focal length of the lens. The method is simple, convenient and practical, and is conducive to improving the measurement accuracy of the camera.

[0036] Further: the distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens.

[0037] The beneficial effect of the above further solution is: by setting the distance between the plane where the light source is located and the center point of the camera lens to twice the focal length of the camera lens, it can ensure normal imaging of the camera lens and avoid excessive imaging size.

[0038] Further: the main control module calculates the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot in a specific implementation as follows:

[0039] The calculation formula for the horizontal scaling amount σx is:

[0040]

[0041] Vertical zoom amount The calculation formula is:

[0042]

[0043] Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

[0044] The beneficial effect of the above further scheme is that the horizontal displacement of the light spots in the four equally divided images in the imaging picture and the number of pixels in the length direction and the number of pixels in the width direction of the camera lens resolution can be accurately calculated to accurately calculate the horizontal temperature scaling amount and the vertical scaling amount of the picture, thereby facilitating the horizontal scaling correction and vertical scaling correction of the picture.

[0045] Further: the main control module calculates the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, specifically including the following steps:

[0046] The calculation formula for the horizontal displacement of the measuring point is:

[0047]

[0048] The calculation formula for the vertical displacement of the measuring point is:

[0049]

[0050] in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

[0051] The beneficial effect of the above further scheme is that the horizontal displacement and vertical displacement of the measuring point can be accurately calculated through the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and then the real-time pixel coordinates of the measuring point are calculated according to the displacement of the measuring point to complete the correction of the measuring point coordinates.

[0052] The present invention also provides a computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the method for real-time correction of the temperature to the visual measurement error of the camera lens is implemented.

[0053] The present invention also provides a device for real-time correction of temperature to camera lens visual measurement error, comprising a communication interface, a memory, a communication bus and a processor, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0054] The memory is used to store computer programs;

[0055] The processor is used to implement the steps of a method for real-time correction of the visual measurement error of a camera lens due to temperature when executing the program stored in the memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flow chart of a method for real-time correction of temperature-induced camera lens visual measurement error according to an embodiment of the present invention;

[0057] Figure 2 A schematic diagram of an imaging screen of a camera lens according to an embodiment of the present invention;

[0058] Figure 3 It is a schematic diagram of the principle of a system for real-time correction of camera lens visual measurement error due to temperature according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0060] like Figure 1 and Figure 2 As shown, a method for real-time correction of temperature-induced camera lens visual measurement error comprises the following steps:

[0061] S1: Using the principle of light source imaging, multiple light sources are coplanarly arranged in front of the camera lens, so that light spots are formed at the corners of four equally divided images in the imaging picture, wherein the planes where all the light sources are located are parallel to the plane where the camera lens is located;

[0062] S2: multiple convex lenses are arranged coplanarly between the camera lens and the light source, so that measuring points are formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lens;

[0063] S3: establishing a two-dimensional coordinate axis according to the resolution of the camera, and determining the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points;

[0064] In the embodiment of the present invention, a camera with a resolution of 4024×3036 is taken as an example for description.

[0065] S4: when the temperature changes, respectively obtaining the real-time pixel coordinates of the light spot, and calculating the image temperature scaling amount according to the real-time pixel coordinates of the light spot and the initial pixel coordinates;

[0066] S5: calculating the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and calculating the real-time pixel coordinates of the measuring point according to the displacement of the measuring point.

[0067] The method for real-time correction of the visual measurement error of a camera lens due to temperature of the present invention calculates the temperature scaling of the image through the pixel coordinates of the light spots respectively formed by the light source at the corner positions of four equally divided images in the imaging image before and after the temperature transformation, and then calculates the displacement of the measuring point according to the temperature scaling and the initial pixel coordinates of the measuring point, thereby obtaining the real-time pixel coordinates of the corrected measuring point, and realizing accurate correction of the influence of temperature on the focal length of the lens. The method is simple, convenient and practical, and is conducive to improving the measurement accuracy of the camera.

[0068] In one or more embodiments of the present invention, the distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens. By setting the distance between the plane where the light source is located and the center point of the camera lens to twice the focal length of the camera lens, it is possible to ensure that the camera lens forms an image normally and avoid an image size that is too large.

[0069] In practice, four light sources are evenly arranged to form a light spot in each equally divided screen. The light source is an LED point light source. The four LED point light sources are placed in front of the lens in a 2×2 array so that the four light sources are imaged in the four corners of the screen. The plane where the four light sources are located is parallel to the camera CMOS, and the distance between the plane where the light sources are located and the center point of the lens is twice the focal length. Four convex lenses are set between the light source and the lens. The surface formed by the four convex lenses is parallel to the plane where the four light sources are located, and the vertical distance is the focal length of the convex lenses. The horizontal scaling correction is achieved by the average value of the distance change between the 1# spot and the 4# spot, and the distance change between the 2# spot and the 3# spot; the vertical scaling correction is achieved by the average value of the distance change between the 1# spot and the 2# spot, and the distance change between the 3# spot and the 4# spot.

[0070] The initial pixel coordinates of the four light spots are:

[0071] 1# Light spot: (x 1. y 1)

[0072] 2# Light spot: ( x 2. y 2)

[0073] 3# Light spot: ( x 3. y 3)

[0074] 4# Light spot: ( x 4. y 4)

[0075] in, x 1. x 2 are both less than 2012, x 3. x 4 are all greater than 2012, y 1. y 4 are all less than 1518, y 2. y 3 are all greater than 1518.

[0076] Divide the screen into four equal parts: upper left, lower left, lower right, and upper right. There are four measuring points in the screen: 1#, 2#, 3#, and 4#. They are located in the four equal parts, and their pixel coordinates are:

[0077] 1# measuring point: ( p 1. q 1)

[0078] 2# measuring point: ( p 2. q 2)

[0079] 3# measuring point: ( p 3. q 3)

[0080] 4# measuring point: ( p 4. q 4)

[0081] When the temperature changes,

[0082] The 1# spot and the 4# spot produced Δ x 1 and Δ x 4 horizontal displacement (in pixels);

[0083] The 2# and 3# light spots produced Δ x 2 and Δ x 3 horizontal displacement (unit: pixel);

[0084] The 1# spot and the 4# spot produced Δ y 1 and Δy 4 vertical displacement (in pixels);

[0085] The 2# and 3# light spots produced Δ y 2 and Δ y 3 vertical displacement (in pixels).

[0086] In one or more embodiments of the present invention, the step of calculating the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot specifically includes the following steps:

[0087] The calculation formula for the horizontal scaling amount σx is:

[0088]

[0089] Vertical zoom amount The calculation formula is:

[0090]

[0091] Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

[0092] By using the horizontal displacement of the light spots in the four equally divided images in the imaging picture and the number of pixels in the length direction and the number of pixels in the width direction of the camera lens resolution, the horizontal temperature scaling amount and the vertical scaling amount of the picture can be accurately calculated, thereby facilitating the horizontal scaling correction and the vertical scaling correction of the picture.

[0093] In one or more embodiments of the present invention, the step of calculating the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount specifically comprises the following steps:

[0094] The calculation formula for the horizontal displacement of the measuring point is:

[0095]

[0096] The calculation formula for the vertical displacement of the measuring point is:

[0097]

[0098] in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

[0099] The horizontal displacement and vertical displacement of the measuring point can be accurately calculated through the initial pixel coordinates of the measuring point and the screen temperature scaling, and then the real-time pixel coordinates of the measuring point are calculated according to the displacement of the measuring point to complete the correction of the measuring point coordinates.

[0100] In actual applications, the screen contains more than 4 measuring points, and measuring point 1#, measuring point 2#, measuring point 3#, and measuring point 4# respectively represent multiple measuring points in four equal areas of the imaging screen.

[0101] like Figure 3 As shown, the present invention also provides a real-time correction system for temperature-induced visual measurement errors of camera lenses, comprising a camera, multiple light sources, multiple convex lenses and a main control module;

[0102] The plurality of light sources are respectively arranged in the same plane in front of the camera lens, and light spots are respectively formed at the corners of four equally divided images in the imaging image by using the light source imaging principle, wherein the plane where all the light sources are located is arranged parallel to the plane where the camera lens is located;

[0103] The plurality of convex lenses are respectively coplanarly arranged between the lens of the camera and the light source, so that measuring points are respectively formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lens;

[0104] The main control module is used to establish a two-dimensional coordinate axis according to the resolution of the camera, and determine the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points;

[0105] The main control module is further used to obtain the real-time pixel coordinates of the light spot when the temperature changes, and calculate the screen temperature scaling amount according to the real-time pixel coordinates of the light spot and the initial pixel coordinates;

[0106] The main control module is further used to calculate the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and calculate the real-time pixel coordinates of the measuring point according to the displacement of the measuring point.

[0107] The temperature-induced visual measurement error correction system of the present invention calculates the temperature scaling of the image through the pixel coordinates of the light spots respectively formed by the light source at the corner positions of four equally divided images in the imaging image before and after the temperature transformation, and then calculates the displacement of the measuring point according to the temperature scaling and the initial pixel coordinates of the measuring point, thereby obtaining the corrected real-time pixel coordinates of the measuring point, and realizing the accurate correction of the influence of temperature on the focal length of the lens. The method is simple, convenient and practical, and is conducive to improving the measurement accuracy of the camera.

[0108] In one or more embodiments of the present invention, the distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens.

[0109] By setting the distance between the plane where the light source is located and the center point of the camera lens to twice the focal length of the camera lens, normal imaging of the camera lens can be ensured while preventing the image size from being too large.

[0110] In one or more embodiments of the present invention, the main control module calculates the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot as follows:

[0111] The calculation formula for the horizontal scaling amount σx is:

[0112]

[0113] Vertical zoom amount The calculation formula is:

[0114]

[0115] Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

[0116] By using the horizontal displacement of the light spots in the four equally divided images in the imaging picture and the number of pixels in the length direction and the number of pixels in the width direction of the camera lens resolution, the horizontal temperature scaling amount and the vertical scaling amount of the picture can be accurately calculated, thereby facilitating the horizontal scaling correction and the vertical scaling correction of the picture.

[0117] In one or more embodiments of the present invention, the main control module calculates the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, specifically comprising the following steps:

[0118] The calculation formula for the horizontal displacement of the measuring point is:

[0119]

[0120] The calculation formula for the vertical displacement of the measuring point is:

[0121]

[0122] in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

[0123] The horizontal displacement and vertical displacement of the measuring point can be accurately calculated through the initial pixel coordinates of the measuring point and the screen temperature scaling, and then the real-time pixel coordinates of the measuring point are calculated according to the displacement of the measuring point to complete the correction of the measuring point coordinates.

[0124] The present invention also provides a computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the method for real-time correction of the temperature to the visual measurement error of the camera lens is implemented.

[0125] The present invention also provides a device for real-time correction of temperature to camera lens visual measurement error, comprising a communication interface, a memory, a communication bus and a processor, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0126] The memory is used to store computer programs;

[0127] The processor is used to implement the steps of a method for real-time correction of the visual measurement error of a camera lens due to temperature when executing the program stored in the memory.

[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A real-time correction method for temperature to camera lens visual measurement error, It is characterized in that The steps include: Using the principle of light source imaging, multiple light sources are coplanarly arranged in front of the camera lens, so that light spots are formed at the corners of four equally divided images in the imaging picture, wherein the plane where all the light sources are located is parallel to the plane where the camera lens is located; A plurality of convex lenses are arranged coplanarly between the lens of the camera and the light source, so that measuring points are respectively formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lenses; Establish a two-dimensional coordinate axis according to the resolution of the camera, and determine the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points; When the temperature changes, the real-time pixel coordinates of the light spot are respectively obtained, and the image temperature scaling amount is calculated according to the real-time pixel coordinates of the light spot and the initial pixel coordinates; Calculating the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and calculating the real-time pixel coordinates of the measuring point according to the displacement of the measuring point; The step of calculating the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot specifically includes the following steps: The calculation formula for the horizontal scaling amount σx is: ; Vertical zoom amount The calculation formula is: ; Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

2. The real-time correction method for the temperature to camera lens visual measurement error according to claim 1, It is characterized in that The distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens.

3. The real-time correction method for the temperature to camera lens visual measurement error according to claim 2, It is characterized in that The step of calculating the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling value specifically comprises the following steps: The calculation formula for the horizontal displacement of the measuring point is: ; The calculation formula for the vertical displacement of the measuring point is: ; in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

4. A real-time correction system for temperature-induced visual measurement errors of camera lenses. It is characterized in that It includes a camera, multiple light sources, multiple convex lenses and a main control module; The plurality of light sources are respectively arranged in the same plane in front of the camera lens, and light spots are respectively formed at the corners of four equally divided images in the imaging image by using the light source imaging principle, wherein the plane where all the light sources are located is arranged parallel to the plane where the camera lens is located; The plurality of convex lenses are respectively coplanarly arranged between the lens of the camera and the light source, so that measuring points are respectively formed in four equally divided pictures of the imaging picture, wherein the plane where all the convex lenses are located is parallel to the plane where all the light sources are located, and the distance between the two is equal to the focal length of the convex lens; The main control module is used to establish a two-dimensional coordinate axis according to the resolution of the camera, and determine the initial pixel coordinates of the four light spots and the initial pixel coordinates of the four measuring points; The main control module is further used to obtain the real-time pixel coordinates of the light spot when the temperature changes, and calculate the screen temperature scaling amount according to the real-time pixel coordinates of the light spot and the initial pixel coordinates; The main control module is further used to calculate the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, and calculate the real-time pixel coordinates of the measuring point according to the displacement of the measuring point; The specific implementation of the main control module calculating the screen temperature scaling amount according to the real-time pixel coordinates and the initial pixel coordinates of the light spot is as follows: The calculation formula for the horizontal scaling amount σx is: ; Vertical zoom amount The calculation formula is: ; Among them, Δx1, Δx2, Δx3, and Δx4 are respectively the horizontal displacements of the light spots in the four equally divided pictures in the imaging picture, and Δy1, Δy2, Δy3, and Δy4 are respectively the vertical displacements of the light spots in the four equally divided pictures in the imaging picture. X is the number of pixels in the length direction, Y The number of pixels in the width direction.

5. The real-time correction system for the temperature-to-camera lens visual measurement error according to claim 4, It is characterized in that The distance between the plane where the light source is located and the center point of the camera lens is twice the focal length of the camera lens.

6. The real-time correction system for temperature to camera lens visual measurement error according to claim 4, It is characterized in that The main control module calculates the displacement of the measuring point according to the initial pixel coordinates of the measuring point and the screen temperature scaling amount, specifically comprising the following steps: The calculation formula for the horizontal displacement of the measuring point is: ; The calculation formula for the vertical displacement of the measuring point is: ; in, are respectively the horizontal coordinates of the measuring points in the four equally divided screens in the imaging screen, are the ordinates of the measuring points in the four equally divided images in the imaging image, The horizontal temperature scaling of the screen. It is the vertical temperature scaling of the screen.

7. A computer-readable storage medium storing a computer program, Features: When the computer program is executed by a processor, the method for real-time correction of the temperature-induced visual measurement error of a camera lens as described in any one of claims 1 to 3 is implemented.

8. A device for real-time correction of temperature-induced visual measurement errors of camera lenses. Features: It includes a communication interface, a memory, a communication bus and a processor, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of the method for real-time correction of temperature-induced camera lens visual measurement error as described in any one of claims 1 to 3 when executing the program stored in the memory.