Image processing method and device, model training method and device, equipment and storage medium

Through the splicing and feature fusion of positive events, negative events and event frames of event cameras, and the use of multi-branch information fusion models, the problem of insufficient spatial resolution of event cameras is solved, the quality of super-resolution images is improved, and event stream information is realized Effective complementation and image detail improvement.

CN118780989AActive Publication Date: 2024-10-15PENG CHENG LAB
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410710961.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-15
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

The spatial resolution of existing event cameras is insufficient, making it difficult to maintain low power consumption and high temporal resolution when improving the hardware level, and image processing methods based on event streams fail to fully utilize the characteristics of positive and negative events, resulting in super-resolution rate image quality is low.

Method used

An image processing method is proposed. By acquiring the positive events, negative events and event frames of the event camera, splicing and feature fusion are performed, and a multi-branch information fusion model is used for information complementation to generate a target super-resolution image. The method includes generating positive spliced ​​images and negative spliced ​​images, performing feature exchange through a feature fusion module, capturing the information complementary relationship of event streams, and improving image quality.

Benefits of technology

It achieves the effective distinction and utilization of positive events, negative events and event frames in event streams, improves the quality of super-resolution images, enhances feature expression capabilities, removes noise, captures the information complementary relationship of event streams, and improves image quality. Detail and edge clarity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780989A_ABST
    Figure CN118780989A_ABST
Patent Text Reader

Abstract

The invention discloses an image processing method and device, a model training method and device, electronic equipment and a storage medium, relates to the technical field of image processing, realizes information enhancement of a positive spliced image and a negative spliced image, and then performs feature exchange based on a positive fusion feature and a negative fusion feature to obtain a positive and negative exchange fusion feature. The target super-resolution image of the first moment event flow is obtained based on the positive and negative exchange fusion features, and in the feature exchange process, the information complementary relation and long-distance dependence of the first positive event counting image and the first negative event counting image are captured, so that the quality of the target super-resolution image is improved. Thus, the positive event, the negative event and the event frame of the event stream can be distinguished and fully utilized, information complementation between the positive event and the negative event is realized, and the quality of the super-resolution image can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, a model training method, a device, an electronic device and a storage medium. Background Art

[0002] An event camera is a bio-inspired asynchronous sensor. Unlike traditional cameras, it only measures and records the brightness change of each pixel per unit time. These data are called event streams and are divided into positive events and negative events. Positive events indicate that the brightness of the pixel has increased, while negative events indicate that the brightness of the pixel has decreased. Therefore, it can greatly reduce the amount of information recorded, thus having the advantages of high temporal resolution, low power consumption, and high dynamic range. However, as the application scenarios become more and more complex, the spatial resolution of existing event cameras is not enough. If you want to improve the spatial resolution at the hardware level, the implementation of asynchronous circuits will become difficult, and it will also make it difficult to maintain the advantages of low power consumption and high temporal resolution of event cameras. Therefore, some researchers have proposed to solve this problem at the algorithm level, called Event Stream Super-Resolution (ESR).

[0003] However, there are temporally and spatially inconsistent positive and negative events in the event stream. They do not completely overlap on the 2D plane, but contain certain complementary information. If the two are combined and projected onto the 2D plane into an event frame, the positive and negative events will partially offset each other to form a new form. The image processing method based on the event stream in the related art does not fully account for the characteristics of positive and negative events, resulting in low quality of the obtained super-resolution image. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes an image processing method, a model training method, a device, an electronic device and a storage medium, which can distinguish and fully utilize positive events, negative events and event frames of an event stream, realize information complementarity between positive events and negative events, and improve the quality of super-resolution images.

[0005] To achieve the above object, a first aspect of an embodiment of the present application proposes an image processing method, comprising:

[0006] Acquire a first moment event stream of an event camera and an adjacent event stream adjacent to the timestamp of the first moment event stream; generate a first positive event count image, a first negative event count image, and a first event frame based on the first moment event stream; generate adjacent positive event count images, adjacent negative event count images, and adjacent event frames based on the adjacent event streams;

[0007] splicing the first positive event count image and the adjacent positive event count image to obtain a positive spliced ​​image; splicing the first negative event count image and the adjacent negative event count image to obtain a negative spliced ​​image;

[0008] The positive stitched image, the negative stitched image, the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature are input into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image generated by the multi-branch information fusion model for the adjacent event stream of the previous time sequence; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image;

[0009] The first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature are spliced ​​together by the splicing module to obtain a first spliced ​​image;

[0010] The first stitched image is fused with the positive stitched image by the feature fusion module to obtain a positive fusion feature; the first stitched image is fused with the negative stitched image by the feature fusion module to obtain a negative fusion feature;

[0011] Based on the positive fusion feature and the negative fusion feature, feature exchange is performed to obtain a positive and negative exchange fusion feature, and based on the positive and negative exchange fusion features, a target super-resolution image of the event stream at the first moment is obtained.

[0012] In one embodiment, the feature fusion module is provided with a basic activation unit;

[0013] Before fusing the first stitched image with the positive stitched image through the feature fusion module to obtain the positive fusion feature, the method includes:

[0014] Performing feature extraction on the first stitched image to obtain a first stitching feature; performing feature extraction on the positive stitched image to obtain a first positive stitching feature; performing feature extraction on the negative stitched image to obtain a first negative stitching feature;

[0015] The step of fusing the first stitched image with the positive stitched image by the feature fusion module to obtain a positive fusion feature includes:

[0016] Splicing the first splicing feature and the first positive splicing feature in the channel dimension to obtain a second positive splicing feature; inputting the second positive splicing feature into the basic activation unit of the feature fusion module to obtain a third positive splicing feature;

[0017] Performing local attention processing on the third positive splicing feature to obtain a positive local attention feature; performing global attention processing on the third positive splicing feature to obtain a positive global attention feature; inputting the positive local attention feature and the positive global attention feature into an attention combination formula to obtain the positive fusion feature;

[0018] The step of fusing the first stitched image with the negative stitched image by the feature fusion module to obtain a negative fusion feature includes:

[0019] Splicing the first splicing feature and the first negative splicing feature in the channel dimension to obtain a second negative splicing feature; inputting the second negative splicing feature into the basic activation unit of the feature fusion module to obtain a third negative splicing feature;

[0020] Performing local attention processing on the third negative splicing feature to obtain a negative local attention feature; performing global attention processing on the third negative splicing feature to obtain a negative global attention feature; inputting the negative local attention feature and the negative global attention feature into the attention combination formula to obtain the negative fusion feature;

[0021] The attention combination formula is:

[0022]

[0023] Among them, ☉ represents the inner product between two matrices, σ represents the sigmoid activation function, Represents the broadcast sum between matrices; characterizing the negative fusion feature or the positive fusion feature; characterizing the first positive splicing feature or the first negative splicing feature; characterizing the third negative splicing feature or the third positive splicing feature; characterizing the positive global attention feature or the negative global attention feature; Characterize the positive local attention feature or the negative local attention feature.

[0024] In one embodiment, the process of local attention processing is expressed as:

[0025]

[0026] Among them, BN represents the batch normalization layer, C 1×1 represents a 1×1 convolution operation, and R represents a ReLU activation function; Characterizing the positive local attention feature or the negative local attention feature; Characterizing the third negative splicing feature or the third positive splicing feature.

[0027] In one embodiment, the process of global attention processing is expressed as:

[0028]

[0029] in, represents the positive global attention feature or the negative global attention feature; GAP represents the global average pooling operation; f att Characterize local attention processing; Characterizing the third negative splicing feature or the third positive splicing feature.

[0030] In one embodiment, the multi-branch information fusion model is further provided with a feature exchange module and a residual module;

[0031] The step of performing feature exchange based on the positive fusion feature and the negative fusion feature to obtain a positive and negative exchange fusion feature, and obtaining a target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features includes:

[0032] Performing a residual feature extraction operation on the positive fusion feature through the residual module to obtain a first positive fusion residual feature; performing a residual feature extraction operation on the negative fusion feature through the residual module to obtain a first negative fusion residual feature;

