Compressed time imaging system and method for improving spatial resolution of high-speed color video

Through the dual-channel imaging acquisition and mutual attention mechanism video reconstruction model, the problem of color distortion in color video imaging in the existing technology is solved, the spatial resolution of high-speed color video is improved, and high-quality video reconstruction is achieved.

CN117615229BActive Publication Date: 2024-08-23WESTLAKE UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311569550.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-08-23
Estimated Expiration
2043-11-22

AI Technical Summary

Technical Problem

The existing color-coded aperture compressed time imaging device suffers from color distortion and loss of details due to the Bayer array acquisition method in high-speed color video imaging, resulting in low spatial resolution of high-speed color video.

Method used

A dual-channel imaging acquisition method is used, combining a grayscale camera and a color camera for encoding and compressing image acquisition, and a video reconstruction model based on a mutual attention mechanism is used for video reconstruction, and grayscale and color information are fused to improve spatial resolution.

Benefits of technology

It achieves high-quality color compressed sensing video reconstruction without losing spatial resolution, integrates the detail reconstruction of grayscale cameras and the color richness of color cameras, and improves the spatial resolution of high-speed color videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615229B
    Figure CN117615229B
Patent Text Reader

Abstract

The present invention provides a compressed time imaging system and method for improving the spatial resolution of high-speed color video. The compressed time imaging system adds a grayscale camera on the basis of an original coded aperture compressed time imaging device. After encoding a motion scene image, a grayscale camera and a color camera are used to perform dual-channel imaging to collect coded compressed images. Subsequently, the grayscale observation images and color observation images collected by the two channels are reconstructed using an optimized video reconstruction model based on a mutual attention mechanism to obtain a color video image with high spatial resolution. This scheme can combine the advantages of good reconstruction details of the grayscale camera and rich colors of the color camera, and use paired observation images of grayscale and color to achieve high-quality color compressed perception video reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of imaging, and in particular to a compressed time imaging system and method for improving the spatial resolution of high-speed color video. Background Art

[0002] High-speed color video imaging is a technology that allows color images or videos to be captured and processed at high frame rates. It has always been a major research direction in the field of imaging and has been widely used in military, sports events, biomedicine, automotive testing and other fields. The main problem with high-speed color video imaging is that the photoelectric conversion speed and responsiveness of the camera CMOS cannot achieve high-speed color scenes. At the same time, high-speed and high-resolution color video data requires ultra-large transmission bandwidth and storage space.

[0003] The video compression imaging system encodes the imaging surface of the high-speed motion scene, then collects the compressed encoded image through a low-speed camera, and finally reconstructs the high-speed motion scene using the compressed sensing algorithm. Therefore, it performs well in high-speed color video imaging scenes. Among them, the coded aperture compressed temporal imaging device (Compressed Sensing Temporal Imaging Device) that combines the principles of compressed sensing and temporal imaging can be used to capture and record fast-moving or rapidly changing phenomena. The core idea of ​​this device is to reduce the demand for data storage and transmission by effectively compressing data while maintaining high temporal resolution imaging. It has been widely studied because of its ability to reconstruct dynamic scenes with high-speed color video, low bandwidth, and low storage.

[0004] At present, the color-coded aperture compression time imaging device uses hardware coding to compress and collect color images, then decodes the collected information using software, and reconstructs the image with the help of computational imaging algorithms. In the hardware coding process, the binary coding mask loaded by the spatial light modulator (DMD) is often used to encode the color dynamic scene, and then the color camera is used for compression collection. However, since the color camera sensor adopts the Bayer array collection method, when collecting compressed color images, the Bayer array will interpolate the color information of the surrounding pixels to generate a complete color image, which leads to color distortion and loss of details, and then leads to a low resolution of the final high-speed color video space. Summary of the invention

[0005] The embodiments of the present application provide a compressed time imaging system and method for improving the spatial resolution of high-speed color video. Based on the original coded aperture compressed time imaging device, dual-path imaging acquisition is performed on the encoded motion scene image, and a high-spatial-resolution high-speed color video is reconstructed using a video reconstruction model based on a mutual attention mechanism.

[0006] In a first aspect, an embodiment of the present application provides a compressed time imaging method for improving the spatial resolution of high-speed color video, comprising the following steps:

