Video noise reduction compression method and device based on generative adversarial network, storage medium and electronic equipment

The video noise reduction compression method through generative adversarial network and style transfer algorithm solves the problem of insufficient storage space in video surveillance, realizes intelligent noise reduction compression of video data, retains important data, and supports information mining analysis.

CN118714239APending Publication Date: 2024-09-27INFORMATION & COMM CO OF STATE GRID XINJIANG ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410858354.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, due to the rapid increase of video data in video surveillance, storage space is insufficient, which leads to the need to delete historical data regularly, resulting in the problem that historical data cannot be traced back.

Method used

A video noise reduction compression method based on generative adversarial networks and style transfer algorithms is used to reduce noise and compress video data through image noise reduction models. The VGG feature extraction module is used for feature extraction and reorganization to achieve intelligent noise reduction compression of video data. Preserve image changes within the threshold range.

Benefits of technology

It effectively solves the problem of insufficient storage space, can store more historical video data, and provides a stable and rich data foundation for information mining and analysis work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714239A
    Figure CN118714239A
Patent Text Reader

Abstract

The invention relates to the technical field of video processing, in particular to a video noise reduction compression method and device based on a generative adversarial network, a storage medium and electronic equipment, and the method comprises the steps: obtaining a to-be-processed image set; performing noise reduction on the to-be-processed image set by using the image noise reduction model, and compressing the to-be-processed image set after noise reduction; and carrying out feature extraction on the compressed to-be-processed image set, and carrying out video conversion after recombination to obtain used video data. According to the method, to-be-processed video data is converted into a to-be-processed image set, then the to-be-processed image set is subjected to frame-by-frame noise reduction compression and semantic analysis comparison through a generative adversarial network and a style migration technology, images with certain changes within a threshold range are reserved, the images are recombined to form a video, intelligent noise reduction compression of the video is achieved, and the video quality is improved. Therefore, more historical video data can be stored, and a stable and rich data basis is provided for information mining analysis work based on the video data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video processing, and specifically to a method, device, storage medium and electronic equipment for video noise reduction compression based on a generative adversarial network. Background Art

[0002] With the promotion of 5G technology, video applications are becoming more and more widespread in people's lives, including in all aspects of power production. In order to achieve remote monitoring of equipment, power sales service quality, construction progress, and safe construction in substations, business halls, rural power supply stations, transmission lines, information rooms, and infrastructure sites, and to support business video application needs such as the status of power transmission and transformation equipment.

[0003] With the increase of monitoring equipment, the video data required to be stored and processed will also increase dramatically, but invalid data will occupy a large amount of bandwidth. In addition, the expansion of storage equipment is limited by funds, so there will be storage space that cannot meet user needs. In response to this situation, most of the current processing methods are to delete historical data at a fixed time, but the fixed deletion of video data will make it impossible to trace back the older historical data, which will have a certain impact on the information mining and analysis work based on video data. Summary of the invention

[0004] The present invention provides a method, device, storage medium and electronic device for video noise reduction compression based on a generative adversarial network, which overcomes the shortcomings of the above-mentioned prior art and can effectively solve the problem that the existing method of solving the problem of insufficient storage space by deleting historical data easily causes historical data to be unable to be traced.

[0005] One of the technical solutions of the present invention is achieved by the following measures: a video noise reduction and compression method based on a generative adversarial network, comprising: Obtain the video data to be processed, and perform image conversion on it to obtain a corresponding set of images to be processed; An image denoising model is used to denoise a set of images to be processed, and the denoised set of images to be processed is compressed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; Feature extraction is performed on the compressed image set to be processed, and after reorganization, video conversion is performed to obtain usable video data.

[0006] The following are further optimizations and / or improvements to the above technical solutions: The above-mentioned image denoising model includes: Acquire a training sample set and a test sample set, wherein the training sample set includes images affected by wind and sand and corresponding denoised images, images with clear visual quality and denoised images, and the test sample set includes images affected by wind and sand and corresponding denoised images; The network model composed of the generative adversarial network and the style transfer algorithm is trained using the training sample set to obtain an image denoising model; The image denoising model is tested using a test sample set, and the optimal image denoising model is output based on the test evaluation criteria.

[0007] The above-mentioned compression of the set of denoised images to be processed includes: extracting features from each denoised image to be processed using a VGG feature extraction module, discretizing continuous feature maps, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

