Fusion correction method based on automatic focusing double-light holder

Through the fusion correction method of the auto-focus dual-light gimbal, the calibration and linear relationship are used to calculate the scene distance, realizing the alignment of pixel columns and image fusion of any scene, solving the limitations of fixed distance and pixel row alignment in the existing technology, and improving improve the accuracy of data fusion.

CN118657694APending Publication Date: 2024-09-17成都圭目机器人有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410583015.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing dual-light gimbal fusion correction method cannot achieve alignment of pixel columns, and can only handle image fusion at a fixed distance, which cannot adapt to the correction of all scenes.

Method used

Through the auto-focus dual-light gimbal, a fixed distance is selected for calibration, visible light and thermal imaging images are collected, the intrinsic and extrinsic parameters of the camera are obtained, and the scene distance is calculated using a linear relationship, pixel-level fusion correction is performed, and three-dimensional point conversion and Projection to achieve precise fusion of any scene.

Benefits of technology

It achieves precise alignment of pixel columns and image fusion correction in any scene, overcomes fixed distance limitations, and improves the data fusion accuracy of dual-light PTZ in multi-field applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657694A
    Figure CN118657694A
Patent Text Reader

Abstract

The invention discloses a fusion correction method based on an automatic focusing double-light pan-tilt, which comprises the following steps: S1, selecting a fixed distance, performing automatic focusing on the double-light pan-tilt, fixing the focal length, and recording the zoom value of the pan-tilt; s2, collecting visible light and thermal imaging images of a plurality of calibration plates according to the thermal imaging checkerboard calibration plates; s3, internal parameters of the visible light camera and internal parameters of the infrared camera at the moment are obtained through the calibration board image, and external parameters between the two are calculated; and S4, carrying out fusion correction on visible light and thermal imaging. The method comprises the following steps of: collecting visible light and thermal imaging images of a plurality of calibration plates after calibrating a certain fixed distance by utilizing the characteristics of automatic focusing of cameras and linear change of focal length after focusing and an environment scene distance, respectively acquiring internal parameters of a visible light camera and an infrared camera at the moment, and calculating external parameters between the visible light camera and the infrared camera; and finally, fusion correction is carried out on visible light and thermal imaging, so that a scene distance in an actual use process is restored, and accurate fusion correction of any scene is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of sensor calibration, and in particular to a fusion correction method based on an auto-focus dual-light gimbal. Background Art

[0002] The dual-light gimbal is a self-mechanical motion device equipped with both visible light and thermal imaging cameras. How to fuse and correct the visible light image and infrared thermal imaging image at the pixel level in the dual-light gimbal is one of the core research contents in the field of sensor data fusion. In various scenes that require the use of visible light images and infrared thermal imaging images at the same time, the two need to be fused and corrected at the pixel level. The fusion correction of the dual-light gimbal has a wide range of applications in many fields, such as coal mining, forest fire prevention, industrial monitoring, environmental protection and other industries that need to monitor the scene environment and temperature. Most of the existing dual-light gimbal fusion correction methods can only achieve pixel row alignment, but not column alignment, or can correspond to a certain distance, but cannot complete fusion correction for all scenes, and there are certain limitations. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art that it is unable to achieve column alignment or can only process a certain fixed distance, and to provide a fusion correction method based on an auto-focus dual-light gimbal.

[0004] The purpose of the present invention is achieved through the following technical solution: A fusion correction method based on an autofocus dual-light gimbal, comprising the following steps:

[0005] S1: Select a fixed distance, the dual-light gimbal performs autofocus, fixes the focal length, and records the zoom value of the gimbal;

[0006] S2: Collect several visible light and thermal imaging images of the calibration plate according to the thermal imaging checkerboard calibration plate;

[0007] S3: Obtain the internal parameters of the visible light camera and the infrared camera at this time through the calibration plate image, and calculate the external parameters between the two;

[0008] S4: Fusion correction of visible light and thermal imaging.

[0009] Preferably, in step S2, twenty visible light and thermal imaging images of the calibration plate are collected.

[0010] Preferably, in step S3, the intrinsic parameters of the visible light camera and the intrinsic parameters of the infrared camera are obtained by using matlab or opencv tools, and the extrinsic parameters between the two are calculated.

[0011] Preferably, step S4 further includes the following steps:

[0012] S41: Calculate the scene distance d1 at this time according to the linear relationship between the zoom value and the distance.

[0013]

[0014] Among them, f0 is the initial zoom value of the gimbal, d0 is the distance between the camera and the wall, and f1 is the stable zoom value of the gimbal;

[0015] S42: A pixel coordinate (x v ,y v ) is transformed into a three-dimensional point P in the distortion space vd (x vd ,y vd ,z vd ),

[0016]

[0017]

[0018] z vd =d1;

[0019] Among them, c vx is the center point offset of the visible light camera in the x direction, k vx is the focal length of the visible light camera in the x direction, c vy is the center point offset of the visible light camera in the y direction, k vy is the focal length of the visible light camera in the y direction;