[0033] Performing feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through the feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature;

[0034] Performing a residual feature extraction operation on the positive exchange fusion feature through the residual module to obtain a second positive fusion residual feature; performing a residual feature extraction operation on the negative exchange fusion feature through the residual module to obtain a second negative fusion residual feature;

[0035] Concatenate the second positive fusion residual feature and the second negative fusion residual feature in the channel dimension to obtain the positive and negative exchange fusion feature;

[0036] A convolution operation is performed on the positive and negative exchange fusion features to obtain a target hidden state feature, and a pixel reordering operation is performed on the target hidden state feature to obtain the target super-resolution image.

[0037] In one embodiment, the feature exchange module is provided with an attention module;

[0038] The step of performing feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through the feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature includes:

[0039] Inputting the first positive fusion residual feature into a basic activation unit to obtain a second positive fusion residual feature; inputting the first negative fusion residual feature into the basic activation unit to obtain a second negative fusion residual feature;

[0040] Inputting the second positive fusion residual feature into the first calculation formula to calculate a third positive fusion residual feature; inputting the second negative fusion residual feature into the first calculation formula to calculate a third negative fusion residual feature;

[0041] Performing convolution processing on the third positive fusion residual feature to obtain a fourth positive fusion residual feature; performing convolution processing on the third negative fusion residual feature to obtain a fourth negative fusion residual feature and a fifth negative fusion residual feature;

[0042] The fourth positive fusion residual feature and the fourth negative fusion residual feature are input into the attention module to obtain the positive exchange fusion feature and the negative exchange fusion feature; the processing process of the attention module is expressed as:

[0043]

[0044] in, Characterizes the positive exchange fusion feature or the negative exchange fusion feature; V characterizes the fourth positive exchange fusion feature; Q characterizes the fourth negative exchange fusion feature; K characterizes the fifth negative exchange fusion feature; Q T represents the transpose of Q; σ represents the sigmoid activation function;

[0045] The first calculation formula is:

[0046]

[0047] in, Characterizing the third positive fusion residual feature or the third negative fusion residual feature; Represents the second positive fusion residual feature or the second negative fusion residual feature; ☉ represents the inner product between two matrices; Conv represents a 2D convolutional layer.

[0048] To achieve the above purpose, the second aspect of the embodiment of the present application proposes a model training method, including:

[0049] Obtain a first moment training event stream of the event camera and adjacent training event streams adjacent to the timestamp of the first moment training event stream;

[0050] Generate a first positive event count training image, a first negative event count training image and a first training event frame based on the first moment training event stream; generate adjacent positive event count training images, adjacent negative event count training images and adjacent training event frames based on the adjacent training event streams;

[0051] splicing the first positive event count training image and the adjacent positive event count training image to obtain a positive splicing training image; splicing the first negative event count training image and the adjacent negative event count training image to obtain a negative splicing training image;

[0052] The positive splicing training image, the negative splicing training image, the first training event frame, the adjacent training event frame, the historical super-resolution training image and the historical hidden state training feature are input into an initial multi-branch information fusion model; wherein the multi-branch information fusion model includes a splicing module and a feature fusion module; the historical super-resolution training image is a super-resolution training image generated by the multi-branch information fusion model for the adjacent training event stream of the previous time sequence; the historical hidden state training feature represents the intermediate information when generating the historical super-resolution training image;

[0053] The first training event frame, the adjacent training event frame, the historical super-resolution training image and the historical hidden state training feature are spliced ​​together by the splicing module to obtain a first spliced ​​training image;

[0054] The first spliced ​​training image is fused with the positive spliced ​​training image by the feature fusion module to obtain a positive fusion training feature; the first spliced ​​training image is fused with the negative spliced ​​training image by the feature fusion module to obtain a negative fusion training feature;

[0055] Performing training feature exchange based on the positive fusion training feature and the negative fusion training feature to obtain positive and negative exchange fusion training features, and obtaining a target super-resolution training image of the training event stream at the first moment based on the positive and negative exchange fusion training features;

[0056] A loss value is calculated based on the target super-resolution training image and the real image of the training event stream at the first moment; and the multi-branch information fusion model is optimized based on the loss value to obtain the trained multi-branch information fusion model.

[0057] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application provides an image processing device, including:

[0058] An acquisition module, used to acquire a first moment event stream of an event camera and an adjacent event stream adjacent to a timestamp of the first moment event stream;

[0059] A generating module, configured to generate a first positive event count image, a first negative event count image, and a first event frame based on the first moment event stream; and to generate an adjacent positive event count image, an adjacent negative event count image, and an adjacent event frame based on the adjacent event stream;

[0060] A first stitching module is used to stitch the first positive event count image with the adjacent positive event count image to obtain a positive stitching image; and stitch the first negative event count image with the adjacent negative event count image to obtain a negative stitching image;

[0061] An input module is used to input the positive stitching image, the negative stitching image, the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image of the adjacent event stream generated by the multi-branch information fusion model; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image;

[0062] A second splicing module, configured to splice the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature through the splicing module to obtain a first spliced ​​image;

[0063] a fusion module, configured to fuse the first stitched image with the positive stitched image through the feature fusion module to obtain a positive fusion feature; and fuse the first stitched image with the negative stitched image through the feature fusion module to obtain a negative fusion feature;

[0064] An exchange module is used to perform feature exchange based on the positive fusion feature and the negative fusion feature to obtain positive and negative exchange fusion features, and obtain a target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features.

[0065] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the image processing method described in any embodiment of the first aspect, or the model training method described in the second aspect.

[0066] To achieve the above-mentioned purpose, the fifth aspect of the embodiments of the present application proposes a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the image processing method described in any embodiment of the first aspect, or the model training method described in the second aspect.

[0067] The image processing method, model training method, device, electronic device and storage medium proposed in the embodiments of the present application splice a first positive event count image with an adjacent positive event count image to obtain a positive spliced ​​image; splice a first negative event count image with an adjacent negative event count image to obtain a negative spliced ​​image; splice a first event frame, an adjacent event frame, a historical super-resolution image and a historical hidden state feature through a splicing module to obtain a first spliced ​​image; realize information fusion of the first moment event stream and the adjacent event stream, that is, realize fusion of context information, enhance the expressive ability of features, and facilitate the removal of noise in the positive count image and the negative count image; fuse the first spliced ​​image with the positive spliced ​​image, and fuse the first spliced ​​image with the negative spliced ​​image, realize information enhancement of the positive spliced ​​image and the negative spliced ​​image, then exchange features based on the positive fusion feature and the negative fusion feature to obtain the positive and negative exchange fusion features, and obtain the target super-resolution image of the first moment event stream based on the positive and negative exchange fusion features. In the feature exchange process, the information complementary relationship and long-distance dependence between the first positive event count image and the first negative event count image are captured, thereby facilitating the improvement of the quality of the target super-resolution image. In this way, the present application can distinguish and fully utilize the positive events, negative events and event frames of the event stream, realize information complementarity between positive events and negative events, and improve the quality of super-resolution images.

[0068] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0070] Figure 1 A schematic diagram of the flow of an image processing method according to an embodiment of the present application;

[0071] Figure 2 A schematic diagram of the processing process of the multi-branch information fusion model of an embodiment of the present application;

[0072] Figure 3 Based Figure 1 A schematic diagram of a specific process of obtaining positive fusion features in step S160;

[0073] Figure 4 for Figure 1 A schematic diagram of a specific process of obtaining negative fusion features in step S160;

[0074] Figure 5 for Figure 1 Specific flow diagram of step S170;

[0075] Figure 6 for Figure 5 Specific flow diagram of step S520;

[0076] Figure 7 A comparison chart of the results obtained by super-resolution of the same event stream image by the image processing method of the present application and the image processing method in the related art;

[0077] Figure 8 The image processing method of the present application and the image processing method in the related art are used to compare the result data obtained by super-resolution of the same event stream image.