[0008] The above-mentioned feature extraction is performed on the compressed image set to be processed, and after reorganization, video conversion is performed to obtain the video data for use, including: Dividing two adjacent frames of images in the compressed image set to be processed into blocks; Extract feature vectors from the divided image to be processed through an encoder; Calculate the MAE loss and MSE loss between the feature vectors of two adjacent frames of images to be processed, and determine whether the weighted average of the two losses is greater than the range of the variation domain. If yes, delete the t+1th frame, and use the t+1th frame as the new tth frame to compare with the subsequent frame image. If no, use the current t+1th frame as the new tth frame to compare with the subsequent frame image. Loop through all images to be processed to complete feature extraction. The image to be processed after feature extraction is reorganized and restored to the corresponding video data.

[0009] The second technical solution of the present invention is achieved by the following measures: a video noise reduction and compression device based on a generative adversarial network, comprising: The to-be-processed data acquisition unit acquires the to-be-processed video data and performs image conversion on the to-be-processed video data to obtain a corresponding to-be-processed image set; A first processing unit, using an image denoising model to denoise a set of images to be processed, and compressing the denoised set of images to be processed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; The second processing unit extracts features from the compressed image set to be processed, and obtains usable video data through video conversion after reorganization.

[0010] The following are further optimizations and / or improvements to the above technical solutions: The first processing unit comprises: Model building module, building image denoising model includes: Acquire a training sample set and a test sample set, wherein the training sample set includes images affected by wind and sand and corresponding denoised images, images with clear visual quality and denoised images, and the test sample set includes images affected by wind and sand and corresponding denoised images; The network model composed of the generative adversarial network and the style transfer algorithm is trained using the training sample set to obtain an image denoising model; Use the test sample set to test the image denoising model, and output the optimal image denoising model based on the test evaluation criteria; Image denoising module, which uses the image denoising model to denoise the image set to be processed; The image compression module compresses the set of images to be processed after denoising, including: extracting features from each image to be processed after denoising using the VGG feature extraction module, discretizing the continuous feature map, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

[0011] The second processing unit comprises: The image feature extraction module divides two adjacent frames of images in the compressed image set to be processed into blocks, and extracts feature vectors from the divided images to be processed through an encoder; The threshold comparison and restoration module calculates the MAE loss and MSE loss between the feature vectors of two adjacent frames of the image to be processed, and determines whether the weighted average of the two losses is greater than the variation domain value range. If yes, the t+1th frame is deleted, and the t+1th frame is used as the new tth frame and compared with the subsequent frame image. If no, the current t+1th frame is used as the new tth frame and compared with the subsequent frame image. All images to be processed are traversed in a loop to complete feature extraction; the images to be processed after feature extraction are reorganized and restored to the corresponding video data.

[0012] The present invention first converts the video data to be processed into a set of images to be processed, and then performs noise reduction, compression and semantic analysis on the set of images to be processed frame by frame through generative adversarial networks and style transfer technology, retains images that have undergone certain changes within a threshold range, recombines the images into videos, and realizes intelligent noise reduction and compression of videos, so that more historical video data can be stored, providing a stable and rich data foundation for information mining and analysis based on video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Attached Figure 1 This is a flow chart of the video noise reduction and compression method of the present invention.

[0014] Attached Figure 2 This is a flow chart of the method for constructing an image denoising model in the present invention.

[0015] Attached Figure 3 Schematic diagram of the image denoising model process in the present invention.

[0016] Attached Figure 4 This is a schematic diagram of the network model structure based on the generative adversarial network and style transfer algorithm in the present invention.

[0017] Attached Figure 5 Schematic diagram of the network structure of the attention module in the present invention.

[0018] Attached Figure 6 Schematic diagram of the network structure of image compression in the present invention.

[0019] Attached Figure 7 This is a flow chart of the method for image feature extraction and recombination in the present invention.

[0020] Attached Figure 8 This is a flow chart of the method for image feature extraction and recombination in the present invention.

[0021] Attached Fig. 9 It is a schematic diagram of the device structure in the present invention.

[0022] Attached Fig.10 Schematic diagram of the overall architecture of the video noise reduction and compression method in the present invention. DETAILED DESCRIPTION

[0023] The present invention is not limited by the following embodiments, and specific implementation methods can be determined based on the technical solution of the present invention and actual conditions.

[0024] The present invention will be further described below in conjunction with embodiments and drawings: Embodiment 1: As attached Figure 1 As shown, an embodiment of the present invention discloses a video noise reduction and compression method based on a generative adversarial network, comprising: Step S110, obtaining the video data to be processed, and performing image conversion on it to obtain a corresponding set of images to be processed; Step S120, denoising the set of images to be processed by using an image denoising model, and compressing the denoised set of images to be processed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; Step S130, extracting features from the compressed image set to be processed, and converting the images after reorganization to obtain usable video data.

