Visible light pulse signal and infrared image fusion and fusion model training method

Through the texture reconstruction of visible light spatiotemporal pulse signals and the enhancement of infrared images, combined with the double-layer minimum-maximum mutual information loss function, the problem of insufficient imaging performance in extreme lighting and high-speed motion scenes in the existing technology is solved, and high-quality visible light and Infrared image fusion.

CN118537236APending Publication Date: 2024-08-23PEKING UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410672843.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing visible light and infrared fusion imaging devices have insufficient imaging performance in extreme lighting and high-speed motion scenes, resulting in motion blur and uneven exposure.

Method used

Visible light spatiotemporal pulse signals are used for texture reconstruction, a robust set of visible light images is extracted, and they are enhanced and fused with infrared images. The two-layer minimum-maximum mutual information loss function is used to train the image fusion model to generate high-quality fused images.

Benefits of technology

High-quality image fusion is achieved under extreme lighting and motion blur conditions, enhancing texture details in infrared images and improving imaging performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537236A
    Figure CN118537236A
Patent Text Reader

Abstract

The invention relates to a visible light pulse signal and infrared image fusion and fusion model training method, which utilizes the characteristics that visible light texture extracted by a visible light time-space pulse signal is not influenced by motion blur and can keep stable even under extreme illumination conditions, and the characteristic that the infrared image is not sensitive to illumination. The infrared image is enhanced by adopting a visible light image set after texture extraction of the visible light space-time pulse signal, so that the infrared image has more texture details, the enhanced infrared image and the visible light image determined based on the visible light space-time pulse signal are fused, and the image quality is improved by combining the complementary characteristics of the two images. A high-quality image of a scene can be obtained even under the conditions of extreme illumination and motion blur.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a method for training a fusion model of a visible light pulse signal and an infrared image. Background Art

[0002] Visible light and infrared fusion imaging refers to using a visible light camera and an infrared camera to simultaneously shoot the same target scene, and fusing the captured visible light and infrared data into the same image.

[0003] Current visible light and infrared fusion imaging devices generally use a frame-based visible light camera to capture visible light images, and an infrared camera to capture infrared images at the same time. However, frame-based visible light cameras usually have a low frame rate (less than 100 frames per second) and a relatively low dynamic range (about 60dB). Therefore, in scenes with dynamic motion, these frame-based cameras may experience motion blur due to limited frame rate. In addition, when the ambient light intensity of the scene is unevenly distributed, the lower dynamic range of the frame-based camera may lead to overexposure or underexposure. At the same time, infrared cameras are also affected by motion blur due to insufficient frame rate. These factors limit the imaging performance of existing visible light and infrared fusion imaging devices, making them often unable to cope with challenging and complex scenes such as extreme lighting and high-speed motion.

[0004] Therefore, how to achieve the fusion of visible light and infrared data in challenging and complex scenarios such as extreme lighting and high-speed motion is a problem that needs to be solved at present. Summary of the invention

[0005] The present invention provides a method for fusing visible light pulse signals and infrared images and training a fusion model, so as to realize the fusion of visible light and infrared data in challenging and complex scenes such as extreme illumination and high-speed motion.

[0006] A method for fusing a visible light pulse signal and an infrared image, the method comprising: a method for fusing a visible light pulse signal and an infrared image, characterized in that it comprises: obtaining an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image; performing texture reconstruction on the visible light spatiotemporal pulse signal by time segmentation to determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal; based on the set of visible light images, performing image enhancement on the original infrared image to obtain an enhanced infrared image; fusing a target visible light image in the set of visible light images with the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0007] In one embodiment, a target visible light image in the visible light image set and the enhanced infrared image are fused to obtain a fused image, including: inputting the target visible light image and the enhanced infrared image into a pre-trained image fusion model to obtain a fused image; the image fusion model is trained based on a preset double-layer minimum-maximum mutual information loss function; wherein the double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image, respectively.

[0008] In one embodiment, the texture reconstruction of the visible light space-time pulse signal by time segmentation to determine the visible light image set corresponding to the visible light space-time pulse signal includes: dividing the visible light space-time pulse signal into a plurality of event features by time average; wherein each event feature of the plurality of event features includes the light intensity change corresponding to each pixel position in the corresponding time period; inputting each event feature into a pre-trained image texture reconstruction model to determine the visible light image corresponding to each event feature; the visible light image includes the texture feature of the light intensity change in each event feature; and determining the visible light image set based on the visible light images corresponding to each event feature.

[0009] In one of the embodiments, the image enhancement is performed on the original infrared image based on the visible light image set to obtain an enhanced infrared image, including: inputting the visible light image set into a preset deblurring model in chronological order to determine the spatiotemporal features of the visible light image set; wherein the spatiotemporal features include texture features of the images in the visible light image set and temporal features of the images in the visible light image set; inputting the coding features of the original infrared image and the spatiotemporal features of the visible light image set into a preset enhancement model to obtain an enhanced infrared image; compared with the original infrared image, the enhanced infrared image removes motion blur and includes texture detail features.