[0020] S43: The three-dimensional point P vd Dedistortion, get the three-dimensional point P vu (x vu ,y vu ,z vu ),

[0021]

[0022]

[0023]

[0024] x vu =Sx vd ;

[0025] y vu =Sy vd ;

[0026] z vu =z vd ;

[0027] Among them, θ dis the distortion distance of the visible light camera, θ is the distortion distance after correction of the visible light camera, d v1 d v2 d v3 and d v4 are the four distortion parameters of the visible light camera, S is the projection ratio of the visible light camera;

[0028] S44: Convert P in the visible light camera coordinate system vu Transformed into the infrared camera coordinate system, the three-dimensional coordinate is P tu (x tu ,y tu ,z tu ),

[0029] P tu =R*P vu +T;

[0030] Where R is the rotation from the visible light camera to the infrared camera, and T is the translation from the visible light camera to the infrared camera;

[0031] S45: Project it onto the image of the infrared camera to obtain the corresponding pixel coordinates (x t ,y t ), perform fusion correction,

[0032]

[0033]

[0034]

[0035] x t =k tx r cosφ+c tx ;

[0036] y t =k tyr sinφ+c ty ;

[0037] Among them, θ t is the projection angle of the infrared camera, r is the equivalent distortion distance of the infrared camera, d t1 d t2 d t3 and d t4 are the four distortion coefficients of the infrared camera, φ is the imaging angle of the infrared camera, k tx is the focal length of the thermal imaging camera in the x direction, k ty is the focal length of the thermal imaging camera in the y direction, c tx is the center point offset of the thermal imaging camera in the x direction, c ty The center point offset of the thermal imaging camera in the y direction.

[0038] The present invention has the following advantages: by utilizing the characteristics of automatic focus of the camera and the linear change of focal length and environmental scene distance after focusing, the present invention collects visible light and thermal imaging images of several calibration plates after calibration at a fixed distance, obtains the internal parameters of the visible light camera and the internal parameters of the infrared camera at this time, calculates the external parameters between the two, and finally fuses and corrects the visible light and thermal imaging, thereby restoring the scene distance to the actual use process, and achieving accurate fusion correction of any scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the process of fusion correction method;

[0040] Figure 2 Schematic diagram of the contrast image after fusion correction. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 here can be arranged and designed in various different configurations.

[0042] 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 claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0044] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0045] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use, or the positions or positional relationships commonly understood by those skilled in the art, which 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, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0046] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0047] In this embodiment, if Figure 1 and Figure 2 As shown, a fusion correction method based on an autofocus dual-light gimbal includes the following steps:

[0048] S1: Select a fixed distance, the dual-light gimbal performs autofocus, fixes the focal length, and records the zoom value of the gimbal;

[0049] S2: Collect several visible light and thermal imaging images of the calibration plate according to the thermal imaging checkerboard calibration plate;

[0050] S3: Obtain the internal parameters of the visible light camera and the infrared camera at this time through the calibration plate image, and calculate the external parameters between the two;

[0051] S4: Fusion correction of visible light and thermal imaging. By taking advantage of the camera's autofocus and the linear change of focal length and environmental scene distance after focusing, after calibration at a fixed distance, several visible light and thermal imaging images of the calibration plate are collected, and the internal parameters of the visible light camera and the infrared camera at this time are obtained respectively, and the external parameters between the two are calculated. Finally, the visible light and thermal imaging are fused and corrected, thereby restoring the scene distance in actual use, and achieving accurate fusion correction of any scene.

[0052] Furthermore, in step S2, twenty visible light and thermal imaging images of the calibration plate are collected. Specifically, the main purpose of using the thermal imaging checkerboard calibration plate is to facilitate the correct identification of corner points during thermal imaging, so as to be used for subsequent acquisition of internal and external parameters.

[0053] Furthermore, in step S3, the internal parameters of the visible light camera and the infrared camera are obtained by using matlab or opencv tools, and the external parameters between the two are calculated. Specifically, step S3 is completed by existing methods, which will not be described here.

[0054] In this embodiment, step S4 further includes the following steps:

[0055] S41: Calculate the scene distance d1 at this time according to the linear relationship between the zoom value and the distance.

[0056]

[0057] Among them, f0 is the initial zoom value of the gimbal, d0 is the distance between the camera and the wall, and f1 is the stable zoom value of the gimbal. Specifically, in actual use, autofocus is maintained. When the zoom value is stable, visible light and thermal imaging can be fused and corrected. In this embodiment, the criterion for determining whether the zoom value is stable is that when the zoom value changes by less than 0.1 within 2 seconds, it is considered that the autofocus process has been completed, and the zoom value at this time is the stable zoom value of the gimbal.

[0058] S42: A pixel coordinate (x v ,y v ) is transformed into a three-dimensional point P in the distortion space vd (x vd ,y vd ,z vd ),

[0059]

[0060]

[0061] z vd =d1;

