Time-domain low-bit-rate video quality repairing and enhancing method, system, equipment and medium

By constructing a global background frame and using a motion and stillness discrimination model for static area prediction and repair, and then processing the super-resolution enhancement model, the problem of high computational complexity and insufficient robustness of low-bitrate video is solved, and efficient and real-time video quality improvement is achieved.

CN118870002APending Publication Date: 2024-10-29SHANGHAI SHUANGSHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907160.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technology requires a large amount of calculation and lacks robustness when processing low-bitrate videos. It cannot effectively handle fast motion, occluded objects, and frequently changing backgrounds, resulting in poor repair effects and sensitivity to illumination changes.

Method used

By constructing a global background frame, combined with the motion and static discrimination model, the static area is predicted and repaired, and the super-resolution enhancement model is used to improve the video quality, reduce the amount of calculation, and improve the robustness.

Benefits of technology

It achieves efficient repair of real-time low-bitrate videos, improves the visual quality of videos, reduces data transmission costs, and expands the field and scope of video applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870002A_ABST
    Figure CN118870002A_ABST
Patent Text Reader

Abstract

The invention discloses a time-domain low-bit-rate video quality restoration and enhancement method, system and device and a medium, designs and realizes a time-domain-based low-bit-rate video real-time restoration scheme, and solves and optimizes the problems that in the prior art, the calculation amount is large, landing is difficult to realize, estimation on fast movement and shielded object movement is inaccurate, and robustness is insufficient. By improving the visual quality of the low-bit-rate video, the data transmission cost can be reduced, the user experience can be improved, the video application field and range can be expanded, and the method has wide application prospects in the fields of video communication, video conferences, security monitoring and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video restoration technology, and in particular to a method, system, device and medium for restoring and enhancing low-bitrate video quality in a time domain. Background Art

[0002] In modern digital video transmission and storage, low-bitrate video is a common form, which is compressed to reduce file size or save bandwidth. However, low-bitrate video is often accompanied by problems such as image quality loss, blur, noise, etc., which reduces the user's viewing experience.

[0003] An intuitive repair idea is to use information from other frames in the video to repair defects in the current frame. Specifically, the algorithm can select suitable pixel values ​​in known frames and transfer them to the current frame to repair defects such as mosaics, bad pixels, and noise.

[0004] Under this restoration idea, the optical flow algorithm is a commonly used technology, which estimates the movement direction and speed of pixels by analyzing the motion pattern of pixels in the video sequence, and performs motion compensation on each frame in the video sequence according to the pixel displacement information in the optical flow field, and aligns the pixels according to their movement. Video quality restoration methods based on the optical flow algorithm are effective in many cases, and can effectively repair defective frames in the video and restore the consistency of the video, thereby improving the visual quality of the video, but it also has the problem of insufficient robustness.

[0005] There are currently two main solutions:

[0006] Solution 1: Use the optical flow algorithm to perform motion estimation and compensation on low-bitrate video sequences to repair the distortion caused by compression and improve video quality. The main solutions are as follows: 1) Optical flow motion estimation: Use traditional optical flow algorithms (such as the Lucas-Kanade method or the Horn-Schunck method) to estimate the pixel motion between adjacent frames and generate an optical flow field. 2) Motion compensation: According to the pixel displacement information in the optical flow field, motion compensation is performed on each frame in the video sequence, and the pixels are aligned according to their motion. In the case of lost information, you can try to use interpolation technology to fill in the blank pixel values ​​after motion compensation to restore image details as much as possible. 3) Image enhancement: Apply image enhancement techniques such as sharpening, contrast enhancement, and color correction to improve the clarity and visual effects of the repaired video.

[0007] However, the above solution 1 has the following defects:

[0008] 1) The amount of calculation is large. The optical flow algorithm needs to perform intensive calculations on each frame in the video to determine the movement of pixels in time. This causes the algorithm to require a lot of computing resources and time when processing high-resolution videos, which may make real-time processing difficult.

