Video super-resolution method and device, electronic equipment and storage medium

By dividing the video file into multiple segments and using inter-frame information features to perform video super-resolution, the existing technology problems of unsmooth images and high computing power during video super-resolution are solved, and smoother video repair effects and calculations are achieved. force balance.

CN118632047APending Publication Date: 2024-09-10SHENZHEN SIYUAN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410632237.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

When existing video super-resolution technology processes long-term videos, the images are not smooth and the computing power requirements of the device are too high, so it cannot be applied to general end-side devices.

Method used

Divide the first resolution video file into multiple video segments in the time direction, perform video super-resolution operations based on each segment and its reference state characteristics, and use the inter-frame information characteristics of all previous segments to perform resolution repair. The memory module and long-term memory module fuse inter-frame information to generate smoother second-resolution video clips.

Benefits of technology

It achieves video super-resolution that meets the computing power requirements of different hardware platforms while ensuring smoothness. It is especially suitable for long-term fixed background and foreground object occlusion scenes, achieving a balance between computing power and effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632047A
    Figure CN118632047A
Patent Text Reader

Abstract

The invention discloses a video super-resolution method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of video super-resolution, and the method comprises the steps: dividing a first resolution video file into a plurality of first resolution video clips according to a time direction; and based on each first-resolution video clip and the corresponding reference state feature thereof, performing a video super-division operation on the first-resolution video clip to obtain a corresponding second-resolution video clip so as to obtain a video file of the second resolution. According to the video super-division method and device, the video super-division is carried out by using the first resolution video clip and the corresponding reference state feature, and the reference state feature is reflected in the inter-frame information feature of the previous video clip of the corresponding first resolution video clip and the inter-frame information features of all previous video clips, so that when the long-time video is super-divided, the video super-division efficiency is improved; a specific video clip can be repaired in combination with inter-frame information features of a plurality of previous video clips, and a better and smoother video super-division result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of video super-resolution, and more specifically, to a video super-resolution method, device, electronic device and computer-readable storage medium. Background Art

[0002] Video super-resolution is a technology that restores low-resolution videos to high-resolution videos. It is widely used in remote sensing, outdoor monitoring, ultra-high-definition television and other fields. Generally, video super-resolution technology needs to use the information between frames contained in the video to perform restoration, that is, by inputting a sequence of one or more video frames into the video super-resolution model to output the corresponding high-resolution video.

[0003] Currently, in the process of using video super-resolution technology to repair video files, there is a problem that the repaired image is not smooth or the computing power of the device is too high due to the length of the video file being too long. Summary of the invention

[0004] The present application proposes a video super-resolution method, device, electronic device and storage medium to improve the above-mentioned defects.

[0005] In a first aspect, an embodiment of the present application provides a video super-resolution method, comprising: dividing a first-resolution video file into multiple first-resolution video segments in a temporal direction; based on each of the first-resolution video segments and its corresponding reference state features, performing a video super-resolution operation on the first-resolution video segment to obtain a corresponding second-resolution video segment, wherein the reference state features of each of the first-resolution video segments are used to characterize the inter-frame information features of the previous first-resolution video segment of the first-resolution video segment and the inter-frame information features of all first-resolution video segments before the first-resolution video segment; based on each of the second-resolution video segments, obtaining a second-resolution video file.

[0006] In a second aspect, an embodiment of the present application further provides a video super-resolution device, comprising: a video segmentation module, used to divide a first resolution video file into multiple first resolution video segments in a time direction; a video super-resolution module, used to perform a video super-resolution operation on the first resolution video segment based on each of the first resolution video segments and its corresponding reference state features, to obtain a corresponding second resolution video segment, wherein the reference state features of each first resolution video segment are used to characterize the inter-frame information features of the previous first resolution video segment of the first resolution video segment and the inter-frame information features of all first resolution video segments before the first resolution video segment; a video splicing module, used to obtain a second resolution video file based on each of the second resolution video segments.

[0007] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.