[0025] The present invention discloses a video denoising and compression method based on a generative adversarial network. The method first converts the to-be-processed video data into a to-be-processed image set, then uses a generative adversarial network and a style transfer technique to perform frame-by-frame denoising, compression and semantic analysis on the to-be-processed image set, retains images that have undergone certain changes within a threshold range, reassembles the images into a video, and implements intelligent denoising and compression of the video, thereby enabling the storage of more historical video data and providing a stable and rich data foundation for information mining and analysis based on video data.

[0026] Embodiment 2: As attached Fig.10 As shown, an embodiment of the present invention discloses a video noise reduction and compression method based on a generative adversarial network, comprising: Step S210, obtaining the video data to be processed, and performing image conversion on it to obtain a corresponding set of images to be processed.

[0027] Step S220, denoising the set of images to be processed using an image denoising model, and compressing the denoised set of images to be processed, wherein the image denoising model is obtained by training a network model through a number of groups of image data, each group of images in the number of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm.

[0028] In the above steps, as shown in the attached Figure 2 , 3 As shown, building an image denoising model specifically includes: Step S221, obtaining a training sample set and a test sample set, wherein the training sample set includes an image affected by wind and sand and a corresponding denoised image, an image with clear visual quality and a denoised image, and the test sample set includes an image affected by wind and sand and a corresponding denoised image; Further, the training sample set may include a C domain and an S domain, the C domain includes images affected by wind and sand, the S domain includes images with clear visual quality, and the images in the two domains may be unpaired.

[0029] Step S222: Use the training sample set to train the network model composed of the generative adversarial network and the style transfer algorithm to obtain an image denoising model.

[0030] Generative adversarial networks observe data samples and learn the potential distribution of samples, so that they can generate data similar to training samples. Figure 4As shown in FIG. 1 , it includes a generator and a discriminator. After training the generator once, the discriminator is trained once using the image output by the generator. Specifically, when training the generator, the image affected by wind and sand and the image with clear visual quality are respectively extracted with an encoder, and the attention module increases the attention to the semantic features. Finally, the corresponding denoised image is obtained by downsampling. When training the discriminator, the training sample image and the image output by the generator are input into the discriminator for discrimination, and the discriminator's discrimination loss is obtained. Based on the discrimination loss, the discriminator parameters are updated using the back propagation algorithm. The network structure of the attention module can be shown in FIG. Figure 5 shown.

[0031] Furthermore, the encoder and decoder used in the attention module can be specifically: The encoder uses 3 layers of convolution operations, with kernel sizes of 7, 3, and 3, strides of 1, 2, and 2, respectively, padding of -, 1, and 1, feature maps sizes of 256, 128, and 64, regularization method of LayerNorm, and activation function of ReLU; the residual network includes 9 residual blocks, each of which has two convolution layers, kernel size of 2, stride of 1, feature maps sizes of 256, regularization method of LayerNorm, and activation function of ReLU; The decoder uses 3 layers of convolution operations, with kernel sizes of 3, 3, and 7, strides of 2, 2, and 1, padding of 1, 1, and -, feature maps of sizes of 128, 63, and 3, regularization method of LayerNorm, and activation function of ReLU.

[0032] Step S223, testing the image denoising model using the test sample set, and outputting the optimal image denoising model based on the test evaluation criteria.

[0033] The test evaluation method may be, but is not limited to, calculating the temperature similarity between the denoised image of the test sample and the test sample, and the test evaluation standard may be a similarity threshold.

[0034] In the above steps, as shown in the attached Figure 6 As shown, the set of denoised images to be processed is compressed, including: extracting features from each denoised image to be processed using a VGG feature extraction module, discretizing continuous feature maps, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

[0035] Step S230, extracting features from the compressed image set to be processed, and converting the images after reorganization to obtain usable video data.

[0036] The above steps, as shown in the attached Figure 7 As shown, including: Step S231, dividing two adjacent frames of images in the compressed image set to be processed into blocks; Step S232, extracting feature vectors from the divided image to be processed through an encoder; Step S233, calculate the MAE loss and MSE loss between the feature vectors of two adjacent frames of the image to be processed, and determine whether the weighted average of the two losses is greater than the range of the variation domain. If yes, delete the t+1th frame, and use the t+1th frame as the new tth frame to compare with the subsequent frame image. If no, use the current t+1th frame as the new tth frame to compare with the subsequent frame image, loop through all the images to be processed, and complete feature extraction. Step S234, reorganize the image to be processed after feature extraction and restore it to the corresponding video data.