[0009] 2) Poor handling of fast motion. When there are fast-moving objects in the video, the optical flow algorithm may not be able to accurately capture the movement of pixels, resulting in instability of the optical flow field, which in turn affects the restoration effect.

[0010] 3) The optical flow algorithm may accumulate errors when tracking pixels, especially when processing long videos. Even if the optical flow calculation is accurate on each frame, the restoration result may gradually become distorted over time due to the influence of accumulated errors.

[0011] 4) When objects in the video occlude each other, the optical flow algorithm may not be able to correctly estimate the movement of pixels. This may cause discontinuities or unnatural effects in the restoration results.

[0012] 5) Unable to handle frequently changing backgrounds: When the background changes frequently, such as swaying leaves or rippling water, the optical flow algorithm may mistake these changes for motion, causing the restoration results to appear blurred or distorted.

[0013] 6) Optical flow algorithms usually assume that the lighting in the scene is constant, but in reality the lighting may change, especially outdoors or in low-light conditions. This lighting change may cause the optical flow algorithm to deviate when estimating pixel movement, thus affecting the quality of the restoration results.

[0014] Solution 2: Based on deep learning technology, combined with the spatiotemporal information of multiple frames of video, a neural network model is trained to achieve low-bitrate video restoration in a data-driven way. During model inference, a set of low-bitrate video frames is input and the corresponding high-bitrate video prediction frames are output, such as Figure 1As shown. The main scheme is as follows: 1) Data preparation: Collect a large amount of multi-frame low-bitrate video data as a training set. These data can be video clips of different scenes and contents. Preprocess the data, including operations such as cropping, scaling, and normalization. 2) Deep learning model design: Design a deep learning model suitable for multi-frame video super-resolution tasks, which can adopt CNN, deformable convolution, transformer and other architectures. The input of the model is a multi-frame low-bitrate video frame sequence, and the output is the corresponding high-quality video frame sequence. 3) Model training: Use the prepared training set to train the deep learning model. During the training process, the model needs to learn how to restore high-quality video from low-quality video. A pixel-level loss function (such as L1 error loss) can be used to measure the difference between the generated image and the real high-resolution image. 4) Video super-resolution restoration: Apply the trained deep learning model to multi-frame low-resolution videos, and for each frame or a group of frames, generate the corresponding high-resolution video frame sequence through the model. 5) Post-processing: Post-process the restored high-resolution video, including denoising, sharpening, and color correction to further improve image quality and visual effects. 6) Evaluation and optimization: Perform quality evaluation on the restored video, including subjective and objective evaluation (such as PSNR, SSIM, etc.). Tune and optimize the model based on the evaluation results to improve the effect and stability of super-resolution restoration.

[0015] However, the core working principle of the above-mentioned Solution 2 is consistent with that of Solution 1, and it also relies on the robustness of the optical flow method, so it has similar defects as Solution 1.

[0016] In view of this, the present invention is proposed. Summary of the invention

[0017] The purpose of the present invention is to provide a method, system, device and medium for repairing and enhancing the quality of temporal low-bit-rate video, which can improve the visual quality of low-bit-rate video and enhance the user experience.

[0018] The objective of the present invention is achieved through the following technical solutions:

[0019] A method for repairing and enhancing the quality of a temporal low-bitrate video, comprising:

[0020] Identify and analyze the video sequence data and construct a global background frame;

[0021] Predicting the static area in the frame to be repaired in combination with the global background frame, and repairing the static area in the repaired video frame using the global background frame to obtain a repaired frame;

[0022] Perform super-resolution enhancement on the repaired frames.

[0023] A temporal low bit rate video quality restoration and enhancement system, comprising:

[0024] A global background frame construction module is used to identify and analyze video sequence data and construct a global background frame;