[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.

[0009] Therefore, an embodiment of the present application provides a video super-resolution method, apparatus, electronic device and storage medium, the method comprising: dividing a first resolution video file into multiple first resolution video segments in the time direction; based on each of the first resolution video segments and its corresponding reference state features, performing a video super-resolution operation on the first resolution video segment to obtain a corresponding second resolution video segment, wherein the reference state features of each first resolution video segment are used to characterize the inter-frame information features of the previous first resolution video segment of the first resolution video segment and the inter-frame information features of all first resolution video segments before the first resolution video segment; based on each of the second resolution video segments, obtaining a second resolution video file. The present application performs video super-resolution by utilizing a first-resolution video clip and its corresponding reference state features to obtain a second-resolution video clip, and each reference state feature can reflect the inter-frame information features of all video clips before the corresponding first-resolution video clip, so that in the process of performing video super-resolution processing on a single video clip, the resolution of the video clip can be repaired in combination with the inter-frame information features of the previous multiple video clips, thereby obtaining a better and smoother video super-resolution result. In addition, since the video file is divided into multiple video clips in advance and then the video super-resolution is performed on the multiple video clips one by one, under the premise of ensuring smoothness, it is also possible to divide the video clips by appropriately selecting the time length of the appropriate video clip to meet the computing power requirements of different hardware platforms when performing video super-resolution operations, thereby achieving a balance between computing power and effect.

[0010] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A method flow chart of a video super-resolution method proposed in an embodiment of the present application is shown.

[0013] Figure 2 A method flow chart of another video super-resolution method proposed in an embodiment of the present application is shown.

[0014] Figure 3 A flow chart of a method for obtaining reference state characteristics proposed in an embodiment of the present application is shown.

[0015] Figure 4 A processing flow chart of video super-resolution of a first-resolution video clip proposed in an embodiment of the present application is shown.

[0016] Figure 5 A structural block diagram of a video super-resolution device proposed in an embodiment of the present application is shown.

[0017] Figure 6 A structural block diagram of an electronic device proposed in an embodiment of the present application is shown.

[0018] Figure 7 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0020] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0021] At present, video super-resolution technology often reuses inter-frame information for repair based on image super-resolution technology. The propagation methods of inter-frame information can be divided into sliding window propagation methods based on local sequences and single / multi-directional propagation methods based on global sequences. Among them, the sliding window propagation method based on local sequences refers to intercepting a fixed-size sequence along the time direction of the video file using a time window with a size (scale) of N and a stride of 1, so that only the local sequence is super-resolution processed each time.

[0022] However, the inventors found that this method can only consider local information in the complete sequence each time super-resolution processing is performed, and it is impossible to obtain distant input information. For example, for a video with a fixed background for a long time, when a moving foreground object (such as a person, a car, or an animal) appears, the movement of the foreground object causes different background areas to be occluded over time. If the resolution of this part of the occluded background is to be restored, the information that can be obtained only from adjacent video clips is insufficient, and the restored video may not be smooth. If the resolution is restored using a single / multi-directional propagation method based on a global sequence, that is, the complete sequence of the video file from beginning to end is used as input, for long-term videos, a large number of video frames are input at one time, which requires very high computing power from the computer and cannot be applied to general end-side devices.

[0023] Therefore, this application proposes a video super-resolution method, device, electronic device and storage medium to improve the above defects. Figure 1 , Figure 1 A method flow chart of a video super-resolution method proposed in an embodiment of the present application is shown, and the method comprises the following steps:

[0024] S110: Divide the first-resolution video file into a plurality of first-resolution video segments in a time direction.

[0025] Specifically, the first-resolution video file is composed of multiple frame images. Further, dividing the first-resolution video file into multiple first-resolution video segments in the time direction may refer to dividing the first-resolution video file along the direction from the first frame to the last frame, thereby obtaining multiple first-resolution video segments containing partial frame images. As an implementation, the number of frames contained in each first-resolution video segment may be the same or different, as long as the first-resolution video segment containing the highest number of frames can be run on the target hardware device for performing the video super-resolution operation.

[0026] Exemplarily, the first-resolution video file may include T frame images, and the first-resolution video file is divided into N first-resolution video segments in the time direction. For ease of understanding, the following embodiments and contents are all explained as if these N first-resolution video segments include the same number of frames, that is, all contain t frames. The following specific embodiments and implementation methods can also be applied to the situation where multiple first-resolution video segments contain different numbers of frames, which will not be repeated here.