[0010] In one embodiment, the preset deblurring model includes at least two convolution loop structures, and the visible light image set is input into the deblurring module of the preset cross-modal image enhancement model in chronological order to determine the spatiotemporal features of the visible light image set, including: inputting each visible light image in the visible light image set into the first convolution loop structure in the preset deblurring model in forward chronological order to determine the first spatiotemporal features of the visible light image set; and inputting each visible light image in the visible light image set into the second convolution loop structure in the preset deblurring model in reverse chronological order to determine the second spatiotemporal features of the visible light image set; and splicing the first spatiotemporal features and the second spatiotemporal features to obtain the spatiotemporal features.

[0011] In one embodiment, the preset enhancement model includes a feature extraction module and an attention module, and the coding features of the original infrared image and the spatiotemporal features of the visible light image set are input into the preset enhancement model to obtain an enhanced infrared image, including: inputting the coding features of the original infrared image into the query feature extraction module of the feature extraction module to obtain the image features of the original infrared image; and inputting the spatiotemporal features of the visible light image set into the key feature extraction module and the value feature extraction module of the feature extraction module respectively to extract the key features and value features of the spatiotemporal features respectively; using the image features as the query features in the attention module, and using the key features and value features of the spatiotemporal features as the key features and value features in the attention module respectively, to determine the output of the attention module; and determining the enhanced infrared image based on the output of the attention module and the coding features of the original infrared image.

[0012] The present invention also provides a training method for a fusion model of a visible light pulse signal and an infrared image, the method comprising: obtaining an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set; training a fusion model of the visible light pulse signal and the infrared image based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function; wherein the fusion model of the visible light pulse signal and the infrared image is used to determine a target visible light image, an enhanced infrared image, and a fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method described in any of the above embodiments; wherein the preset double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image, respectively.

[0013] The present invention also provides a device for fusing visible light pulse signals and infrared images, the device comprising: an acquisition module, used to acquire an original infrared image and a visible light space-time pulse signal corresponding to the original infrared image; a reconstruction module, used to perform texture reconstruction on the visible light space-time pulse signal by time segments, and determine a set of visible light images corresponding to the visible light space-time pulse signal; an enhancement module, used to perform image enhancement on the original infrared image based on the visible light image set to obtain an enhanced infrared image; a fusion module, used to fuse a target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0014] The present invention also provides a training device for a fusion model of a visible light pulse signal and an infrared image, the device comprising: an acquisition module, used to acquire an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set; a training module, used to train an image fusion model based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function; wherein the image fusion model is used to determine a target visible light image, an enhanced infrared image, and a fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method described in any one of the embodiments; wherein the preset double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image, respectively.

[0015] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned visible light pulse signal and infrared image fusion method or the visible light pulse signal and infrared image fusion model training method.

[0016] The present invention also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the above-mentioned method for fusing visible light pulse signals and infrared images or the method for training a fusion model of visible light pulse signals and infrared images.

[0017] The above-mentioned fusion of visible light pulse signals and infrared images and the training method of the fusion model utilize the fact that the visible light texture extracted by the visible light spatiotemporal pulse signal is not affected by motion blur and can remain robust even under extreme lighting conditions, as well as the fact that infrared images are insensitive to lighting. The infrared image is enhanced by using a set of visible light images after the texture is extracted by the visible light spatiotemporal pulse signal, so that the infrared image has more texture details. The enhanced infrared image is fused with the visible light image determined based on the visible light spatiotemporal pulse signal, and the complementary characteristics of the two are combined to achieve a high-quality image of a scene even in extreme lighting and motion blur. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 One of the flow charts of the method for fusing visible light pulse signals and infrared images provided by the present invention;

[0019] Figure 2 The second flowchart of the method for fusing visible light pulse signals and infrared images provided by the present invention;

[0020] Figure 3 The third flowchart of the method for fusing visible light pulse signals and infrared images provided by the present invention;

[0021] Figure 4 A schematic diagram of the framework of the infrared image enhancement method provided by the present invention;

[0022] Figure 5 A schematic diagram of the framework of image fusion provided by the present invention;

[0023] Figure 6 A schematic diagram of the framework of the mutual information optimization process provided by the present invention;

[0024] Figure 7 A schematic diagram of comparative experimental results provided by the present invention;

[0025] Figure 8 A schematic diagram of the framework of the device for fusing visible light pulse signals and infrared images provided by the present invention;

[0026] Fig. 9 A schematic diagram of the framework of a training device for a fusion model of visible light pulse signals and infrared images provided by the present invention;

[0027] Fig.10 A schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0029] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0030] To facilitate understanding, the inventive concept of the present invention is first explained.

[0031] Visible light data contains rich scene textures but is sensitive to changes in illumination. On the other hand, infrared images capture infrared spectral information, which is not affected by illumination but may lose texture details. Given this complementarity, the goal of visible light and infrared fusion imaging is to combine the advantages of the two modalities to produce a spectrally fused image that can fully describe the scene, which has a wide range of applications in robotic vision, surveillance, and remote sensing.

