A method and device for constructing a model to enhance the clarity of highway surveillance video

Through perspective conversion and multi-layer perceptron processing features in the frequency domain, the problem of low quality of highway surveillance videos is solved, and real-time high-definition output and intelligent processing of highway videos are realized.

CN118469837BActive Publication Date: 2024-09-27HANGZHOU PIXEL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917384.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-27
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing highway surveillance video enhancement technology has slow processing speed and low quality when faced with complex environments, cannot be applied to the enhancement of highway video content, and lacks automated and intelligent processing capabilities.

Method used

By building a model to enhance the clarity of highway surveillance videos, we use perspective conversion and multi-layer perceptrons to process image features in the frequency domain, and combine fast Fourier transform and inverse Fourier transform to extract and modulate frequency features to achieve real-time clarity of the video. degree increase.

Benefits of technology

It achieves real-time high-definition output of highway surveillance videos, improves image clarity and processing quality, reduces subjective deviations in the manual calibration process, and adapts to intelligent processing of complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469837B
    Figure CN118469837B
Patent Text Reader

Abstract

The present application proposes a method and device for constructing a model for enhancing the clarity of highway surveillance video, including the following steps: constructing an architecture for enhancing the clarity of highway surveillance video, the architecture for enhancing the clarity of highway surveillance video including a feature extraction module, a frequency feature modulation module and a decoding module; obtaining surveillance video images in a high-speed scene and adding noise to them as training samples, and using the training samples as input to perform unsupervised training on the architecture for enhancing the clarity of highway surveillance video to obtain an enhanced highway surveillance video clarity model. This solution can enhance and modulate the frequency by processing image features in the frequency domain through perspective conversion combined with a multi-layer perceptron, thereby enhancing the clarity of highway surveillance video in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision, and in particular to a method and device for constructing a model for enhancing the clarity of highway surveillance videos. Background Art

[0002] In the construction and development of intelligent transportation systems, highway surveillance video plays a vital role. It is not only used for real-time traffic monitoring, but also widely used in accident analysis, traffic flow statistics, safety warning and other aspects. However, the quality of highway surveillance video is often affected by many factors, such as light changes, bad weather conditions (rain, fog, snow, etc.), camera shaking, etc. These factors may lead to a decrease in image quality, thus affecting the monitoring effect and the accuracy of subsequent analysis.

[0003] Traditional video enhancement technologies, including filtering methods based on spatial and frequency domains, image sharpening techniques, edge enhancement algorithms, etc., can improve video quality in some cases, but they are often not adaptable to environmental changes and are difficult to cope with dynamic and complex environments such as highways. For example, a simple filter may blur important details while reducing noise, while a simple sharpening process may enhance noise rather than useful details. In addition, these methods often require manual adjustment and optimization, and lack automated and intelligent processing capabilities.

[0004] With the rise of deep learning, end-to-end learning methods based on convolutional neural networks have shown great potential in the field of image and video processing. However, highway surveillance videos have the characteristics of fast-moving vehicles, rapidly changing lighting conditions, multiple lanes, and complex backgrounds. Therefore, when faced with highly complex highway videos, existing deep learning methods not only have slow processing speeds, but also low processing quality. Therefore, existing deep learning methods are only suitable for general video content enhancement and cannot be applied to highways.

[0005] In summary, there is an urgent need for a method that can process high-speed surveillance videos in real time to output high-definition videos to meet the needs of intelligent transportation systems. Summary of the invention

[0006] The embodiment of the present application provides a method and device for constructing a model for enhancing the clarity of highway monitoring videos. By converting the viewing angle and combining a multi-layer perceptron to process image features in the frequency domain to enhance and modulate the frequency, the clarity of highway monitoring videos can be enhanced in real time.

[0007] In a first aspect, an embodiment of the present application provides a method for constructing a model for enhancing the clarity of highway surveillance videos, the method comprising:

[0008] Constructing an enhanced highway surveillance video clarity architecture, the enhanced highway surveillance video clarity architecture comprising a feature extraction module, a frequency feature modulation module and a decoding module;

[0009] The feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output them by the first multi-layer perceptron to obtain perspective feature maps of multiple scales;

[0010] The frequency feature modulation module converts the viewing angle feature maps of different scales into frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales;

[0011] The decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image;