[0027] S120: Based on each of the first-resolution video clips and its corresponding reference state features, perform a video super-resolution operation on the first-resolution video clip to obtain a corresponding second-resolution video clip, wherein the reference state features of each of the first-resolution video clips are used to characterize the inter-frame information features of the previous first-resolution video clip of the first-resolution video clip and the inter-frame information features of all first-resolution video clips before the first-resolution video clip.

[0028] Specifically, each first-resolution video clip has its corresponding reference state feature, wherein the reference state feature is used to characterize the inter-frame information features of the first-resolution video clip preceding the corresponding first-resolution video clip, and the inter-frame information features of all first-resolution video clips before the first-resolution video clip. By way of example, taking the Kth first-resolution video clip as an example, the reference state feature corresponding to the Kth first-resolution video clip is used to characterize the inter-frame information features of the K-1th first-resolution video clip, and all inter-frame information features of the first K-1 first-resolution video clips. That is to say, the reference state feature can reflect not only the inter-frame information features of the K-1th first-resolution video clip, but also the inter-frame information features from the first first-resolution video clip to the K-1th first-resolution video clip.

[0029] As an implementation method, the inter-frame information feature may refer to the time information and motion information between multiple frames. Specifically, the inter-frame time information may refer to the time relationship between consecutive frames in a video sequence, and the inter-frame motion information refers to the information change between video frames due to motion. Furthermore, the inter-frame time information may be directly extracted using a related programming library, which may be used to reflect dynamic changes in the video such as object motion or scene switching. The inter-frame motion information may be extracted through motion estimation and compensation methods such as optical flow, which is used to perform inter-frame distortion operations to better align video frames.

[0030] As an implementation method, the reference state features corresponding to each first-resolution video clip may be obtained by extracting corresponding inter-frame information features while performing video super-resolution operations on all other first-resolution video clips that precede the first-resolution video clip, and pre-storing them so that they can be read and used as corresponding reference state features when performing video super-resolution operations on the first-resolution video clip.

[0031] Optionally, video super-resolution can be performed one by one on the first-resolution video segments obtained in the time direction when the video segments are divided. That is, after obtaining multiple first-resolution video segments, video super-resolution is performed starting from the first first-resolution video segment, and then video super-resolution is performed on the remaining first-resolution video segments one by one backward in time sequence until the second resolution video segments corresponding to all the first-resolution video segments are obtained. Furthermore, in the process of performing video super-resolution operation on each first-resolution video clip, its corresponding inter-frame information feature is first obtained as the short-term memory feature of the first-resolution video clip and stored in the short-term memory module. At the same time, the short-term memory features corresponding to all the first-resolution video clips before the first-resolution video clip are processed and fused to obtain the inter-frame information that can reflect the inter-frame information of all the first-resolution video clips before the first-resolution video clip, as the long-term memory feature of the first-resolution video clip, and stored in the long-term memory module. Therefore, based on the short-term memory feature and the long-term memory feature corresponding to the first-resolution video clip, the reference state feature of the next first-resolution video clip can be obtained. According to the above analysis, it can be seen that the short-term memory feature can reflect the inter-frame information feature of the previous first-resolution video clip, and the long-term memory feature can reflect the inter-frame information feature of all the previous first-resolution video clips. Therefore, the reference state feature corresponding to each first-resolution video clip can reflect the inter-frame information feature of all the first-resolution video clips before the first-resolution video clip. Exemplarily, assume that the size of the reference state feature corresponding to a first-resolution video clip is [w, h, c], where w is the width of the first resolution, h is the height of the first resolution, and c is the number of channels for merging and outputting the short-term memory features and long-term memory features of the first-resolution video clip.

[0032] As an implementation method, the video super-resolution operation can be implemented by a video super-resolution model. After the video clip and related features are input into the video super-resolution model, the super-resolution video clip can be obtained. Optionally, the video super-resolution model can be a sliding window propagation model or a single / bidirectional propagation model. Furthermore, the video super-resolution multiple can be set by itself, such as 2 times, 4 times, etc. The specific model and related algorithms used by the video super-resolution model, as well as the video super-resolution multiple, are not limited here. Exemplarily, the process of video super-resolution performed by the video super-resolution model can be represented by the following formula (1):