[0078] Fig. 9 A flowchart of a model training method according to an embodiment of the present application;

[0079] Fig.10 A schematic diagram of the structure of an image processing device according to an embodiment of the present application;

[0080] Fig.11 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0081] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0082] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application 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 should not be understood as a limitation on the present application.

[0083] In the description of this application, "several" means more than one, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0084] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0085] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0086] First, some nouns involved in this application are analyzed:

[0087] An event camera (Event-based camera) is a new type of biologically inspired visual sensor, sometimes also called a dynamic vision sensor (DVS) or DAVIS (Dynamic and Active-PixelVision Sensor). Compared to standard cameras that capture images at a fixed frame rate, it has the characteristics of low latency, high dynamic range, low power consumption, and high temporal resolution. When an object moves, a standard camera will lose some data due to the influence of the sampling frequency, while the data collected by the event camera is relatively more complete. In addition, when the target object and the camera have relative motion, the image obtained with a standard camera is very prone to motion blur due to factors such as exposure time, while the data obtained with an event camera does not have this problem.

[0088] Event stream is the data form output by event camera, which consists of a series of events. These events represent the change of pixel brightness caused by the movement of objects or the change of illumination in the scene. Event stream has no minimum time unit, unlike traditional cameras that output data regularly, so it has low latency characteristics. This makes event stream have significant advantages when processing tasks with high real-time requirements. There is an independent photoelectric sensor module at each pixel of the event camera. When the brightness change at the pixel exceeds the set threshold, event data (sometimes also called pulse data) will be generated and output. These event data are divided into two categories: Positive Events: When the brightness at the pixel increases and exceeds the set threshold, the event camera will record and output positive events. This usually indicates that an object enters the field of view or moves toward the camera. Negative Events: In contrast to positive events, when the brightness at the pixel decreases and exceeds the set threshold, the event camera will record and output negative events. This usually indicates that an object leaves the field of view or moves away from the camera. The event stream is composed of these positive and negative events, which are arranged in chronological order and contain information such as the pixel coordinates, timestamp, and polarity (i.e., positive or negative) of each event. This event-based data output method enables event cameras to have the characteristics of low latency, high dynamic range, low power consumption, and high temporal resolution, making them suitable for tasks such as high-speed motion estimation and high dynamic range mapping.

[0089] Historical hidden state features: that is, hidden state. In neural networks, such as recurrent neural networks (RNNs), hidden state ht is a variable used to record the state of the network at a certain moment. It serves as the input of the current moment, affects the output of that moment, and will be updated to pass to the next moment. The hidden state ht can pass information to the next moment, allowing RNN to process sequence data. The hidden state ht can be regarded as the "memory" of the RNN because it contains all the important information up to the current moment.

[0090] There are temporally and spatially inconsistent positive and negative events in the event stream of the event camera. They do not completely overlap on the 2D plane, but contain certain complementary information. If the two are combined and projected onto the 2D plane into an event frame, the positive and negative events will offset each other to form a new form. Because positive / negative events usually do not appear alone, event frames can help us filter out some noise that naturally exists in the event stream. Therefore, positive events, negative events, and event frames respectively contain three different types of information for a section of the event stream. The image processing method in the related art does not distinguish and fully utilize this information, but simply mixes it and inputs it into the ESR model, which easily causes detail loss when using the event stream for super-resolution, resulting in low quality of the super-resolution image obtained.

[0091] Based on this, the embodiments of the present application provide an image processing method, training method, device, electronic device and storage medium, which can distinguish and fully utilize positive events, negative events and event frames of an event stream, achieve information complementarity between positive events and negative events, and improve the quality of super-resolution images.

[0092] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and diffuse human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0093] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0094] The image processing method of the event stream of the event camera provided in the embodiment of the present application relates to the field of artificial intelligence technology. The image processing method of the event stream of the event camera provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the image processing method of the event stream of the event camera, etc., but is not limited to the above forms.

[0095] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0096] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first. For example, when obtaining user stored data and the user's cached data access request, the user's permission or consent will be obtained first; when obtaining resource data, the present application embodiment will first obtain the user's permission or consent. Moreover, the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the present application embodiment needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data used to enable the normal operation of the present application embodiment will be obtained.

[0097] Reference Figure 1 The first aspect of the present application provides an image processing method. Figure 1 The step flow shown includes but is not limited to step S110 to step S170.

[0098] Step S110, obtaining a first moment event stream of the event camera and adjacent event streams whose timestamps are adjacent to the first moment event stream;

[0099] It is worth noting that the first moment event stream and the adjacent event stream are obtained by shooting with an event camera. The timestamp of the first moment event stream is adjacent to the timestamp of the adjacent event stream. For example, the timestamp of the first moment event stream is t, and the adjacent event streams include the second moment event stream and the third moment event stream. The timestamp of the second moment event stream is t-1, and the timestamp of the third moment event stream is t+1.

[0100] In one embodiment, the first moment event stream and the adjacent event stream may also be obtained from a public real event camera data set (High Quality Frames, HQF). There may be multiple methods for obtaining the first moment event stream and the adjacent event stream from an event database, for example, the first moment event stream and the adjacent event stream may be obtained by accessing the event database through a custom application.

[0101] Step S120, generating a first positive event count image, a first negative event count image, and a first event frame based on the first moment event stream; generating adjacent positive event count images, adjacent negative event count images, and adjacent event frames based on adjacent event streams;

[0102] In one embodiment, for a segment of an event stream Where N is the number of events, and each event e k ∈ε, the event can be represented by a four-tuple (x i ,y i ,t i ,p i ) means, x i ,y i , represents the spatial position, t i Representation timestamp, p i Characterize polarity. According to the polarity p i = ±1 divided into positive events and negative events And convert them into event count images respectively, so as to obtain the first positive event count image and the first negative event count image. The event count image conversion formula is as follows:

[0103]

[0104] Where δ represents the Kronecker function. By inputting the first moment event stream into the above formula, we can get the first positive event count image p t ∈R H×W and the first negative event count image n t ∈R H×W , H and W represent the height and width of the image respectively. Since the adjacent event stream includes the second moment event stream and the third moment event stream, the second moment event stream is input into the above formula to obtain the second positive event count image and the second negative event count image, and the third moment event stream is input into the above formula to obtain the third positive event count image and the third negative event count image. The adjacent positive event count images include the second positive event count image and the third positive event count image; the adjacent negative event count images include the second negative event count image and the third negative event count image. The first positive event count image and the first negative event count image are added to obtain the first event frame, which is represented by ft ∈R H×W ; Add the second positive event count image and the second negative event count image to obtain a second event frame; add the third positive event count image and the third negative event count image to obtain a third event frame; adjacent event frames include the second event frame and the third event frame.

[0105] Step S130, stitching the first positive event count image and the adjacent positive event count images to obtain a positive stitching image; stitching the first negative event count image and the adjacent negative event count images to obtain a negative stitching image;

[0106] Specifically, the first positive event count image p t , the second positive event count image p t-1 , the third positive event count image p t+1 Stitching is performed to obtain the positive stitching image p concate ∈R 3×H×W ; The first negative event count image Nt, the second negative event count image N t-1 , the third negative event count image N t+1 Stitching is performed to obtain the negative stitching image N concate ∈R 3×H×W .

[0107] Step S140, inputting the positive stitching image, the negative stitching image, the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image generated by the multi-branch information fusion model for the adjacent event stream of the previous time sequence; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image;

[0108] It is worth noting that referring to Figure 2 , Figure 2 FIG. 1 is a schematic diagram of the processing process of the multi-branch information fusion model of the embodiment of the present application. t-1 is the super-resolution image generated by the multi-branch information fusion model for the event stream at the second moment, and the historical hidden state feature h t-1 The intermediate information of the multi-branch information fusion model when generating historical super-resolution images is characterized. The historical hidden state features capture and retain the historical processing information from the event flow at the second moment to the generation of the historical super-resolution image. When the multi-branch information fusion model is used to generate the target super-resolution image based on the event flow at the first moment, the historical hidden state features are input into the multi-branch information fusion model together with the event flow at the first moment. The historical hidden state features can be used for reference, which is beneficial to improve the quality of the target super-resolution image.