[0012] The surveillance video images in the high-speed scene are acquired and noise is added to them as training samples, and the enhanced highway surveillance video clarity architecture is unsupervisedly trained with the training samples as input to obtain the enhanced highway surveillance video clarity model.

[0013] In a second aspect, an embodiment of the present application provides a method for enhancing the clarity of a highway surveillance video, comprising:

[0014] The highway monitoring video to be enhanced is obtained, and the highway monitoring video to be enhanced is input into a highway monitoring video clarity model to obtain a high-definition highway monitoring video.

[0015] In a third aspect, an embodiment of the present application provides a device for constructing a model for enhancing the clarity of a highway surveillance video, including:

[0016] A construction module is used to construct an enhanced highway surveillance video clarity architecture, wherein the enhanced highway surveillance video clarity architecture includes a feature extraction module, a frequency feature modulation module, and a decoding module;

[0017] A feature extraction module, wherein the feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output the original feature maps by the first multi-layer perceptron to obtain perspective feature maps of multiple scales;

[0018] A frequency feature modulation module, wherein the frequency feature modulation module converts the viewing angle feature maps of different scales into the frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and an inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales;

[0019] A decoding module, wherein the decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image;

[0020] The training module obtains surveillance video images in high-speed scenes and adds noise to them as training samples, and uses the training samples as input to perform unsupervised training on the enhanced highway surveillance video clarity architecture to obtain an enhanced highway surveillance video clarity model.

[0021] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute a method for constructing a model for enhancing the clarity of highway surveillance videos or a method for enhancing the clarity of highway surveillance videos.

[0022] In a fifth 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. The process includes a method for constructing a model for enhancing the clarity of highway surveillance videos or a method for enhancing the clarity of highway surveillance videos.

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

[0024] This scheme effectively captures the global spatial features of highway video images by normalizing the features of different scales extracted by the feature extraction layer; this scheme changes the viewing angle of feature maps of different scales and combines fast Fourier transform and multi-layer perceptron to effectively utilize the information in the frequency domain to enhance feature representation, highlight important high-frequency details, and suppress frequency components such as noise, thereby improving the clarity of the enhanced image; this scheme uses an unsupervised training method to effectively reduce the reduction in sample effect caused by subjective deviation in the manual calibration process.

[0025] 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

[0026] 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:

[0027] Figure 1 is a flow chart of a method for constructing a model for enhancing the clarity of highway surveillance video according to an embodiment of the present application;

[0028] Figure 2 is a structural diagram of an architecture for enhancing the clarity of highway surveillance video according to an embodiment of the present application;

[0029] Figure 3 It is a structural block diagram of a device for constructing a model for enhancing the definition of a highway monitoring video according to an embodiment of the present application;

[0030] Figure 4 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] 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.

[0032] 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.

[0033] Embodiment 1

[0034] The embodiment of the present application provides a method for constructing a model for enhancing the clarity of highway monitoring videos. By transforming the viewing angle and combining a multi-layer perceptron to process image features in the frequency domain to enhance and modulate the frequency, the clarity of highway monitoring videos can be enhanced in real time. Specifically, reference Figure 1 , the method comprising:

[0035] Constructing an enhanced highway surveillance video clarity architecture, the enhanced highway surveillance video clarity architecture comprising a feature extraction module, a frequency feature modulation module and a decoding module;

[0036] The feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output them by the first multi-layer perceptron to obtain perspective feature maps of multiple scales;

[0037] The frequency feature modulation module converts the viewing angle feature maps of different scales into frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales;

[0038] The decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image;

[0039] The surveillance video images in the high-speed scene are acquired and noise is added to them as training samples, and the enhanced highway surveillance video clarity architecture is unsupervisedly trained with the training samples as input to obtain the enhanced highway surveillance video clarity model.

[0040] In this solution, the structure of the enhanced highway surveillance video clarity architecture is as follows: Figure 2 As shown, the feature extraction module uses the YoloV5 backbone network to extract feature maps of multiple scales of the input image, wherein feature maps of different scales are outputted from different convolutional units connected in sequence.

[0041] In some embodiments, the backbone network of YoloV5 includes a first convolution unit, a second convolution unit, a third convolution unit, a fourth convolution unit, and a fifth convolution unit connected in series. Correspondingly, the feature maps of multiple scales in this scheme refer to the outputs of the second convolution unit, the third convolution unit, the fourth convolution unit, and the fifth convolution unit.