[0033]

[0034] Where n represents the time-order arrangement order of the first resolution video segment to be super-resolved in the multiple video segments divided from the video file, V lr,n represents the nth first-resolution video segment, represents the reference state feature of the nth first-resolution video segment, represents the video super-resolution model, V hr,n represents the nth second resolution video clip. It can be seen from formula (1) that after each first resolution video clip and its corresponding reference state feature are input into the video super-resolution model, the corresponding second resolution video clip is obtained through processing by the video super-resolution model. Furthermore, the second resolution is higher than the first resolution. It can be understood that since the first resolution video file is divided into multiple first resolution video clips, and the duration of each first resolution video clip meets the computing power of the hardware device that performs video super-resolution, and since the video super-resolution is performed based on the inter-frame information of the first resolution video clip and all previous video clips, the final second resolution video clip image is smoother, achieving a balance between computing power and effect.

[0035] S130: Acquire a video file with a second resolution based on each video segment with the second resolution.

[0036] Specifically, after obtaining the second resolution video segment based on each first resolution video segment and its corresponding reference state feature, each second resolution video segment is synthesized and spliced ​​in the time direction to obtain a complete second resolution video file.

[0037] Therefore, the present application provides a video super-resolution method, which includes: dividing a first-resolution video file into multiple first-resolution video segments in the time direction; based on each of the first-resolution video segments and its corresponding reference state features, performing a video super-resolution operation on the first-resolution video segment to obtain corresponding second-resolution video segments, wherein the reference state features of each of the first-resolution video segments are used to characterize the inter-frame information features of the previous first-resolution video segment of the first-resolution video segment and the inter-frame information features of all first-resolution video segments before the first-resolution video segment; based on each of the second-resolution video segments, obtaining a second-resolution video file. The present application performs video super-resolution using a first-resolution video clip and its corresponding reference state features to obtain a second-resolution video clip, and each reference state feature can reflect the inter-frame information features of all video clips before the corresponding first-resolution video clip, so that in the process of performing video super-resolution processing on a single video clip, the inter-frame information features of the previous multiple video clips can be combined to extract spatiotemporal features to perform video super-resolution, thereby obtaining a better and smoother video super-resolution result. In particular, when applied to video scenes with long-term fixed backgrounds such as outdoor video surveillance, relevant information can be obtained based on earlier video clips (without foreground objects occluding the background) to repair the video clip to be processed (with foreground objects occluding the background), thereby obtaining a smoother video image effect. In addition, since the video file is divided into multiple video clips in advance and then the multiple video clips are super-resolved one by one, under the premise of ensuring smoothness, the time length of the appropriate video clips can be appropriately selected to divide them to meet the computing power requirements of different hardware platforms when performing video super-resolution operations, especially when processing super-resolution of long-term videos, a balance between computing power and effect is achieved.

[0038] See also Figure 2 , Figure 2 A method flow chart of another video super-resolution method proposed in an embodiment of the present application is shown, comprising the following steps:

[0039] S210: Divide the first-resolution video file into a plurality of first-resolution video segments in a time direction.

[0040] The specific implementation of step S210 may refer to the specific implementation of step S110 described above, and will not be repeated here.

[0041] S220: Acquire a reference state feature of the first-resolution video segment based on a time sequence of the first-resolution video segment in a plurality of first-resolution video segments.

[0042] As an implementation manner, the time sequence of the first-resolution video segments among the multiple first-resolution video segments may refer to the arrangement order of the first-resolution video segments to be subjected to video super-resolution in the multiple first-resolution video segments in the time direction.

[0043] Optionally, if the first-resolution video clip is the first video clip among multiple first-resolution video clips, the reference state feature of the first-resolution video clip is preset to zero. Exemplarily, assuming that the size of the reference state feature corresponding to a first-resolution video clip is [w, h, c], the reference state function has a total of w×h×c parameters, and the values ​​of these parameters are all zero, that is, The values ​​of are all 0. For example, if w=10, h=10, and c=32, then the reference state function has a total of w×h×c=3200 parameters, and the values ​​of these 3200 parameters are all zero.

