A video super-resolution method, device, storage medium and computer product
By using the collaborative processing of global and local super-resolution networks, combined with image quality assessment and scene change segmentation, the problem of high computational complexity in existing video super-resolution algorithms is solved, achieving high-quality video restoration and improved computational efficiency.
Patent Information
- Application Number
- CN202510671912.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
Existing video super-resolution algorithms have high computational complexity and large network model size, making it difficult to meet the requirements of high-quality video restoration in large-scale, high-magnification video super-resolution tasks.
A collaborative processing method using global and local super-resolution networks is adopted. Image blocks are divided into global flat regions and local detail regions based on image quality evaluation indicators, and super-resolution processing is performed separately for each region. Furthermore, video segmentation is performed based on scene changes to optimize network training and computation efficiency.
It significantly improves the quality and computational efficiency of video super-resolution, reduces network parameter transmission overhead, and enhances real-time performance and transmission efficiency.
Smart Images

Figure CN123160344A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and more specifically, to a video super-resolution method, apparatus, storage medium, and computer product. Background Technology
[0002] Video super-resolution (VSR) is a technique that uses hardware or software methods to recover high-resolution video from compressed low-resolution video. Its principle is based on image super-resolution, which involves reconstructing a high-resolution (HR) image from one or more low-resolution (LR) images. Since video consists of multiple frames, VSR typically needs to utilize inter-frame information to restore details, but this also introduces the problem of temporal alignment.
[0003] Current mainstream video super-resolution algorithms rely on the propagation and alignment of inter-frame information. This not only increases computational complexity but also makes the network model massive, leading to additional bandwidth consumption from transmission model parameters, reduced transmission efficiency, and impacting real-time applications. In large-scale, high-resolution video super-resolution tasks, existing technologies struggle to meet the demands for high-quality video restoration.
[0004] Therefore, there is an urgent need for a video super-resolution technology that can solve the above problems in order to meet the demand for high-quality, low-cost video super-resolution processing under limited computing resources and bandwidth. Summary of the Invention
[0005] The purpose of this invention is to provide a video super-resolution method, device, storage medium, and computer product to solve the problems of complex calculations, high resource consumption, and low efficiency in existing video super-resolution methods.
[0006] To achieve the above objectives, the present invention provides a video super-resolution method, comprising the following steps:
[0007] Decompress the low-resolution video to obtain the current frame;
[0008] Calculate the video segment where the current frame is located, and obtain the global super-resolution network and the local super-resolution network of the current video segment;
[0009] The current frame is divided into several image blocks according to the image segmentation parameters. The image blocks of the current frame are divided into global flat regions and local detail regions. The image segmentation parameters are calculated and generated based on the differences in image content quality.
[0010] Image patch data of the globally flat region is input into the global super-resolution network for super-resolution processing, and image patch data of the local detail region is input into the local super-resolution network for super-resolution processing.
[0011] The current frame is stitched together according to the divided regions to obtain a super-resolution high-resolution image, and finally a high-resolution video is output.
[0012] In some embodiments, the step of dividing the current frame into several image blocks according to image segmentation parameters, and dividing the image blocks of the current frame into globally flat regions and locally detailed regions, includes:
[0013] The low-resolution image and the corresponding high-resolution image are divided into the same number of image blocks, and the position of each image block in the low-resolution image and the high-resolution image corresponds one-to-one.
[0014] Based on the image patches at the same location in the low-resolution image and the corresponding high-resolution image, an image quality evaluation index is calculated. The image quality evaluation index is used to evaluate the difference in image content quality between the low-resolution image and the corresponding high-resolution image.
[0015] Based on the image quality evaluation index, the image blocks of each frame are divided into the local detail region and the global flat region;
[0016] Based on the segmentation results, image segmentation parameters for each frame are generated. The image segmentation parameters include at least the boundary information and segmentation type of each image block.
[0017] In some embodiments, after each image block is divided, a similarity judgment is performed on adjacent image blocks;
[0018] If the similarity between adjacent image blocks is higher than a preset threshold, the adjacent image blocks are merged.
[0019] In some embodiments, the image quality evaluation metric includes peak signal-to-noise ratio;
[0020] Calculate the peak signal-to-noise ratio between image patches at the same location in the low-resolution image and the high-resolution image;
[0021] If the peak signal-to-noise ratio is not higher than the first preset value, the corresponding image block is divided into local detail regions for input into the local super-resolution network for training.
[0022] If the peak signal-to-noise ratio is higher than the first preset value, the corresponding image block is divided into a globally flat region for input into the global super-resolution network for training.
[0023] In some embodiments, the global super-resolution network and the local super-resolution network are trained through the following steps:
[0024] High-resolution video is downsampled to obtain low-resolution video;
[0025] The low-resolution video is segmented according to changes in the scene.
[0026] Calculate the image segmentation parameters for each frame of each video segment, and divide each frame into several image blocks, which are then divided into the local detail region and the global flat region.
[0027] Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained respectively, and the parameters of the global super-resolution network and the parameters of the local super-resolution network are updated.
[0028] In some embodiments, segmenting the low-resolution video according to scene changes includes:
[0029] Based on the basic frame type of video encoding, obtain the position information of all I-frames in the low-resolution video;
[0030] The video between the I-frames is segmented by comparing the spacing between two adjacent I-frames with a preset specified spacing.
[0031] In some embodiments, the global super-resolution network includes a feature extraction module, a temporal information extraction module, a temporal information processing module, and a first output module:
[0032] The feature extraction module is used to perform preliminary feature extraction on each frame of the input low-resolution image, and to superimpose and combine all the obtained feature maps to form a comprehensive feature map.
[0033] The temporal information extraction module extracts temporal information from the comprehensive feature map generated by the feature extraction module through a convolution operation.
[0034] The time-domain information processing module divides the input time-domain information into two paths for processing. One path of the time-domain information is processed by super-resolution through a residual network to obtain a super-resolution result, and the other path of the time-domain information is processed by upsampling through convolution operations to obtain an upsampling result.
[0035] The first output module merges the super-resolution processing result and the upsampling processing result to generate the final super-resolution high-resolution image.
[0036] In some embodiments, the feature extraction module includes a 2D convolutional network for preliminary feature extraction;
[0037] The temporal information extraction module includes a 3D convolutional network for performing convolution operations;
[0038] The time-domain information processing module includes a wide residual network and an upsampling convolutional layer. The wide residual network is used to perform super-resolution processing on the time-domain information output by the time-domain information extraction module, and the upsampling convolutional layer is used to perform upsampling processing on the time-domain information output by the time-domain information extraction module.
[0039] In some embodiments, the wide residual network is composed of multiple residual blocks connected in series;
[0040] Each residual block contains a first convolutional layer, an activation function layer, a second convolutional layer, and a third convolutional layer connected in sequence.
[0041] In some embodiments, the training process of the global super-resolution network includes:
[0042] The high-resolution video is downsampled to generate a corresponding low-resolution video.
[0043] Centered on the current frame of the low-resolution video, take the same number of low-resolution images forward and backward to form a multi-frame image sequence, and input it into the global super-resolution network.
[0044] The global super-resolution network processes the input multi-frame image sequence and outputs the super-resolution result of the current frame.
[0045] The super-resolution result output by the global super-resolution network is compared with the corresponding high-resolution image, and the loss value is calculated to determine whether the requirements of the target loss function are met.
[0046] The global super-resolution network parameters are updated based on the calculated loss value;
[0047] Repeat the above steps to iteratively train the global super-resolution network until the loss value meets the requirements of the target loss function or the maximum number of iterations is reached.
[0048] In some embodiments, the local super-resolution network includes an input module, a feature processing module, a content-aware modulation module, a shared convolutional layer, a feature fusion module, and a second output module.
[0049] The input module is used to receive image blocks from different video segments as input;
[0050] The feature processing module is used to extract the features of the input image patch;
[0051] The content-aware modulation module extracts general feature information and unique feature information for each image block from the image block features.
[0052] The shared convolutional layer receives the output information of the content-aware modulation module and performs convolution processing, then passes the processed result to the feature fusion module.
[0053] The feature fusion module adds and fuses the processing result of the shared convolutional layer with the features extracted by the feature extraction module, and then transmits the fused feature information to the second output module.
[0054] The second output module receives the feature information from the feature fusion module, performs upsampling and convolution processing, and finally outputs the super-resolution image.
[0055] In some embodiments, the content-aware modulation module includes multiple cascaded content-aware modulation residual blocks:
[0056] Each content-aware modulation residual block undergoes the following processing steps in sequence:
[0057] The first shared convolutional layer is used to perform convolution processing on the input features and extract the general feature information of the image patches;
[0058] The first set of private linear layers is used to process the features of each image patch individually and extract the unique feature information of the image patch.
[0059] A shared activation layer is used to perform nonlinear activation on the processed features, introducing a nonlinear transformation into the network.
[0060] The second shared convolutional layer is used to perform convolutional processing on the activated features and extract general feature information of image patches;
[0061] The second set of private linear layers is used for feature processing of each image patch to extract the unique feature information of the image patch;
[0062] Feature fusion is used to fuse the features processed by the first shared convolutional layer with the features processed by the second set of private linear layers to output the final features.
[0063] In some embodiments, the second output module includes a shared upsampling layer and a third shared convolutional layer:
[0064] The shared upsampling layer receives the output of the feature fusion module and upsamples it, then passes the upsampled result to the third shared convolutional layer.
[0065] The third shared convolutional layer will perform convolution processing on the upsampled features to output a high-resolution image after super-resolution.
[0066] In some embodiments, the parameters of the local super-resolution network include shared parameters and private parameters:
[0067] The shared parameters include parameters of several shared convolutional layers and shared upsampling layers, and the shared parameters are trained using image patches from all video segments.
[0068] The private parameters include parameters of several private linear layers, which are trained and updated using image patch data of local detail regions in the current video segment.
[0069] In some embodiments, the training process of the local super-resolution network includes:
[0070] Image patch data is randomly selected from all video segments to train the initial values of the private parameters and the shared parameters.
[0071] In some embodiments, the training process of the local super-resolution network includes:
[0072] For the first segment of a video or a video segment with scene transitions, the initial values of the private parameters for the current video segment are obtained through training.
[0073] For normal, continuous video segments, the private parameters from the previous video segment are used as initial values.
[0074] In some embodiments, the parameters of the local super-resolution network further include a target loss function:
[0075] The target loss function includes weight parameters of image quality evaluation indicators, and the weights of the loss function are dynamically adjusted according to the weight parameters of the image quality evaluation indicators.
[0076] To achieve the above objectives, the present invention provides a video super-resolution method, comprising the following steps:
[0077] High-resolution video is downsampled to obtain low-resolution video;
[0078] The low-resolution video is segmented according to changes in the scene.
[0079] For each frame of each video segment, image segmentation parameters are calculated based on the difference in image content quality between the low-resolution image and the corresponding high-resolution image. Each frame is then divided into several image blocks based on these image segmentation parameters. These image blocks are further divided into local detail regions and global flat regions.
[0080] Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained and updated respectively.
[0081] Based on the trained global super-resolution network, local super-resolution network, and image segmentation parameters, video super-resolution processing is performed.
[0082] To achieve the above objectives, the present invention provides a video super-resolution device, including a memory and a processor:
[0083] The memory is used to store computer programs;
[0084] The processor is configured to execute the video super-resolution method as described above when the computer program is invoked.
[0085] To achieve the above objectives, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video super-resolution method as described above.
[0086] To achieve the above objectives, the present invention provides a computer product comprising a computer program that, when executed by a processor, implements the steps of the video super-resolution method described above.
[0087] This invention proposes a video super-resolution method, device, storage medium, and computer product. By segmenting video based on scene changes, dividing image content quality into regions, and co-processing with global-local super-resolution networks, the quality of video super-resolution is significantly improved while maintaining computational efficiency. Attached Figure Description
[0088] The above and other features, properties and advantages of the present invention will become more apparent from the following description taken in conjunction with the accompanying drawings and embodiments, in which the same reference numerals always denote the same features, wherein:
[0089] Figure 1 A schematic diagram of the architecture used in a video super-resolution method according to an embodiment of the present invention is disclosed;
[0090] Figure 2 A flowchart illustrating the steps of a video super-resolution method according to an embodiment of the present invention is disclosed;
[0091] Figure 3 A flowchart illustrating the architecture used in a video super-resolution method according to an embodiment of the present invention is disclosed.
[0092] Figure 4 A segmented process diagram according to an embodiment of the present invention is disclosed;
[0093] Figure 5a A first schematic diagram of scene segmentation according to an embodiment of the present invention is disclosed;
[0094] Figure 5bA second schematic diagram of scene segmentation according to an embodiment of the present invention is disclosed;
[0095] Figure 6 A schematic diagram of a block-based process according to an embodiment of the present invention is disclosed;
[0096] Figure 7a A schematic diagram of the original ultra-high-resolution image according to an embodiment of the present invention is disclosed;
[0097] Figure 7b A PSNR distribution diagram according to an embodiment of the present invention is disclosed;
[0098] Figure 7c A block diagram according to an embodiment of the present invention is disclosed;
[0099] Figure 8 A general framework diagram of a global super-resolution network according to an embodiment of the present invention is disclosed;
[0100] Figure 9 A schematic diagram of the structure of a WDSR residual network according to an embodiment of the present invention is disclosed;
[0101] Figure 10 A schematic diagram of the structure of a 3D convolutional network according to an embodiment of the present invention is shown;
[0102] Figure 11 A training flowchart of a local super-resolution network according to an embodiment of the present invention is disclosed;
[0103] Figure 12 An overall framework diagram of a local super-resolution network according to an embodiment of the present invention is disclosed;
[0104] Figure 13 A schematic diagram of the structure of a content-aware modulation residual block according to an embodiment of the present invention is disclosed;
[0105] Figure 14 A schematic diagram of the structure of a private linear layer according to an embodiment of the present invention is disclosed.
[0106] The meanings of the labels in the figures are as follows:
[0107] 100 Global Super-Resolution Network;
[0108] 110 Feature Extraction Module;
[0109] 120 Time Domain Information Extraction Module;
[0110] 130 Time Domain Information Processing Module;
[0111] 140 First output module;
[0112] 200 local super-resolution network;
[0113] 210 Input Module;
[0114] 220 Feature Processing Module;
[0115] 230 Content-Aware Modulation Module;
[0116] 240 shared convolutional layers;
[0117] 250 feature fusion modules;
[0118] 260 Second Output Module. Detailed Implementation
[0119] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the invention.
[0120] To address the problems of high computational complexity and large network model size in mainstream video super-resolution algorithms, which result in insufficient ability to recover original details and content in large-scale, high-magnification video super-resolution tasks, this invention proposes a video super-resolution method, device, storage medium, and computer product. It adopts the Internet Video Streaming and Delivery Super Resolution (IVSDSR) method, which can effectively solve the key problems of low computational efficiency, inability to meet the requirements of high-quality video restoration, and inability to adapt to complex scenarios in existing technologies.
[0121] The inventors of this application have discovered that, unlike traditional generalized video super-resolution methods, the core objective of a video super-resolution method geared towards video transmission is to restore compressed high-definition video content to the greatest extent possible with minimal network parameter transmission overhead, i.e., to fit the original high-definition video as accurately as possible. Typically, this method employs the following process: the sending end downsamples the high-definition video to generate a low-resolution version and transmits it; the terminal uses an AI super-resolution network to perform calculations on the low-resolution video to restore a high-resolution video close to the original quality. This method only transmits the low-resolution video content stream, while additionally transmitting the super-resolution network model stream for super-resolution processing at the terminal.
[0122] Figure 1 The system architecture of a video super-resolution method according to an embodiment of this application is shown. The system consists of two parts: a transmitter and a terminal.
[0123] The sending end is usually a cloud server or streaming media server, which is responsible for storing video resources, performing video compression encoding, establishing and training global and local super-resolution networks, and transmitting data;
[0124] Terminals include smart devices such as smartphones, tablets, and head-mounted displays, which mainly realize video reception, super-resolution (referred to as "super-resolution") processing, and playback functions;
[0125] Both are connected via a wireless network and can be deployed independently or integrated into the same device.
[0126] This system architecture supports practical applications in various video processing scenarios.
[0127] In a typical online video playback scenario, after a user selects a video through the terminal, the sending end transmits a compressed low-resolution video stream, and the terminal performs super-resolution processing in real time to improve the image quality.
[0128] Figure 1 The system shown is highly flexible in its application scenarios, not limited to the typical applications mentioned above, and can be used in any situation requiring video quality enhancement. The sending end and terminal in the system architecture can be flexibly configured according to actual needs. This modular design not only ensures the implementation effect of the core algorithm, but also adapts to different hardware environments and application requirements, demonstrating good practicality and scalability.
[0129] Figure 2 A step diagram of a video super-resolution method according to an embodiment of the present invention is disclosed, as follows: Figure 2 The illustrated embodiment proposes a video super-resolution method, which includes at least the following steps:
[0130] Step S1: Decompress the low-resolution video to obtain the current frame;
[0131] Step S2: Calculate the video segment where the current frame is located, and obtain the global super-resolution network and local super-resolution network of the current video segment;
[0132] Step S3: Divide the current frame into several image blocks according to the image segmentation parameters, and divide the image blocks of the current frame into global flat regions and local detail regions. The image segmentation parameters are calculated and generated based on the differences in image content quality.
[0133] Step S4: Input the image patch data of the globally flat region into the global super-resolution network for super-resolution processing, and input the image patch data of the local detail region into the local super-resolution network for super-resolution processing;
[0134] Step S5: The current frame is stitched together according to the divided regions to obtain a super-resolution high-resolution image, and finally a high-resolution video is output.
[0135] The video super-resolution method proposed in this invention divides the image quality into globally flat and locally detailed regions, and sets up global and local super-resolution networks independently. This solves the problems of poor super-resolution effect of a single network, slow network training convergence, and large network parameter transmission overhead in the prior art, and achieves the technical effects of improving super-resolution quality, enhancing real-time application capabilities, and improving transmission efficiency.
[0136] The global super-resolution network and the local super-resolution network are established and trained in the following ways:
[0137] High-resolution video is downsampled to obtain low-resolution video;
[0138] The low-resolution video is segmented according to changes in the scene.
[0139] Calculate the image segmentation parameters for each frame of each video segment, and divide each frame into several image blocks, which are then divided into the local detail region and the global flat region.
[0140] Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained respectively, and the parameters of the global super-resolution network and the parameters of the local super-resolution network are updated.
[0141] This method classifies image patches into globally flat / locally detailed regions based on image content quality analysis. The global super-resolution network achieves lightweight and efficient reconstruction for flat regions, while the local super-resolution network targets detailed regions. By dynamically adjusting the parameters of the local super-resolution network, high-frequency texture restoration is enhanced, effectively solving the problem that a single network cannot meet the super-resolution requirements of different regions.
[0142] Figure 2 The video super-resolution method shown in the embodiment is similar to... Figure 1 The structure shown can fit together perfectly. Figure 3 A flowchart illustrating the architecture used in a video super-resolution method according to an embodiment of the present invention is provided, such as... Figure 3 As shown, the sending end completes video downsampling and encoding, scene video segmentation, image block division for each frame, establishment and training of global and local super-resolution networks, and transmission of global and local super-resolution networks and low-resolution video data; the terminal then fully executes the complete video super-resolution method from video decoding (corresponding to step S1), scene segmentation and network selection (corresponding to step S2), region division and processing (corresponding to steps S3-S4), image stitching and output (corresponding to step S5).
[0143] like Figure 2The video super-resolution method proposed in the illustrated embodiment, through innovative architecture design and intelligent processing strategies, significantly optimizes the balance between video transmission and processing while ensuring super-resolution quality, thereby greatly improving computational efficiency while enhancing the overall super-resolution effect.
[0144] Next, combined Figure 1 and Figure 3 The architecture will affect, for example Figure 2 The specific implementation details of the video super-resolution method proposed in the illustrated embodiments are described in more detail.
[0145] First, this method requires preprocessing the original high-resolution video, that is, obtaining the corresponding low-resolution video through downsampling.
[0146] The original high-resolution video is downsampled to obtain a low-resolution video.
[0147] Downsampling can employ various interpolation algorithms, including but not limited to nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation.
[0148] Regarding the selection of downsampling scale, multiple ratio settings are supported, such as one-half, one-quarter, etc. This application does not impose specific limitations on this and can be flexibly configured according to actual application scenarios.
[0149] Taking a typical application scenario as an example, the original high-resolution video of 4096×4096 pixels is converted into a low-resolution video of 1024×1024 pixels through downsampling processing, providing basic data for subsequent super-resolution processing.
[0150] In this embodiment, after the step of downsampling the high-resolution video, the method further includes:
[0151] The downsampled video is re-encoded;
[0152] The re-encoding process performed at the sending end uses encoding types including, but not limited to, Advanced Video Coding (H.264 or AVC), High-Efficiency Video Coding (H.265 or HEVC), Versatile Video Coding (H.266 or VVC), and Deep Context-based Video Compression (DCVC). Specific encoding / decoding methods and parameters are not specifically limited.
[0153] After downsampling and re-encoding, the low-resolution video needs to be intelligently segmented according to the video scene to generate independent video chunks for subsequent targeted super-resolution reconstruction.
[0154] Existing video super-resolution methods generally suffer from insufficient scene adaptability. Since video content typically includes complex and varied scene transitions and rich dynamic changes, traditional methods often employ a simple fixed-length segmentation strategy, mechanically dividing the video into several segments for independent processing. This approach has significant drawbacks: firstly, the fixed segmentation method cannot accurately capture the boundaries of real scene changes in the video, leading to erroneous mixing of cross-scene content; secondly, independently modeling and calculating each video segment not only results in a large amount of repetitive computation but also disrupts the temporal continuity of the video, ultimately leading to wasted computational resources and low processing efficiency.
[0155] The quality of video segmentation directly affects the super-resolution effect, thus requiring a reasonable segmentation strategy. To address the aforementioned issues, this invention proposes a segmentation strategy based on scene variations.
[0156] Figure 4 A segmented process diagram according to an embodiment of the present invention is disclosed, such as... Figure 4 As shown, the low-resolution video is segmented according to scene changes, further including:
[0157] I-frame position detection: Based on the basic frame type of video encoding, obtain the position information of all I-frames in a low-resolution video;
[0158] Intelligent segmentation: The video between I-frames is segmented by comparing the spacing between two adjacent I-frames with a preset specified spacing.
[0159] In video coding, I-frames, P-frames, and B-frames are the three basic frame types:
[0160] I-frames (Intra-coded frames, keyframes) are intra-coded frames. As independent coded frames, they do not depend on information from other frames. Their distribution directly reflects the changing characteristics of the video scene and can be used as segmentation anchors.
[0161] A P-frame (Predictive-coded frame) is a forward-predictive-coded frame that depends on the previous frame and does not trigger segmentation.
[0162] B-frames (Bidirectionally-predictive-coded frames) depend on the preceding and following frames and are automatically assigned to adjacent I-frame intervals during segmentation.
[0163] Therefore, this embodiment uses I-frame position detection as the main basis for video segmentation, which can accurately capture key nodes of video scene changes.
[0164] This embodiment employs intelligent segmentation based on I-frame detection, and further includes:
[0165] If the interval between adjacent I-frames is greater than or equal to the preset specified interval, the video segments between I-frames are directly divided into independent video segments (Chunks) with the preset specified interval as the interval, indicating that there is no significant scene change in this interval.
[0166] If the interval between adjacent I-frames is less than the preset specified interval, the video segment between the current I-frames will be merged with the previous segment to ensure that the scene change area is accurately segmented and to avoid cross-scene content mixing.
[0167] In this embodiment, a preset interval of 5s or 10s is generally used to segment the video, generating multiple video chunks to balance processing efficiency and scene consistency. The preset interval should not be too long or too short. Experimental results have shown that a 5s or 10s setting can cover most natural scene transitions; too short an interval will lead to segmentation redundancy, while too long an interval will reduce super-resolution accuracy.
[0168] The following section uses a preset interval of 5 seconds as an example to explain the video segmentation strategy in detail with typical application scenarios.
[0169] The original high-resolution video of 4096×4096 pixels was downsampled to a low-resolution video of 1024×1024 pixels (using H.265 encoding);
[0170] The preset interval for I-frame is 5 seconds (corresponding to 300 frames @ 60fps) as the segmentation reference interval;
[0171] If the interval between adjacent I-frames is greater than or equal to 5 seconds, for example Figure 5a The interval between adjacent I-frames is 5 seconds. The video segment between I-frames is directly divided into independent video segments with a 5-second interval, indicating that the scene in this interval is stable.
[0172] If multiple I-frames exist within 5 seconds, that is, if the interval between I-frames is less than 5 seconds, such as Figure 5b As shown, if a significant scene change is detected, the video segment between the current I-frames is merged with the previous video segment to ensure that the content before and after the scene change is accurately segmented into different video segments.
[0173] In this embodiment, dynamic segmentation based on I-frames significantly reduces the number of network parameter updates caused by scene switching, while maintaining the continuity of temporal information.
[0174] The segmentation strategy proposed in this embodiment avoids the limitations of manually setting fixed segments and can accurately capture real scene transitions, providing an optimized segmentation basis for subsequent super-resolution processing.
[0175] In the video super-resolution method mentioned in this embodiment, after video segmentation is completed, the image frames within each video segment are divided into blocks. By dividing the image into blocks and regions, the scene details and complexity of different regions can be accurately identified.
[0176] More specifically, based on the image content of each video segment, each frame of the image is divided into image blocks, and all image blocks of each frame are further divided into local detail regions and global flat regions.
[0177] In this embodiment, the step of dividing the current frame into several image blocks according to image segmentation parameters, and dividing the image blocks of the current frame into globally flat regions and locally detailed regions, includes:
[0178] The low-resolution image and the corresponding high-resolution image are divided into the same number of image blocks, and the position of each image block in the low-resolution image and the high-resolution image corresponds one-to-one.
[0179] Based on the image patches at the same location in the low-resolution image and the corresponding high-resolution image, an image quality evaluation index is calculated. The image quality evaluation index is used to evaluate the difference in image content quality between the low-resolution image and the corresponding high-resolution image.
[0180] Based on the image quality evaluation index, the image blocks of each frame are divided into the local detail region and the global flat region;
[0181] Based on the segmentation results, image segmentation parameters for each frame are generated. The image segmentation parameters include at least the boundary information and segmentation type of each image block.
[0182] In this embodiment, the image quality evaluation index is a mathematical model used to quantitatively evaluate the content quality difference between a low-resolution image and its corresponding high-resolution image. In this embodiment, the image quality evaluation index specifically includes, but is not limited to:
[0183] Peak signal-to-noise ratio (PSNR) is used to measure pixel-level distortion and is suitable for evaluating the fidelity of super-resolution reconstruction.
[0184] The Structural Similarity Index Measure (SSIM) combines three dimensions—brightness, contrast, and structure—to evaluate image similarity, which is more in line with human visual perception.
[0185] Learned Perceptual Image Patch Similarity (LPIPS), a feature distance metric based on deep neural networks, can better reflect the difference perception of the human visual system.
[0186] Image quality evaluation metrics serve as the basis for region division decisions. By comparing thresholds, image blocks are precisely divided into local detail regions that require fine processing and globally flat regions that can be processed quickly. More computing resources can be allocated to local detail regions, while processing can be simplified for globally flat regions, thus achieving intelligent allocation of computing power.
[0187] Taking PSNR as an example, the PSNR between image patches at the same location in the low-resolution image and the high-resolution image is calculated.
[0188] If the PSNR value is not higher than the first preset value, the corresponding image patch is divided into local detail regions, which are then used as inputs to the local super-resolution network for training.
[0189] If the PSNR value is higher than the first preset value, the corresponding image patch is divided into a globally flat region for input into the global super-resolution network for training.
[0190] Specifically, two calculation methods can be used to obtain the PSNR statistical value as the first preset value: one is to take the median value of the PSNR of all pixels in the block, and the other is to calculate the arithmetic mean of the PSNR of the pixels in the block.
[0191] Based on the calculated PSNR statistics, the PSNR distribution of each pixel is further analyzed. By measuring the proportion of pixels within a statistical block that exceed a first preset value, the quality characteristics of that image block can be determined more accurately. For example, when more than 20% of the pixels in an image block have PSNR values higher than the first preset value, the block can be identified as a high-quality region and can be considered a globally flat region. This percentage-based evaluation method effectively avoids interference from individual abnormal pixels in the overall quality assessment.
[0192] It's worth noting that when using SSIM as an evaluation metric, the judgment logic is the opposite of PSNR. Since a lower SSIM value indicates more severe distortion, the focus for the SSIM metric should be on the proportion of pixels with SSIM values below a preset value. For example, if the proportion of pixels with SSIM values below a preset value in an image patch exceeds a certain threshold, it is classified as a local detail region requiring special attention. This differentiated judgment strategy ensures the accuracy of region segmentation under different evaluation metrics.
[0193] Figure 6 A schematic diagram of a block-based process according to an embodiment of the present invention is disclosed, such as... Figure 6 As shown, the specific block-based process in a typical application scenario is as follows:
[0194] For example, first, a high-resolution ultra-high-definition frame of original 4096×4096 pixels is obtained ( Figure 7a Simultaneously, bicubic interpolation is performed on the low-resolution lossy frame of 1024×1024 pixels to generate a lossy reference frame of 4096×4096 that matches the original resolution, ensuring strict alignment of the high and low resolution images in spatial scale for subsequent processing.
[0195] By calculating the PSNR distribution of the lossy reference frame ( Figure 7b The high-resolution image (ultra-high definition frame) is evenly divided into 256 256×256 sub-blocks, and the corresponding low-resolution image (low-resolution frame) is divided into 256 64×64 sub-blocks. Figure 7c ).
[0196] Based on PSNR calculation and analysis, image patches below a first preset value are identified and extracted as local detail regions for training a local super-resolution network.
[0197] Specifically, these local detail regions are input into the local super-resolution network as paired image patches of 64×64 (low resolution) and 256×256 (high resolution) to ensure that the network learns accurate detail reconstruction capabilities.
[0198] For training a global super-resolution network, the following three flexible approaches can be adopted:
[0199] It can directly process a full-size 4096×4096 image, or divide the image into four 2048×2048 sub-blocks, or divide the image into sixteen 1024×1024 sub-blocks.
[0200] This multi-granularity processing strategy can be dynamically adjusted according to hardware resources to optimize computational efficiency.
[0201] To further optimize processing efficiency, after each image block is divided, a similarity judgment is performed on adjacent image blocks;
[0202] If the similarity between adjacent image blocks is higher than a preset threshold, the adjacent image blocks are merged.
[0203] This reduces the amount of computation while ensuring consistent processing results, effectively balancing processing accuracy and computational efficiency.
[0204] In practical applications, adaptive similarity judgment methods can be adopted according to different application scenarios and performance requirements.
[0205] In this embodiment, the similarity judgment strategy specifically includes, but is not limited to: a similarity judgment method based on gradient magnitude, a similarity judgment method based on variance or standard deviation analysis, and a similarity judgment method based on SAD (Sum of Absolute Differences).
[0206] The gradient magnitude-based similarity assessment method evaluates texture complexity by analyzing the gradient features of pixels within an image patch. First, the gradient of each pixel in the horizontal and vertical directions is calculated, and then the mean of gradient amplitudes (MGA) is obtained. A higher MGA value indicates a more complex texture. When the MGA values of adjacent image patches are both below a set threshold, it indicates that both contain relatively flat texture features and have high similarity.
[0207] Similarity assessment methods based on variance or standard deviation analysis determine the similarity of image patches by statistically analyzing the dispersion (variance or standard deviation) of pixel values within the patch. The calculation first calculates the variance or standard deviation of pixel values within the patch. A larger variance or standard deviation indicates a greater deviation between the pixel value and the mean, more drastic grayscale variations within the patch, and higher texture complexity.
[0208] The SAD-based similarity assessment method quantifies similarity by calculating the sum of the absolute differences (SAD) between corresponding pixels in adjacent image patches. A higher SAD value indicates greater differences between image patches, which may mean higher texture complexity.
[0209] For example, the GomComplexityAnalysisInter function in OpenH264 uses SAD to calculate texture complexity.
[0210] By judging and merging the similarity of adjacent image blocks, the computational burden of subsequent super-resolution processing is significantly reduced, and the visual coherence of the reconstructed image is maintained, providing a reliable technical guarantee for achieving high-quality real-time super-resolution in practical systems.
[0211] It should be noted that the image block segmentation method in this embodiment differs fundamentally from semantic-based image segmentation: this approach objectively partitions the image into grids based on image quality evaluation metrics, focusing on pixel-level quality differences and texture complexity, rather than identifying semantic objects or content within the image. Specifically, this method divides the image into regular rectangular blocks, distinguishing between flat and detailed regions by quantifying the quality loss of each block. It is entirely based on numerical analysis rather than semantic understanding, ensuring that detailed regions receive more processing resources, while flat regions undergo simplified processing, thus achieving a balance between computational efficiency and reconstruction quality.
[0212] After dividing and merging image patches, a global super-resolution network and a local super-resolution network are established and trained according to the characteristics of the regions. The global super-resolution network is specifically designed to handle the merged globally flat regions, and its specific network architecture is as follows.
[0213] Figure 8 A general framework diagram of a global super-resolution network according to an embodiment of the present invention is disclosed, such as... Figure 8 As shown, the global super-resolution network 100, used to process flat regions of a video, includes at least a feature extraction module 110, a temporal information extraction module 120, a temporal information processing module 130, and a first output module 140.
[0214] The feature extraction module 110 is used to perform preliminary feature extraction on each frame of the input low-resolution image, and to superimpose and combine all the obtained feature maps to form a comprehensive feature map.
[0215] The temporal information extraction module 120 extracts temporal information from the comprehensive feature map generated by the feature extraction module through a convolution operation.
[0216] The time-domain information processing module 130 divides the input time-domain information into two paths for processing. One path of the time-domain information is processed by super-resolution through a residual network to obtain a super-resolution result, and the other path of the time-domain information is processed by upsampling through a convolution operation to obtain an upsampling result.
[0217] The first output module 140 merges the super-resolution processing result and the upsampling processing result to generate the final super-resolution high-resolution image.
[0218] The feature extraction module 110 includes a series of pre-trained 2D convolutional networks for preliminary feature extraction from the input low-resolution image.
[0219] The temporal information extraction module 120 includes a 3D convolutional network for performing convolution operations.
[0220] The time-domain information processing module 130 includes a wide residual network and an upsampling convolutional layer:
[0221] The wide residual network is used to perform super-resolution processing on the time-domain information output by the time-domain information extraction module 120 to obtain the super-resolution processing result;
[0222] The upsampling convolutional layer is used to upsample the time-domain information output by the time-domain information extraction module 120 to obtain the upsampling result.
[0223] Furthermore, the wide residual network of the time-domain information processing module 130 includes a Wide ReLU Residual Network (WDSR), which is connected in sequence; a ReLU activation function and a 1x1 convolution:
[0224] First, feature enhancement is performed using a WDSR residual network, followed by the introduction of a ReLU activation function to introduce nonlinear transformation; finally, channel dimension adjustment is performed using a 1×1 convolution.
[0225] The upsampling convolutional layer of the temporal information processing module 130 includes a first ReLU activation function, a first 1x1 convolution, a second ReLU activation function, and a second 1x1 convolution connected in sequence.
[0226] The first 1×1 convolution is mainly used for feature compression, while the second is responsible for feature reconstruction, which achieves non-linear enhancement through the ReLU activation function.
[0227] The first output module 140 uses sub-pixel convolution (Pixel Shuffle) to process and fuse the super-resolution processing result and the upsampling processing result respectively. This can preserve the detailed information of the super-resolution path and maintain the temporal consistency of the upsampling path, thereby achieving the best reconstruction effect.
[0228] Wide ReLU residual networks are a lightweight neural network architecture for super-resolution algorithms in deep learning. They are commonly used in tasks such as image super-resolution and can effectively extract and enhance the spatiotemporal information of input features.
[0229] Figure 9 A schematic diagram of the structure of a WDSR residual network according to an embodiment of the present invention is shown, as follows: Figure 9 As shown, the wide ReLU residual network is composed of 8 WDSR-B residual blocks connected in series;
[0230] Each WDSR-B residual block contains a first convolutional layer, an activation function layer, a second convolutional layer, and a third convolutional layer connected in sequence:
[0231] The first convolutional layer uses a 1x1 convolution, the activation function layer uses the ReLU activation function, the second convolutional layer uses a 1x1 convolution, and the third convolutional layer uses a 3x3 convolution.
[0232] 1x1 convolution is used to reduce or increase the number of feature channels, thus reducing or increasing dimensionality and reducing computation; 3x3 convolution is used to extract local features of an image; ReLU activation function introduces nonlinearity.
[0233] Furthermore, each residual block employs a skip connection, directly adding the input features to the output features to alleviate the vanishing / exploding gradient problem during deep network training and promote a more stable optimization process. Residual connections enable the network to train deeper architectures, improving super-resolution performance; through multi-level stacking of residual blocks, the reconstruction effect of high-frequency details is gradually enhanced.
[0234] This network architecture demonstrates excellent performance in super-resolution tasks, effectively improving the clarity and detail of low-resolution videos.
[0235] Figure 10 A schematic diagram of the structure of a 3D convolutional network according to an embodiment of the present invention is shown, as follows: Figure 10 As shown, the temporal information extraction module 120 includes a 3D convolutional network for performing convolution operations.
[0236] 3D convolutional networks are deep learning architectures designed for processing three-dimensional data (such as video sequences, three-dimensional volume data, etc.), and consist of multiple stacked 3D convolutional blocks.
[0237] In this embodiment, the 3D convolutional network of the temporal information extraction module 120 consists of 6 3D convolutional blocks, and the structure of each 3D convolutional block includes a 3D convolutional layer and a ReLU activation function layer:
[0238] The 3D convolutional layer (Conv3D 3x3x3) uses a 3×3×3 convolutional kernel to perform convolution operations on the spatial (length and width) dimension and the depth (time) dimension. By convolving the three-dimensional data of each local region, it can effectively extract the spatiotemporal feature information in the video sequence.
[0239] The ReLU activation function layer (ReLU) introduces nonlinear activation to enhance the network's expressive power, enabling it to learn more complex spatiotemporal patterns and relationships.
[0240] 3D convolutional networks can capture both spatial and temporal correlations through 3D convolution operations, thus better modeling the dynamic characteristics of video sequences. Compared to traditional image alignment methods, 3D convolutional networks avoid additional computational overhead while preserving rich temporal information.
[0241] The global super-resolution network in this embodiment combines the advantages of 3D convolutional networks and WDSR residual networks: it extracts the spatiotemporal information of video sequences through 3D convolutional networks to improve the accuracy of super-resolution processing; and it uses WDSR residual networks as the basic structure to ensure the super-resolution effect while significantly reducing the number of network parameters and improving computational efficiency.
[0242] The above-described architecture of the global super-resolution network can effectively extract and utilize temporal information to improve the super-resolution effect in globally flat areas of the video, while ensuring computational efficiency and network stability.
[0243] Based on this, we will further introduce the training process of the global super-resolution network to optimize super-resolution performance.
[0244] The training process of the global super-resolution network includes:
[0245] The high-resolution video is downsampled to generate a corresponding low-resolution video.
[0246] Centered on the current frame of the low-resolution video, take the same number of low-resolution images forward and backward to form a multi-frame image sequence, and input it into the global super-resolution network.
[0247] The global super-resolution network processes the input multi-frame image sequence and outputs the super-resolution result of the current frame.
[0248] The super-resolution result output by the global super-resolution network is compared with the corresponding high-resolution image, and the loss value is calculated to determine whether the requirements of the target loss function are met.
[0249] The global super-resolution network parameters are updated based on the calculated loss value;
[0250] Repeat the above steps to iteratively train the global super-resolution network until the loss value meets the requirements of the target loss function or the maximum number of iterations is reached.
[0251] The target loss function can be the mean absolute error (L1 Loss) or the mean squared error (L2 Loss), etc., without specific restrictions:
[0252] The mean absolute error (L1 Loss) is the average of the absolute values of the difference between the predicted value and the true value.
[0253] Mean squared error (L2 Loss) is the average of the squared differences between the predicted and true values.
[0254] Through the above training process, it is possible to ensure that the global super-resolution network is gradually optimized and the super-resolution effect is improved, thereby generating high-quality high-resolution videos in practical applications.
[0255] Based on this, the specific implementation steps of the global super-resolution network are further refined to explain each key processing step in detail. The specific training and computation steps of the global super-resolution network are as follows:
[0256] The original high-resolution video is downsampled to generate a corresponding low-resolution video;
[0257] Centered on the current target frame of the low-resolution video, N / 2 frames are selected forward and backward along the temporal dimension to form an input sequence containing N low-resolution (LR) images. The input is as follows: Figure 8 The global super-resolution network shown;
[0258] Each frame of the LR image is fed into a pre-trained 2D convolutional (2DConv) network;
[0259] Local features of each frame are extracted by a 2D convolutional network to obtain N feature maps with dimensions H×W×C, where H is the spatial height dimension, W is the spatial width dimension, and C represents the number of feature channels.
[0260] The extracted N feature maps are stacked and combined to form a spatiotemporal feature map with dimensions H×W×N×C;
[0261] The generated spatiotemporal feature map is input into a 3D convolutional network to obtain the temporal information in the spatiotemporal feature map;
[0262] The extracted time-domain information is processed in two ways:
[0263] The first approach involves feeding the extracted temporal information into a wide residual network for super-resolution processing to improve the image resolution.
[0264] The second approach: Upsamples the temporal information using an upsampling convolutional layer to increase the image size;
[0265] The results from the super-resolution and upsampling processes are fused together, and the resulting high-resolution image is used as the super-resolution result. The super-resolution result is then compared with the corresponding original high-resolution image to achieve iterative training of the network.
[0266] The H×W×N×C spatiotemporal feature map is the core data structure of the global super-resolution network. H and W represent the spatial dimensions of the feature map, N represents the temporal dimension (number of consecutive video frames), and C is the number of feature channels. This four-dimensional tensor is formed by stacking the feature maps (H×W×C) of N frames. It can not only preserve the spatial structure information of a single frame, but also model spatiotemporal features simultaneously through 3D convolutional kernels, effectively capturing motion trajectories and temporal correlations in the video.
[0267] The global super-resolution network proposed in this embodiment fully utilizes temporal information while maintaining lightweight and high performance, significantly optimizing the effect and efficiency of video super-resolution reconstruction. The local super-resolution network will be introduced below.
[0268] Local super-resolution networks are trained by dividing each video segment (Chunk) into local detail regions (Patches) to recover local details in an image, thus addressing the problem of detail loss caused by image degradation or high-magnification downsampling.
[0269] Local super-resolution networks primarily employ Content-Aware Modulation (CAM) technology. By introducing private linear layers into the basic shared network, a small number of private parameters replace a large number of parameters in the original shared network, thereby achieving efficient super-resolution reconstruction and significantly reducing computational overhead. Private parameters specifically refer to the weight coefficients in the private linear layer that belong only to the current video segment. These parameters are dynamically updated through training to adapt to the local detail features of the current video segment.
[0270] Figure 11 An overall framework diagram of a local super-resolution network according to an embodiment of the present invention is disclosed, such as... Figure 12 As shown, the local super-resolution network 200 includes an input module 210, a feature processing module 220, a content-aware modulation module 230, a shared convolutional layer 240, a feature fusion module 250, and a second output module 260.
[0271] The input module 210 is used to receive image blocks from different video segments as input, providing a basis for subsequent feature extraction and processing;
[0272] The feature processing module 220 is used to extract the features of the input image patch and capture its spatial and semantic characteristics;
[0273] The content-aware modulation module 230 processes the image block features to extract general feature information and unique feature information for each image block.
[0274] The shared convolutional layer 240 receives the output information of the content-aware modulation module 230 and performs convolution processing, then passes the processed result to the feature fusion module 250.
[0275] The feature fusion module 250 adds and fuses the processing result of the shared convolutional layer 240 with the features extracted by the feature extraction module 220, and transmits the fused feature information to the second output module 260.
[0276] The second output module 260 receives the feature information from the feature fusion module 250, performs upsampling and convolution processing, and finally outputs the super-resolution local image.
[0277] Furthermore, the content-aware modulation module 230 refines the feature extraction process step by step through 16 cascaded content-aware modulation residual blocks (CAMBs) to enhance the representation of local details.
[0278] Furthermore, the second output module 260 includes a shared upsampling network and a shared convolutional network connected in sequence:
[0279] The shared upsampling network is used to upsample the feature information output by the feature fusion module 250;
[0280] The shared convolutional network is used to perform convolution processing and finally output a high-resolution local image after super-resolution.
[0281] The input to the entire local super-resolution network consists of different image patches from a video segment, and its processing flow is as follows:
[0282] The input image patch undergoes preliminary processing by the pre-trained feature processing module 220 to extract basic features;
[0283] The extracted features are input into 16 cascaded content-aware modulation residual blocks of the content-aware modulation module 230 to further capture the detailed information and personalized features of the image blocks;
[0284] The processed features are convolutionally processed through a shared convolutional layer 240 to generate a high-dimensional feature representation.
[0285] The output features of the shared convolutional layer 240 and the features extracted by the feature processing module 220 are added and fused in the feature fusion module 250 to achieve unified modeling of global and local information;
[0286] The fused features are sequentially passed through the shared upsampling network and the shared convolutional network of the second output module 260 to complete feature enhancement and spatial resolution restoration;
[0287] The final output is a high-resolution image reconstructed by super-resolution.
[0288] This local super-resolution network achieves high-quality super-resolution reconstruction in a lightweight architecture by combining modularity and efficient feature extraction. It can effectively restore image details and is particularly suitable for local super-resolution reconstruction tasks in multi-video-segment scenarios.
[0289] The content-aware modulation module 230 consists of multiple cascaded content-aware modulation residual blocks. Each content-aware modulation residual block extracts general feature information and unique feature information of the image block step by step through carefully designed processing steps, and achieves the fusion of the two.
[0290] Figure 12 A schematic diagram of the structure of a content-aware modulation residual block according to an embodiment of the present invention is disclosed, such as... Figure 12 As shown, each content-aware modulation residual block mainly consists of three main structures: two shared convolutional layers (All Chunks Shared Conv), two sets of private linear layers (Private Linear), and one shared activation layer (All Chunks Shared ReLU).
[0291] Each content-aware modulation residual block undergoes the following processing steps in sequence:
[0292] The first shared convolutional layer performs convolution processing on the input features to extract common feature information of image patches;
[0293] The first set of private linear layers processes the features of each image patch separately, extracting the unique feature information of the image patch;
[0294] The shared activation layer is used to non-linearly activate the processed features using the ReLU activation function, introducing non-linearity into the network and enhancing the model's ability to express complex patterns.
[0295] The second shared convolutional layer is used to perform convolutional processing on the activated features and extract general feature information of image patches;
[0296] The second set of private linear layers processes the features of each image patch separately again to extract deeper-level unique feature information.
[0297] Feature fusion is used to add and fuse the general features processed by the first shared convolutional layer with the specific features processed by the second set of private linear layers (Element Sum) to output the final features.
[0298] These modules sequentially perform shared feature extraction and unique feature extraction in a chain-like manner, and achieve deep feature modeling and efficient transfer through feature addition and fusion and residual connection.
[0299] Feature addition fusion is essentially a residual connection, which directly adds the initial features to the processed features, preserving important information from the original input. This residual connection helps the network better propagate gradients during training, avoiding the vanishing gradient problem, and enhancing the model's expressive power and stability.
[0300] It should be noted that the shared convolutional layer in the content-aware modulation module uses a standard 3x3 two-dimensional convolution, and the shared activation layer uses the ReLU function. All video chunks use the exact same network parameters (convolution parameters or activation function parameters) in the same shared layer (shared convolutional layer or shared activation layer) to ensure that the extracted features have universality across video chunks.
[0301] The parameters of the same shared layer remain consistent across all spatial locations (image patches) and temporal segments (video clips), but the parameters of shared layers at different levels are independent. For example, the first and second shared convolutional layers use different sets of parameters, enabling the network to extract features hierarchically—for example, shallow layers capture basic patterns, while deeper layers learn abstract representations.
[0302] This shared layer mechanism significantly reduces the number of model parameters while ensuring the network's ability to learn general features across different scenarios. By combining the stability of the shared layer with the flexibility of the private layer, it achieves a balance between efficient feature extraction and detail restoration.
[0303] The two sets of private linear layers in the content-aware modulation module employ the same depthwise separable convolutional architecture, but exist as independent network layers, deployed before and after the content-aware modulation residual block, respectively. The first set of private linear layers processes primary features, while the second set processes higher-order features enhanced by shared convolutions.
[0304] Figure 13 A schematic diagram of the structure of a private linear layer according to an embodiment of the present invention is disclosed, as follows: Figure 13 As shown, in this embodiment, the private linear layer is composed of a cascade of 3×3 depth-wise convolution kernels and 1×1 point-wise convolution kernels.
[0305] Among them, depthwise convolution is used to extract single-channel spatial features. By performing independent convolution operations on the spatial dimensions (width and height) of the input features, it effectively captures local detail features (such as edges and textures) while maintaining the independence between channels.
[0306] Pointwise convolution is used to achieve feature fusion between channels. A 1×1 convolution kernel enables information exchange and dimensionality adjustment between channels of depthwise convolution. The 1×1 convolution has extremely low computational cost and is mainly used for dimensionality enhancement / reduction or nonlinear enhancement of feature channels.
[0307] In this embodiment, the private linear layer decouples spatial feature extraction from channel feature fusion, significantly reducing computational complexity while ensuring feature representation capabilities. Depthwise convolution extracts spatial details unique to image patches, while pointwise convolution strengthens the correlation between cross-channel features. Their collaborative operation efficiently learns the personalized features of image patches. Since private parameters need to be updated and transmitted in real time, this lightweight architecture not only maintains excellent feature extraction performance but also significantly reduces the bandwidth overhead required for parameter transmission.
[0308] The aforementioned architecture of the local super-resolution network effectively extracts and enhances texture features in video detail regions while maintaining consistency with the global super-resolution network. Based on this, the training process of the local super-resolution network is further described.
[0309] Figure 14 The training flowchart of a local super-resolution network according to an embodiment of the present invention is disclosed, as follows: Figure 14 As shown, the parameters of the local super-resolution network include shared parameters and private parameters:
[0310] The shared parameters include parameters of several shared convolutional layers and shared upsampling layers. The shared parameters are trained using image patches from all video segments to extract globally common feature representations.
[0311] Once training is complete, the shared parameters are no longer updated to ensure consistency across video segments;
[0312] The private parameters include parameters of several private linear layers. The private parameters are trained and updated by image patch data of local detail regions of the current video segment to extract personalized features of the current video segment.
[0313] Private parameters are dynamically updated during training to capture unique information for the current video segment.
[0314] Furthermore, the training process of the local super-resolution network includes:
[0315] Image patches are randomly selected from all video segments and used to train the initial values of the private parameters and the shared parameters, respectively.
[0316] For example, pairs of 64×64 (low resolution) and 256×256 (high resolution) image patches are randomly selected from all video segments to train the initial values of private parameters and shared parameters.
[0317] The private parameter initialization strategy includes:
[0318] For the first segment of the video or the segment where the scene changes, directly train the initial values of the private parameters for the current segment;
[0319] For normal, continuous video segments, the private parameters of the previous video segment are used as the initial values for the current segment to maintain temporal coherence and accelerate convergence.
[0320] For example, for the first segment of a video or a scene transition segment, pairs of 64×64 (low resolution) and 256×256 (high resolution) image blocks are directly selected from the current video segment to directly train the initial values of the private parameters of the current segment, ensuring adaptability to new scenes.
[0321] Existing video segmentation super-resolution networks are trained independently and lack correlation, resulting in slow training convergence and long training time, which affects real-time performance. Each video segment needs to transmit independent AI model parameters, which increases bandwidth consumption and reduces transmission efficiency.
[0322] For continuous video segments, this application uses the training results of the previous segment as initial values for the private parameters of the local super-resolution network (instead of random initialization). This leverages temporal correlation to accelerate convergence and significantly reduce the number of training iterations. Scene-switching segments are trained independently to ensure adaptability. Therefore, the private parameter initialization strategy fully utilizes temporal information, ensuring the independence of the first segment or scene-switching segment while improving training efficiency and reducing transmission bandwidth through parameter reuse.
[0323] Furthermore, the parameters of the local super-resolution network also include the objective loss function:
[0324] The target loss function includes weight parameters of image quality evaluation indicators, and the weights of the loss function are dynamically adjusted according to the weight parameters of the image quality evaluation indicators.
[0325] This objective loss function employs a dynamic weight adjustment mechanism to optimize the detail reconstruction effect. Taking the image quality evaluation metric PSNR as an example, it analyzes the quality of image patches in real time and dynamically allocates loss weights according to the PSNR levels of different image patches. During training, it automatically balances the optimization objectives of different regions and can automatically optimize the training process based on the quality characteristics of image patches.
[0326] This invention effectively solves the problem of lack of correlation in network training between video segments through a shared-private hybrid training strategy. Specifically, the global super-resolution network shares parameters throughout the entire process to maintain spatiotemporal consistency; the local super-resolution network extracts cross-scene common features through shared convolutional layers, and only the private linear layers are fine-tuned segment by segment, which maintains the individuality of each segment while improving the overall training efficiency.
[0327] The above method trains a global super-resolution network and a local super-resolution network. By combining shared parameters with private parameters, the global super-resolution network parameters are shared throughout the process and only need to be transmitted once. The local super-resolution network only needs to transmit the changes in private parameters between adjacent video segments. This can greatly reduce the transmission bandwidth of network parameters while ensuring the processing effect.
[0328] The sending end sends the global super-resolution network, the local super-resolution network, the image segmentation parameters, and the low-resolution video data to the terminal.
[0329] The terminal receives super-resolution network parameters and image segmentation parameters from the transmitter, performs real-time decompression of the low-resolution video stream, and extracts the current frame data frame by frame. By analyzing the frame header information, the terminal quickly locates the video segment (chunk) to which the current frame belongs and loads the corresponding super-resolution network parameters.
[0330] Based on the received image segmentation parameters, the terminal intelligently divides the current frame into several image blocks and classifies them into globally flat regions or locally detailed regions. Globally flat regions are directly input into the global super-resolution network for processing, while locally detailed regions are processed by the local super-resolution network. Finally, the terminal uses a stitching algorithm to reconstruct the processed image blocks into a complete high-resolution image, ultimately outputting a high-resolution video.
[0331] The specific processing steps in the terminal, such as video decoding, scene segmentation, and network selection, have been explained in detail above and will not be repeated here.
[0332] It is worth noting that the video super-resolution method provided in this disclosure embodies the design concept of edge-cloud collaboration throughout the entire processing flow: the sending end is responsible for core tasks such as image quality analysis, region segmentation, and network training for both high- and low-resolution images, and finally only needs to send the trained super-resolution network parameters and image segmentation parameters to the terminal. This design ensures consistency in processing quality while significantly reducing the computational burden on the terminal side, enabling ordinary mobile devices to achieve professional super-resolution effects. After parameter transmission optimization, the transmission bandwidth usage is also significantly reduced, making it very suitable for practical deployment applications.
[0333] This disclosure also provides a video super-resolution method, which includes at least the following steps:
[0334] High-resolution video is downsampled to obtain low-resolution video;
[0335] The low-resolution video is segmented according to changes in the scene.
[0336] For each frame of each video segment, image segmentation parameters are calculated based on the difference in image content quality between the low-resolution image and the corresponding high-resolution image. Each frame is then divided into several image blocks based on these image segmentation parameters. These image blocks are further divided into local detail regions and global flat regions.
[0337] Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained and updated respectively.
[0338] Based on the trained global super-resolution network, local super-resolution network, and image segmentation parameters, video super-resolution processing is performed.
[0339] The video super-resolution method provided in this disclosure mainly focuses on... Figure 1 The system architecture implements the processing flow on the sending end, mainly implementing core steps such as video preprocessing and model training. It ensures the consistency of algorithm performance through centralized processing, while providing lightweight super-resolution services to the terminal side.
[0340] The sending end first downsamples the original high-resolution video to generate a corresponding low-resolution video source. This reduces the size of the video data and establishes a reference benchmark for subsequent super-resolution processing. After downsampling, based on the video scene variation characteristics, a scene segmentation method is used to divide the low-resolution video into multiple video segments. Then, image analysis processing is performed on each video segment. By calculating the quality difference between the low-resolution image and its corresponding high-resolution image, image segmentation parameters for each frame are generated, and the image is divided into several image blocks accordingly. These image blocks are classified into local detail regions requiring fine processing and globally flat regions suitable for fast processing, achieving optimized allocation of computing resources. The content-aware region segmentation strategy effectively balances processing accuracy and computational efficiency.
[0341] During the training phase, the transmitting end uses the divided image patch data to train the global super-resolution network and the local super-resolution network in parallel. The global super-resolution network focuses on the rapid reconstruction of globally flat regions, while the local super-resolution network performs fine restoration of local detailed regions, ultimately forming a complete video super-resolution processing capability.
[0342] After training, the transmitting end integrates the network parameters and image segmentation parameters into the video processing flow, providing the terminal with high-quality super-resolution video services. This centralized processing scheme ensures algorithm consistency while reducing the computational burden on terminal devices.
[0343] The video super-resolution method provided in this disclosure does not include detailed implementation details (such as the calculation method of image segmentation parameters, the specific process of network training, etc.) and Figure 2The corresponding technical details in the illustrated embodiments are consistent, and the two can be referenced and cited from each other. The content of the same parts will not be repeated here.
[0344] This disclosure also provides a video super-resolution system, including a memory and a processor:
[0345] The memory is used to store computer programs;
[0346] The processor is configured to execute the video super-resolution method provided in any of the above embodiments when the computer program is invoked.
[0347] Specifically, the memory may be a hard disk, random access memory (RAM), read-only memory (ROM), or other types of storage media, used to store program code and related data for implementing the video super-resolution method of the present invention. The processor may be a central processing unit (CPU), graphics processing unit (GPU), or other computing unit, used to execute the program code in the memory to implement super-resolution processing of video data.
[0348] In addition, the system may include input / output interfaces for receiving low-resolution video input and outputting super-resolution high-resolution video data. Through the coordinated operation of the memory and processor, this system can efficiently complete video super-resolution processing tasks, significantly improve video quality, reduce computational resource consumption, and is suitable for various video enhancement scenarios.
[0349] This disclosure also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the video super-resolution method provided in any of the above embodiments. The readable storage medium may include, but is not limited to, portable disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical storage devices, magnetic storage devices, or any combination thereof.
[0350] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the video super-resolution method described in any of the preceding embodiments. The program code may be executed entirely on a local device, partially on a local device, as a standalone software package, partially locally and partially remotely, or entirely on a remote device.
[0351] This invention proposes a video super-resolution method, device, storage medium, and computer product, which have the following beneficial effects:
[0352] 1) By using intelligent scene segmentation and dual-network collaborative processing, redundant calculations are reduced, while dynamic scene response is achieved, significantly improving processing efficiency;
[0353] 2) Local super-resolution networks enhance detail recovery capabilities, while global super-resolution networks optimize temporal coherence, significantly improving super-resolution quality;
[0354] 3) The global super-resolution network adopts a lightweight network design, and the local super-resolution network adopts a private parameter dynamic update technology, which effectively reduces resource consumption, reduces the number of parameters, and reduces transmission bandwidth.
[0355] 4) It meets actual engineering needs through cloud-edge-device collaborative deployment, combining compatibility and practicality, and supports multiple encoding standards input.
[0356] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" are not specifically singular and may include plural forms. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0357] Those skilled in the art will understand that information, signals, and data can be represented using any of a variety of different techniques and arts. For example, the data, instructions, commands, information, signals, bits, symbols, and chips described throughout the above description can be represented by voltage, current, electromagnetic waves, magnetic fields or magnetic particles, light fields or optical particles, or any combination thereof.
[0358] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps are described above in a generalized manner in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in different ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the invention.
[0359] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. The general-purpose processor may be a microprocessor, but in alternatives, it may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration.
[0360] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. The software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor such that the processor can read and write information to / from the storage medium. In an alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal.
[0361] The above embodiments are provided for those skilled in the art to implement or use the present invention. Those skilled in the art can make various modifications or changes to the above embodiments without departing from the inventive concept of the present invention. Therefore, the protection scope of the present invention is not limited to the above embodiments, but should be the maximum scope that conforms to the innovative features mentioned in the claims.
Claims
1. A video super-resolution method, characterized in that, Includes the following steps: Decompress the low-resolution video to obtain the current frame; Calculate the video segment where the current frame is located, and obtain the global super-resolution network and the local super-resolution network of the current video segment; The current frame is divided into several image blocks according to the image segmentation parameters. The image blocks of the current frame are divided into global flat regions and local detail regions. The image segmentation parameters are calculated and generated based on the differences in image content quality. Image patch data of the globally flat region is input into the global super-resolution network for super-resolution processing, and image patch data of the local detail region is input into the local super-resolution network for super-resolution processing. The current frame is stitched together according to the divided regions to obtain a super-resolution high-resolution image, and finally a high-resolution video is output.
2. The video super-resolution method according to claim 1, characterized in that, The step of dividing the current frame into several image blocks according to image segmentation parameters, and dividing the image blocks of the current frame into globally flat regions and locally detailed regions, includes: The low-resolution image and the corresponding high-resolution image are divided into the same number of image blocks, and the position of each image block in the low-resolution image and the high-resolution image corresponds one-to-one. Based on the image patches at the same location in the low-resolution image and the corresponding high-resolution image, an image quality evaluation index is calculated. The image quality evaluation index is used to evaluate the difference in image content quality between the low-resolution image and the corresponding high-resolution image. Based on the image quality evaluation index, the image blocks of each frame are divided into the local detail region and the global flat region; Based on the segmentation results, image segmentation parameters for each frame are generated. The image segmentation parameters include at least the boundary information and segmentation type of each image block.
3. The video super-resolution method according to claim 2, characterized in that, After each image block is divided, a similarity judgment is made between adjacent image blocks; If the similarity between adjacent image blocks is higher than a preset threshold, the adjacent image blocks are merged.
4. The video super-resolution method according to claim 2, characterized in that, The image quality evaluation metrics include peak signal-to-noise ratio; Calculate the peak signal-to-noise ratio between image patches at the same location in the low-resolution image and the high-resolution image; If the peak signal-to-noise ratio is not higher than the first preset value, the corresponding image block is divided into local detail regions for input into the local super-resolution network for training. If the peak signal-to-noise ratio is higher than the first preset value, the corresponding image block is divided into a globally flat region for input into the global super-resolution network for training.
5. The video super-resolution method according to claim 1 or claim 2, characterized in that, The global super-resolution network and the local super-resolution network are trained through the following steps: High-resolution video is downsampled to obtain low-resolution video; The low-resolution video is segmented according to changes in the scene. Calculate the image segmentation parameters for each frame of each video segment, and divide each frame into several image blocks, which are then divided into the local detail region and the global flat region. Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained respectively, and the parameters of the global super-resolution network and the parameters of the local super-resolution network are updated.
6. The video super-resolution method according to claim 5, characterized in that, The step of segmenting the low-resolution video according to scene changes includes: Based on the basic frame type of video encoding, obtain the position information of all I-frames in the low-resolution video; The video between the I-frames is segmented by comparing the spacing between two adjacent I-frames with a preset specified spacing.
7. The video super-resolution method according to claim 1 or claim 2, characterized in that, The global super-resolution network includes a feature extraction module, a temporal information extraction module, a temporal information processing module, and a first output module. The feature extraction module is used to perform preliminary feature extraction on each frame of the input low-resolution image, and to superimpose and combine all the obtained feature maps to form a comprehensive feature map. The temporal information extraction module extracts temporal information from the comprehensive feature map generated by the feature extraction module through a convolution operation. The time-domain information processing module divides the input time-domain information into two paths for processing. One path of the time-domain information is processed by super-resolution through a residual network to obtain a super-resolution result, and the other path of the time-domain information is processed by upsampling through convolution operations to obtain an upsampling result. The first output module merges the super-resolution processing result and the upsampling processing result to generate the final super-resolution high-resolution image.
8. The video super-resolution method according to claim 7, characterized in that, The feature extraction module includes a 2D convolutional network for preliminary feature extraction; The temporal information extraction module includes a 3D convolutional network for performing convolution operations; The time-domain information processing module includes a wide residual network and an upsampling convolutional layer. The wide residual network is used to perform super-resolution processing on the time-domain information output by the time-domain information extraction module, and the upsampling convolutional layer is used to perform upsampling processing on the time-domain information output by the time-domain information extraction module.
9. The video super-resolution method according to claim 8, characterized in that, The wide residual network is composed of multiple residual blocks connected in series; Each residual block contains a first convolutional layer, an activation function layer, a second convolutional layer, and a third convolutional layer connected in sequence.
10. The video super-resolution method according to claim 1, characterized in that, The training process of the global super-resolution network includes: The high-resolution video is downsampled to generate a corresponding low-resolution video. Centered on the current frame of the low-resolution video, take the same number of low-resolution images forward and backward to form a multi-frame image sequence, and input it into the global super-resolution network. The global super-resolution network processes the input multi-frame image sequence and outputs the super-resolution result of the current frame. The super-resolution result output by the global super-resolution network is compared with the corresponding high-resolution image, and the loss value is calculated to determine whether the requirements of the target loss function are met. The global super-resolution network parameters are updated based on the calculated loss value; Repeat the above steps to iteratively train the global super-resolution network until the loss value meets the requirements of the target loss function or the maximum number of iterations is reached.
11. The video super-resolution method according to claim 10, characterized in that, The local super-resolution network includes an input module, a feature processing module, a content-aware modulation module, a shared convolutional layer, a feature fusion module, and a second output module. The input module is used to receive image blocks from different video segments as input; The feature processing module is used to extract the features of the input image patch; The content-aware modulation module extracts general feature information and unique feature information for each image block from the image block features. The shared convolutional layer receives the output information of the content-aware modulation module and performs convolution processing, then passes the processed result to the feature fusion module. The feature fusion module adds and fuses the processing result of the shared convolutional layer with the features extracted by the feature extraction module, and then transmits the fused feature information to the second output module. The second output module receives the feature information from the feature fusion module, performs upsampling and convolution processing, and finally outputs the super-resolution image.
12. The video super-resolution method according to claim 11, characterized in that, The content-aware modulation module includes multiple cascaded content-aware modulation residual blocks: Each content-aware modulation residual block undergoes the following processing steps in sequence: The first shared convolutional layer is used to perform convolution processing on the input features and extract the general feature information of the image patches; The first set of private linear layers is used to process the features of each image patch individually and extract the unique feature information of the image patch. A shared activation layer is used to perform nonlinear activation on the processed features, introducing a nonlinear transformation into the network. The second shared convolutional layer is used to perform convolutional processing on the activated features and extract general feature information of image patches; The second set of private linear layers is used for feature processing of each image patch to extract the unique feature information of the image patch; Feature fusion is used to fuse the features processed by the first shared convolutional layer with the features processed by the second set of private linear layers to output the final features.
13. The video super-resolution method according to claim 11, characterized in that, The second output module includes a shared upsampling layer and a third shared convolutional layer: The shared upsampling layer receives the output of the feature fusion module and upsamples it, then passes the upsampled result to the third shared convolutional layer. The third shared convolutional layer will perform convolution processing on the upsampled features to output a high-resolution image after super-resolution.
14. The video super-resolution method according to claim 1, characterized in that, The parameters of the local super-resolution network include shared parameters and private parameters: The shared parameters include parameters of several shared convolutional layers and shared upsampling layers, and the shared parameters are trained using image patches from all video segments. The private parameters include parameters of several private linear layers, which are trained and updated using image patch data of local detail regions in the current video segment.
15. The video super-resolution method according to claim 14, characterized in that, The training process of the local super-resolution network includes: Image patch data is randomly selected from all video segments to train the initial values of the private parameters and the shared parameters.
16. The video super-resolution method according to claim 14, characterized in that, The training process of the local super-resolution network includes: For the first segment of a video or a video segment with scene transitions, the initial values of the private parameters for the current video segment are obtained through training. For normal, continuous video segments, the private parameters from the previous video segment are used as initial values.
17. The video super-resolution method according to claim 14, characterized in that, The parameters of the local super-resolution network also include the objective loss function: The target loss function includes weight parameters of image quality evaluation indicators, and the weights of the loss function are dynamically adjusted according to the weight parameters of the image quality evaluation indicators.
18. A video super-resolution method, characterized in that, Includes the following steps: High-resolution video is downsampled to obtain low-resolution video; The low-resolution video is segmented according to changes in the scene. For each frame of each video segment, image segmentation parameters are calculated based on the difference in image content quality between the low-resolution image and the corresponding high-resolution image. Each frame is then divided into several image blocks based on these image segmentation parameters. These image blocks are further divided into local detail regions and global flat regions. Based on the divided image patch data, the global super-resolution network and the local super-resolution network are trained and updated respectively. Based on the trained global super-resolution network, local super-resolution network, and image segmentation parameters, video super-resolution processing is performed.
19. A video super-resolution device, characterized in that, Including memory and processor: The memory is used to store computer programs; The processor is configured to execute the video super-resolution method as described in any one of claims 1-18 when the computer program is invoked.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the video super-resolution method as described in any one of claims 1-18.
21. A computer product, characterized in that, The computer product includes a computer program that, when executed by a processor, implements the steps of the video super-resolution method as described in any one of claims 1 to 18.