[0032] Current visible light and infrared fusion imaging devices generally use a frame-based visible light camera to capture visible light images, and an infrared camera to capture infrared images at the same time. However, frame-based visible light cameras usually have a low frame rate (less than 100 frames per second) and a relatively low dynamic range (about 60dB). Therefore, in scenes with dynamic motion, these frame-based cameras may experience motion blur due to limited frame rate. In addition, when the ambient light intensity of the scene is unevenly distributed, the lower dynamic range of the frame-based camera may lead to overexposure or underexposure. At the same time, infrared cameras are also affected by motion blur due to insufficient frame rate. These factors limit the imaging performance of existing visible light and infrared fusion imaging devices, making them often unable to cope with challenging and complex scenes such as extreme lighting and high-speed motion.

[0033] The neuromorphic camera is a new type of visible light camera that mimics the biological retina. Unlike traditional frame-based visible light cameras that generate complete images at fixed time intervals, neuromorphic cameras only generate signals when they detect brightness changes in the scene or when the accumulated absolute value of brightness exceeds a set threshold. This sampling mechanism gives neuromorphic visual sensors the advantages of high temporal resolution, high dynamic range, and low data redundancy, and is increasingly used in the field of computer vision, such as autonomous driving, image reconstruction, and target detection. Despite these advantages, the pulse signals generated by neuromorphic cameras are quite different from traditional visible light images and cannot be used by existing visible light-infrared fusion methods. Therefore, how to design a visible light-infrared fusion imaging device based on a neuromorphic camera, achieve high-quality imaging in complex scenes, and expand the application scope of visible light-infrared fusion imaging is an urgent and meaningful technical problem to be solved.

[0034] The present invention utilizes the characteristics that the visible light texture extracted by the visible light space-time pulse signal is not affected by motion blur and can remain robust even under extreme lighting conditions, and the characteristic that the infrared image is insensitive to lighting. The infrared image is enhanced by using a set of visible light images after the texture is extracted by the visible light space-time pulse signal, so that the infrared image has more texture details. The enhanced infrared image is fused with the visible light image determined based on the visible light space-time pulse signal, and the complementary characteristics of the two are combined to achieve a high-quality image of a scene even in extreme lighting and motion blur.

[0035] The following describes the fusion of visible light pulse signals and infrared images and the training method of the fusion model provided by the present invention in conjunction with the accompanying drawings.

[0036] Figure 1 The flowchart of the method for fusing a visible light pulse signal and an infrared image provided by the present invention is shown in FIG. It can be understood that the method for fusing a visible light pulse signal and an infrared image can be performed by a device for fusing a visible light pulse signal and an infrared image. The device for fusing a visible light pulse signal and an infrared image can be a computer device.

[0037] like Figure 1 As shown, in one embodiment, a method for fusing a visible light pulse signal and an infrared image is proposed, which may specifically include the following steps:

[0038] Step 110: Acquire an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image.

[0039] The original infrared image is an infrared band signal such as near infrared, medium wave infrared, and long wave infrared of the object in the target scene; the visible light spatiotemporal pulse signal corresponding to the original infrared image can be a visible light spatiotemporal pulse signal corresponding to a preset time period including the exposure time of the original infrared image. The visible light spatiotemporal pulse signal is used to feedback the light intensity change of each pixel point in the target scene and the time of the light intensity change.

[0040] Specifically, the original infrared image can be acquired through an infrared camera, and the visible light spatiotemporal pulse signal corresponding to the original infrared image can be acquired through a neuromorphic camera (neuromorphic visual sensor).

[0041] In one embodiment, the infrared camera includes a long-wave infrared camera, which is a camera specially designed to detect far infrared bands. Unlike visible light cameras, long-wave infrared cameras can capture far infrared radiation, usually operating in the wavelength range of 3 to 14 microns. Long-wave infrared cameras use this thermal radiation to generate images, allowing observation and photography even in completely dark environments. Long-wave infrared cameras include but are not limited to cooled long-wave infrared cameras and uncooled long-wave infrared cameras.

[0042] It can be understood that since the visible light spatiotemporal pulse signal does not have a fixed exposure time, the visible light spatiotemporal pulse signal is usually generated when the pixel brightness changes. Therefore, the original infrared image can be enhanced after texture feature extraction based on the visible light spatiotemporal pulse signal during the original infrared image acquisition process (the original infrared image exposure time) or before and after the original infrared image acquisition. Therefore, in one embodiment, the visible light spatiotemporal pulse signal corresponding to the preset time period including the exposure time of the original infrared image can be obtained in differential form through a dynamic vision sensor; or, the visible light spatiotemporal pulse signal corresponding to the preset time period including the exposure time of the original infrared image can be obtained in integral form through an ultra-high-speed full-time vision sensor.