[0044] Optionally, if the first-resolution video segment is not the first video segment among the multiple first-resolution video segments, then the short-term memory features of the first-resolution video segment before the first-resolution video segment stored in advance can be read from the short-term memory module, and the long-term memory features of the first-resolution video segment stored in advance can be read from the long-term memory module. Then, based on the short-term memory features and the long-term memory features of the first-resolution video segment, the reference state features of the first-resolution video segment are obtained. Exemplarily, the short-term memory features and the long-term memory features of the first-resolution video segment before are input into the memory reading model to obtain the reference state features of the first-resolution video segment, wherein the process of the memory reading model obtaining the reference state features can be represented by the following formula (2):

[0045]

[0046] in, represents the reference state feature of the nth first-resolution video segment, represents the short-term state feature of the n-1th first-resolution video segment (that is, the previous first-resolution video segment), represents the long-term state features of the n-1th first-resolution video segment, Read the model from memory.

[0047] Optionally, see Figure 3 , Figure 3 A flow chart of a method for obtaining reference state characteristics proposed in an embodiment of the present application is shown, comprising the following steps:

[0048] S310: After performing a video super-resolution operation on a previous first-resolution video segment of the first-resolution video segment, obtaining a short-term memory feature corresponding to the previous first-resolution video segment and storing the feature in the short-term memory module.

[0049] As an implementation mode, video super-resolution operation can be performed one by one on the first-resolution video segments obtained according to the time direction when the video segments are divided. That is to say, after obtaining multiple first-resolution video segments, video super-resolution is performed starting from the first first-resolution video segment. After the video super-resolution operation is performed on the first first-resolution video segment, its corresponding short-term memory features are obtained and stored in the short-term memory module. Therefore, when the video super-resolution operation is performed on the next first-resolution video segment, the short-term memory features corresponding to the previous first-resolution video segment can be read from the short-term memory module for use. It can be understood that after the video super-resolution operation is performed on the next first-resolution video segment, its corresponding short-term memory features should continue to be obtained and stored in the short-term memory module. Optionally, since multiple first-resolution video clips are subjected to video super-resolution operations separately one by one, the short-term memory features stored in the short-term memory module can be updated and stored according to the different first-resolution video clips that are super-resolved. That is to say, the short-term memory module can only store the short-term memory features corresponding to the previous first-resolution video clip of the first-resolution video clip that is currently to perform video super-resolution operation, so that a good super-resolution effect can be achieved with only a small amount of storage overhead.

[0050] As an implementation, a method for obtaining short-term memory features corresponding to a first-resolution video clip may be: determining a target frame image from the first-resolution video clip, obtaining a frame state feature of the target frame image, and reading a pre-stored short-term memory feature of a previous frame image of the target frame image, wherein the short-term memory feature of the previous frame image refers to a short-term memory feature propagated from the first-resolution video clip to the previous frame image, and then inputting the frame state feature of the target frame image and the short-term memory feature of the previous frame image of the target frame image into a short-term memory module, so as to obtain the short-term memory feature of the target frame image through the short-term memory module, wherein the short-term memory feature of the target frame image refers to a short-term memory feature propagated from the first-resolution video clip to the target frame image. Exemplarily, the process of the short-term memory module obtaining the short-term memory feature of the target frame image may be represented by the following formula (3):

[0051]

[0052] Wherein, n represents that the first-resolution video segment is the nth first-resolution video segment in the time direction among the multiple video segments divided from the video file, and i refers to the i-th frame in the n-th first-resolution video segment. is the short-term memory feature propagated from the nth first-resolution video clip to the i-th frame, is the short-term memory feature propagated from the nth first-resolution video clip to the i-1th frame, is the inter-frame information feature of the i-th frame in the n-th first-resolution video clip, and G is a short-term memory feature extraction function. As an implementation method, a short-term memory feature extraction function can be implemented by first passing through an aggregation layer and Perform feature fusion, and then obtain the short-term memory features propagated to the i-th frame after two layers of convolutional layers. As the video super-resolution is propagated from the first frame to the last frame of the nth first-resolution video clip, the short-term memory features are gradually integrated, thereby outputting the short-term memory features propagated to the last frame as the short-term memory features of the nth first-resolution video clip.