[0109] Step S150, stitching the first event frame, adjacent event frames, historical super-resolution images and historical hidden state features through a stitching module to obtain a first stitched image;

[0110] Step S160, fusing the first stitched image with the positive stitched image through a feature fusion module to obtain a positive fusion feature; fusing the first stitched image with the negative stitched image through a feature fusion module to obtain a negative fusion feature;

[0111] Step S170, performing feature exchange based on the positive fusion feature and the negative fusion feature to obtain the positive and negative exchange fusion feature, and obtaining the target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features.

[0112] In the embodiment of the present application, through steps S110 to S170, the first positive event count image and the adjacent positive event count image are spliced ​​to obtain a positive spliced ​​image; the first negative event count image and the adjacent negative event count image are spliced ​​to obtain a negative spliced ​​image; the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature are spliced ​​by the splicing module to obtain a first spliced ​​image; the information fusion of the first moment event stream and the adjacent event stream is realized, that is, the fusion of context information is realized, the expressive ability of the feature is enhanced, and it is beneficial to remove the noise in the positive count image and the negative count image; the first spliced ​​image is fused with the positive spliced ​​image, and the first spliced ​​image is fused with the negative spliced ​​image, so as to enhance the information of the positive spliced ​​image and the negative spliced ​​image, and then the feature is exchanged based on the positive fusion feature and the negative fusion feature to obtain the positive and negative exchange fusion feature, and the target super-resolution image of the first moment event stream is obtained based on the positive and negative exchange fusion features. In the feature exchange process, the information complementary relationship and long-distance dependence between the first positive event count image and the first negative event count image are captured, so as to improve the quality of the target super-resolution image. In this way, the present application can distinguish and fully utilize the positive events, negative events and event frames of the event stream, realize information complementarity between positive events and negative events, and improve the quality of super-resolution images.

[0113] In one embodiment, before step S160, the image processing method further includes the following steps:

[0114] Feature extraction is performed on the first stitched image to obtain a first stitching feature; feature extraction is performed on the positive stitched image to obtain a first positive stitching feature; feature extraction is performed on the negative stitched image to obtain a first negative stitching feature.

[0115] Exemplarily, the multi-branch information fusion model is provided with a 2D convolution layer, and the first spliced ​​image is feature extracted by the 2D convolution layer to obtain the first splicing feature F enh ∈R C×H×W; Extract features of the positive splicing image through the 2D convolution layer to obtain the first positive splicing feature The negative splicing image is feature extracted through a 2D convolutional layer to obtain the first negative splicing feature Wherein, C is the number of channels, and in one embodiment, C is 128.

[0116] In one embodiment, referring to Figure 3 and Figure 4 , Figure 3 Based Figure 1 Schematic diagram of the specific process of obtaining positive fusion features in step S160. Figure 4 for Figure 1 Detailed flowchart of obtaining negative fusion features in step S160. Figure 2 The feature fusion module is provided with a basic activation unit, and each basic activation unit has the same structure. The basic activation unit includes a convolution layer, a batch normalization layer (Batch Normalization, BN) and an activation function layer connected in sequence, and the activation function layer adopts the RELU activation function; the basic activation unit first convolves the input features through the convolution layer, and then batch normalizes the convolved input features through the batch normalization layer, and then activates the input features using the RELU activation function to obtain the output features.

[0117] Figure 3 The illustrated step flow includes but is not limited to step S310 to step S320.

[0118] Step S310, concatenating the first concatenation feature and the first positive concatenation feature in the channel dimension to obtain a second positive concatenation feature; inputting the second positive concatenation feature into a basic activation unit of a feature fusion module to obtain a third positive concatenation feature;

[0119] Step S320, performing local attention processing on the third positive splicing feature to obtain a positive local attention feature; performing global attention processing on the third positive splicing feature to obtain a positive global attention feature; inputting the positive local attention feature and the positive global attention feature into an attention combination formula to obtain a positive fusion feature;

[0120] Figure 4 The illustrated step flow includes but is not limited to step S410 to step S420.

[0121] Step S410, concatenating the first concatenated feature and the first negative concatenated feature in the channel dimension to obtain a second negative concatenated feature; inputting the second negative concatenated feature into a basic activation unit of a feature fusion module to obtain a third negative concatenated feature;

[0122] Step S420, performing local attention processing on the third negative splicing feature to obtain a negative local attention feature; performing global attention processing on the third negative splicing feature to obtain a negative global attention feature; inputting the negative local attention feature and the negative global attention feature into an attention combination formula to obtain a negative fusion feature;

[0123] The attention combination formula is:

[0124]

[0125] Among them, ☉ represents the inner product between two matrices, σ represents the sigmoid activation function, Represents the broadcast sum between matrices; Characterize negative fusion features or positive fusion features; characterizing a first positive splicing feature or a first negative splicing feature; characterizing a third negative splicing feature or a third positive splicing feature; Characterizing positive global attention features or negative global attention features; Characterize positive local attention features or negative local attention features.

[0126] Specifically, when the attention combination formula is used to calculate the positive fusion feature, Characterize the positive fusion features, for Characterize the first positive splicing feature, Characterizing the third positive splicing feature, Characterizes positive global attention features, Characterizing positive local attention features.

[0127] When the attention combination formula is used to calculate the negative fusion feature, Characterize negative fusion features, for Characterizing the first negative splicing feature, Characterizing the third negative splicing feature, Characterize negative global attention features, Characterizing negative local attention features.

[0128] The embodiment of the present application obtains positive fusion features through steps S310 to S320, and obtains negative fusion features through steps S410 to S420, thereby realizing the fusion of context information, enhancing the expression capabilities of positive fusion features and negative fusion features, and facilitating improving the quality of the target super-resolution image.

[0129] In one embodiment, the process of local attention processing is expressed as:

[0130]

[0131] Among them, BN represents the batch normalization layer, C 1×1 Represents a 1×1 convolution operation, and R represents a RELU activation function; Characterizing positive local attention features or negative local attention features; Characterize the third negative splicing feature or the third positive splicing feature. Specifically, when the third positive splicing feature is subjected to local attention processing, Characterizes positive local attention features, Characterizes the third positive splicing feature. When the third negative splicing feature is processed with local attention, Characterize negative local attention features, Characterization of the third negative splicing feature.

[0132] In one embodiment, the process of global attention processing is expressed as:

[0133]

[0134] in, represents positive global attention features or negative global attention features; GAP represents the global average pooling operation (Global Average Pooling, GAP); f att Characterize local attention processing; Characterize the third negative splicing feature or the third positive splicing feature. Specifically, when the third positive splicing feature is subjected to global attention processing, Characterizes positive global attention features, Characterize the third positive splicing feature. When the third negative splicing feature is processed with global attention, Characterize negative global attention features, Characterization of the third negative splicing feature.

[0135] In one embodiment, the multi-branch information fusion model is further provided with a feature exchange module and a residual module; Figure 5 , Figure 5 for Figure 1 Specific flow chart of step S170 in FIG. Figure 5 The illustrated process steps include but are not limited to step S510 to step S550.

[0136] Step S510, performing a residual feature extraction operation on the positive fusion feature through the residual module to obtain a first positive fusion residual feature; performing a residual feature extraction operation on the negative fusion feature through the residual module to obtain a first negative fusion residual feature;

[0137] In one embodiment, the multi-branch information fusion model is provided with a plurality of residual modules, each residual module is provided with three residual layers, the positive fusion feature is input into the residual module, and is processed by the three residual layers in sequence to obtain the first positive fusion residual feature; the negative fusion feature is input into the residual module, and is processed by the three residual layers in sequence to obtain the first negative fusion residual feature. The processing process of the residual layer is expressed as:

[0138]

[0139] Among them, Conv represents a 2D convolutional layer, Characterize the output features of the residual layer, Characterize the input features of the residual layer. The residual module can effectively solve the gradient vanishing problem and simplify the learning process, so the first positive fusion feature and the first negative fusion feature are more robust, which is conducive to improving the quality of the target super-resolution image.