[0037] Before feature extraction, two adjacent frames of images are divided into blocks. The block division can reduce the resource burden and shorten the running time.

[0038] The above-mentioned image feature extraction module model structure corresponding to the feature extraction and reorganization of the compressed image set to be processed can be shown in the attached figure. Figure 8 As shown, the block-part is passed through the encoder to obtain a feature vector, and the MAE and MSE losses are calculated between the feature vectors of two adjacent frames. When the weighted average of the two losses is greater than the change domain value range, the t+1 frame is deleted until the loss between the two frames is less than the change domain value range. The current t+1 frame is used as the new t frame and compared with the subsequent frame image, thereby retaining the images within the comparison range that meet the preset change degree, for example: If the degree of change is set to "90", select the tth image of the video, compare the tth image with its adjacent images, and compare the loss results calculated for the two images. If the loss between the two images is less than 90, it means that there is a "change" between the two images, then keep the t+1th frame, otherwise delete the t+1th frame.

[0039] Embodiment 3: As attached Fig. 9 As shown, an embodiment of the present invention discloses a video noise reduction and compression device based on a generative adversarial network, comprising: The to-be-processed data acquisition unit acquires the to-be-processed video data and performs image conversion on the to-be-processed video data to obtain a corresponding to-be-processed image set; A first processing unit, using an image denoising model to denoise a set of images to be processed, and compressing the denoised set of images to be processed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; The second processing unit extracts features from the compressed image set to be processed, and obtains usable video data through video conversion after reorganization.

[0040] The first processing unit comprises: Model building module, building image denoising model includes: Acquire a training sample set and a test sample set, wherein the training sample set includes images affected by wind and sand and corresponding denoised images, images with clear visual quality and denoised images, and the test sample set includes images affected by wind and sand and corresponding denoised images; The network model composed of the generative adversarial network and the style transfer algorithm is trained using the training sample set to obtain an image denoising model; Use the test sample set to test the image denoising model, and output the optimal image denoising model based on the test evaluation criteria; Image denoising module, which uses the image denoising model to denoise the image set to be processed; The image compression module compresses the set of images to be processed after denoising, including: extracting features from each image to be processed after denoising using the VGG feature extraction module, discretizing the continuous feature map, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

[0041] The second processing unit comprises: The image feature extraction module divides two adjacent frames of images in the compressed image set to be processed into blocks, and extracts feature vectors from the divided images to be processed through an encoder; The threshold comparison and restoration module calculates the MAE loss and MSE loss between the feature vectors of two adjacent frames of the image to be processed, and determines whether the weighted average of the two losses is greater than the variation domain value range. If yes, the t+1th frame is deleted, and the t+1th frame is used as the new tth frame and compared with the subsequent frame image. If no, the current t+1th frame is used as the new tth frame and compared with the subsequent frame image. All images to be processed are traversed in a loop to complete feature extraction; the images to be processed after feature extraction are reorganized and restored to the corresponding video data.

[0042] Embodiment 4: The embodiment of the present invention discloses a storage medium, on which is stored a computer program that can be read by a computer, and the computer program is configured to execute a video noise reduction and compression method based on a generative adversarial network when running.

[0043] The above storage medium may include, but is not limited to: a USB flash drive, a read-only memory, a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0044] Embodiment 5: An embodiment of the present invention discloses an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement a video noise reduction and compression method based on a generative adversarial network.

[0045] The processor may be a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. It may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The memory may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory, a mobile hard disk, a magnetic disk or an optical disk.

[0046] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0047] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0049] The above technical features constitute the best embodiment of the present invention, which has strong adaptability and best implementation effect. Non-essential technical features can be added or reduced according to actual needs to meet the requirements of different situations.

Claims

1. A video denoising and compression method based on a generative adversarial network, characterized in that: include: Obtain the video data to be processed, and perform image conversion on it to obtain a corresponding set of images to be processed; An image denoising model is used to denoise a set of images to be processed, and the denoised set of images to be processed is compressed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; Feature extraction is performed on the compressed image set to be processed, and after reorganization, video conversion is performed to obtain usable video data.

2. The video denoising and compression method based on generative adversarial network according to claim 1, characterized in that: The constructing of the image denoising model comprises: Acquire a training sample set and a test sample set, wherein the training sample set includes images affected by wind and sand and corresponding denoised images, images with clear visual quality and denoised images, and the test sample set includes images affected by wind and sand and corresponding denoised images; The network model composed of the generative adversarial network and the style transfer algorithm is trained using the training sample set to obtain an image denoising model; The image denoising model is tested using a test sample set, and the optimal image denoising model is output based on the test evaluation criteria.