[0042] Specifically, the exemplary outputs of each convolutional unit of the YoloV5 backbone network are shown in Table 1 below:

[0043] Table 1 Output of each convolutional unit of the YoloV5 backbone network

[0044]

[0045] That is to say, the feature maps of multiple scales used in this scheme are the second feature map output by the second convolution unit, the third feature map output by the third convolution unit, the fourth feature map output by the fourth convolution unit, and the fifth feature map output by the fifth convolution unit.

[0046] In the step of “perspective conversion of original feature maps at different scales”, the feature maps at different scales are firstly subjected to a minimum-maximum normalization operation, and then the number of channels, length and width of each feature map after normalization are continuously changed by permutation to complete the perspective conversion.

[0047] Specifically, the formula for performing the minimum-maximum normalization operation on feature maps of different scales is expressed as follows:

[0048]

[0049] in, is the feature map of the current scale, and are the maximum and minimum scale values ​​in the feature maps at different scales, respectively. is the normalized feature map of the current scale.

[0050] In this program, It can represent the second feature map, the third feature map, the fourth feature map, or the fifth feature map.

[0051] Specifically, this scheme performs a minimum-maximum normalization operation on feature maps of different scales to uniformly scale the features of feature maps of different scales to between 0 and 1, thereby effectively capturing the global spatial features of zombies.

[0052] Specifically, the formula for continuously changing the number of channels, length, and width of each normalized feature map in a permutation manner is expressed as follows:

[0053]

[0054] in, is the normalized feature map of the current scale, permute represents the permutation operation on the feature vector, H is the length of the feature map, W is the width of the feature map, and C is the number of channels of the feature map. It is the feature map after perspective conversion.

[0055] In the step of "outputting a first multilayer perceptron to obtain a viewing feature map of multiple scales", the first multilayer perceptron includes a first fully connected layer, a second fully connected layer and a residual connection layer, the first fully connected layer performs a fully connected calculation on the original feature maps of multiple scales after the viewing angle conversion to obtain a first fully connected feature map, the second fully connected layer performs a fully connected calculation on the first fully connected feature map to obtain a second fully connected feature map, and in the residual module, the second fully connected feature map is residually connected with the original feature map of the corresponding scale to obtain the viewing feature maps of multiple scales.

[0056] Specifically, the formula for obtaining the second fully connected feature map is expressed as follows:

[0057]

[0058] in, is the first fully connected layer, is the second fully connected layer, ReLU is a nonlinear activation function, which is used to output the calculation results of the first fully connected layer to obtain the first fully connected feature map. is the second fully connected feature map.

[0059] In this scheme, the formula for the first fully connected layer to perform fully connected calculations is as follows:

[0060]

[0061] in, It is the first fully connected layer The weight of is the bias of the first fully connected layer.

[0062] In this scheme, the formula for the second fully connected layer to perform fully connected calculations is expressed as follows:

[0063]

[0064] in, represents the first fully connected feature map, It is the second fully connected layer The weight of is the bias of the second fully connected layer.

[0065] Furthermore, after the second fully connected feature map is flattened in the residual module, it is added element by element with the original feature map of the corresponding scale to complete the residual connection, thereby obtaining the viewing feature maps of multiple scales.

[0066] Specifically, the formula of residual connection is as follows:

[0067]

[0068] in, Represents the original feature map of the corresponding scale, Flatten represents the flattening operation, Representing view feature maps at multiple scales.

[0069] Specifically, the purpose of the flattening operation is to align the dimensions of the second fully connected feature map with the original feature map of the corresponding scale, so as to better perform element-by-element addition.

[0070] Specifically, this solution is to perform a residual connection between the second fully connected feature map and the normalized original feature map.

[0071] In the step of "the frequency feature modulation module converts the viewing feature maps of different scales into frequency domains by fast Fourier transform to obtain frequency modulation feature maps of multiple scales", the formula for converting the viewing feature maps of different scales into frequency domains is expressed as follows:

[0072]

[0073] Among them, FFT stands for Fast Fourier Transform, Represents the frequency modulation feature map. In this scheme, the features of the full-resolution image are enhanced by fast Fourier transform.