[0053] It should be understood that after obtaining the short-term memory features of the target frame image, continue to return to execute the target frame image and subsequent steps in the first resolution video clip until the target frame image is the last frame image in the first resolution video clip. Thus, the short-term memory features corresponding to the last frame image are used as the short-term memory features corresponding to the first resolution video clip and stored in the short-term memory module.

[0054] S320: Based on the short-term memory features corresponding to the previous first-resolution video clip and the long-term memory features corresponding to the previous first-resolution video clip of the previous first-resolution video clip pre-stored in the long-term memory module, the long-term memory features corresponding to the previous first-resolution video clip are obtained and stored in the long-term memory module.

[0055] As an implementation, after the short-term memory feature corresponding to the first-resolution video segment is acquired and stored, the long-term memory feature of the first-resolution video segment before the first-resolution video segment corresponding to the short-term memory feature is acquired from the long-term memory module, thereby acquiring the long-term memory feature of the first-resolution video segment based on the short-term memory feature corresponding to the first-resolution video segment and the long-term memory feature of the previous first-resolution video segment. Exemplarily, the process of the long-term memory module acquiring the long-term memory feature of the first-resolution video segment can be represented by the following formula (4):

[0056]

[0057] Wherein, n represents that the first-resolution video segment is the nth first-resolution video segment in the time direction among the multiple video segments divided from the video file, is the long-term memory feature of the n-1th first-resolution video clip, is the short-term memory feature of the nth first-resolution video clip, is the long-term memory feature of the nth first-resolution video clip, and M is the long-term memory feature extraction function. As an implementation method, a long-term memory feature extraction function can be implemented by first passing through an aggregation layer and Perform feature fusion, followed by two convolutional layers to obtain the long-term memory features of the nth first-resolution video clip

[0058] Based on the above analysis, it can be understood that in the process of super-resolution of multiple first-resolution video segments split from a video file, each time, based on the first-resolution video segment currently undergoing video super-resolution, its corresponding short-term memory features are obtained and stored in the short-term memory module. At the same time, the corresponding short-term memory features are sent to the long-term memory module to obtain their corresponding long-term memory features. As the video super-resolution processing of multiple first-resolution video segments proceeds, more long-term information can be extracted accordingly. For the first-resolution video segments that are later in the time series, earlier information can be obtained through long-term memory features, thereby effectively overcoming the problem of jerky images during the video super-resolution process of long-time videos, especially for videos with fixed backgrounds blocked by foreground moving objects in outdoor monitoring scenes.

[0059] S230: Based on each of the first-resolution video clips and its corresponding reference state features, perform a video super-resolution operation on the first-resolution video clip to obtain a corresponding second-resolution video clip, wherein the reference state features of each of the first-resolution video clips are used to characterize the inter-frame information features of the previous first-resolution video clip of the first-resolution video clip and the inter-frame information features of all first-resolution video clips before the first-resolution video clip.

[0060] S240: Acquire a video file with a second resolution based on each video segment with the second resolution.

[0061] The specific implementation of steps S230-S240 may refer to the specific implementation of steps S120-S130 mentioned above, which will not be repeated here.

[0062] Therefore, please refer to Figure 4 , Figure 4 FIG. 4 is a flowchart of a video super-resolution processing of a first resolution video clip proposed in an embodiment of the present application. As can be seen from the figure, the video super-resolution module 410 includes a memory reading model 411 and a video super-resolution model 412. lr,nFor example, after it is input into the video super-resolution module 410, the short-term memory feature corresponding to the previous first-resolution video segment is read from the short-term memory module 420 and the long-term memory module 430 by the video super-resolution model 412 in combination with the memory reading model 411. and long-term memory characteristics After the fusion processing by the memory reading model 411, the reference state feature corresponding to the first resolution video clip is obtained Thus, the second resolution video segment V is obtained hr,n , and in the process of super-resolution of the first resolution video clip, the short-term memory module 420 obtains the corresponding short-term memory feature And update the storage, and obtain the corresponding long-term memory feature through the long-term memory module 430 And update the storage to be applied to the video super-resolution process of the next first-resolution video clip. Therefore, in the process of video super-resolution processing of a single video clip, the spatiotemporal features can be extracted in combination with the inter-frame information features of the previous multiple video clips to perform video super-resolution, thereby obtaining a better and smoother video super-resolution result. Moreover, under the premise of ensuring the smoothness, the time length of the appropriate video clip can be appropriately selected to divide it to meet the computing power requirements of different hardware platforms when performing video super-resolution operations, thus achieving a balance between computing power and effect.