[0025] A restoration module, used to predict the static area in the frame to be restored in combination with the global background frame, and use the global background frame to restore the static area in the restored video frame to obtain a corresponding restored frame;

[0026] The image super-resolution enhancement module is used to perform super-resolution enhancement processing on the repaired frames.

[0027] A processing device, comprising: one or more processors; a memory for storing one or more programs;

[0028] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.

[0029] A readable storage medium stores a computer program, which implements the above method when the computer program is executed by a processor.

[0030] It can be seen from the technical solution provided by the present invention that a real-time restoration solution for low-bit-rate videos based on time domain is designed and implemented to solve and optimize the problems existing in the prior art, such as large amount of calculation, difficulty in implementation, inaccurate estimation of the motion of fast-moving and occluded objects, and insufficient robustness. By improving the visual quality of low-bit-rate videos, the cost of data transmission can be reduced, the user experience can be improved, and the field and scope of video applications can be expanded. It has broad application prospects in video communications, video conferencing, security monitoring and other fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0032] Figure 1 A schematic diagram of scheme 2 provided as background technology of the present invention;

[0033] Figure 2 A flowchart of a method for repairing and enhancing low-bitrate video quality in the time domain provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of constructing a global background frame provided by an embodiment of the present invention;

[0035] Figure 4A schematic diagram of a method for repairing and enhancing low-bitrate video quality in the time domain provided by an embodiment of the present invention;

[0036] Figure 5 A schematic diagram of a dynamic and static discrimination model provided by an embodiment of the present invention;

[0037] Figure 6 A schematic diagram of a super-resolution enhancement model provided in an embodiment of the present invention;

[0038] Figure 7 A schematic diagram of a temporal low bit rate video quality restoration and enhancement system provided by an embodiment of the present invention;

[0039] Figure 8 A schematic diagram of a processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0041] First, the terms that may be used in this article are explained as follows:

[0042] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0043] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.

[0044] The following is a detailed description of a method, system, device and medium for repairing and enhancing the quality of a temporal low bit rate video provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals and technicians in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer are followed. If the manufacturer of the reagents or instruments used in the embodiments of the present invention is not specified, they are all conventional products that can be purchased commercially.

[0045] Embodiment 1

[0046] The embodiment of the present invention provides a method for repairing and enhancing the quality of a temporal low bit rate video. Figure 2 As shown, it mainly includes the following steps:

[0047] Step 1: Construct a global background frame.

[0048] In the embodiment of the present invention, the video sequence data is identified and analyzed to construct a global background frame. Specifically, two video frames in the video sequence data can be identified and analyzed to predict the static area, and the global background frame can be constructed based on this. Figure 3 , shows an example of constructing a global background frame.

[0049] In the embodiment of the present invention, the global background frame in the maintenance scene needs to be updated in real time to ensure its visual quality. Specifically, the global background frame can be updated at a fixed period according to the configuration, for example, the background frame can be updated once in each GOP (Group of Pictures).

[0050] Step 2: Video frame repair.

[0051] In the embodiment of the present invention, the static area in the frame to be repaired is predicted in combination with the global background frame, and the static area in the repaired video frame is repaired using the global background frame to obtain a corresponding repaired frame.

[0052] In the embodiment of the present invention, the frames to be repaired mainly refer to time-domain low-bit-rate video frames.

[0053] Step 3: Super-resolution enhancement processing.

[0054] In the embodiment of the present invention, super-resolution enhancement processing is performed on each repaired frame to complete the time-domain low-bit-rate video quality repair and enhancement to improve the visual sensory effect.

[0055] The above solution provided by the embodiment of the present invention does not involve time-consuming warp (mapping) operations, and the model is lightweight, meeting the real-time implementation requirements. In addition, the dynamic and static areas are judged based on semantics, which has higher robustness and very good support for the information loss problems existing in fast motion, object occlusion, frequently changing background and low bit rate videos.

[0056] like Figure 4 An example of the above method is provided. In this example, the image data is in YUV format. The main process includes:

[0057] 1) When a certain video frame (for example, the Tth frame) is a high-quality I frame (intra-frame coded picture), it is input into the motion-static discrimination model with another frame that has a certain interval (for example, 20 frames) in the time domain in the current GOP (group of pictures). Based on the static area prediction result, the pixel content in the high-quality I frame is selected and overlaid into the global background frame.

[0058] For example, high quality can be obtained by performing some threshold screening through QP value (quantization parameter value), or by increasing the bit rate of some I frames in a fixed manner through encoding to obtain high-quality I frames.

[0059] 2) The frame to be repaired (i.e., the current frame) and the global background frame are input into the motion-still discrimination model. Based on the motion-still discrimination results, the high-frequency information of the two is fused and overlaid onto the current frame to repair the defects in the current frame and improve the detail performance of the current frame to obtain a repaired frame.

[0060] Figure 4 The motion-static segmentation fusion and motion-static segmentation in are both processing processes of the motion-static discrimination model, which will be introduced later.

[0061] The high-frequency information described here mainly refers to the high-frequency information extracted from the image by a high-pass filter kernel (for example, extracted from the Y component). The extraction process involved can refer to conventional technology and will not be described in detail in the present invention.

[0062] 3) Input the repaired frame into the super-resolution enhancement model to further improve the visual quality and effect of the current frame.

[0063] 4) Transmit the enhanced frame to the subsequent visualization link.

[0064] In the above scheme, based on the global background frame constructed by the above scheme, the reference information of the current frame is not limited to the adjacent frames, but is wider in the time domain and can reduce the input bandwidth of the entire scheme. Specifically: usually in order to obtain more information from the time domain, it is necessary to input multiple frames additionally, which brings bandwidth pressure. However, through the construction of the above global background frame, a wider range of information in the time domain can be obtained without bringing excessive bandwidth pressure.

[0065] For ease of understanding, the following is a detailed introduction to the relevant solutions by combining the motion-static discrimination model and the super-resolution enhancement model.

[0066] 1. Global background frame construction and video frame restoration.

[0067] In an embodiment of the present invention, a motion-static discrimination model is constructed to predict motion-static masks, which are then used for global background frame construction and video frame restoration. Specifically, when constructing a global background frame, two specified video frames are input into the motion-static discrimination model, and the predicted motion-static masks are output, and the global background frame is calculated based on the motion-static masks. In the video frame restoration process, the static area in the frame to be restored is predicted in combination with the global background frame, which means that the global background frame and the frame to be restored are input into the motion-static discrimination model, and the motion-static masks of the restored video frame are output. The dynamic area and the static area in the corresponding video frame are identified in the motion-static masks.

[0068] 1. Global background frame construction.

[0069] Initialization: Global background frame = 0

[0070] Update: updated global background frame = global background frame before update * mask + high-quality I frame * (1-mask).

[0071] In an embodiment of the present invention, a high-quality I frame is obtained by threshold screening using a QP value, or by increasing the bit rate of the I frame through encoding. If this is the first update, the global background frame before the update on the right side of the equal sign is the initialized global background frame.

[0072] Refer to the above Figure 4 In the example provided, the motion-still discrimination model in this section inputs two specified video frames, namely a high-quality I frame and another video frame at a certain interval from the high-quality I frame, and outputs a motion-still mask. The static and dynamic areas are identified in the motion-still mask. The mask is substituted into the above update formula to calculate the updated global background frame. For the sake of convenience, the updated global background frame is referred to as the global background frame.

[0073] 2. Video frame repair.

[0074] In this part, the dynamic and static discrimination model inputs the frame to be repaired (i.e., the current frame) and the global background frame, and outputs the dynamic and static mask in the frame to be repaired (marking the dynamic area and static area of ​​the video frame to be repaired), which is expressed as:

[0075] mask = static and dynamic discrimination model (global background frame, frame to be repaired)