[0140] Step S520, performing feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through a feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature;

[0141] Step S530, performing a residual feature extraction operation on the positive exchange fusion feature through the residual module to obtain a second positive fusion residual feature; performing a residual feature extraction operation on the negative exchange fusion feature through the residual module to obtain a second negative fusion residual feature;

[0142] It is worth noting that the processing process of the residual module in step S530 is the same as the processing process of the residual module in step S510. The residual module can effectively solve the gradient vanishing problem and simplify the learning process. Therefore, the second positive fusion feature and the second negative fusion feature are more robust, which is beneficial to improving the quality of the target super-resolution image.

[0143] Step S540, concatenating the second positive fusion residual feature and the second negative fusion residual feature in the channel dimension to obtain a positive and negative exchange fusion feature;

[0144] Step S550, performing a convolution operation on the positive and negative exchange fusion features to obtain a target hidden state feature, performing a pixel reordering operation on the target hidden state feature to obtain a target super-resolution image.

[0145] In one embodiment, a convolution operation is performed on the positive and negative exchange fusion features through a 2D convolution layer to obtain a target hidden state feature, which represents the intermediate process information of generating a target super-resolution image based on the event stream at the first moment. When super-resolution is performed based on the event stream with a timestamp of time t+1, the target hidden state feature is used as a reference. After obtaining the target hidden state feature, the target hidden state feature is pixel-reordered. For example, if the number of channels of the target hidden state feature is r*C, the height is H, and the width is W, then the number of channels of the target hidden state feature is reduced to C, the height is set to rH, and the width is set to rW, then a target super-resolution image O with a size of C×rH×rW can be obtained. t , r is the upsampling factor, and those skilled in the art can set r according to actual needs. Pixel reordering compresses the number of channels in the feature map to expand its width and length, thereby improving the resolution of the image without introducing additional parameters and computational consumption.

[0146] The embodiment of the present application can improve the robustness and expressiveness of the second positive fusion residual feature and the second negative fusion residual feature through steps S510 to S550, reduce the redundancy of the second positive fusion residual feature and the second negative fusion residual feature and highlight important features, and splice the second positive fusion residual feature and the second negative fusion residual feature in the channel dimension to obtain positive and negative exchange fusion features, thereby achieving information complementarity between the second positive fusion residual feature and the second negative fusion residual feature, which can effectively improve the performance of super-resolution, thereby improving the quality of the target super-resolution image.

[0147] In one embodiment, the feature exchange module is provided with an attention module; Figure 6 , Figure 6 for Figure 5 Specific flow chart of step S520 in FIG. Figure 6 The illustrated process steps include but are not limited to step S610 to step S640.

[0148] Step S610, inputting the first positive fusion residual feature into the basic activation unit to obtain a second positive fusion residual feature; inputting the first negative fusion residual feature into the basic activation unit to obtain a second negative fusion residual feature;

[0149] Step S620, inputting the second positive fusion residual feature into the first calculation formula to calculate a third positive fusion residual feature; inputting the second negative fusion residual feature into the first calculation formula to calculate a third negative fusion residual feature;

[0150] Step S630, performing convolution processing on the third positive fusion residual feature to obtain a fourth positive fusion residual feature; performing convolution processing on the third negative fusion residual feature to obtain a fourth negative fusion residual feature and a fifth negative fusion residual feature;

[0151] In one embodiment, the third positive fusion residual feature is convolved through a 2D convolution layer to obtain a fourth positive fusion residual feature; the third negative fusion residual feature is first convolved through a 2D convolution layer to obtain a fourth negative fusion residual feature, and then the third negative fusion residual feature is convolved through a 2D convolution layer again to obtain a fifth negative fusion residual feature, and the fourth negative fusion residual feature is different from the fifth negative fusion residual feature.

[0152] Step S640, inputting the fourth positive fusion residual feature and the fourth negative fusion residual feature into the attention module to obtain the positive exchange fusion feature and the negative exchange fusion feature; the processing process of the attention module is expressed as:

[0153]

[0154] in, represents the positive exchange fusion feature or the negative exchange fusion feature; V represents the fourth positive exchange fusion feature; Q represents the fourth negative exchange fusion feature; K represents the fifth negative exchange fusion feature; Q T represents the transpose of Q; σ represents the sigmoid activation function; when x is p, is a positive exchange fusion feature. When x is N, It is the negative exchange fusion feature, and the positive exchange fusion feature is equal to the negative exchange fusion feature.

[0155] The first calculation formula is:

[0156]

[0157] in, Characterizing a third positive fusion residual feature or a third negative fusion residual feature; represents the second positive fusion residual feature or the second negative fusion residual feature; ☉ represents the inner product between two matrices; Conv represents the 2D convolution layer. Specifically, when the first calculation formula is used to calculate the third positive fusion residual feature, for Characterize the third positive fusion residual feature, Characterizes the second positive fusion residual feature. When the first calculation formula is used to calculate the third negative fusion residual feature, for Characterize the third negative fusion residual feature, Characterize the second negative fusion residual features.

[0158] The embodiment of the present application implements feature exchange of the first positive fusion residual feature and the first negative fusion residual feature through steps S610 to S640 to obtain positive exchange fusion features and negative exchange fusion features. In the process of feature exchange, complementary fusion of the first positive fusion residual feature and the first negative fusion residual feature is implemented, and the information complementary relationship and field distance dependence between the first positive fusion residual feature and the first negative fusion residual feature can be captured, thereby effectively improving the performance of the event stream image processing method and improving the quality of the target super-resolution image.

[0159] Reference Figure 7 , Figure 7 This is a comparison chart of the results obtained by super-resolution of the same event stream image by the image processing method of the present application and the image processing method in the related art. Figure 8 , Figure 8 This is a comparison of result data obtained by super-resolution of the same event stream image by the image processing method of the present application in the embodiment of the present application and the image processing method in the related art.

[0160] exist Figure 8 In the “Ours” column, the data is the result obtained by the image processing method of the embodiment of the present application. Figure 7 In the figure, LR represents a low-resolution event stream image, HR represents the corresponding high-resolution event stream image, and Frame represents the RGB image corresponding to the event stream image. Bicubic and SRFBN are classic image processing methods, RSTT is a video image processing method, EventZoom and RecEvSR are both event stream image processing methods in related technologies, and RMFNet is the target super-resolution image obtained by the image processing method of this application. Figure 7 and Figure 8 It can be seen that the image processing method proposed in this application can effectively improve the effect of event stream super-resolution and obtain clearer edges and details.

[0161] In the second embodiment of the present application, refer to Fig. 9 , Fig. 9 It is a flowchart of the model training method of an embodiment of the present application. Fig. 9 The illustrated process includes but is not limited to steps S810 to S880.

[0162] Step S810, obtaining a first moment training event stream of the event camera and adjacent training event streams adjacent to the timestamp of the first moment training event stream;

[0163] In one embodiment, the NFS data set is converted into event stream data with 2(4, 8)× data pairs by an event camera simulator ESIM, and then 70% of the sequences are selected as training data and 30% of the data are selected as test data. The same division is also made for the real data set EventNFS and used for training and testing. The timestamp of the training event stream at the first moment is t, and the adjacent training event streams include the training event stream at the second moment and the training event stream at the third moment, the timestamp of the training event stream at the second moment is t-1, and the timestamp of the training event stream at the third moment is t+1.

[0164] Step S820, generating a first positive event count training image, a first negative event count training image, and a first training event frame based on the first moment training event stream; generating adjacent positive event count training images, adjacent negative event count training images, and adjacent training event frames based on adjacent training event streams;