[0074] In the step of "using a second multilayer perceptron and an inverse Fourier transform to convert frequency modulation feature maps of different scales back to the spatial domain to obtain spatial modulation feature maps of multiple scales", the second multilayer perceptron includes a first multilayer perceptron unit and a second multilayer perceptron unit. The first multilayer perceptron unit is used to process the frequency modulation feature maps of different scales to obtain a first multilayer perceptual result, and the second multilayer perceptual unit is used to process the first multilayer perceptual result to obtain a second multilayer perceptual result. The second multilayer perceptual result is inverse Fourier transformed to obtain spatial modulation feature maps of multiple scales.

[0075] Specifically, the formula for obtaining spatial modulation feature maps of multiple scales is expressed as follows:

[0076]

[0077] in, are spatial modulation feature maps at multiple scales, is the inverse Fourier transform, and MLP is the multi-layer perceptron.

[0078] Specifically, this scheme can effectively utilize the information in the frequency domain to enhance feature representation through fast Fourier transform and inverse Fourier transform operations, highlight important high-frequency details, suppress frequency components such as noise, and thus improve image clarity.

[0079] In the step of "the decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of the corresponding scales to obtain fused feature maps of multiple scales", balance parameters are set for the spatial modulation feature maps of different scales and the original feature maps of the corresponding scales, and they are fused in an element-by-element multiplication manner. The formula is expressed as follows:

[0080]

[0081] in, is the fusion feature map, α and β are balance parameters, is element-wise multiplication.

[0082] Specifically, this scheme combines the features of the spatial domain and the frequency domain by fusing the spatial modulation feature maps of different scales with the original feature maps of the corresponding scales to obtain better feature representation results.

[0083] In the step of "fusing fusion feature maps of different scales to obtain an enhanced high-speed image", the fusion feature maps of different scales are fused layer by layer based on the scale size through an upsampling fusion operation to obtain a final fusion result, and the final fusion result is output using an activation function to obtain an enhanced high-speed image.

[0084] Some formulas for upsampling fusion operations are as follows:

[0085]

[0086]

[0087] Among them, Upsample represents the upsampling fusion operation, represents the fused feature map, Represents the fused result. Repeat the above upsampling fusion operation to obtain the final fusion result. .

[0088] Furthermore, a transposed convolution structure is first used to process the final fusion result to obtain an upsampled final fusion result, and then a nonlinear activation function ReLU is used to perform nonlinear enhancement on the upsampled final fusion result to obtain an enhanced final fusion result, and then a convolution refinement layer is used to perform convolution refinement on the enhanced final fusion result to obtain a refined final fusion result, and finally an Activation activation function is used to output the refined final fusion result to obtain an enhanced high-speed image. The specific formula is as follows:

[0089]

[0090] Among them, U is the final fusion result of upsampling, Transpose is the transposed convolution operation, and are the weights and biases of the transposed convolution structure, Conv2D is a two-dimensional convolution operation, and ReLU is a nonlinear activation function. To enhance the final fusion result, C is used to refine the final fusion result. and are the weights and biases of the refined convolutional layer, Adjust the image for enhancement.

[0091] In this solution, high-definition images of highways including main lines, interchanges, bridges and tunnels are collected, and OpedCV is called to simulate and generate corresponding fog, rainy days and unclear images including water ripples, mosaics, etc., and the clear images and unclear images are combined into a group of image pairs for subsequent training, and the resolution of the training samples is 3840*2160.

[0092] In this scheme, the unclear video images are input into the enhanced highway surveillance video clarity architecture for training, and the obtained results are compared with the corresponding clear video images for unsupervised training, thereby effectively reducing the reduction of sample effect caused by the deviation of subjective consciousness in the manual calibration process. Therefore, the loss function of this scheme is:

[0093]

[0094] in, To enhance high-speed images, For a real high-speed clear image, the training is terminated when the L value meets the set conditions, and the parameters of the current enhanced highway surveillance video clarity architecture are saved to obtain the enhanced highway surveillance video clarity model.

[0095] Embodiment 2

[0096] A method for enhancing the clarity of a highway surveillance video, comprising:

[0097] A highway monitoring video to be enhanced is obtained, and the highway monitoring video to be enhanced is input into a constructed highway monitoring video clarity model to obtain a high-definition highway monitoring video.