[0007] Acquire multiple groups of observation image pairs corresponding to the motion scene captured by the compressed time imaging device, each observation image pair includes a grayscale observation image and a color observation image that are simultaneously exposed and acquired, wherein the compressed time imaging device includes a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, the motion scene picture is collected by the collection lens assembly and encoded by the spatial light modulator to obtain a binary encoded image, the binary encoded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary encoded image is imaged on the color camera through the second imaging lens to obtain a color observation image;

[0008] Each observed image pair is input into a pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structure branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structure branch through a cross-attention module between the structure branch and the color branch.

[0009] In a second aspect, an embodiment of the present application provides a compressed time imaging system for improving the spatial resolution of high-speed color video, including:

[0010] A compressed time imaging device, wherein the compressed time imaging device comprises a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, wherein the motion scene image is collected by the collection lens assembly and then encoded by the spatial light modulator to obtain a binary coded image, the binary coded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary coded image is imaged on the color camera through the second imaging lens to obtain a color observation image;

[0011] A processing unit, wherein a pre-trained video reconstruction model is provided in the processing unit, a plurality of observation image pairs corresponding to motion scenes shot by a compressed time imaging device are obtained, each observation image pair includes a grayscale observation image and a color observation image collected by simultaneous exposure, each observation image pair is input into the pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structural branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structural branch through a cross-attention module between the structural branch and the color branch.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the compressed time imaging method for improving the spatial resolution of high-speed color video.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process, and the process includes the compressed time imaging method for improving the spatial resolution of high-speed color video.

[0014] The main contributions and innovations of the present invention are as follows:

[0015] The embodiment of the present application adds a grayscale camera on the basis of the original coded aperture compression time imaging device. After encoding the motion scene image, a grayscale camera and a color camera are used for dual-channel imaging to collect coded compressed images. Subsequently, the grayscale observation images and color observation images collected by the two channels are reconstructed using an optimized video reconstruction model based on the mutual attention mechanism to obtain a color video image with high spatial resolution. Since the grayscale camera is a full array acquisition, the spatial resolution of the image collected by the grayscale camera and the color camera at the same time is greater than the spatial resolution of the image collected by the Bayer array of the single-channel color camera. The video reconstruction model based on the mutual attention mechanism can extract color information from the color coded compressed image and gradually and adaptively merge it into the grayscale image processing branch in the feature domain, thereby giving color information to the grayscale reconstructed video without losing spatial resolution. Therefore, this solution can combine the advantages of good reconstruction details of the grayscale camera and rich colors of the color camera, and use the paired observation images of grayscale and color to achieve high-quality color compression-aware video reconstruction.

[0016] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a schematic structural diagram of a compressed time imaging device for improving the spatial resolution of high-speed color video according to an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of the Bayer array of a color camera;

[0020] Figure 3is an array diagram of a full array of grayscale cameras;

[0021] Figure 4 It is a schematic diagram of the spatial light modulator performing random binary encoding on the collected image;

[0022] Figure 5 This is a schematic diagram of the architecture of the video reconstruction model based on the mutual attention mechanism;

[0023] Figure 6 It is a schematic diagram of the structure of the cross-attention aggregation module;

[0024] Figure 7 It is a schematic diagram for comparing simulation reconstruction effects;

[0025] Figure 8 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0026] In the figure: 1-first imaging lens, 2-relay lens, 3-spatial light modulator, 4-second imaging lens, 5-computing unit, 6-color camera, 7-grayscale camera. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0028] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0029] Embodiment 1

[0030] The compressed time imaging method for improving the spatial resolution of high-speed color video provided in this scheme is realized by relying on the compressed time imaging system for improving the spatial resolution of high-speed color video. The compressed time imaging system adds a grayscale camera to the original coded aperture compressed time imaging device, obtains gray observation images and color observation images by dual-channel acquisition of coded compressed images, and then uses the video reconstruction model based on the mutual attention mechanism optimized and designed by this scheme to realize video reconstruction.

[0031] Specifically, the compressed time imaging method for improving the spatial resolution of high-speed color video provided by the present solution comprises the following steps:

[0032] Acquire multiple groups of observation image pairs corresponding to the motion scene captured by the compressed time imaging device, each observation image pair includes a grayscale observation image and a color observation image that are simultaneously exposed and acquired, wherein the compressed time imaging device includes a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, the motion scene picture is collected by the collection lens assembly and encoded by the spatial light modulator to obtain a binary encoded image, the binary encoded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary encoded image is imaged on the color camera through the second imaging lens to obtain a color observation image;