[0063] See also Figure 5 , which shows a structural frame of a video super-resolution device 500 provided in an embodiment of the present application. The device may include a video segmentation module 501, a video super-resolution module 502, and a video stitching module 503.

[0064] The video segmentation module 501 is used to divide the first-resolution video file into a plurality of first-resolution video segments in the time direction.

[0065] The video super-resolution module 502 is used to perform a video super-resolution operation on the first-resolution video clip based on each first-resolution video clip and its corresponding reference state feature to obtain a corresponding second-resolution video clip, wherein the reference state feature of each first-resolution video clip is used to characterize the inter-frame information features of the previous first-resolution video clip of the first-resolution video clip and the inter-frame information features of all first-resolution video clips before the first-resolution video clip.

[0066] The video stitching module 503 is configured to obtain a video file with a second resolution based on each video segment with the second resolution.

[0067] Optionally, the video super-resolution module 502 is also used to obtain reference state characteristics of the first resolution video clip based on a time sequence of the first resolution video clip in multiple first resolution video clips before performing a video super-resolution operation on the first resolution video clip based on each first resolution video clip and its corresponding reference state characteristics.

[0068] Optionally, the video super-resolution module 502 is further configured to preset a reference state feature of the first-resolution video segment to zero if the first-resolution video segment is the first video segment among multiple first-resolution video segments.

[0069] Optionally, the video super-resolution module 502 is also used to read the short-term memory features of a first-resolution video clip that is previously stored in the short-term memory module and the long-term memory features of the previous first-resolution video clip that is previously stored in the long-term memory module if the first-resolution video clip is not the first video clip among multiple first-resolution video clips; and to obtain the reference state features of the first-resolution video clip based on the short-term memory features and the long-term memory features of the previous first-resolution video clip.

[0070] Optionally, the video super-resolution module 502 is further configured to, after performing a video super-resolution operation on a previous first-resolution video segment of the first-resolution video segment, obtain a short-term memory feature corresponding to the previous first-resolution video segment and store it in the short-term memory module.

[0071] Optionally, the video super-resolution module 502 is also used to determine the target frame image from the previous first-resolution video clip; obtain the frame state features of the target frame image, and read the short-term memory features of the previous frame image of the target frame image that are pre-stored; input the frame state features of the target frame image and the short-term memory features of the previous frame image of the target frame image into the short-term memory module to obtain the short-term memory features of the target frame image; return to execute the steps of determining the target frame image from the previous first-resolution video clip and subsequent steps until the target frame image is the last frame image in the first-resolution video clip, and use the short-term memory features corresponding to the last frame image as the short-term memory features corresponding to the previous first-resolution video clip.

[0072] Optionally, the video super-resolution module 502 is also used to obtain the long-term memory features corresponding to the previous first-resolution video clip based on the short-term memory features corresponding to the previous first-resolution video clip and the long-term memory features corresponding to the previous first-resolution video clip of the previous first-resolution video clip pre-stored in the long-term memory module, and store them in the long-term memory module.

[0073] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0074] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0075] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0076] Please refer to Figure 6 , which shows a block diagram of an electronic device 600 provided in an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The electronic device 600 in the present application may include one or more of the following components: a processor 610, a memory 620, and one or more application programs, wherein one or more application programs may be stored in the memory 620 and configured to be executed by one or more processors 610, and one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0077] The processor 610 may include one or more processing cores. The processor 610 uses various interfaces and lines to connect various parts of the entire electronic device 600, and executes various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 620, and calling data stored in the memory 620. Optionally, the processor 610 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 610 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 610, but may be implemented separately through a communication chip. The memory 620 may include a random access memory (RAM) or a read-only memory (ROM). The memory 620 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 600 during use.