[0076] Then, according to the mask, high-pass filtering HF is performed to fuse the global background frame with the frame to be repaired to obtain the repaired frame.

[0077] (1) The global background frame and the frame to be repaired are filtered separately using high-pass filtering. The information obtained is called high-frequency information.

[0078] Global background frame high frequency = global background frame★HF

[0079] High frequency of the frame to be repaired = frame to be repaired★HF

[0080] In the embodiment of the present invention, high-frequency information mainly refers to information extracted by a high-pass filter.

[0081] (2) Subtract the high-frequency information of the frame to be repaired from its high-frequency information to calculate the low-frequency information of the frame to be repaired:

[0082] The low frequency of the frame to be repaired = the frame to be repaired - the high frequency of the frame to be repaired.

[0083] (3) Fusion of high-frequency information based on mask calculation:

[0084] Fusion high frequency = global background frame high frequency * (1-mask) + to-be-repaired frame high frequency * mask.

[0085] (4) Combine the high-frequency information with the low-frequency information of the frame to be repaired to obtain the repaired frame:

[0086] Repaired frame = fused high frequency + low frequency of the frame to be repaired.

[0087] 3. Dynamic and static discrimination model.

[0088] like Figure 5 As shown in FIG. 1 , a structural example of a motion-static discrimination model is provided, which mainly includes two main paths: the first branch includes a plurality of convolutional layers (CONV) connected in sequence, and an activation function layer is arranged between adjacent convolutional layers. Figure 5 An example is provided in which the first branch includes three convolutional layers and RELU (rectified linear unit) as the activation function. The first branch inputs two types of video frames. In the process of constructing a global background frame, two specified video frames are input (i.e., a high-quality I frame obtained in a set manner, and another video frame with a certain interval from the high-quality I frame). In the process of repairing a video frame, the global background frame and the frame to be repaired are input. The other branch includes sequentially connected convolutional layers and multiple pure convolutional models (ConvNextBlock). In the process of constructing a global background frame, a specified video frame (i.e., another video frame with a certain interval from the high-quality I frame) is input. In the process of repairing a video frame, the frame to be repaired is input. The outputs of the above two branches pass through the convolutional layer at the end of the model to output the corresponding static and dynamic masks.

[0089] In the embodiment of the present invention, the static and dynamic discrimination model adopts a lightweight CNN architecture design. During the training process, the static and dynamic discrimination model acquires a certain semantic understanding ability with the help of the data set, for example, it has the ability to identify the pixel areas corresponding to people, cars, and trees in the classified image. Compared with the traditional optical flow algorithm, the judgment of static and dynamic areas has better robustness with the help of this semantic ability.

[0090] The training program is as follows:

[0091] (1) Collect high-definition video sequences to construct a training set.

[0092] (2) Read the high-definition image SR at time t and t-1 t , SR t-1 .

[0093] (3) Input high-definition image SR t Do quality reduction to obtain low-definition image LR t Here, high-definition image and low-definition image are relative concepts. The former is the image obtained directly, and the latter is the image obtained by degrading the former.

[0094] Exemplarily, the degradation process may include: randomly converting the high-definition image SR t Add noise (e.g., Poisson noise, Gaussian noise) to the image, randomly select from the preset Gaussian blur kernel, blur the image with the added noise, apply random quality compression (e.g., JPEG compression) to the blurred image, simulate compression distortion, and obtain a low-definition image LR t .

[0095] (4) HD image SR t-1 LR with low-resolution images t As the input of the motion-static discrimination model (ie, the image is input to the first branch and the low-definition image is input to the second branch at the same time), a motion-static mask is obtained.

[0096] (5) SR based on dynamic and static masks t-1 LR t Perform fusion processing to obtain the fused frame. The formula is as follows:

[0097] fusion=SR t-1 *(1-mask)+mask*LR t

[0098] Among them, fusion means fused frame.