[0033] Each observed image pair is input into a pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structure branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structure branch through a cross-attention module between the structure branch and the color branch.

[0034] The structural diagram of the compressed time imaging device mentioned in this scheme is as follows Figure 1 As shown, the compressed time imaging device adds a low-speed grayscale camera on the basis of the original coded aperture compressed time imaging device. Specifically, the acquisition lens assembly of the compressed time imaging device includes a first imaging lens 1 and a relay lens 2 arranged according to the optical path, and the spatial light modulator 3 is arranged on the imaging side of the relay lens 2, so that the colorful and high-speed motion scene picture can be acquired by the acquisition lens assembly to obtain the motion scene image and reach the spatial light modulator 3. Figure 4 As shown, a plurality of different binary masks are loaded on the spatial light modulator 3 of the present solution to perform random binary encoding on the motion scene image to obtain a binary encoded image. The grayscale camera 7 and the color camera 6 of the present solution are respectively arranged at two imaging positions of the second imaging lens 4, so that the binary encoded image can be imaged on the grayscale camera 7 and the color camera 6 through the second imaging lens 4, respectively.

[0035] Correspondingly, in the step of "obtaining a plurality of groups of observation image pairs corresponding to motion scenes captured by a compressed time imaging device", the compression ratio of the compressed time imaging device is set, and a plurality of frames of motion scene images are obtained by collecting the motion scene images through the collection lens assembly. Each frame of the motion scene image is encoded by the spatial light modulator to obtain a binary encoded image, and whenever the spatial light modulator encodes a binary encoded image of a compression ratio number, the grayscale camera and the color camera are triggered to simultaneously expose and collect to obtain a group of observation image pairs.

[0036] The spatial light modulator of this scheme encodes in turn in a cycle to obtain multiple groups of observation images corresponding to the motion scene. It should be emphasized that this scheme uses a spatial light modulator to encode the motion scene images before imaging them on the gray camera and the color camera, and the spatial light modulator performs random binary encoding on the motion scene images. The advantage of this is that the color images collected by the color camera and the grayscale images collected by the grayscale camera both contain encoding information, which provides more image information for the subsequent reconstruction of the compressed image.

[0037] The grayscale camera of this solution uses a low-speed grayscale industrial camera, such as Figure 3 As shown in the figure, the grayscale camera uses full array acquisition. The color camera of this solution uses a low-speed color industrial camera, such as Figure 2 As shown, the color camera adopts a Bayer array, which divides the acquired image into a red channel, a green channel, and a blue channel.

[0038] About the structure of the video reconstruction model:

[0039] like Figure 5 As shown, the video reconstruction model adopts a dual-path branch structure to extract features, gradually fuse and reconstruct each collected observation image pair to obtain a reconstructed motion scene video.

[0040] Specifically, the video reconstruction model includes a parallel structural branch for processing grayscale observation images and a color branch for processing color observation images, wherein the structural branch includes a structural shallow feature extraction module, a first structural feature refining module, a second structural feature refining module and a video reconstruction module arranged in sequence, and the color branch includes a color shallow feature extraction module, a first color feature refining module and a second color feature refining module connected in sequence, the output features of the structural shallow feature extraction module and the color shallow feature extraction module are aggregated by a first cross-attention aggregation module and input into the first structural feature refining module, the features output by the first structural feature refining module and the first color feature refining module are aggregated by a second cross-attention aggregation module and input into the second structural feature refining module, the output of the second structural feature refining module is input into the video reconstruction module to reconstruct the corresponding motion scene video frame, and the continuous motion scene video frames are arranged in sequence to obtain the motion scene video.

[0041] It should be noted that the video reconstruction model of this scheme uses the features in the color observation image to selectively enhance the features in the grayscale observation image, so as to introduce the color information in the color observation image into the grayscale observation image for reconstruction, so as to combine the advantages of good reconstruction details of the grayscale camera and rich colors of the color camera, and use the grayscale observation image and the corresponding color observation image to achieve high-quality color compressed sensing video reconstruction to obtain motion scene video.