[0165] In one embodiment, the first moment training event stream is converted into a first positive event count training image and a first negative event count training image based on an event count image conversion formula. The second moment training event stream is converted into a second positive event count training image and a second negative event count training image based on an event count image conversion formula. The second moment training event stream is converted into a second positive event count training image and a second negative event count training image based on an event count image conversion formula. Then, the first positive event count training image and the first negative event count training image are added to obtain a first training event frame; the second positive event count training image and the second negative event count training image are added to obtain a second training event frame; the third positive event count training image and the third negative event count training image are added to obtain a third training event frame; adjacent training event frames include the second training event frame and the third training event frame. Adjacent positive event count training images include the second positive event count training image and the third positive event count training image; adjacent negative event count training images include the second negative event count training image and the third negative event count training image.

[0166] Step S830, splicing the first positive event count training image with adjacent positive event count training images to obtain a positive splicing training image; splicing the first negative event count training image with adjacent negative event count training images to obtain a negative splicing training image;

[0167] Step S840, inputting the positive splicing training image, the negative splicing training image, the first training event frame, the adjacent training event frame, the historical super-resolution training image and the historical hidden state training feature into the initial multi-branch information fusion model; wherein the multi-branch information fusion model includes a splicing module and a feature fusion module; the historical super-resolution training image is a super-resolution training image generated by the multi-branch information fusion model for the adjacent training event stream of the previous time sequence; the historical hidden state training feature representation is the intermediate information when generating the historical super-resolution training image;

[0168] Step S850, splicing the first training event frame, adjacent training event frames, historical super-resolution training images, and historical hidden state training features through a splicing module to obtain a first spliced ​​training image;

[0169] Step S860, fusing the first spliced ​​training image with the positive spliced ​​training image through a feature fusion module to obtain a positive fusion training feature; fusing the first spliced ​​training image with the negative spliced ​​training image through a feature fusion module to obtain a negative fusion training feature;

[0170] Step S870, exchanging training features based on the positive fusion training features and the negative fusion training features to obtain positive and negative exchange fusion training features, and obtaining a target super-resolution training image of the training event stream at the first moment based on the positive and negative exchange fusion training features;

[0171] Step S880, calculating a loss value based on the target super-resolution training image and the real image of the training event stream at the first moment; optimizing the multi-branch information fusion model based on the loss value to obtain a trained multi-branch information fusion model.

[0172] In one embodiment, the loss value is calculated by the following formula:

[0173]

[0174] Among them, L is the loss value, T is 9, MSE represents the mean square error, O t Characterize the target super-resolution training image, The loss value is calculated by the real image representing the first moment training event stream. By back-propagating the loss value, the weight of the network can be effectively trained, thereby optimizing the multi-branch information fusion model and obtaining a trained multi-branch information fusion model.

[0175] In one embodiment, before step S860, the following steps are further included:

[0176] Feature extraction is performed on the first spliced ​​training image to obtain a first spliced ​​training feature; feature extraction is performed on the positive spliced ​​training image to obtain a first positive spliced ​​training feature; feature extraction is performed on the negative spliced ​​training image to obtain a first negative spliced ​​training feature.

[0177] In one embodiment, step S860 includes but is not limited to the following steps:

[0178] The first concatenated training feature and the first positive concatenated training feature are concatenated in the channel dimension to obtain a second positive concatenated training feature; the second positive concatenated training feature is input into the basic activation unit of the training feature fusion module to obtain a third positive concatenated training feature;

[0179] Performing local attention processing on the third positive splicing training feature to obtain a positive local attention training feature; performing global attention processing on the third positive splicing training feature to obtain a positive global attention training feature; inputting the positive local attention training feature and the positive global attention training feature into the attention combination formula to obtain a positive fusion training feature;

[0180] The first concatenated training feature and the first negative concatenated training feature are concatenated in the channel dimension to obtain a second negative concatenated training feature; the second negative concatenated training feature is input into the basic activation unit of the training feature fusion module to obtain a third negative concatenated training feature;

[0181] Perform local attention processing on the third negative splicing training feature to obtain a negative local attention training feature; perform global attention processing on the third negative splicing training feature to obtain a negative global attention training feature; input the negative local attention training feature and the negative global attention training feature into the attention combination formula to obtain a negative fusion training feature.

[0182] In one embodiment, step S870 may include but is not limited to the following steps:

[0183] Performing a residual feature extraction operation on the positive fusion training feature through the residual module to obtain a first positive fusion residual training feature; performing a residual feature extraction operation on the negative fusion training feature through the residual module to obtain a first negative fusion residual training feature;

[0184] The first positive fusion residual training feature and the first negative fusion residual training feature are exchanged through the training feature exchange module to obtain a positive exchange fusion training feature and a negative exchange fusion training feature;

[0185] Performing a residual feature extraction operation on the positive exchange fusion training feature through the residual module to obtain a second positive fusion residual training feature; performing a residual feature extraction operation on the negative exchange fusion training feature through the residual module to obtain a second negative fusion residual training feature;

[0186] The second positive fusion residual training feature and the second negative fusion residual training feature are concatenated in the channel dimension to obtain the positive and negative exchange fusion training feature;

[0187] A convolution operation is performed on the positive and negative exchange fusion training features to obtain the target hidden state training features, and a pixel reordering operation is performed on the target hidden state training features to obtain the target super-resolution training image.

[0188] In one embodiment, performing training feature exchange on the first positive fusion residual training feature and the first negative fusion residual training feature through a training feature exchange module to obtain a positive exchange fusion training feature and a negative exchange fusion training feature may include the following steps:

[0189] Input the first positive fusion residual training feature into the basic activation unit to obtain the second positive fusion residual training feature; input the first negative fusion residual training feature into the basic activation unit to obtain the second negative fusion residual training feature;

[0190] Input the second positive fusion residual training feature into the first calculation formula to calculate the third positive fusion residual training feature; input the second negative fusion residual training feature into the first calculation formula to calculate the third negative fusion residual training feature;

[0191] The third positive fusion residual training feature is convolved to obtain a fourth positive fusion residual training feature; the third negative fusion residual training feature is convolved to obtain a fourth negative fusion residual training feature and a fifth negative fusion residual training feature; wherein, the third negative fusion residual training feature is first convolved through a 2D convolution layer to obtain the fourth negative fusion residual training feature, and then, the third negative fusion residual training feature is convolved again through a 2D convolution layer to obtain the fifth negative fusion residual training feature, and the fourth negative fusion residual training feature is different from the fifth negative fusion residual training feature.

[0192] The fourth positive fusion residual training feature and the fourth negative fusion residual training feature are input into the attention module to obtain the positive exchange fusion training feature and the negative exchange fusion training feature.

[0193] Reference Fig.10 According to a third aspect of the present application, an image processing device is provided, comprising:

[0194] An acquisition module 910 is used to acquire a first moment event stream of an event camera and an adjacent event stream adjacent to a timestamp of the first moment event stream;

[0195] A generating module 920 is used to generate a first positive event count image, a first negative event count image and a first event frame based on a first moment event stream; and to generate an adjacent positive event count image, an adjacent negative event count image and an adjacent event frame based on an adjacent event stream;

[0196] The first stitching module 930 is used to stitch the first positive event count image with the adjacent positive event count images to obtain a positive stitching image; and stitch the first negative event count image with the adjacent negative event count images to obtain a negative stitching image;

[0197] Input module 940, used to input positive stitching image, negative stitching image, first event frame, adjacent event frame, historical super-resolution image and historical hidden state feature into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image generated by the multi-branch information fusion model for the adjacent event stream of the previous time sequence; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image;

[0198] A second stitching module 950 is used to stitch the first event frame, the adjacent event frames, the historical super-resolution image and the historical hidden state features through a stitching module to obtain a first stitched image;

[0199] A fusion module 960 is used to fuse the first stitched image with the positive stitched image through a feature fusion module to obtain a positive fusion feature; and to fuse the first stitched image with the negative stitched image through a feature fusion module to obtain a negative fusion feature;

[0200] The exchange module 970 is used to perform feature exchange based on the positive fusion feature and the negative fusion feature to obtain the positive and negative exchange fusion features, and obtain the target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features.