[0099] (6) Combined with high-definition image SR t Calculate the L1 loss with the fused frame and backpropagate the gradient to optimize the parameters of the motion-static discrimination model.

[0100] 2. Super-resolution enhancement processing.

[0101] Figure 6 An example of a super-resolution enhancement model is shown, which mainly includes: multiple convolutional layers connected in sequence, with activation function layers between adjacent convolutional layers. Figure 6 An example of a super-resolution enhancement model consisting of two convolutional layers and using RELU (rectified linear unit) as the activation function is provided.

[0102] Referring to the introduction in the previous article, input the repaired frame to the super-resolution enhancement model, and output the enhanced frame after super-resolution enhancement processing, so as to improve the visual quality and effect.

[0103] The training program is as follows:

[0104] (1) Obtain high-definition images and low-definition images in the same way as in the motion-static discrimination model training scheme.

[0105] (2) The low-resolution image is used as the input of the super-resolution enhancement model to obtain the output image.

[0106] (3) Combine the high-definition image with the output image to calculate the L1 loss and back-propagate the gradient to optimize the parameters of the super-resolution enhancement model.

[0107] In an embodiment of the present invention, the static-dynamic discrimination model is mainly used to segment the static and dynamic areas in the image. Its input is any two frames of image data, and its output is the prediction of the static and dynamic areas. The super-resolution enhancement model is mainly used to further process the repaired frame rate to improve the visual effect. Both of the above models can be designed with a lightweight CNN architecture, and a large amount of low-bitrate video data is collected in advance as a training set. These data can be video clips of different scenes and contents. The data is preprocessed, including operations such as cropping, scaling, and standardization, and the collected data is used to train the above two models.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0109] Embodiment 2

[0110] The present invention also provides a temporal low bit rate video quality restoration and enhancement system, which is mainly used to implement the method provided in the above embodiment, such as Figure 7 As shown, the system mainly includes:

[0111] A global background frame construction module is used to identify and analyze video sequence data and construct a global background frame;

[0112] A restoration module, used to predict the static area in the frame to be restored in combination with the global background frame, and use the global background frame to restore the static area in the restored video frame to obtain a corresponding restored frame;

[0113] The image super-resolution enhancement module is used to perform super-resolution enhancement processing on the repaired frames.

[0114] In an embodiment of the present invention, the global background frame construction module and the repair module both predict the motion and static masks based on the motion and static discrimination model provided in the aforementioned embodiment, and the image super-resolution enhancement module performs super-resolution enhancement processing based on the super-resolution enhancement model provided in the aforementioned embodiment. The principles involved have been introduced in detail in the previous embodiments, so they will not be repeated here.

[0115] Considering that the specific technical details involved in the above system have been introduced in detail in the previous embodiments, they will not be repeated here.

[0116] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.

[0117] Embodiment 3

[0118] The present invention also provides a processing device, such as Figure 8 As shown, it mainly includes: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the methods provided in the aforementioned embodiments.

[0119] Furthermore, the processing device also includes at least one input device and at least one output device; in the processing device, the processor, memory, input device, and output device are connected via a bus.

[0120] In the embodiment of the present invention, the specific types of the memory, input device and output device are not limited; for example:

[0121] The input device may be a touch screen, an image acquisition device, a physical button or a mouse, etc.;

[0122] The output device may be a display terminal;

[0123] The memory may be a random access memory (RAM) or a non-volatile memory, such as a disk memory.

[0124] Embodiment 4

[0125] The present invention also provides a readable storage medium storing a computer program, which implements the method provided in the above embodiment when the computer program is executed by a processor.

[0126] In the embodiment of the present invention, the readable storage medium is a computer-readable storage medium and can be set in the aforementioned processing device, for example, as a memory in the processing device. In addition, the readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk, etc., which can store program codes.