[0042] Relative to the architecture of the video reconstruction model, the gray observation image is input into the structural shallow feature extraction module in the structure branch for shallow feature extraction to obtain structural shallow features, the color observation image is input into the color shallow feature extraction module in the color branch for shallow feature extraction to obtain color shallow features, the structural shallow features and the color shallow features are input into the first cross-attention aggregation module for aggregation to obtain the first aggregated features, the first aggregated features are input into the first structural feature refining module for refining to obtain the first structural refined features, the color shallow features are input into the first color feature refining module for refining to obtain the first color refined features, the first structural refined features and the first color refined features are input into the second cross-attention aggregation module for aggregation to obtain the second aggregated features, the second aggregated features are input into the second structural feature refining module for refining to obtain the second structural refined features, the first color refined features are input into the second color feature refining module for refining to obtain the second color refined features, and the second structural refined features are input into the video reconstruction module for reconstruction.

[0043] The structures of the first cross-attention aggregation module and the second cross-attention aggregation module involved in this scheme are the same. In this scheme, the cross-attention aggregation module represents the first cross-attention aggregation module and the second cross-attention aggregation module. The structure of the cross-attention aggregation module is as follows: Figure 6 As shown:

[0044] The cross attention aggregation module includes an aggregation channel and parallel gray feature channels and color feature channels, wherein the gray feature channel includes a first 3*3 convolutional layer, a first normalization layer, a first linear reordering layer and a second linear reordering layer, the color feature channel includes a second 3*3 convolutional layer, a second normalization layer and a third linear reordering layer, the aggregation channel includes a third 3*3 convolutional layer, the features output from the structure branch are input to the first linear reordering layer and the second linear reordering layer in the gray feature channel for linear changes to obtain the first structure linear feature and the second structure linear feature respectively, the features output from the color branch are input to the third linear reordering layer in the color feature channel for linear changes to obtain the first color linear feature, the second structure linear feature is dot-multiplied with the first color linear feature to obtain the first fused feature, the first fused feature is dot-multiplied with the first structure linear feature to obtain the second fused feature, the second fused feature is added to the output of the first 3*3 convolutional layer of the gray feature channel to obtain the third fused feature, and the third fused feature is input to the aggregation channel for processing to obtain the output feature of the cross attention aggregation module. The output feature corresponding to the first cross-attention aggregation module is the first aggregation feature, and the output feature corresponding to the second cross-attention aggregation module is the second aggregation feature.

[0045] The cross-attention aggregation module of this solution achieves the effect of introducing the features of the color observation image into the gray observation image by cross-aggregating the gray feature channel and the color feature channel, and fuses the gray observation image and the color observation image to obtain a high-spatial-resolution high-speed color video. In other words, the motion scene video of this solution is a high-speed motion color video.

[0046] The training method of the video reconstruction model is as follows:

[0047] A real image and an observed image pair relative to the real image are selected as training samples, and the training samples are input into the above-mentioned video reconstruction model for iterative training until the predicted result is infinitely close to the real image or other iteration conditions are met.

[0048] In order to verify that the compressed time imaging method of this scheme can indeed improve the spatial resolution of color motion video, this scheme verifies the imaging method on a simulation data set, and the effect is as follows Figure 7 As shown, Figure 7 The leftmost image is the effect of reconstruction using a single color camera, the middle image is the effect of reconstruction using a fusion of grayscale camera and color camera, and the rightmost image is the real image. It can be seen that using grayscale camera images as an auxiliary can effectively restore the structural information of the original scene, and the reconstruction quality is better than the result of only collecting color observation images.

[0049] Embodiment 2

[0050] Based on the same concept, the present invention provides a compressed time imaging system for improving the spatial resolution of high-speed color video, including:

[0051] A compressed time imaging device, wherein the compressed time imaging device comprises a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, wherein the motion scene image is collected by the collection lens assembly and then encoded by the spatial light modulator to obtain a binary coded image, the binary coded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary coded image is imaged on the color camera through the second imaging lens to obtain a color observation image;

[0052] A processing unit, wherein a pre-trained video reconstruction model is provided in the processing unit, a plurality of observation image pairs corresponding to motion scenes shot by a compressed time imaging device are obtained, each observation image pair includes a grayscale observation image and a color observation image collected by simultaneous exposure, each observation image pair is input into the pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structural branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structural branch through a cross-attention module between the structural branch and the color branch.

[0053] For the contents of the compressed time imaging device and the video reconstruction model mentioned in the compressed time imaging system for improving the spatial resolution of high-speed color video, please refer to the introduction of the embodiment part, which will not be introduced here in detail.

[0054] Embodiment 3

[0055] This embodiment also provides an electronic device, referring to Figure 8 , including a memory 304 and a processor 302, wherein the memory 304 stores a computer program, and the processor 302 is configured to run the computer program to execute the steps in any of the above-mentioned embodiments of the compressed time imaging method for improving the spatial resolution of high-speed color video.