[0043] It can be understood that the spatiotemporal pulse signals of the target object are collected by the dynamic vision sensor. The dynamic vision sensor uses a differential sampling mechanism to perceive the changes in light intensity in the scene and generates asynchronous pulse signals, which have the advantages of high temporal resolution, high dynamic range and low power consumption. It can overcome the defects of traditional cameras such as motion blur in high-speed scenes, overexposure in light-sensitive scenes, and unclear imaging in weak exposure scenes. Among them, dynamic vision sensors include but are not limited to: dynamic vision sensors (Dynamic vision sensor, DVS), (Dynamic and active-pixel vision sensor, DAVIS), automatic target identification system (Automatic target identification system, ATIS), Celex sensors, etc. The spatiotemporal pulse signals of the target object are collected by ultra-high-speed full-time vision sensors. The ultra-high-speed full-time vision sensor perceives the absolute light intensity in the scene with an integral sampling mechanism, and regularly releases synchronized pulse array signals, which have the characteristics of high temporal resolution, clear texture and high dynamic range. It can overcome the high-speed motion blur of traditional cameras and have the ability of high dynamic imaging.

[0044] Step 120 , reconstructing the texture of the visible light spatiotemporal pulse signal by time segments, and determining a set of visible light images corresponding to the visible light spatiotemporal pulse signal.

[0045] The visible light image set corresponding to the visible light spatiotemporal pulse signal includes visible light images having a time sequence relationship.

[0046] It can be understood that within the preset time period including the exposure time of the original infrared image, there is at least one visible light space-time pulse signal, and at least one visible light space-time pulse signal has a time sequence relationship. Therefore, in order to better utilize the high time resolution of the visible light space-time pulse signal in the future, the visible light space-time pulse signal can be divided into time segments and then texture reconstructed to obtain a set of visible light images corresponding to the visible light space-time pulse signal, so that the set of visible light images with high time resolution and containing more texture details can complement the original infrared image, and a high-quality infrared image containing more texture details and removing motion blur can be restored.

[0047] Step 130: Based on the visible light image set, the original infrared image is enhanced to obtain an enhanced infrared image.

[0048] Step 140 , fusing the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; wherein the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0049] It can be understood that since the visible light image set is the visible light images corresponding to the preset time period including the exposure time of the original infrared image, that is, the visible light image set includes not only the visible light images corresponding to the exposure time of the original infrared image, but also the visible light images before and after the exposure time of the original infrared image. Therefore, based on the previously enhanced infrared image, when fusing, it only needs to be fused with the visible light image corresponding to the exposure time of the original infrared image.

[0050] The method for fusing visible light pulse signals and infrared images provided by the present invention utilizes the characteristics that the visible light texture extracted by the visible light spatiotemporal pulse signal is not affected by motion blur and can remain robust even under extreme lighting conditions, as well as the characteristic that the infrared image is insensitive to lighting. The infrared image is enhanced by using a set of visible light images after the texture is extracted by the visible light spatiotemporal pulse signal, so that the infrared image has more texture details. The enhanced infrared image is fused with the visible light image determined based on the visible light spatiotemporal pulse signal, and the complementary characteristics of the two are combined to achieve a high-quality image of a scene even in extreme lighting and motion blur conditions.

[0051] In one embodiment, if Figure 2 As shown, the above step 120 may specifically include the following steps:

[0052] Step 210, dividing the visible light spatiotemporal pulse signal into a plurality of event features according to time average; wherein each of the plurality of event features includes a light intensity change corresponding to each pixel position in a corresponding time period.

[0053] Combined with the above, through this step, the timing characteristics of the visible light spatiotemporal pulse signal can be used to prepare for the subsequent enhancement of the original infrared image and the removal of motion blur.

[0054] Usually, a visible light space-time pulse signal of a period of time including the exposure time of the original infrared image can be intercepted. For example, assuming that the preset time period corresponding to the visible light space-time pulse signal is 0-50ms, it can be evenly divided into 5 parts to obtain 5 event features.

[0055] Step 220, input each event feature into a pre-trained image texture reconstruction model to determine a visible light image corresponding to each event feature; the visible light image includes a texture feature of light intensity changes in each event feature.

[0056] The pre-trained image texture reconstruction model is used to extract the texture features of the light intensity changes in each event feature, and can be an E2VID neural network, a FireNet neural network, or a Neuspike-net neural network. The present invention does not specifically limit the pre-trained image texture reconstruction model, and it can be set according to actual conditions. The pre-trained image texture reconstruction model can be based on L2 loss as a training target.

[0057] Step 230 : determining the visible light image set based on the visible light images corresponding to the event features.

[0058] In one embodiment, if Figure 3 As shown, the above step 130 includes:

[0059] Step 310, input the visible light image set into a preset deblurring model in chronological order to determine the spatiotemporal features of the visible light image set; wherein the spatiotemporal features include texture features of the images in the visible light image set and temporal features of the images in the visible light image set.

[0060] In one embodiment, step 310 specifically includes:

[0061] Step 3101, input each visible light image in the visible light image set into the first convolution loop structure in the preset deblurring model in forward time order to determine the first spatiotemporal features of the visible light image set; and input each visible light image in the visible light image set into the second convolution loop structure in the preset deblurring model in reverse time order to determine the second spatiotemporal features of the visible light image set.

[0062] Specifically, the first convolutional loop structure and the second convolutional loop structure may both be ConvGRU structures or other structures, which is not limited in the present invention.