[0062] Among them, c vx is the center point offset of the visible light camera in the x direction, k vx is the focal length of the visible light camera in the x direction, c vy is the center point offset of the visible light camera in the y direction, k vy is the focal length of the visible light camera in the y direction;

[0063] S43: The three-dimensional point P vd Dedistortion, get the three-dimensional point P vu (xvu ,y vu ,z vu ),

[0064]

[0065]

[0066]

[0067] x vu =Sx vd ;

[0068] y vu =Sy vd ;

[0069] z vu =z vd ;

[0070] Among them, θ d is the distortion distance of the visible light camera, θ is the distortion distance after correction of the visible light camera, d v1 d v2 d v3 and d v4 are the four distortion parameters of the visible light camera, S is the projection ratio of the visible light camera;

[0071] S44: Convert P in the visible light camera coordinate system vu Transformed into the infrared camera coordinate system, the three-dimensional coordinate is P tu (x tu ,y tu ,z tu ),

[0072] P tu =R*P vu +T;

[0073] Where R is the rotation from the visible light camera to the infrared camera, and T is the translation from the visible light camera to the infrared camera;

[0074] S45: Project it onto the image of the infrared camera to obtain the corresponding pixel coordinates (x t ,y t ), perform fusion correction,

[0075]

[0076]

[0077]

[0078] x t =k txr cosφ+c tx ;

[0079] y t =k ty r sinφ+c ty ;

[0080] Among them, θ t is the projection angle of the infrared camera, r is the equivalent distortion distance of the infrared camera, d t1 d t2 d t3 and d t4 are the four distortion coefficients of the infrared camera, φ is the imaging angle of the infrared camera, k tx is the focal length of the thermal imaging camera in the x direction, k ty is the focal length of the thermal imaging camera in the y direction, c tx is the center point offset of the thermal imaging camera in the x direction, c ty The center point offset of the thermal imaging camera in the y direction.

[0081] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A fusion correction method based on an autofocus dual-light gimbal, characterized in that: The following steps are involved: S1: Select a fixed distance, the dual-light gimbal performs autofocus, fixes the focal length, and records the zoom value of the gimbal; S2: Collect several visible light and thermal imaging images of the calibration plate according to the thermal imaging checkerboard calibration plate; S3: Obtain the internal parameters of the visible light camera and the infrared camera at this time through the calibration plate image, and calculate the external parameters between the two; S4: Fusion correction of visible light and thermal imaging.

2. The fusion correction method based on the auto-focus dual-light gimbal according to claim 1, characterized in that: In the step S2, twenty visible light and thermal imaging images of the calibration plate are collected.

3. The fusion correction method based on the auto-focus dual-light gimbal according to claim 2, characterized in that: In step S3, the internal parameters of the visible light camera and the infrared camera are obtained by using matlab or opencv tools, and the external parameters between the two are calculated.

4. The fusion correction method based on the auto-focus dual-light gimbal according to claim 3, characterized in that: The step S4 further includes the following steps: S41: Calculate the scene distance d1 at this time according to the linear relationship between the zoom value and the distance. Among them, f0 is the initial zoom value of the gimbal, d0 is the distance between the camera and the wall, and f1 is the stable zoom value of the gimbal; S42: A pixel coordinate (x v ,y v ) is transformed into a three-dimensional point P in the distortion space vd (x vd ,y vd ,z vd ), with vd =d1; Among them, c vx is the center point offset of the visible light camera in the x direction, l vx is the focal length of the visible light camera in the x direction, c vy is the center point offset of the visible light camera in the y direction, k vy is the focal length of the visible light camera in the y direction; S43: The three-dimensional point P vd Dedistortion, get the three-dimensional point P vu (x vu ,y vu ,z vu ), x vu =Sx vd ; the vu =Sy vd ; With vu =from vd ; Among them, θ d is the distortion distance of the visible light camera, θ is the distortion distance after correction of the visible light camera, d v1 d v2 d v3 and d v4 are the four distortion parameters of the visible light camera, S is the projection ratio of the visible light camera; S44: Convert P in the visible light camera coordinate system vu Transformed into the infrared camera coordinate system, the three-dimensional coordinate is P tu (x tu ,y tu ,z tu ), P tu =R*P vu +T; Where R is the rotation from the visible light camera to the infrared camera, and T is the translation from the visible light camera to the infrared camera; S45: Project it onto the image of the infrared camera to obtain the corresponding pixel coordinates (x t ,y t ), perform fusion correction, x t =k tx r cosφ+c tx ; y t =k ty r sinφ+c ty ; Among them, θ t is the projection angle of the infrared camera, r is the equivalent distortion distance of the infrared camera, d t1 d t2 d t3 and d t4 are the four distortion coefficients of the infrared camera, φ is the imaging angle of the infrared camera, k tx is the focal length of the thermal imaging camera in the x direction, k ty is the focal length of the thermal imaging camera in the y direction, c tx is the center point offset of the thermal imaging camera in the x direction, c ty The center point offset of the thermal imaging camera in the y direction.