[0201] The image processing device can execute the image processing method of the first embodiment of the present application. The image processing device can execute the image processing method to splice the first positive event count image and the adjacent positive event count image to obtain a positive spliced ​​image; splice the first negative event count image and the adjacent negative event count image to obtain a negative spliced ​​image; splice the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature through the splicing module to obtain a first spliced ​​image; realize the information fusion of the first moment event stream and the adjacent event stream, that is, realize the fusion of context information, enhance the expression ability of the feature, and facilitate the removal of noise in the positive count image and the negative count image; fuse the first spliced ​​image with the positive spliced ​​image, and fuse the first spliced ​​image with the negative spliced ​​image, realize the information enhancement of the positive spliced ​​image and the negative spliced ​​image, then exchange features based on the positive fusion feature and the negative fusion feature to obtain the positive and negative exchange fusion features, and obtain the target super-resolution image of the first moment event stream based on the positive and negative exchange fusion features. In the feature exchange process, the information complementary relationship and long-distance dependence between the first positive event count image and the first negative event count image are captured, which is conducive to improving the quality of the target super-resolution image. In this way, the present application can distinguish and fully utilize the positive events, negative events and event frames of the event stream, realize information complementarity between positive events and negative events, and improve the quality of super-resolution images.

[0202] In one embodiment, the image processing device further includes a feature extraction module, which is used to extract features from the first stitched image to obtain a first stitching feature; extract features from the positive stitched image to obtain a first positive stitching feature; and extract features from the negative stitched image to obtain a first negative stitching feature. The fusion module 960 also includes a first fusion unit and a second fusion unit, and the first fusion unit is used to:

[0203] The first splicing feature and the first positive splicing feature are spliced ​​in the channel dimension to obtain a second positive splicing feature; the second positive splicing feature is input into the basic activation unit of the feature fusion module to obtain a third positive splicing feature;

[0204] Performing local attention processing on the third positive splicing feature to obtain a positive local attention feature; performing global attention processing on the third positive splicing feature to obtain a positive global attention feature; inputting the positive local attention feature and the positive global attention feature into the attention combination formula to obtain a positive fusion feature.

[0205] The second fusion unit is used for:

[0206] The first splicing feature and the first negative splicing feature are spliced ​​in the channel dimension to obtain a second negative splicing feature; the second negative splicing feature is input into the basic activation unit of the feature fusion module to obtain a third negative splicing feature;

[0207] Performing local attention processing on the third negative splicing feature to obtain a negative local attention feature; performing global attention processing on the third negative splicing feature to obtain a negative global attention feature; inputting the negative local attention feature and the negative global attention feature into the attention combination formula to obtain a negative fusion feature.

[0208] In one embodiment, the exchange module 970 includes a first residual processing unit, a feature exchange unit, a second residual processing unit, a splicing unit and a rearrangement unit.

[0209] The first residual processing unit is used to perform a residual feature extraction operation on the positive fusion feature through the residual module to obtain a first positive fusion residual feature; and perform a residual feature extraction operation on the negative fusion feature through the residual module to obtain a first negative fusion residual feature;

[0210] The feature exchange unit is used to perform feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through the feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature;

[0211] The second residual processing unit is used to perform a residual feature extraction operation on the positive exchange fusion feature through the residual module to obtain a second positive fusion residual feature; perform a residual feature extraction operation on the negative exchange fusion feature through the residual module to obtain a second negative fusion residual feature;

[0212] The concatenation unit is used to concatenate the second positive fusion residual feature and the second negative fusion residual feature in the channel dimension to obtain a positive and negative exchange fusion feature;

[0213] The rearrangement unit is used to perform a convolution operation on the positive and negative exchange fusion features to obtain the target hidden state features, and perform a pixel reordering operation on the target hidden state features to obtain the target super-resolution image.

[0214] In one embodiment, the feature exchange unit includes an activation unit, a calculation unit, a convolution unit and an exchange fusion unit.

[0215] The activation unit is used to input the first positive fusion residual feature into the basic activation unit to obtain the second positive fusion residual feature; input the first negative fusion residual feature into the basic activation unit to obtain the second negative fusion residual feature;

[0216] The calculation unit is used to input the second positive fusion residual feature into the first calculation formula to calculate the third positive fusion residual feature; input the second negative fusion residual feature into the first calculation formula to calculate the third negative fusion residual feature;

[0217] The convolution unit is used to perform convolution processing on the third positive fusion residual feature to obtain a fourth positive fusion residual feature; perform convolution processing on the third negative fusion residual feature to obtain a fourth negative fusion residual feature and a fifth negative fusion residual feature;

[0218] The exchange fusion unit is used to input the fourth positive fusion residual feature and the fourth negative fusion residual feature into the attention module to obtain the positive exchange fusion feature and the negative exchange fusion feature.

[0219] The fourth aspect of the present application provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements any image processing method of the first aspect of the embodiment or the model training method of the second aspect of the embodiment when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0220] Reference Fig.11 , Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes:

[0221] The processor 101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0222] The memory 102 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 102 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 102, and the processor 101 calls and executes the image processing method or model training method of the embodiment of this application;

[0223] Input / output interface 103, used to implement information input and output;

[0224] The communication interface 104 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0225] A bus 105 that transmits information between the various components of the device (e.g., the processor 101, the memory 102, the input / output interface 103, and the communication interface 104);

[0226] The processor 101 , the memory 102 , the input / output interface 103 and the communication interface 104 are connected to each other in communication within the device via the bus 105 .

[0227] The fifth aspect of the present application is a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the image processing method of any one of the first aspect embodiments or the model training method of the second aspect embodiments.

[0228] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0229] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0230] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0231] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0232] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0233] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0234] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the mapping relationship of the mapping objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next mapping objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0235] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0236] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0237] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0238] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0239] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. An image processing method, characterized in that: include: Obtaining a first moment event stream of an event camera and adjacent event streams adjacent to the timestamp of the first moment event stream; Generate a first positive event count image, a first negative event count image and a first event frame based on the first moment event stream; generating an adjacent positive event count image, an adjacent negative event count image and an adjacent event frame based on the adjacent event stream; splicing the first positive event count image and the adjacent positive event count image to obtain a positive spliced ​​image; splicing the first negative event count image and the adjacent negative event count image to obtain a negative spliced ​​image; The positive stitched image, the negative stitched image, the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature are input into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image generated by the multi-branch information fusion model for the adjacent event stream of the previous time sequence; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image; The first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature are spliced ​​together by the splicing module to obtain a first spliced ​​image; The first stitched image is fused with the positive stitched image by the feature fusion module to obtain a positive fusion feature; the first stitched image is fused with the negative stitched image by the feature fusion module to obtain a negative fusion feature; Based on the positive fusion feature and the negative fusion feature, feature exchange is performed to obtain a positive and negative exchange fusion feature, and based on the positive and negative exchange fusion features, a target super-resolution image of the event stream at the first moment is obtained.

2. The image processing method according to claim 1, characterized in that: The feature fusion module is provided with a basic activation unit; Before fusing the first stitched image with the positive stitched image through the feature fusion module to obtain the positive fusion feature, the method includes: Performing feature extraction on the first stitched image to obtain a first stitching feature; performing feature extraction on the positive stitched image to obtain a first positive stitching feature; performing feature extraction on the negative stitched image to obtain a first negative stitching feature; The step of fusing the first stitched image with the positive stitched image by the feature fusion module to obtain a positive fusion feature includes: Splicing the first splicing feature and the first positive splicing feature in the channel dimension to obtain a second positive splicing feature; inputting the second positive splicing feature into the basic activation unit of the feature fusion module to obtain a third positive splicing feature; Performing local attention processing on the third positive splicing feature to obtain a positive local attention feature; performing global attention processing on the third positive splicing feature to obtain a positive global attention feature; inputting the positive local attention feature and the positive global attention feature into an attention combination formula to obtain the positive fusion feature; The step of fusing the first stitched image with the negative stitched image by the feature fusion module to obtain a negative fusion feature includes: Splicing the first splicing feature and the first negative splicing feature in the channel dimension to obtain a second negative splicing feature; inputting the second negative splicing feature into the basic activation unit of the feature fusion module to obtain a third negative splicing feature; Performing local attention processing on the third negative splicing feature to obtain a negative local attention feature; performing global attention processing on the third negative splicing feature to obtain a negative global attention feature; inputting the negative local attention feature and the negative global attention feature into the attention combination formula to obtain the negative fusion feature; The attention combination formula is: Among them, ☉ represents the inner product between two matrices, σ represents the sigmoid activation function, Represents the broadcast sum between matrices; characterizing the negative fusion feature or the positive fusion feature; characterizing the first positive splicing feature or the first negative splicing feature; characterizing the third negative splicing feature or the third positive splicing feature; characterizing the positive global attention feature or the negative global attention feature; Characterize the positive local attention feature or the negative local attention feature.