[0063] Specifically, the expression corresponding to this step is:

[0064] Among them, ConvGRU1 is the first circular convolution structure, ConvGRU2 is the second circular convolution structure, and are the forward and backward hidden states, respectively. is the first spatiotemporal feature of GRU, is the second spatiotemporal feature of GRU, represents the i-th visible light image.

[0065] Specifically, the determination process of the first spatiotemporal feature and the second spatiotemporal feature can refer to Figure 4For the sake of brevity, I will not go into details here.

[0066] Step 3102: concatenate the first spatiotemporal feature and the second spatiotemporal feature to obtain the spatiotemporal feature.

[0067] Specifically, the first spatiotemporal feature and the second spatiotemporal feature can be stacked along the channel dimension to obtain a spatiotemporal feature F containing rich temporal texture information. ′ rec .

[0068] Step 320, input the coding features of the original infrared image and the spatiotemporal features of the visible light image set into a preset enhancement model to obtain an enhanced infrared image; compared with the original infrared image, the enhanced infrared image removes motion blur and includes texture detail features.

[0069] Among them, the encoding feature of the original infrared image can be the feature F encoded by the encoder de The preset enhancement model can be trained based on L2 loss as the training target.

[0070] It can be understood that, usually, the spatiotemporal feature F ′ rec The feature F of the original infrared image de Similar operations such as adding, multiplying, or concatenating channels have also been used in some other multi-task learning (MTL) works. However, these methods ignore the distinct feature distributions between the two tasks, which may harm F de To avoid this problem, the present invention designs a cross-task channel attention (CTCA) to fuse F ′ rec With F de Unlike the traditional attention mechanism that generates query, key, and value from a single input, CTCA generates query features from F de Calculated in The key feature Sum value characteristics From the space-time characteristics F ′ rec All three features are reshaped into (hω)×c, where h is the height of the feature, ω is the width of the feature, and c is the number of channels of the feature. The output of CTCA is then calculated by performing attention along the channel dimension.

[0071] Therefore, the preset enhancement model includes a feature extraction module and an attention module. Accordingly, step 320 includes the following steps:

[0072] Step 3201, input the coded features of the original infrared image into the query feature extraction module of the feature extraction module to obtain the image features of the original infrared image; and input the spatiotemporal features of the visible light image set into the key feature extraction module and the value feature extraction module of the feature extraction module respectively to extract the key features and value features of the spatiotemporal features respectively.

[0073] Among them, the query feature extraction module, the key feature extraction module and the value feature extraction module can be implemented through a normalization layer and different convolutional layers respectively.

[0074] Step 3202, using the image feature as the query feature in the attention module, using the key feature and value feature of the spatiotemporal feature as the key feature and value feature in the attention module respectively, and determining the output of the attention module.

[0075] Among them, the output F of the attention module attn The corresponding expression is:

[0076]

[0077] in, represents the key characteristics, Represents the value feature, Represents the query features.

[0078] Specifically, this step can be combined with Figure 4 For the sake of brevity, I will not go into details here.

[0079] Step 3203, determining the enhanced infrared image based on the output of the attention module and the encoding features of the original infrared image.

[0080] Specifically, the sum of the output of the attention module and the encoded features of the original infrared image can be calculated. en After image decoding, the enhanced infrared image is determined.

[0081] Figure 4 The following is a schematic flow chart of the infrared image enhancement method provided by the present invention. Figure 4 As shown, each visible light image in the visible light image set The first convolutional loop structure ConvGRU1 in the preset deblurring model is respectively input in a forward time order to determine the first spatiotemporal feature of the visible light image set. in, They are and inputting each visible light image in the visible light image set into the second convolutional loop structure in the preset deblurring model in reverse time order to determine the second spatiotemporal features of the visible light image set. in, They are The backward hidden state of and the second spatiotemporal feature Splicing to get the spatiotemporal feature F′ rec .

[0082] In addition, if Figure 4 As shown, after obtaining the spatiotemporal feature F′ rec Then, the encoding feature F of the original infrared image is de Input the query feature extraction module (normalization layer LN and convolution layer Conv) of the feature extraction module to obtain the image features of the original infrared image And the spatiotemporal features F′ of the visible light image set rec The key feature extraction module (normalization layer LN and convolution layer Conv) and the value feature extraction module (normalization layer LN and convolution layer Conv) of the feature extraction module are respectively input to extract the spatiotemporal features. Sum value characteristics The output F of the attention module can be attn and the encoding feature F of the original infrared image de F en After image decoding, the enhanced infrared image is determined.

[0083] In one embodiment, fusing the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image includes:

[0084] The target visible light image and the enhanced infrared image are input into a pre-trained image fusion model to obtain a fused image; the image fusion model is trained based on a preset double-layer minimum-maximum mutual information loss function; wherein the double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image respectively.