[0098] Embodiment 3

[0099] Based on the same idea, refer to Figure 3 , the present application also proposes a device for constructing a model for enhancing the clarity of highway surveillance videos, comprising:

[0100] A construction module is used to construct an enhanced highway surveillance video clarity architecture, wherein the enhanced highway surveillance video clarity architecture includes a feature extraction module, a frequency feature modulation module, and a decoding module;

[0101] A feature extraction module, wherein the feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output the original feature maps by the first multi-layer perceptron to obtain perspective feature maps of multiple scales;

[0102] A frequency feature modulation module, wherein the frequency feature modulation module converts the viewing angle feature maps of different scales into the frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and an inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales;

[0103] A decoding module, wherein the decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image;

[0104] The training module obtains surveillance video images in high-speed scenes and adds noise to the surveillance video images as training samples, and uses the training samples as input to perform unsupervised training on the enhanced highway surveillance video clarity architecture to obtain an enhanced highway surveillance video clarity model.

[0105] Embodiment 4

[0106] This embodiment also provides an electronic device, referring to Figure 4 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.

[0107] Specifically, the processor 402 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.

[0108] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 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 tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 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. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0109] The memory 404 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 402 .

[0110] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the methods for constructing a model for enhancing the clarity of highway monitoring videos in the above embodiments.

[0111] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .

[0112] The transmission device 406 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 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0113] The input and output device 408 is used to input or output information. In this embodiment, the input information may be a highway video image to be enhanced, and the output information may be an enhanced highway image.

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

[0115] Constructing an enhanced highway surveillance video clarity architecture, the enhanced highway surveillance video clarity architecture comprising a feature extraction module, a frequency feature modulation module and a decoding module;

[0116] The feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output them by the first multi-layer perceptron to obtain perspective feature maps of multiple scales;

[0117] The frequency feature modulation module converts the viewing angle feature maps of different scales into frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales;

[0118] The decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image;

[0119] The surveillance video images in the high-speed scene are acquired and noise is added to the surveillance video images as training samples, and the enhanced highway surveillance video clarity architecture is unsupervisedly trained with the training samples as input to obtain the enhanced highway surveillance video clarity model.

[0120] 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.

[0121] 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.

[0122] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 4 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within a processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.

[0123] 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.

[0124] 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 method for constructing a model for enhancing the clarity of highway surveillance videos, characterized in that: The following steps are involved: Constructing an enhanced highway surveillance video clarity architecture, the enhanced highway surveillance video clarity architecture comprising a feature extraction module, a frequency feature modulation module and a decoding module; The feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output them by the first multi-layer perceptron to obtain perspective feature maps of multiple scales, wherein the feature maps of different scales are firstly subjected to a minimum-maximum normalization operation, and then the number of channels, length and width of each feature map after normalization are continuously changed in a permutation manner to complete the perspective conversion. The formula for performing the minimum-maximum normalization operation on the feature maps of different scales is expressed as follows: in, is the feature map of the current scale, and are the maximum and minimum scale values ​​in the feature maps at different scales, respectively. For the normalized current scale feature map, the formula for continuously changing the number of channels, length, and width of each normalized feature map in a permutation manner is as follows: in, is the normalized feature map of the current scale, permute represents the permutation operation on the feature vector, H is the length of the feature map, W is the width of the feature map, and C is the number of channels of the feature map. It is the feature map after perspective conversion; The frequency feature modulation module converts the viewing angle feature maps of different scales into frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales; The decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image; The surveillance video images in the high-speed scene are acquired and noise is added to the surveillance video images as training samples, and the enhanced highway surveillance video clarity architecture is unsupervisedly trained with the training samples as input to obtain the enhanced highway surveillance video clarity model.

2. The method for constructing a model for enhancing the clarity of highway surveillance video according to claim 1, characterized in that: In the step of "outputting a first multilayer perceptron to obtain a viewing feature map of multiple scales", the first multilayer perceptron includes a first fully connected layer, a second fully connected layer, and a residual connection layer. The first fully connected layer performs a fully connected calculation on the original feature maps of multiple scales after the viewing angle conversion to obtain a first fully connected feature map. The second fully connected layer then performs a fully connected calculation on the first fully connected feature map to obtain a second fully connected feature map. In the residual connection layer, the second fully connected feature map is residually connected with the original feature map of the corresponding scale to obtain the viewing feature maps of multiple scales.