[0056] Specifically, the processor 302 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0057] Among them, the memory 304 may include a large capacity memory 304 for data or instructions. By way of example and not limitation, the memory 304 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 304 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 304 may be inside or outside the data processing device. In a specific embodiment, the memory 304 is a non-volatile memory. In a specific embodiment, the memory 304 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (Static Random-Access Memory, abbreviated as SRAM) or a dynamic random access memory (Dynamic Random Access Memory, abbreviated as DRAM), wherein the DRAM can be a fast page mode dynamic random access memory 304 (Fast Page Mode Dynamic Random Access Memory, abbreviated as FPMDRAM), an extended data output dynamic random access memory (Extended Date Out Dynamic Random Access Memory, abbreviated as EDODRAM), a synchronous dynamic random access memory (Synchronous Dynamic Random-Access Memory, abbreviated as SDRAM), etc.

[0058] The memory 304 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 302 .

[0059] The processor 302 reads and executes the computer program instructions stored in the memory 304 to implement any one of the compressed time imaging methods for improving the spatial resolution of high-speed color video in the above embodiments.

[0060] Optionally, the electronic device may further include a transmission device 306 and an input / output device 308 , wherein the transmission device 306 is connected to the processor 302 , and the input / output device 308 is connected to the processor 302 .

[0061] The transmission device 306 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 306 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0062] The input and output device 308 is used to input or output information. In this embodiment, the input information may be a motion video picture, and the output information may be a color motion video with high spatial resolution.

[0063] Optionally, in this embodiment, the processor 302 may be configured to perform the following steps through a computer program:

[0064] Acquire multiple groups of observation image pairs corresponding to the motion scene captured by the compressed time imaging device, each observation image pair includes a grayscale observation image and a color observation image that are simultaneously exposed and collected, wherein the compressed time imaging device includes a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, and the motion scene picture is collected by the first imaging lens and the relay lens, and then encoded by the spatial light modulator to obtain a binary encoded image, the binary encoded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary encoded image is imaged on the color camera through the second imaging lens to obtain a color observation image;

[0065] Each observed image pair is input into a pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structure branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structure branch through a cross-attention module between the structure branch and the color branch.

[0066] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0067] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0068] Embodiments of the present invention can be implemented by computer software, which is executable by a data processor of a mobile device, such as in a processor entity, or implemented by hardware, or implemented by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros can be stored in any device readable data storage medium, and they include program instructions for performing specific tasks. Computer program products can include one or more computer executable components configured to perform embodiments when the program is running. One or more computer executable components can be at least one software code or a part thereof. In addition, at this point, it should be noted that any box of the logic flow in the figure can represent a program step, or interconnected logic circuits, boxes and functions, or a combination of program steps and logic circuits, boxes and functions. Software can be stored in physical media such as memory chips or storage blocks implemented in processors, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. Physical media are non-transient media.

[0069] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A compressed time imaging method for improving the spatial resolution of high-speed color video, characterized in that: The following steps are involved: Acquire multiple groups of observation image pairs corresponding to the motion scene captured by the compressed time imaging device, each observation image pair includes a grayscale observation image and a color observation image that are simultaneously exposed and acquired, wherein the compressed time imaging device includes a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, the motion scene picture is collected by the collection lens assembly and encoded by the spatial light modulator to obtain a binary encoded image, the binary encoded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary encoded image is imaged on the color camera through the second imaging lens to obtain a color observation image; Each observation image pair is input into a pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structure branch for processing grayscale observation images and a color branch for processing color observation images, and the features of the color branch are introduced into the structure branch through a cross-attention aggregation module between the structure branch and the color branch, wherein the structure branch includes a structure shallow feature extraction module, a first structure feature refining module, a second structure feature refining module and a video reconstruction module arranged in sequence, and the color branch includes a color shallow feature extraction module, a first color feature refining module and a second color feature refining module connected in sequence, and the output features of the structure shallow feature extraction module and the color shallow feature extraction module are aggregated by the first cross-attention aggregation module and then input into the first structure feature refining module, and the features output by the first structure feature refining module and the first color feature refining module are aggregated by the second cross-attention aggregation module and then input into the second structure feature refining module, and the output of the second structure feature refining module is input into the video reconstruction module to reconstruct the corresponding motion scene video frame, and the continuous motion scene video frames are arranged in sequence to obtain the motion scene video.