[0078] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 700 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0079] The computer readable storage medium 700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 710 can be compressed, for example, in an appropriate form.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A video super-resolution method, characterized in that: The method comprises: Dividing the first-resolution video file into a plurality of first-resolution video segments in a time direction; Based on each of the first-resolution video segments and its corresponding reference state features, a video super-resolution operation is performed on the first-resolution video segment to obtain a corresponding second-resolution video segment, wherein the reference state features of each of the first-resolution video segments are used to characterize the inter-frame information features of the first-resolution video segment preceding the first-resolution video segment and the inter-frame information features of all first-resolution video segments before the first-resolution video segment; Based on each of the second-resolution video segments, a video file at a second resolution is obtained.

2. The method according to claim 1, characterized in that Before performing a video super-resolution operation on the first-resolution video segment based on each of the first-resolution video segments and the corresponding reference state features, the method further includes: Based on a time sequence of the first-resolution video segment in a plurality of first-resolution video segments, a reference state feature of the first-resolution video segment is acquired.

3. The method according to claim 2, characterized in that The acquiring the reference state feature of the first-resolution video segment based on the time sequence of the first-resolution video segment in the plurality of first-resolution video segments includes: If the first-resolution video segment is the first video segment among the plurality of first-resolution video segments, the reference state feature of the first-resolution video segment is preset to zero.

4. The method according to claim 2, characterized in that The acquiring the reference state feature of the first-resolution video segment based on the time sequence of the first-resolution video segment in the plurality of first-resolution video segments includes: If the first-resolution video segment is not the first video segment among the plurality of first-resolution video segments, read the pre-stored short-term memory feature of the previous first-resolution video segment of the first-resolution video segment from the short-term memory module, and read the pre-stored long-term memory feature of the previous first-resolution video segment from the long-term memory module; Based on the short-term memory feature and the long-term memory feature of the previous first-resolution video segment, a reference state feature of the first-resolution video segment is obtained.

5. The method according to claim 4, characterized in that Before reading the pre-stored short-term memory feature of the previous first-resolution video segment of the first-resolution video segment from the short-term memory module, the method further includes: After performing a video super-resolution operation on a previous first-resolution video segment of the first-resolution video segment, a short-term memory feature corresponding to the previous first-resolution video segment is obtained and stored in the short-term memory module.

6. The method according to claim 5, characterized in that The obtaining of the short-term memory feature corresponding to the previous first-resolution video clip includes: Determine a target frame image from the previous first-resolution video clip; Acquire the frame state feature of the target frame image, and read the pre-stored short-term memory feature of the previous frame image of the target frame image; Inputting the frame state feature of the target frame image and the short-term memory feature of the previous frame image of the target frame image into the short-term memory module to obtain the short-term memory feature of the target frame image; Return to executing the step of determining the target frame image from the previous first-resolution video clip and subsequent steps, until the target frame image is the last frame image in the first-resolution video clip, and the short-term memory feature corresponding to the last frame image is used as the short-term memory feature corresponding to the previous first-resolution video clip.

7. The method according to claim 5, characterized in that After reading the pre-stored short-term memory feature of the previous first-resolution video segment of the first-resolution video segment from the short-term memory module, the method further includes: Based on the short-term memory features corresponding to the previous first-resolution video clip and the long-term memory features corresponding to the previous first-resolution video clip of the previous first-resolution video clip pre-stored in the long-term memory module, the long-term memory features corresponding to the previous first-resolution video clip are obtained and stored in the long-term memory module.

8. A video super-resolution device, characterized in that: The device comprises: A video segmentation module, used for dividing the first-resolution video file into a plurality of first-resolution video segments in a time direction; A video super-resolution module, configured to perform a video super-resolution operation on each first-resolution video segment and its corresponding reference state feature to obtain a corresponding second-resolution video segment, wherein the reference state feature of each first-resolution video segment is used to characterize an inter-frame information feature of a first-resolution video segment preceding the first-resolution video segment and inter-frame information features of all first-resolution video segments preceding the first-resolution video segment; The video stitching module is used to obtain a video file with a second resolution based on each video segment with the second resolution.

9. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 7.