3. The method for constructing a model for enhancing the clarity of highway surveillance video according to claim 2, characterized in that: After the second fully connected feature map is flattened in the residual connection layer, it is added element by element with the original feature map of the corresponding scale to complete the residual connection, so as to obtain the viewing angle feature maps of multiple scales.

4. The method for constructing a model for enhancing the definition of highway surveillance video according to claim 1, characterized in that: In the step of "using a second multilayer perceptron and an inverse Fourier transform to convert frequency modulation feature maps of different scales back to the spatial domain to obtain spatial modulation feature maps of multiple scales", the second multilayer perceptron includes a first multilayer perceptron unit and a second multilayer perceptron unit. The first multilayer perceptron unit is used to process the frequency modulation feature maps of different scales to obtain a first multilayer perceptual result. The second multilayer perceptron unit is then used to process the first multilayer perceptual result to obtain a second multilayer perceptual result. The second multilayer perceptual result is inverse Fourier transformed to obtain spatial modulation feature maps of multiple scales.

5. The method for constructing a model for enhancing the definition of highway surveillance video according to claim 1, characterized in that: In the step of "fusing fusion feature maps of different scales to obtain an enhanced high-speed image", the fusion feature maps of different scales are fused layer by layer based on the scale size through an upsampling fusion operation to obtain a final fusion result, and the final fusion result is output using an activation function to obtain an enhanced high-speed image.

6. A method for enhancing the clarity of highway surveillance video, comprising: Obtain a highway surveillance video to be enhanced, and input the highway surveillance video to be enhanced into a highway surveillance video clarity model constructed by the method for constructing an enhanced highway surveillance video clarity model described in any one of claims 1 to 5 to obtain a high-definition highway surveillance video.

7. A device for constructing a model for enhancing the clarity of highway surveillance video, characterized in that: include: A construction module is used to construct an enhanced highway surveillance video clarity architecture, wherein the enhanced highway surveillance video clarity architecture includes a feature extraction module, a frequency feature modulation module, and a decoding module; The feature extraction module is used to extract original feature maps of multiple scales of the input image, and perform perspective conversion on the original feature maps at different scales, and then output them by the first multi-layer perceptron to obtain perspective feature maps of multiple scales, wherein the feature maps of different scales are firstly subjected to a minimum-maximum normalization operation, and then the number of channels, length and width of each feature map after normalization are continuously changed in a permutation manner to complete the perspective conversion. The formula for performing the minimum-maximum normalization operation on the feature maps of different scales is expressed as follows: in, is the feature map of the current scale, and are the maximum and minimum scale values ​​in the feature maps at different scales, respectively. For the normalized current scale feature map, the formula for continuously changing the number of channels, length, and width of each normalized feature map in a permutation manner is as follows: in, is the normalized feature map of the current scale, permute represents the permutation operation on the feature vector, H is the length of the feature map, W is the width of the feature map, and C is the number of channels of the feature map. It is the feature map after perspective conversion; A frequency feature modulation module, wherein the frequency feature modulation module converts the viewing angle feature maps of different scales into the frequency domain by fast Fourier transform to obtain frequency modulation feature maps of multiple scales, and then uses a second multi-layer perceptron and an inverse Fourier transform to convert the frequency modulation feature maps of different scales back into the spatial domain to obtain spatial modulation feature maps of multiple scales; A decoding module, wherein the decoding module first fuses the spatial modulation feature maps of different scales with the original feature maps of corresponding scales to obtain fused feature maps of multiple scales, and then fuses the fused feature maps of different scales to obtain an enhanced high-speed image; The training module obtains surveillance video images in high-speed scenes and adds noise to them as training samples, and uses the training samples as input to perform unsupervised training on the enhanced highway surveillance video clarity architecture to obtain an enhanced highway surveillance video clarity model.

8. 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 a method for constructing a model for enhancing the clarity of a highway surveillance video as described in any one of claims 1 to 5 or a method for enhancing the clarity of a highway surveillance video as described in claim 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, and the process includes a method for constructing a model for enhancing the clarity of highway surveillance video as described in any one of claims 1-5 or a method for enhancing the clarity of highway surveillance video as described in claim 6.