2. The compressed time imaging method for improving the spatial resolution of high-speed color video according to claim 1, characterized in that: In the step of "obtaining a plurality of groups of observation image pairs corresponding to motion scenes captured by a compressed time imaging device", a compression ratio of the compressed time imaging device is set, and a plurality of frames of motion scene images are obtained by collecting motion scene images through a collection lens assembly. Each frame of the motion scene image is encoded by a spatial light modulator to obtain a binary encoded image, and whenever the spatial light modulator encodes a binary encoded image with a compression ratio, the grayscale camera and the color camera are triggered to simultaneously expose and collect to obtain a group of observation image pairs.

3. The compressed time imaging method for improving the spatial resolution of high-speed color video according to claim 2, characterized in that: The grayscale camera uses full array acquisition, the color camera uses Bayer array, and the spatial light modulator performs random binary encoding on the motion scene image.

4. The compressed time imaging method for improving the spatial resolution of high-speed color video according to claim 1, characterized in that: The cross-attention aggregation module includes an aggregation channel and parallel gray feature channels and color feature channels, wherein the gray feature channel includes the first 3*3 convolutional layer, the first normalization layer, the first linear renormalization layer and the second linear renormalization layer, the color feature channel includes the second 3*3 convolutional layer, the second normalization layer, the third linear renormalization layer, and the aggregation channel includes the third 3*3 convolutional layer.

5. The compressed time imaging method for improving the spatial resolution of high-speed color video according to claim 4, characterized in that: The features output from the structure branch are input into the first linear reordering layer and the second linear reordering layer in the gray feature channel for linear changes to obtain the first structure linear feature and the second structure linear feature respectively. The features output from the color branch are input into the third linear reordering layer in the color feature channel for linear changes to obtain the first color linear feature. The second structure linear feature is dot-multiplied with the first color linear feature to obtain the first fused feature. The first fused feature is dot-multiplied with the first structure linear feature to obtain the second fused feature. The second fused feature is then added to the output of the first 3*3 convolutional layer of the gray feature channel to obtain the third fused feature. The third fused feature is input into the aggregation channel for processing to obtain the output feature of the cross-attention aggregation module.

6. The compressed time imaging method for improving the spatial resolution of high-speed color video according to claim 1, characterized in that: The motion scene video is a high-speed motion color video.

7. A compressed time imaging system for improving the spatial resolution of high-speed color video, characterized in that: include: A compressed time imaging device, wherein the compressed time imaging device comprises a collection lens assembly, a spatial light modulator, a second imaging lens, and a color camera and a grayscale camera independently arranged on the imaging surface of the second imaging lens, wherein the motion scene image is collected by the collection lens assembly and then encoded by the spatial light modulator to obtain a binary coded image, the binary coded image is imaged on the grayscale camera through the second imaging lens to obtain a grayscale observation image, and the binary coded image is imaged on the color camera through the second imaging lens to obtain a color observation image; A processing unit, wherein a pre-trained video reconstruction model is provided in the processing unit, a plurality of observation image pairs corresponding to motion scenes shot by a compressed time imaging device are obtained, each observation image pair includes a grayscale observation image and a color observation image collected by simultaneous exposure, each observation image pair is input into the pre-trained video reconstruction model to reconstruct a reconstructed motion scene video, wherein the video reconstruction model includes a parallel structure branch for processing the grayscale observation image and a color branch for processing the color observation image, the structure branch introduces the features of the color branch into the structure branch through a cross attention aggregation module from the color branch, wherein the structure branch includes a structure shallow feature extraction module, a first structure feature refinement module arranged in sequence, The color branch comprises a color shallow feature extraction module, a first color feature refining module and a second color feature refining module which are connected in sequence. The output features of the structure shallow feature extraction module and the color shallow feature extraction module are aggregated by a first cross-attention aggregation module and then input into the first structure feature refining module. The output features of the first structure feature refining module and the first color feature refining module are aggregated by a second cross-attention aggregation module and then input into the second structure feature refining module. The output of the second structure feature refining module is input into the video reconstruction module to reconstruct the corresponding motion scene video frame. The continuous motion scene video frames are arranged in sequence to obtain the motion scene video.

8. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the compressed time imaging method for improving the spatial resolution of high-speed color video according to any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which includes a program code for controlling a process to execute a process, wherein the process includes a compressed time imaging method for improving the spatial resolution of high-speed color video according to any one of claims 1 to 6.