[0127] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for repairing and enhancing the quality of temporal low-bitrate video, characterized in that: include: Identify and analyze the video sequence data and construct a global background frame; Predicting the static area in the frame to be repaired in combination with the global background frame, and repairing the static area in the repaired video frame using the global background frame to obtain a repaired frame; Perform super-resolution enhancement on the repaired frames.

2. The method for repairing and enhancing the quality of temporal low-bitrate video according to claim 1, characterized in that: Also includes: Construct a motion-static discrimination model to predict motion-static masks; When constructing the global background frame, two specified video frames are input to the motion-static discrimination model, and the predicted motion-static mask is output, and the global background frame is calculated based on it; When predicting the static area in the frame to be repaired in combination with the global background frame, the global background frame and the frame to be repaired are input into the static-dynamic discrimination model, and the static-dynamic mask of the repaired video frame is output; The dynamic and static masks identify the dynamic areas and static areas in the corresponding video frames.

3. The method for repairing and enhancing the quality of temporal low bit rate video according to claim 2, characterized in that: When constructing the global background frame, the two specified video frames are input into the motion-static discrimination model, the predicted motion-static mask is output, and the global background frame is calculated based on the output, including: An I frame in the video sequence data and another video frame with a set interval from the I frame are selected, and a predicted motion-static mask is output through a motion-static discrimination model, and then a global background frame is calculated in combination with the I frame.

4. A method for repairing and enhancing temporal low bit rate video quality according to claim 1 or 2, characterized in that: Predicting the static area in the frame to be repaired in combination with the global background frame, and repairing the static area in the repaired video frame using the global background frame, to obtain the repaired frame includes: Combined with the global background frame, the static area in the frame to be repaired is predicted to obtain a dynamic and static mask of the video frame to be repaired, in which the dynamic area and the static area of ​​the video frame to be repaired are identified; The global background frame and the frame to be repaired are filtered separately by high-pass filtering, and the information obtained is called high-frequency information; Subtract the frame to be repaired from its high-frequency information to calculate the low-frequency information of the frame to be repaired; Combine the static and dynamic masks of the video frame to be repaired, as well as the high-frequency information of the global background frame and the frame to be repaired, and calculate the fused high-frequency information; The repaired frame is obtained by combining the fused high-frequency information with the low-frequency information of the frame to be repaired.

5. The method for repairing and enhancing the quality of temporal low bit rate video according to claim 2, characterized in that: The motion-static discrimination model includes: two branches and a convolutional layer at the end of the model; wherein: The first branch includes a plurality of convolutional layers connected in sequence, and an activation function layer is arranged between adjacent convolutional layers. The first branch inputs two video frames. In the process of constructing the global background frame, two designated video frames are input. In the process of repairing the video frame, the global background frame and the frame to be repaired are input. The other branch includes sequentially connected convolutional layers and multiple pure convolutional models. In the process of constructing the global background frame, a specified video frame is input, and in the process of video frame restoration, the frame to be restored is input; The outputs of the above two branches are output through the convolutional layer at the end of the model to output the corresponding dynamic and static masks.

6. The method for repairing and enhancing the quality of temporal low-bitrate video according to claim 1, characterized in that: Also includes: A super-resolution enhancement model is constructed, which inputs the repaired frame and outputs the enhanced frame after super-resolution enhancement processing.

7. The method for repairing and enhancing temporal low bit rate video quality according to claim 6, characterized in that: The super-resolution enhancement model includes: a plurality of convolutional layers connected in sequence, and an activation function layer is arranged between adjacent convolutional layers.

8. A temporal low bit rate video quality restoration and enhancement system, characterized in that: include: A global background frame construction module is used to identify and analyze video sequence data and construct a global background frame; A restoration module, used to predict the static area in the frame to be restored in combination with the global background frame, and use the global background frame to restore the static area in the restored video frame to obtain a corresponding restored frame; The image super-resolution enhancement module is used to perform super-resolution enhancement processing on the repaired frames.

9. A processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.