[0085] The pre-trained image fusion model may include a feature extraction module, an information screening module and a fusion network. In one embodiment, Figure 5As shown, the target visible light image and the visible light spatiotemporal pulse signal corresponding to the target visible light image can be respectively input into the feature extraction module, and then the extracted features can be spliced ​​to obtain visible light features, and the visible light features can be input into the information screening module for information screening to obtain visible light screening features. And after the enhanced infrared image is input into the feature extraction module, infrared features can be obtained, and infrared features can be input into the information screening module for information screening to obtain infrared screening features, and the visible light screening features and infrared screening features can be input into the fusion network for fusion to obtain fusion features. By minimizing the mutual information between the visible light screening features and the infrared screening features, the unique information in each modality is highlighted, while the redundant information shared across modalities is reduced; and by maximizing the mutual information between the fusion features and the visible light features, and the mutual information between the fusion features and the infrared features, the original modality information must be retained as much as possible to avoid potential information loss.

[0086] The information filtering module can be a Transformer layer, which models long-distance spatial dependencies by applying a multi-head self-attention mechanism to spatial positions. vis and infrared signature F ir Through the Transformer layer, and get the output feature F′ vis and F′ ir Finally, they are subjected to mutual information minimization to reduce information redundancy and highlight modality-specific information.

[0087] Figure 6 The mutual information optimization process is schematically given. Figure 6 As shown, F′ vis and F′ ir is adaptively aggregated into a one-dimensional vector and passed through the MLP layer to obtain two variational latent features z′ vis and z′ ir Then z′ vis and z ir The mutual information between can be expressed as:

[0088] MI(z′ vis , z′ ir )=H(z′ vis )+H(z′ ir )-H(z′ vis , z′ ir ),

[0089] Among them, H(z′ vis ) and H(z′ ir ) represents z′ vis and z′ ir The marginal entropy ofvis , z′ ir ) is their joint entropy. In order to calculate MI(z′ vi s,z′ ir ), where the Kullback-Leibler (KL) divergence is used to calculate the edge entropy and obtain the mutual information minimization loss:

[0090]

[0091] in, is from z′ vis to z′ ir By minimizing F′ vis and F′ ir The mutual information between them can highlight the unique features of the modality. Next, vis and F ir Concatenate and fuse using another Transformer layer to obtain the fused feature F f However, minimizing mutual information alone may lead to potential information loss, as the network may learn to discard important features to force a reduction in To alleviate this problem, we further impose F f With the original modal feature F vis and F ir Maximize the mutual information between . Figure 6 As shown, respectively from F f 、F vis and F ir Get three latent embeddings z f 、z vis and z ir To maximize mutual information, we can transform each z f 、z vis is regarded as a positive sample, and other samples in the same batch are regarded as negative samples to optimize the InfoNCE target loss:

[0092]

[0093] Where N is the batch size, z visi and is the i-th corresponding embedding feature in each training batch. It can be defined similarly, that is, z vis Replace with z ir It should be noted here that mutual information minimization and maximize The loss is different because mutual information optimization is usually achieved by adjusting the upper and lower bounds of the mutual information rather than the mutual information itself. Cannot be used as a substitute vice versa.

[0094] It can be understood that the goal of fusing visible light images and infrared images is to obtain an image that contains rich visible light texture scene details and highlights the salient targets captured by the infrared modality. Therefore, the effective use of the complementary information contained in the two modalities is a key factor in determining the performance of the fusion process. In order to encourage the discovery of complementary features, appropriate strategies must be used to balance the uniqueness and completeness of the features. Intuitively, the ideal fused features should highlight the unique information in each modality while reducing the redundant information shared across modalities. On the other hand, the fusion result must retain the original modality information as much as possible to avoid potential information loss. Based on this analysis, the present invention proposes a double-layer minimum-maximum mutual information loss function to calculate the mutual information between the two modal features (visible light image and infrared image).

[0095] It can also be understood that the training process of the present invention follows a three-stage approach, in which three subtasks (image texture reconstruction model training, infrared image deblurring model and enhancement model training, image fusion model training) are learned step by step in sequence. In each stage, the tasks of the previous stage are maintained for continued training, while new tasks of the current stage are added.

[0096] For the first two tasks, L2 loss is applied as the training objective. Finally, the fusion network can be trained with the following objectives:

[0097]

[0098] in, is the SSIM loss between the fused image and the output image of the previous task (enhanced infrared image and target visible light image). γ1, γ2 and γ3 are the balancing weights of different loss terms.

[0099] In one embodiment, the present invention also provides a training method for a fusion model of a visible light pulse signal and an infrared image, the method comprising: obtaining an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set; training a fusion model of the visible light pulse signal and the infrared image based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function; wherein the fusion model of the visible light pulse signal and the infrared image is used to determine a target visible light image, an enhanced infrared image, and a fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method described in any of the above embodiments; wherein the preset double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image, respectively.

[0100] The fusion model of the visible light pulse signal and the infrared image can correspond to the image fusion model mentioned above. In addition, before the fusion model is trained, the training process of the image texture reconstruction model, the deblurring model of the infrared image and the training process of the enhancement model are also included. Specifically, the training process mentioned above can be obtained by referring to the training method mentioned above. For the sake of brevity, it will not be repeated here.