3. The video denoising and compression method based on generative adversarial network according to claim 1 or 2, characterized in that: The compression of the denoised image set to be processed includes: extracting features from each denoised image to be processed using a VGG feature extraction module, discretizing continuous feature maps, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

4. The video denoising and compression method based on generative adversarial network according to claim 1 or 2, characterized in that: The feature extraction is performed on the compressed image set to be processed, and after the reorganization, the video data is obtained through video conversion, including: Dividing two adjacent frames of images in the compressed image set to be processed into blocks; Extract feature vectors from the divided image to be processed through an encoder; Calculate the MAE loss and MSE loss between the feature vectors of two adjacent frames of images to be processed, and determine whether the weighted average of the two losses is greater than the range of the variation domain. If yes, delete the t+1th frame, and use the t+1th frame as the new tth frame to compare with the subsequent frame image. If no, use the current t+1th frame as the new tth frame to compare with the subsequent frame image. Loop through all images to be processed to complete feature extraction. The image to be processed after feature extraction is reorganized and restored to the corresponding video data.

5. The video denoising and compression method based on generative adversarial network according to claim 3, characterized in that: The feature extraction is performed on the compressed image set to be processed, and after the reorganization, the video data is obtained through video conversion, including: Dividing two adjacent frames of images in the compressed image set to be processed into blocks; Extract feature vectors from the divided image to be processed through an encoder; Calculate the MAE loss and MSE loss between the feature vectors of two adjacent frames of images to be processed, and determine whether the weighted average of the two losses is greater than the range of the variation domain. If yes, delete the t+1th frame, and use the t+1th frame as the new tth frame to compare with the subsequent frame image. If no, use the current t+1th frame as the new tth frame to compare with the subsequent frame image. Loop through all images to be processed to complete feature extraction. The image to be processed after feature extraction is reorganized and restored to the corresponding video data.

6. A video denoising and compression device based on a generative adversarial network using the method as claimed in any one of claims 1 to 5, characterized in that: include: The to-be-processed data acquisition unit acquires the to-be-processed video data and performs image conversion on the to-be-processed video data to obtain a corresponding to-be-processed image set; A first processing unit, using an image denoising model to denoise a set of images to be processed, and compressing the denoised set of images to be processed, wherein the image denoising model is obtained by training a network model through a plurality of sets of image data, each set of images in the plurality of image data includes an original image and a denoised image, and the network model is composed of a generative adversarial network and a style transfer algorithm; The second processing unit extracts features from the compressed image set to be processed, and obtains usable video data through video conversion after reorganization.

7. The video noise reduction and compression device based on generative adversarial network according to claim 6 is characterized in that: The first processing unit comprises: Model building module, building image denoising model includes: Acquire a training sample set and a test sample set, wherein the training sample set includes images affected by wind and sand and corresponding denoised images, images with clear visual quality and denoised images, and the test sample set includes images affected by wind and sand and corresponding denoised images; The network model composed of the generative adversarial network and the style transfer algorithm is trained using the training sample set to obtain an image denoising model; Use the test sample set to test the image denoising model, and output the optimal image denoising model based on the test evaluation criteria; Image denoising module, which uses the image denoising model to denoise the image set to be processed; The image compression module compresses the set of images to be processed after denoising, including: extracting features from each image to be processed after denoising using the VGG feature extraction module, discretizing the continuous feature map, obtaining high-level feature maps through upsampling, and achieving image compression through downsampling.

8. The video noise reduction and compression device based on generative adversarial network according to claim 6 or 7, characterized in that: The second processing unit comprises: The image feature extraction module divides two adjacent frames of images in the compressed image set to be processed into blocks, and extracts feature vectors from the divided images to be processed through an encoder; The threshold comparison and restoration module calculates the MAE loss and MSE loss between the feature vectors of two adjacent frames of the image to be processed, and determines whether the weighted average of the two losses is greater than the variation domain value range. If yes, the t+1th frame is deleted, and the t+1th frame is used as the new tth frame and compared with the subsequent frame image. If no, the current t+1th frame is used as the new tth frame and compared with the subsequent frame image. All images to be processed are traversed in a loop to complete feature extraction; the images to be processed after feature extraction are reorganized and restored to the corresponding video data.

9. A storage medium, characterized in that: The storage medium stores a computer program that can be read by a computer, and the computer program is configured to execute the video denoising and compression method based on a generative adversarial network as described in any one of claims 1 to 5 when running.

10. An electronic device, characterized in that: It includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the video denoising and compression method based on a generative adversarial network as described in any one of claims 1 to 5.