3. The image processing method according to claim 2, characterized in that: The process of local attention processing is expressed as: Among them, BN represents the batch normalization layer, C 1×1 represents a 1×1 convolution operation, and R represents a ReLU activation function; Characterizing the positive local attention feature or the negative local attention feature; Characterizing the third negative splicing feature or the third positive splicing feature.

4. The image processing method according to claim 2, characterized in that: The process of global attention processing is expressed as: in, represents the positive global attention feature or the negative global attention feature; GAP represents the global average pooling operation; f att Characterize local attention processing; Characterizing the third negative splicing feature or the third positive splicing feature.

5. The image processing method according to claim 1, characterized in that: The multi-branch information fusion model is also provided with a feature exchange module and a residual module; The step of performing feature exchange based on the positive fusion feature and the negative fusion feature to obtain a positive and negative exchange fusion feature, and obtaining a target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features includes: Performing a residual feature extraction operation on the positive fusion feature through the residual module to obtain a first positive fusion residual feature; performing a residual feature extraction operation on the negative fusion feature through the residual module to obtain a first negative fusion residual feature; Performing feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through the feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature; Performing a residual feature extraction operation on the positive exchange fusion feature through the residual module to obtain a second positive fusion residual feature; performing a residual feature extraction operation on the negative exchange fusion feature through the residual module to obtain a second negative fusion residual feature; Concatenate the second positive fusion residual feature and the second negative fusion residual feature in the channel dimension to obtain the positive and negative exchange fusion feature; A convolution operation is performed on the positive and negative exchange fusion features to obtain a target hidden state feature, and a pixel reordering operation is performed on the target hidden state feature to obtain the target super-resolution image.

6. The image processing method according to claim 5, characterized in that: The feature exchange module is provided with an attention module; The step of performing feature exchange on the first positive fusion residual feature and the first negative fusion residual feature through the feature exchange module to obtain a positive exchange fusion feature and a negative exchange fusion feature includes: Inputting the first positive fusion residual feature into a basic activation unit to obtain a second positive fusion residual feature; inputting the first negative fusion residual feature into the basic activation unit to obtain a second negative fusion residual feature; Inputting the second positive fusion residual feature into the first calculation formula to calculate a third positive fusion residual feature; inputting the second negative fusion residual feature into the first calculation formula to calculate a third negative fusion residual feature; Performing convolution processing on the third positive fusion residual feature to obtain a fourth positive fusion residual feature; performing convolution processing on the third negative fusion residual feature to obtain a fourth negative fusion residual feature and a fifth negative fusion residual feature; The fourth positive fusion residual feature and the fourth negative fusion residual feature are input into the attention module to obtain the positive exchange fusion feature and the negative exchange fusion feature; the processing process of the attention module is expressed as: in, Characterizes the positive exchange fusion feature or the negative exchange fusion feature; V characterizes the fourth positive exchange fusion feature; Q characterizes the fourth negative exchange fusion feature; K characterizes the fifth negative exchange fusion feature; Q T represents the transpose of Q; σ represents the sigmoid activation function; The first calculation formula is: in, Characterizing the third positive fusion residual feature or the third negative fusion residual feature; Represents the second positive fusion residual feature or the second negative fusion residual feature; ☉ represents the inner product between two matrices; Conv represents a 2D convolutional layer.

7. A model training method, characterized in that: include: Obtain a first moment training event stream of the event camera and adjacent training event streams adjacent to the timestamp of the first moment training event stream; Generate a first positive event count training image, a first negative event count training image and a first training event frame based on the first moment training event stream; Generate an adjacent positive event count training image, an adjacent negative event count training image, and an adjacent training event frame based on the adjacent training event stream; splicing the first positive event count training image and the adjacent positive event count training images to obtain a positive spliced ​​training image; splicing the first negative event count training image and the adjacent negative event count training images to obtain a negative splicing training image; The positive splicing training image, the negative splicing training image, the first training event frame, the adjacent training event frame, the historical super-resolution training image and the historical hidden state training feature are input into an initial multi-branch information fusion model; wherein the multi-branch information fusion model includes a splicing module and a feature fusion module; the historical super-resolution training image is a super-resolution training image generated by the multi-branch information fusion model for the adjacent training event stream of the previous time sequence; the historical hidden state training feature representation is the intermediate information when generating the historical super-resolution training image; The first training event frame, the adjacent training event frame, the historical super-resolution training image and the historical hidden state training feature are spliced ​​together by the splicing module to obtain a first spliced ​​training image; The first spliced ​​training image is fused with the positive spliced ​​training image by the feature fusion module to obtain a positive fusion training feature; the first spliced ​​training image is fused with the negative spliced ​​training image by the feature fusion module to obtain a negative fusion training feature; Performing training feature exchange based on the positive fusion training feature and the negative fusion training feature to obtain positive and negative exchange fusion training features, and obtaining a target super-resolution training image of the training event stream at the first moment based on the positive and negative exchange fusion training features; A loss value is calculated based on the target super-resolution training image and the real image of the training event stream at the first moment; and the multi-branch information fusion model is optimized based on the loss value to obtain the trained multi-branch information fusion model.

8. An image processing device, characterized in that: include: An acquisition module, used to acquire a first moment event stream of an event camera and an adjacent event stream adjacent to a timestamp of the first moment event stream; A generating module, configured to generate a first positive event count image, a first negative event count image and a first event frame based on the event stream at the first moment; generating an adjacent positive event count image, an adjacent negative event count image and an adjacent event frame based on the adjacent event stream; A first stitching module is used to stitch the first positive event count image with the adjacent positive event count image to obtain a positive stitching image; and stitch the first negative event count image with the adjacent negative event count image to obtain a negative stitching image; An input module is used to input the positive stitching image, the negative stitching image, the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature into a pre-trained multi-branch information fusion model; wherein the multi-branch information fusion model includes a stitching module and a feature fusion module; the historical super-resolution image is a super-resolution image generated by the multi-branch information fusion model for the adjacent event stream of the previous time sequence; the historical hidden state feature representation is the intermediate information when generating the historical super-resolution image; A second splicing module, configured to splice the first event frame, the adjacent event frame, the historical super-resolution image and the historical hidden state feature through the splicing module to obtain a first spliced ​​image; a fusion module, configured to fuse the first stitched image with the positive stitched image through the feature fusion module to obtain a positive fusion feature; and fuse the first stitched image with the negative stitched image through the feature fusion module to obtain a negative fusion feature; An exchange module is used to perform feature exchange based on the positive fusion feature and the negative fusion feature to obtain positive and negative exchange fusion features, and obtain a target super-resolution image of the event stream at the first moment based on the positive and negative exchange fusion features.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the image processing method described in any one of claims 1 to 6, or the model training method described in claim 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the image processing method described in any one of claims 1 to 6, or the model training method described in claim 7.

Citation Information

Patent Citations

  • Super-resolution image reconstruction method based on event camera

    CN117437125A

  • Video frame insertion method based on spiking neural network and event camera

    CN117793553A

  • Image processing method and apparatus

    US20230177646A1

  • Image processing method and related apparatus

    WO2024002211A1

  • Three-dimensional reconstruction method and related apparatus

    WO2024061269A1