[0101] In order to demonstrate the advantages of the proposed method (EVIF) in practical scenarios, the effects of different methods on real data are further compared. Figure 7 .like Figure 7 As shown, it can be seen that in real environments, blur and overexposure / underexposure problems are more obvious, which seriously affects the performance of traditional methods. On the contrary, the method system of the present invention shows superior resistance to these problems and maintains the clarity and details of the fused image. Figure 7 The results in the figure clearly demonstrate how the method of the present invention can effectively alleviate the challenges in extreme lighting and high-dynamic motion scenes, providing a significant improvement over traditional technologies. Among them, Events is the visible light spatiotemporal pulse signal in the present invention, Rec.VIS is the visible light image reconstructed in the present invention, Deblurred IR is the deblurred infrared image in the present invention, and EVIF(ours) is the fused image obtained by fusion in the present invention.

[0102] The following describes the device for fusing a visible light pulse signal and an infrared image and the training device for a fusion model of a visible light pulse signal and an infrared image provided by the present invention. The device for fusing a visible light pulse signal and an infrared image described below and the method for fusing a visible light pulse signal and an infrared image described above can be referred to in correspondence with each other. The training device for fusing a visible light pulse signal and an infrared image described below and the training method for fusing a visible light pulse signal and an infrared image described above can be referred to in correspondence with each other.

[0103] like Figure 8 As shown, in one embodiment, a device for fusing a visible light pulse signal and an infrared image is provided, and the device for fusing a visible light pulse signal and an infrared image may include:

[0104] An acquisition module 810 is used to acquire an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image;

[0105] A reconstruction module 820, configured to perform texture reconstruction on the visible light spatiotemporal pulse signal by time segment, and determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal;

[0106] An enhancement module 830 is used to perform image enhancement on the original infrared image based on the visible light image set to obtain an enhanced infrared image;

[0107] The fusion module 840 is used to fuse the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0108] The device for fusing visible light pulse signals and infrared images provided by the present invention utilizes the characteristics that the visible light texture extracted by the visible light spatiotemporal pulse signal is not affected by motion blur and can remain robust even under extreme lighting conditions, as well as the characteristic that the infrared image is insensitive to lighting. The infrared image is enhanced by using a set of visible light images after the texture is extracted by the visible light spatiotemporal pulse signal, so that the infrared image has more texture details. The enhanced infrared image is fused with the visible light image determined based on the visible light spatiotemporal pulse signal, and the complementary characteristics of the two are combined to achieve a high-quality image of a scene even under extreme lighting and motion blur.

[0109] like Fig. 9 As shown, in one embodiment, a training device for a fusion model of a visible light pulse signal and an infrared image is provided, and the device includes:

[0110] An acquisition module 910 is used to acquire an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set;

[0111] A training module 920 is used to train an image fusion model based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function; wherein the image fusion model is used to determine a target visible light image, an enhanced infrared image, and a fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method described in any of the above embodiments; wherein the preset double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image, respectively.

[0112] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the fusion of the visible light pulse signal and the infrared image and the training method of the fusion model, wherein the fusion method of the visible light pulse signal and the infrared image includes: obtaining the original infrared image and the visible light spatiotemporal pulse signal corresponding to the original infrared image; reconstructing the texture of the visible light spatiotemporal pulse signal according to time segments, and determining the visible light image set corresponding to the visible light spatiotemporal pulse signal; based on the visible light image set, enhancing the original infrared image to obtain an enhanced infrared image; fusing the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0113] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc. Various media that can store program codes.

[0114] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for fusing visible light pulse signals and infrared images and training a fusion model provided by the present invention. The method for fusing visible light pulse signals and infrared images includes: obtaining an original infrared image and a visible light space-time pulse signal corresponding to the original infrared image; performing texture reconstruction on the visible light space-time pulse signal according to time segments to determine a set of visible light images corresponding to the visible light space-time pulse signal; based on the visible light image set, performing image enhancement on the original infrared image to obtain an enhanced infrared image; fusing a target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0115] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for fusing visible light pulse signals and infrared images and training a fusion model provided by the present invention, wherein the method for fusing visible light pulse signals and infrared images comprises: obtaining an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image; performing texture reconstruction on the visible light spatiotemporal pulse signal by time segments to determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal; performing image enhancement on the original infrared image based on the set of visible light images to obtain an enhanced infrared image; fusing a target visible light image in the set of visible light images with the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

[0116] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0118] It can be understood that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for fusing visible light pulse signals and infrared images, characterized in that: include: Acquire an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image; Reconstructing the texture of the visible light spatiotemporal pulse signal by time segment to determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal; Based on the visible light image set, performing image enhancement on the original infrared image to obtain an enhanced infrared image; The target visible light image in the visible light image set and the enhanced infrared image are fused to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

2. The method according to claim 1, characterized in that: Fusing the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image, including: Inputting the target visible light image and the enhanced infrared image into a pre-trained image fusion model to obtain a fused image; the image fusion model is trained based on a preset double-layer minimum maximum mutual information loss function; The double-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image respectively.

3. The method according to claim 1, characterized in that The step of reconstructing the texture of the visible light spatiotemporal pulse signal by time segments to determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal includes: Dividing the visible light spatiotemporal pulse signal into a plurality of event features according to time average; wherein each of the plurality of event features includes a light intensity change corresponding to each pixel position in a corresponding time period; Input each event feature into a pre-trained image texture reconstruction model to determine a visible light image corresponding to each event feature; the visible light image includes a texture feature of light intensity change in each event feature; The visible light image set is determined based on the visible light images corresponding to the event features.

4. The method according to claim 1, characterized in that: The step of performing image enhancement on the original infrared image based on the visible light image set to obtain an enhanced infrared image includes: Inputting the visible light image set into a preset deblurring model in time sequence to determine the spatiotemporal features of the visible light image set; wherein the spatiotemporal features include texture features of the images in the visible light image set and temporal features of the images in the visible light image set; The coding features of the original infrared image and the spatiotemporal features of the visible light image set are input into a preset enhancement model to obtain an enhanced infrared image; compared with the original infrared image, the enhanced infrared image removes motion blur and includes texture detail features.

5. The method according to claim 4, characterized in that The preset deblurring model includes at least two convolution loop structures, and the visible light image set is input into a deblurring module of a preset cross-modal image enhancement model in time sequence to determine the spatiotemporal features of the visible light image set, including: Inputting each visible light image in the visible light image set into a first convolution loop structure in the preset deblurring model in a forward time sequence to determine a first spatiotemporal feature of the visible light image set; and inputting each visible light image in the visible light image set into a second convolution loop structure in the preset deblurring model in a reverse time sequence to determine a second spatiotemporal feature of the visible light image set; The first spatiotemporal feature and the second spatiotemporal feature are concatenated to obtain the spatiotemporal feature.

6. The method according to claim 4 or 5, characterized in that: The preset enhancement model includes a feature extraction module and an attention module, and the encoding features of the original infrared image and the spatiotemporal features of the visible light image set are input into the preset enhancement model to obtain an enhanced infrared image, including: Inputting the coded features of the original infrared image into the query feature extraction module of the feature extraction module to obtain the image features of the original infrared image; and inputting the spatiotemporal features of the visible light image set into the key feature extraction module and the value feature extraction module of the feature extraction module to respectively extract the key features and the value features of the spatiotemporal features; Using the image feature as a query feature in an attention module, using the key feature and the value feature of the spatiotemporal feature as the key feature and the value feature in the attention module respectively, and determining an output of the attention module; The enhanced infrared image is determined based on the output of the attention module and the encoded features of the original infrared image.

7. A training method for a fusion model of visible light pulse signals and infrared images, characterized in that: The method comprises: Acquire an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set; Based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function, a fusion model of the visible light pulse signal and the infrared image is trained; wherein the fusion model of the visible light pulse signal and the infrared image is used to determine the target visible light image, the enhanced infrared image, and the fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method according to any one of claims 1 to 6; Among them, the preset two-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image respectively.

8. A device for fusing visible light pulse signals and infrared images, characterized in that: The device comprises: An acquisition module, used for acquiring an original infrared image and a visible light spatiotemporal pulse signal corresponding to the original infrared image; A reconstruction module, used to perform texture reconstruction on the visible light spatiotemporal pulse signal by time segment, and determine a set of visible light images corresponding to the visible light spatiotemporal pulse signal; An enhancement module, configured to perform image enhancement on the original infrared image based on the visible light image set to obtain an enhanced infrared image; A fusion module is used to fuse the target visible light image in the visible light image set and the enhanced infrared image to obtain a fused image; the target visible light image is a visible light image corresponding to the exposure time of the original infrared image.

9. A training device for a fusion model of visible light pulse signals and infrared images, characterized in that: The device comprises: An acquisition module, used for acquiring an original infrared image set and a visible light spatiotemporal pulse signal corresponding to the original infrared image set; A training module, used for training an image fusion model based on the original infrared image set, the visible light spatiotemporal pulse signal, and a preset double-layer minimum-maximum mutual information loss function; wherein the image fusion model is used to determine a target visible light image, an enhanced infrared image, and a fused image; wherein the target visible light image, the enhanced infrared image, and the fused image are determined based on the corresponding steps in the method according to any one of claims 1 to 6; Among them, the preset two-layer minimum-maximum mutual information loss function is used to minimize the mutual information between the target visible light image and the enhanced infrared image, and is also used to maximize the mutual information between the fused image and the target visible light image and the enhanced infrared image respectively.

10. A computer device comprising a memory and a processor, characterized in that: The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for fusing visible light pulse signals and infrared images as described in any one of claims 1 to 6 or the method for training a fusion model of visible light pulse signals and infrared images as described in claim 7.

11. A storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for fusing visible light pulse signals and infrared images as described in any one of claims 1 to 6 or the method for training a fusion model of visible light pulse signals and infrared images as described in claim 7.

Citation Information

Cited By

  • Image fusion method and device based on feedback illumination self-adaption

    CN119323522A