Video super-resolution processing method and related device

By dividing video frames into blocks and using different super-resolution algorithms for different image blocks, the problem of high computing resource consumption in the existing technology is solved, and efficient video super-resolution processing is achieved.

CN118552406APending Publication Date: 2024-08-27IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410722166.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing video super-resolution processing methods consume a large amount of computing resources, resulting in high equipment computing power requirements and unable to effectively reduce computing overhead.

Method used

By dividing the target video frame into blocks, it is determined whether each image block contains complex textures, and a low-complexity super-resolution algorithm is used to process the image blocks that do not contain complex textures, and a high-complexity algorithm is used to process the image blocks containing complex textures. Textured image blocks are processed, and algorithms based on interpolation and deep learning are combined to achieve super-resolution processing of image blocks.

Benefits of technology

While ensuring the overall image quality, unnecessary computing overhead is reduced, the consumption of computing resources is reduced, and processing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552406A
    Figure CN118552406A
Patent Text Reader

Abstract

The invention discloses a video super-resolution processing method and a related device, and relates to the technical field of video processing, and the video super-resolution processing method comprises the steps: carrying out the blocking processing of a target video frame, and obtaining a plurality of image blocks; determining whether each image block contains a complex texture; performing super-resolution processing on the image blocks not containing the complex textures by adopting a first super-resolution algorithm, and performing super-resolution processing on the image blocks containing the complex textures by adopting a second super-resolution algorithm to obtain super-resolution processing results of the plurality of image blocks, the complexity of the first super-resolution algorithm is lower than that of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is superior to that of the first super-resolution algorithm; and obtaining a super-resolution processing result of the target video frame according to the super-resolution processing results of the plurality of image blocks. According to the video super-resolution processing method disclosed by the invention, unnecessary calculation overhead can be reduced while the overall image quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video processing technology, and in particular to a video super-resolution processing method and related devices. Background Art

[0002] In recent years, with the development of science and technology, video has become an increasingly important information carrier in people's lives. However, due to the limitations of hardware equipment and traffic bandwidth, the popularity of high-resolution videos is still limited. Video super-resolution technology is a technology that improves video resolution, that is, it can reconstruct a corresponding high-resolution video based on a low-resolution video.

[0003] The significance of video super-resolution is: first, it improves the visual experience. By increasing the resolution of the video, the audience can get a clearer and more detailed visual experience when watching the video on a high-definition screen; second, it improves the security in the field of surveillance. In the field of surveillance, high-resolution video can provide clearer images, help identify and track target objects, and enhance security performance; third, it improves the efficiency of video editing and post-production. In the process of video editing and post-production, it is sometimes necessary to upgrade low-resolution materials to high resolution to meet specific needs. Video super-resolution technology can help editors complete these tasks more easily; fourth, it improves the efficiency of video transmission and storage. In the field of video transmission and storage, high-resolution video usually takes up more bandwidth and storage space, and video super-resolution technology can improve video quality without increasing the amount of data, thereby saving transmission and storage costs.

[0004] At present, for the sake of processing effect, a relatively complex super-resolution algorithm is usually used to process the low-resolution video frames to be processed. For example, a super-resolution model (complex model) is obtained by pre-training low-resolution images and corresponding high-resolution images. After the super-resolution model is trained, the low-resolution video frames to be processed are input into the trained super-resolution model to obtain high-resolution video frames output by the super-resolution model. Although the current video super-resolution scheme can obtain high-resolution video frames corresponding to low-resolution video frames, the scheme consumes a lot of computing resources. Summary of the invention

[0005] In view of this, the present application provides a video super-resolution processing method and related devices to solve the problem that the current video super-resolution processing method consumes a lot of computing resources. The technical solution is as follows:

[0006] The first aspect of the present application provides a video super-resolution processing method, comprising:

[0007] Performing block processing on a target video frame to obtain a plurality of image blocks, wherein the target video frame is a video frame to be processed in the target video;

[0008] Determine whether each image block contains complex texture;

[0009] Using a first super-resolution algorithm to perform super-resolution processing on an image block that does not contain a complex texture, and using a second super-resolution algorithm to perform super-resolution processing on an image block that contains a complex texture, to obtain super-resolution processing results of the multiple image blocks, wherein the complexity of the first super-resolution algorithm is lower than the complexity of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than the processing effect of the first super-resolution algorithm;

[0010] The super-resolution processing result of the target video frame is obtained according to the super-resolution processing results of the multiple image blocks.

[0011] In a possible implementation, the using a first super-resolution algorithm to perform super-resolution processing on an image block that does not contain a complex texture, and using a second super-resolution algorithm to perform super-resolution processing on an image block that contains a complex texture, includes:

[0012] Using an interpolation-based super-resolution algorithm or a first super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that do not contain complex textures;

[0013] A second super-resolution algorithm based on deep learning is used to perform super-resolution processing on image blocks containing complex textures;

[0014] Among them, the complexity of the first super-resolution algorithm based on deep learning is lower than the complexity of the second super-resolution algorithm based on deep learning, and the processing effect of the second super-resolution algorithm based on deep learning is better than the processing effect of the first super-resolution algorithm based on deep learning.

[0015] In a possible implementation, the super-resolution processing of the image block that does not contain a complex texture by using the interpolation-based super-resolution algorithm or the first super-resolution algorithm based on deep learning includes:

[0016] For each image patch that does not contain complex textures:

[0017] If the image block is a still image block, interpolation processing is performed on the image block, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; a mean of the super-resolution processing result of the image block and a super-resolution processing result of a reference image block is calculated, and the obtained mean is used as the final super-resolution processing result of the image block; wherein the still image block is an image block that does not contain a moving target, and the reference image block is an image block at the same position as the image block in a video frame before the target video frame;

[0018] If the image block is a moving image block, interpolation processing is performed on the image block, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; wherein the moving image block is an image block containing a moving target.

[0019] In a possible implementation, the second super-resolution algorithm based on deep learning is used to perform super-resolution processing on the image block containing complex textures, including:

[0020] For each image patch containing a complex texture:

[0021] If the image block is a still image block, an image block at the same position as the image block is obtained from a video frame before the target video frame, and the image block at the same position or the super-resolution processing result of the image block at the same position is used as the first reference image block; using a pre-trained second super-resolution model and referring to the first reference image block, super-resolution processing is performed on the image block; wherein the still image block is an image block that does not contain a moving target;

[0022] If the image block is a motion image block, a matching image block of the image block is searched for in a previous video frame of the target video frame, and the matching image block or a super-resolution processing result of the matching image block is used as a second reference image block; super-resolution processing is performed on the image block using a pre-trained second super-resolution model and referring to the second reference image block; wherein the motion image block is an image block containing a moving target.

[0023] In a possible implementation, using the pre-trained second super-resolution model and referring to the second reference image block to perform super-resolution processing on the image block includes:

[0024] Expanding the image block to obtain an expanded image block of the image block, wherein the expanded image block of the image block includes the image block and a surrounding image area of ​​the image block in the target video frame;

[0025] Inputting the expanded image block of the image block and the second reference image block into a pre-trained second super-resolution model to obtain a super-resolution processing result of the expanded image block of the image block;

[0026] The super-resolution processing result of the image block is extracted from the super-resolution processing result of the image block after the expansion of the image block.

[0027] In a possible implementation manner, obtaining the super-resolution processing result of the target video frame according to the super-resolution processing results of the multiple image blocks includes:

[0028] splicing the super-resolution processing results of the multiple image blocks to obtain a spliced ​​image;

[0029] The block boundary lines in the spliced ​​image are eliminated to obtain a super-resolution processing result of the target video frame.

[0030] In a possible implementation manner, the eliminating the block boundary line in the stitched image includes:

[0031] Traverse the image blocks obtained by using the super-resolution algorithm based on deep learning in the stitched image:

[0032] If the currently traversed image block and the adjacent image block of the currently traversed image block are obtained by using different super-resolution algorithms, the block boundary at the joint of the currently traversed image block and the adjacent image block is fused.

[0033] In a possible implementation, the fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block includes:

[0034] A deblocking filtering algorithm is used to fuse the block boundary at the junction of the currently traversed image block and the adjacent image block;

[0035] Among them, if at least one of the currently traversed image block and the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the first filtering coefficient; if neither the currently traversed image block nor the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the second filtering coefficient, and the first filtering coefficient is smaller than the second filtering coefficient.

[0036] In a possible implementation, the fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block includes:

[0037] Acquire an intermediate feature generated when a currently traversed image block is obtained using a super-resolution algorithm based on deep learning as a first intermediate feature;

[0038] Based on the lightweight first boundary fusion model, features are extracted from adjacent image blocks of the currently traversed image block to obtain second intermediate features;

[0039] Based on a lightweight first boundary fusion model, the first intermediate feature and the second intermediate feature are spliced ​​to obtain a first spliced ​​feature;

[0040] Based on the first post-splicing feature and the first boundary fusion model, a block boundary fusion result of a splicing location of a currently traversed image block and the adjacent image block is obtained.

[0041] In a possible implementation, the fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block includes:

[0042] Cutting off a boundary region adjacent to the adjacent image block from the currently traversed image block to obtain a first boundary region, and cutting off a boundary region adjacent to the currently traversed image block from the adjacent image block to obtain a second boundary region;

[0043] Based on the lightweight second boundary fusion model, extract features from the first boundary area and the second boundary area respectively, and splice the two extracted features to obtain a second spliced ​​feature;

[0044] Based on the second post-splicing feature and the second boundary fusion model, a block boundary fusion result of a splicing location of a currently traversed image block and the adjacent image block is obtained.

[0045] A second aspect of the present application provides a video super-resolution processing device, comprising: a block processing module, a texture complexity determination module, a first super-resolution processing module, a second super-resolution processing module and a super-resolution processing result acquisition module;

[0046] The block processing module is used to perform block processing on the target video frame to obtain multiple image blocks, wherein the target video frame is a video frame to be processed in the target video;

[0047] The texture complexity determination module is used to determine whether each image block contains a complex texture;

[0048] The first super-resolution processing module is used to perform super-resolution processing on the image block that does not contain complex textures by using a first super-resolution algorithm;

[0049] The second super-resolution processing module is used to perform super-resolution processing on the image block containing complex textures by using a second super-resolution algorithm, wherein the complexity of the first super-resolution algorithm is lower than the complexity of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than the processing effect of the first super-resolution algorithm;

[0050] The super-resolution processing result acquisition module is used to obtain the super-resolution processing result of the target video frame according to the super-resolution processing results of the multiple image blocks.

[0051] A third aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0052] The memory is used to store computer programs;

[0053] The processor is used to execute the computer program so that the electronic device can implement any one of the above-mentioned video super-resolution processing methods.

[0054] In a fourth aspect, the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any one of the video super-resolution processing methods described above.

[0055] A fifth aspect of the present application provides a computer program product, comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the above-described video super-resolution processing training methods.

[0056] By means of the above technical scheme, the video super-resolution processing method provided by the present application first performs block processing on the target video frame to obtain multiple image blocks, then determines whether each image block contains complex textures, then uses a first super-resolution algorithm to perform super-resolution processing on the image blocks that do not contain complex textures, and uses a second super-resolution algorithm to perform super-resolution processing on the image blocks that contain complex textures to obtain super-resolution processing results of multiple image blocks, and finally obtains the super-resolution processing results of the target video frame according to the super-resolution processing results of the multiple image blocks. The video super-resolution processing method provided by the present application does not directly perform super-resolution processing on the entire video frame, but divides the video frame into blocks, and uses different super-resolution processing strategies for processing image blocks with different texture complexities. Specifically, for image blocks that do not contain complex textures, a low-complexity super-resolution algorithm is used to perform super-resolution processing on them to save computing resources. For image blocks that contain complex textures, more computing resources are invested and a high-complexity super-resolution algorithm is used to perform super-resolution processing on them. The video super-resolution processing method provided by the present application can reduce unnecessary computing overhead while ensuring the overall image quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0058] Figure 1 A schematic diagram of the system architecture involved in this application;

[0059] Figure 2 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0061] Figure 4 A schematic diagram of a process flow of a video super-resolution processing method provided in an embodiment of the present application;

[0062] Figure 5 A schematic diagram of expanding an image block provided in an embodiment of the present application;

[0063] Figure 6 A schematic diagram of implementing block boundary fusion based on a lightweight first boundary fusion model provided in an embodiment of the present application;

[0064] Figure 7A schematic diagram of cutting out a boundary area from a currently traversed image block and adjacent image blocks provided in an embodiment of the present application;

[0065] Figure 8 A schematic diagram of the structure of a video super-resolution processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] Before introducing the video super-resolution processing method provided by the present invention, the system architecture involved in the present invention is first described.

[0068] like Figure 1 As shown, the system architecture of the present invention may include a video acquisition device 101 and a video processing device 102. The video acquisition device 101 may acquire video and send the acquired video to the video processing device 102. The video processing device 102 performs super-resolution processing on the received video. The video acquisition device 101 may be a terminal with a video acquisition function, and the video processing device 102 may be a terminal with a video processing function or a server. The server may include one or more servers.

[0069] The above-mentioned terminal can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiments of the present application do not impose any restrictions on this.

[0070] Figure 2 FIG. 1 shows an optional hardware structure diagram of a terminal. Figure 2 As shown, the terminal may include components such as a radio frequency unit 201, a memory 202, an input unit 203, a display unit 204, a camera 205, an audio circuit 206, a speaker 207, a microphone 208, an earphone jack 209, a processor 210, an external interface 211, and a power supply 212. Those skilled in the art will appreciate that Figure 2This is merely an example of a terminal and does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0071] The input unit 203 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the terminal. Specifically, the input unit 203 may include a touch screen 2031 and / or other input devices 2032. The touch screen 2031 can collect the user's touch operation on or near it (such as the user's operation on or near the touch screen using any suitable object such as a finger, joint, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 210, and can receive and execute the command sent by the processor 210; the touch signal at least includes the contact point coordinate information. The touch screen 2031 can provide an input interface and an output interface between the terminal and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 2031, the input unit 203 can also include other input devices. Specifically, other input devices 2032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0072] The display unit 204 may be used to display information input by a user or information provided to a user, various menus of the terminal, an interactive interface, file display, and / or playback of any multimedia file.

[0073] The memory 202 can be used to store instructions and data. The memory 202 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 210 with hardware, software and data resources including management computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0074] The processor 210 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing instructions stored in the memory 202 and calling data stored in the memory 202, it executes various functions of the terminal and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 210 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 210. In some embodiments, the processor and memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 210 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 202, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0075] The radio frequency unit 201 can be used for receiving and sending information or receiving and sending signals during a call. For example, after receiving the downlink information of the base station, it is sent to the processor 210 for processing; in addition, the designed uplink data is sent to the base station. Generally, the radio frequency unit 201 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 201 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc. The radio frequency unit 201 can send data to other devices and receive data sent by other devices. It should be understood that the radio frequency unit 201 is optional and can be replaced by other communication interfaces, such as a network port.

[0076] The terminal also includes a power source 212 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 210 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0077] The terminal also includes an external interface 211, which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal to communicate with other devices, or to connect a charger to charge the terminal.

[0078] Although not shown, the terminal may further include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which will not be described in detail here.

[0079] Next, the product form of the above server is described. Figure 3 A schematic diagram of the structure of a server is provided, such as Figure 3 As shown, the server may include a bus 301, a processor 302, a communication interface 303, and a memory 304. The processor 302, the memory 304, and the communication interface 303 communicate with each other via the bus 301.

[0080] The bus 301 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0081] The processor 302 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0082] The memory 304 may include a volatile memory, such as a random access memory (RAM). The memory 304 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).

[0083] The memory 304 may be used to store software codes related to the video super-resolution processing method, and the processor 302 may execute the steps of the video super-resolution processing method, and may also schedule other units to implement corresponding functions.

[0084] The processors in the above-mentioned terminals and servers (for example, processor 210 and processor 302) may be hardware circuits (such as application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), general-purpose processors, digital signal processors (DSP), microprocessors or microcontrollers, etc.), or combinations of these hardware circuits. For example, the processor may be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0085] In the process of implementing this case, the inventors of this case found that the current video super-resolution solutions include interpolation-based super-resolution solutions and deep learning-based super-resolution solutions. These two solutions use different processing strategies to directly perform super-resolution processing on the entire video frame. Among them, the interpolation-based super-resolution solution is simple and fast, but the processing effect is not ideal. Compared with the interpolation-based super-resolution solution, the processing effect of the deep learning-based super-resolution solution has been greatly improved. However, in order to obtain better processing results, the deep learning-based super-resolution solution usually performs super-resolution processing on the entire video frame based on a complex super-resolution model, which results in a large consumption of computing resources for this solution and a high computing power requirement for the video processing equipment.

[0086] In view of the problems existing in the current video super-resolution solutions, the inventors of this case conducted research and, through continuous research, finally proposed a video super-resolution processing method, which has good processing effect and low consumption of computing resources.

[0087] Next, the video super-resolution processing method provided by the present application is introduced through the following embodiments.

[0088] See also Figure 4 , shows a schematic flow chart of a video super-resolution processing method provided by an embodiment of the present application, the method may include:

[0089] Step S401: performing block processing on the target video frame to obtain multiple image blocks.

[0090] The target video frame is a video frame to be processed in the target video.

[0091] When the target video frame is processed by block processing, in one possible implementation, the target video frame may be divided into a plurality of image blocks of the same size; in another possible implementation, the target video frame may be divided into a plurality of image blocks of different sizes.

[0092] Step S402: Determine whether each image block contains a complex texture.

[0093] It should be noted that an image block does not contain complex texture means that the image block does not contain texture, or the image block contains texture but the contained texture is relatively flat. It should be noted that the texture complexity of the image block containing complex texture is greater than or equal to the preset texture complexity threshold, and the texture complexity of the image block not containing complex texture is less than the preset texture complexity threshold.

[0094] Determine whether each image block contains complex texture, that is, determine the texture category of each image block.

[0095] There are many ways to determine the texture category of each image block. In one possible implementation, the texture category of each image block can be determined based on a feature detection method, that is, the features of each image block are detected, and the texture category of each image block is determined based on the features of each image block. In another possible implementation, a texture category prediction model can be obtained by pre-training training image blocks marked with texture categories, and then the texture category prediction model obtained by pre-training is used to predict the texture category of each image block. It should be noted that in actual application scenarios, a suitable method can be selected according to the computing power of the video processing device.

[0096] Step S403: using a first super-resolution algorithm to perform super-resolution processing on image blocks that do not contain complex textures, and using a second super-resolution algorithm to perform super-resolution processing on image blocks that contain complex textures, to obtain super-resolution processing results for multiple image blocks.

[0097] Among them, the first super-resolution algorithm is a relatively simple super-resolution algorithm, that is, a low-complexity super-resolution algorithm, which consumes fewer computing resources. Compared with the first super-resolution algorithm, the second super-resolution algorithm is a more complex super-resolution algorithm, which consumes relatively more computing resources and has a relatively better processing effect. That is, the complexity of the first super-resolution algorithm is lower than the complexity of the second super-resolution algorithm, the computing resources consumed by the first super-resolution algorithm are lower than the computing resources consumed by the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than that of the first super-resolution algorithm.

[0098] Considering that image blocks without complex textures contain less detail information, this application uses a low-complexity super-resolution algorithm to perform super-resolution processing on them to save computing resources. Considering that image blocks containing complex textures contain more detail information, in order to achieve better visual effects, this application invests more computing resources and uses a high-complexity super-resolution algorithm to perform super-resolution processing on them.

[0099] Step S404: obtaining a super-resolution processing result of a target video frame according to the super-resolution processing results of the multiple image blocks.

[0100] In a possible implementation, the super-resolution processing results of the image blocks may be spliced ​​according to the positions of the image blocks in the target video frame to obtain a spliced ​​image, and the spliced ​​image is used as the super-resolution processing result of the target video frame.

[0101] Taking into account that there may be boundary lines after image blocks processed by different super-resolution algorithms are spliced ​​together (that is, the overall spliced ​​image may show a block effect), in order to bring a better visual experience to users, in another possible implementation method, the super-resolution processing results of each image block can be spliced ​​according to the position of each image block in the target video frame to obtain a spliced ​​image, and then the block boundary lines in the spliced ​​image are eliminated, and the image after eliminating the block boundary lines is used as the final super-resolution processing result of the target video frame.

[0102] The video super-resolution processing method provided in the embodiment of the present application first performs block processing on the target video frame to obtain multiple image blocks, then determines whether each image block contains complex textures, then uses a first super-resolution algorithm to perform super-resolution processing on image blocks that do not contain complex textures, and uses a second super-resolution algorithm to perform super-resolution processing on image blocks that contain complex textures, and finally obtains the super-resolution processing result of the target video frame based on the super-resolution processing results of the multiple image blocks. The video super-resolution processing method provided in the embodiment of the present application does not directly perform super-resolution processing on the entire video frame, but divides the video frame into blocks, and then uses different super-resolution processing strategies for image blocks with different texture complexities. For image blocks that do not contain complex textures, a low-complexity super-resolution algorithm is used to save computing resources. For image blocks that contain complex textures, more computing resources are invested and a complex super-resolution algorithm is used to obtain high-quality results. The video super-resolution processing method provided in the embodiment of the present application can reduce unnecessary computing overhead while ensuring the overall image quality.

[0103] In another embodiment of the present application, the specific implementation process of step S403 in the above embodiment is introduced.

[0104] The process of using a first super-resolution algorithm to perform super-resolution processing on image blocks that do not contain complex textures, and using a second super-resolution algorithm to perform super-resolution processing on image blocks that contain complex textures, to obtain super-resolution processing results of multiple image blocks may include: using an interpolation-based super-resolution algorithm or a first super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that do not contain complex textures; and using a second super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that contain complex textures.

[0105] The interpolation-based super-resolution algorithm is a traditional super-resolution algorithm that estimates missing pixel values ​​through different strategies and has the advantages of being simple and fast. The interpolation-based super-resolution algorithm can be, but is not limited to, a nearest neighbor interpolation-based super-resolution algorithm, a bilinear interpolation-based super-resolution algorithm, a bicubic interpolation-based super-resolution algorithm, etc.

[0106] The super-resolution algorithm based on deep learning is to pre-train a super-resolution model, and then perform super-resolution processing based on the pre-trained super-resolution model. The super-resolution model can be, but is not limited to, a model based on a convolutional neural network (CNN), a model based on a residual network (ResNet), a model based on a generative adversarial network (GAN), etc. Among them, CNN extracts image features through multi-layer convolution operations, and can effectively learn the mapping between low-resolution images and high-resolution images. In order to solve the gradient disappearance problem in deep networks, the residual network introduces a residual learning framework. This structure allows the network to learn residual mapping by skipping one or more layers, making it easier to train deeper networks. GAN consists of a generator and a discriminator. The generator is responsible for generating high-resolution images, and the discriminator tries to distinguish between generated images and real high-resolution images. This competition mechanism can significantly improve the quality of generated images, making the images look more real and natural.

[0107] In this embodiment, the first super-resolution algorithm based on deep learning is a low-complexity algorithm. Compared with the first super-resolution algorithm based on deep learning, the second super-resolution algorithm based on deep learning is a high-complexity algorithm with better processing effect. That is, the complexity of the first super-resolution algorithm based on deep learning is lower than the complexity of the second super-resolution algorithm based on deep learning. Accordingly, the computing resources consumed by the first super-resolution algorithm based on deep learning are lower than the computing resources consumed by the second super-resolution algorithm based on deep learning, and the processing effect of the second super-resolution algorithm based on deep learning is better than the processing effect of the first super-resolution algorithm based on deep learning.

[0108] Next, the specific implementation processes of "using an interpolation-based super-resolution algorithm or a first super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that do not contain complex textures" and "using a second super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that contain complex textures" are introduced respectively.

[0109] The specific implementation process of using the interpolation-based super-resolution algorithm or the first super-resolution algorithm based on deep learning to perform super-resolution processing on an image block that does not contain complex textures may include:

[0110] For each image block B that does not contain complex textures i (i ranges from 1 to n, where n is the number of image blocks that do not contain complex textures) perform the following steps:

[0111] Step a-a1: If image block B i For a still image block, then for image block B i Interpolation processing is performed, or image block B iInput the first super-resolution model obtained in advance for processing to obtain image block B i The super-resolution processing result.

[0112] The still image block refers to an image block that does not contain a moving object.

[0113] In a possible implementation, the super-resolution processing result obtained in step a-a1 can be used as the image block B i The final super-resolution processing result.

[0114] In order to suppress noise in the image block and further improve the image quality, in another possible implementation, after executing step a-a1, the following step a-a2 may be further executed.

[0115] Step a-a2: Calculate image block B i The average of the super-resolution processing result of the reference image block and the super-resolution processing result of the reference image block is used as the image block B. i The final super-resolution processing result.

[0116] The reference image block in step a-a2 is the image block B in the video frame before the target video frame. i The image block at the same position, for example, the image block B in the previous video frame of the target video frame i Image patches at the same location.

[0117] In one possible implementation, for non-complex texture still image blocks at the same position in different video frames, a super-resolution algorithm may be used to perform super-resolution processing on each image block. In order to reduce the consumption of computing resources, in another possible implementation, for non-complex texture still image blocks at the same position in different video frames, a super-resolution algorithm may be used to perform super-resolution processing on the image blocks based on a preset interval D. For example, the non-complex texture still image blocks at the same position in different video frames are B1, B2, B3, B4, ..., B7, B8, B9, ..., B 15 , ..., assuming that the preset interval D is 6, the super-resolution algorithm is used to process B1, B2~B7 reuse the super-resolution processing result of B1, and the super-resolution algorithm is used to process B8, and B9~B 14 Reuse the super-resolution processing results of B8, and so on for others.

[0118] If the present application performs super-resolution processing on non-complex texture still image blocks at the same position in different video frames based on a preset interval D, then for image block B i , we can first determine B iIs it an image block that needs to be super-resolution processed using a super-resolution algorithm? If so, execute the above steps a-a1 and a-a2; if not, the super-resolution processing result of the previous image block that was super-resolution processed using a super-resolution algorithm can be directly reused.

[0119] Step ab, if image block B i For a moving image block, then for image block B i Interpolation processing is performed, or image block B i Input the first super-resolution model obtained in advance for processing to obtain image block B i The super-resolution processing result.

[0120] The moving image block refers to an image block containing a moving object.

[0121] Since the motion image block involves a moving target, it is impossible to use the super-resolution processing result of the image block at the same position in the video frame before the target video frame like the static image block. Therefore, the image block B is directly i The result obtained by interpolation processing or the image block B based on the first super-resolution model i The result obtained by processing is B i The final super-resolution processing result.

[0122] In addition, this embodiment can use the following method to determine whether an image block is a still image block or a moving image block: determine image block B i with the reference image block (e.g., image block B in the previous video frame of the target video frame) i The difference between image blocks at the same position) is that if image block B i If the difference between the image block and the reference image block is greater than the preset difference threshold, the image block B is determined to be i is a moving image block, otherwise, determine the image block B i Optionally, the difference between the two image blocks can be measured by Euclidean distance, but this embodiment is not limited thereto, and the difference between the two image blocks can also be measured by other distances.

[0123] Next, the specific implementation process of "using the second super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks containing complex textures" is introduced.

[0124] Using the second super-resolution algorithm based on deep learning, the process of super-resolution processing of an image block containing complex textures may include:

[0125] For each image block B containing complex texture j(j ranges from 1 to m, where m is the number of image blocks containing complex textures) perform the following steps:

[0126] Step b-a1: If image block B j If it is a still image block, then obtain the image block B from the previous video frame of the target video frame j The image block at the same position will be j The image block at the same position or with image block B j The super-resolution processing result of the image block at the same position is used as the first reference image block.

[0127] Step b-a2: Using the pre-trained second super-resolution model and referring to the first reference image block, image block B j Perform super-resolution processing.

[0128] Specifically, the image block B j The first reference image block is input into the second super-resolution model, and the second super-resolution model refers to the first reference image block to image block B j Perform super-resolution processing.

[0129] This embodiment does not limit the use of the process of steps b-a1 to b-a2 to image block B j Perform super-resolution processing, for example, without referring to the first reference image block, only the image block B j The second super-resolution model is input for super-resolution processing.

[0130] In one possible implementation, for complex texture still image blocks at the same position in different video frames, a super-resolution algorithm may be used to perform super-resolution processing on each image block. In order to reduce the consumption of computing resources, in another possible implementation, for complex texture still image blocks at the same position in different video frames, a super-resolution algorithm may be used to perform super-resolution processing on the image blocks based on a preset interval. In order to obtain a better visual effect, the complex texture still image blocks may be further divided into low-complexity texture still image blocks, medium-complexity texture still image blocks, and high-complexity texture still image blocks. The still image blocks are processed based on different intervals. For example, for the still image blocks with low complexity texture at the same position in different video frames, the image blocks are super-resolution processed using a super-resolution algorithm based on a preset interval D1. For the still image blocks with medium complexity texture at the same position in different video frames, the image blocks are super-resolution processed using a super-resolution algorithm based on a preset interval D2. For the still image blocks with high complexity texture at the same position in different video frames, the image blocks are super-resolution processed using a super-resolution algorithm based on a preset interval D3, wherein D1>D2>D3, i.e., the higher the texture complexity, the shorter the interval.

[0131] Assume that there are B low-complexity texture still image blocks at the same position in different video frames. 1-1 , B 1-2 , B 1-3 , B 1-4 , B 1-5 …、B 1-9 ..., the preset interval D1 is 4, then for B 1-1 Super-resolution processing is performed using super-resolution algorithms. 1-2 ~B 1-5 Multiplexing B 1-1 The super-resolution processing result of B 1-6 Super-resolution processing is performed using super-resolution algorithms. 1-7 ~B 1-10 Multiplexing B 1-6 The super-resolution processing results are as follows; assuming that there are B complex texture still image blocks at the same position in different video frames 2-1 , B 2-2 , B 2-3 , B 2-4 , B 2-5 …、B 2-9 ..., the preset interval D2 is 3, then for B 2-1 Super-resolution processing is performed using super-resolution algorithms. 2-2 ~B 2-4 Multiplexing B 2-1 The super-resolution processing result of B 2-5 Super-resolution processing is performed using super-resolution algorithms. 2-6 ~B 2-8 Multiplexing B 2-5 The super-resolution processing results are as follows; assuming that there are B high-complex texture still image blocks at the same position in different video frames 3-1 , B 3-2 , B 3-3 , B 3-4 , B 3-5 …、B 3-9 ..., the preset interval D2 is 2, then for B 3-1 Super-resolution processing is performed using super-resolution algorithms. 3-2 ~B 3-3 Multiplexing B 3-1 The super-resolution processing result of B 3-4 Super-resolution processing is performed using super-resolution algorithms. 3-5 ~B 3-6 Multiplexing B 3-4 The super-resolution processing results are as follows.

[0132] If the present application performs super-resolution processing on complex texture still image blocks at the same position in different video frames based on a preset interval, then for image block Bj , we can first determine B j Is it an image block that needs to be super-resolution processed using a super-resolution algorithm? If so, execute the above steps b-a1 and b-a2. If not, the super-resolution processing result of the previous image block that was super-resolution processed using a super-resolution algorithm can be directly reused.

[0133] In addition, if the present application performs super-resolution processing on complex texture still image blocks at the same position in different video frames based on a preset interval, in one possible implementation, when executing step S402, each image block can be classified into a non-complex texture image block, a low-complex texture image block, a medium-complex texture image block, and a high-complex texture image block.

[0134] Step b-b1: If image block B j If it is a moving image block, then find the image block B from the previous video frame of the target video frame. j The matching image block of image block B j The matching image block or image block B j The super-resolution processing result of the matching image block is used as the second reference image block.

[0135] Find image block B from the previous video frame of the target video frame j The process of matching image blocks may include: calculating the image blocks obtained by dividing the previous video frame of the target video frame into blocks and respectively matching the image blocks B j If the maximum similarity among the calculated similarities is greater than or equal to the preset similarity threshold, it is determined that the image block B is found. j The matching image block will be matched with the image block B j The image block with the maximum similarity is determined as image block B j If the maximum similarity among the calculated similarities is less than the preset similarity threshold, it is determined that the image block B is not found. j The matching image patches.

[0136] Step b-b2-a: If image block B is found j The matching image block of image block B is obtained by using the pre-trained second super-resolution model and referring to the second reference image block. j Perform super-resolution processing.

[0137] Specifically, the image block B j The second super-resolution model is input with the second reference image block, and the second super-resolution model refers to the second reference image block to image block B j Perform super-resolution processing and output image block B j The super-resolution processing result.

[0138] In order to utilize more information, thereby improving the image block B j In another possible implementation, the image block B may be j Expand and get image block B j The expanded image block (image block B j The expanded image block includes image block B j In addition, it also includes the image block B in the target video frame j The surrounding image area), the image block B j The expanded image block and the second reference image block are input into the pre-trained second super-resolution model to obtain the image block B j The super-resolution processing result of the expanded image block is obtained from the image block B j The image block B is extracted from the super-resolution processing result of the expanded image block j The super-resolution processing result. j After expansion, the image is input into the second super-resolution model for processing, which has better effect for complex motion scenes.

[0139] Assume that image block B j is an image block centered at pixel coordinates (x, y) and of size (H, W). In one possible implementation, the image block B j Expanded to an image block with pixel coordinates (x, y) as the center and size (N*H, N*W), where N is greater than 0 and the value of N can be set according to the actual scene, for example, N can be 2, 1.5, or 3. Please refer to Figure 5 , showing a schematic diagram of expanding an image block.

[0140] Step b-b2-b: If image block B is not found j The matching image block is then trained using the second super-resolution model obtained in advance to image block B j Perform super-resolution processing.

[0141] Specifically, if image block B is not found j The matching image block is then j Input the second super-resolution model, the second super-resolution model directly processes the image block B j Perform super-resolution processing and output image block B j The super-resolution processing result.

[0142] It should be noted that, in addition to the above steps b-b1 to b-b2, image block B can be obtained. j In addition to the super-resolution processing result, other methods can be used to obtain the image block B jThe super-resolution processing result, for example, only the image block B j The second super-resolution model is input for super-resolution processing.

[0143] In another embodiment of the present application, the specific implementation process of "step S404: obtaining a super-resolution processing result of a target video frame according to super-resolution processing results of multiple image blocks" in the above embodiment is introduced.

[0144] The above embodiment mentioned that after obtaining the super-resolution processing results of multiple image blocks, the super-resolution processing results of each image block can be spliced ​​according to the position of each image block in the target video frame, and after obtaining the spliced ​​image, the block boundary lines in the spliced ​​image are eliminated to obtain the final super-resolution processing result of the target video frame. This embodiment focuses on the implementation process of eliminating the block boundary lines in the spliced ​​image.

[0145] The process of eliminating block boundary lines in a stitched image may include: traversing image blocks in the stitched image processed by a deep learning-based super-resolution algorithm; if a currently traversed image block and an adjacent image block of the currently traversed image block are processed by different super-resolution algorithms, then fusing the block boundary at the joint of the currently traversed image block and the adjacent image block.

[0146] It should be noted that if the image block currently traversed is processed by a super-resolution algorithm based on deep learning, and the adjacent image block of the image block currently traversed is processed by a super-resolution algorithm based on interpolation, it is considered that the image block currently traversed and the adjacent image block are processed by different super-resolution algorithms. In addition, when performing distinguishing boundary fusion, if an image block in the spliced ​​image is directly or indirectly processed by a super-resolution algorithm based on deep learning, it is considered that the image block is processed by a super-resolution algorithm based on deep learning. Similarly, if an image block in the spliced ​​image is directly or indirectly processed by a super-resolution algorithm based on interpolation, it is considered that the image block is processed by a super-resolution algorithm based on interpolation. Assume that an image block B′ in the spliced ​​image is the super-resolution processing result of an image block B in the target video frame, and B′ reuses the super-resolution processing result of an image block A in a video frame before the target video frame. The super-resolution processing result of image block A is obtained by processing image block A with a super-resolution algorithm based on deep learning, and it is considered that B′ is indirectly processed with a super-resolution algorithm based on deep learning.

[0147] There are many implementation methods for fusing the block boundary at the joint of the currently traversed image block and the adjacent image block. This embodiment provides the following three implementation methods.

[0148] A first implementation method of fusing the block boundary at the joint of the currently traversed image block and the adjacent image block is to fuse the block boundary at the joint of the currently traversed image block and the adjacent image block using a deblocking filtering algorithm.

[0149] It should be noted that the filter coefficient of the deblocking filter algorithm has the following two effects: first, the larger the filter coefficient, the larger the image range in which the boundary participates in the calculation, and thus the larger the boundary transition range; second, the larger the filter coefficient, the greater the smoothing intensity of the boundary.

[0150] Taking into account the influence of the above two aspects, when at least one of the currently traversed image block and the adjacent image block contains complex texture, in order to maintain the texture details of the image block, the filtering coefficient of the filtering algorithm adopts the first filtering coefficient (a smaller filtering coefficient); when neither the currently traversed image block nor the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the second filtering coefficient (a larger filtering coefficient), and the first filtering coefficient is smaller than the second filtering coefficient.

[0151] The second implementation method is to fuse the block boundary where the currently traversed image block is spliced ​​with the adjacent image block:

[0152] Step c1: Acquire an intermediate feature generated when a currently traversed image block is obtained using a super-resolution algorithm based on deep learning, as a first intermediate feature.

[0153] When performing boundary fusion, in order to reduce the amount of calculation and improve the efficiency of block boundary fusion, the features generated in the process of obtaining the currently traversed image block can be directly used by using a super-resolution algorithm based on deep learning.

[0154] Step c2: extracting features from adjacent image blocks of the currently traversed image block based on the lightweight first boundary fusion model to obtain a second intermediate feature.

[0155] In order to reduce the consumption of computing resources, this embodiment adopts a lightweight first boundary fusion model to implement block boundary fusion. The lightweight first boundary fusion model has lower model complexity and memory usage.

[0156] Step c3: splicing the first intermediate feature with the second intermediate feature based on the lightweight first boundary fusion model to obtain a first splicing feature.

[0157] This embodiment fuses the intermediate features of the currently traversed image block with the intermediate features of the adjacent image blocks to more effectively preserve the details and texture of the image.

[0158] Step c4: Based on the first splicing feature and the first boundary fusion model, a block boundary fusion result of the splicing location of the currently traversed image block and the adjacent image block is obtained.

[0159] Specifically, features are extracted from the first splicing feature based on the first boundary fusion model, and a block boundary fusion result of a splicing location of a currently traversed image block and an adjacent image block is obtained according to the features extracted from the first splicing feature.

[0160] See also Figure 6 , shows a schematic diagram of realizing block boundary fusion based on the lightweight first boundary fusion model. It should be noted that, Figure 6 This is only an example of implementing block boundary fusion based on the lightweight first boundary fusion model. This embodiment does not limit the lightweight first boundary fusion model to Figure 6 The method shown in the figure realizes the block boundary fusion. In addition, Figure 6 The super-resolution model in the example is also only an example, which is only used to illustrate the source of features. This embodiment is not limited to using Figure 6 The super-resolution model in performs super-resolution processing on image patches.

[0161] The third implementation method of fusing the block boundary at the junction of the currently traversed image block and the adjacent image block:

[0162] Step d1, intercepting a boundary region adjacent to an adjacent image block from a currently traversed image block to obtain a first boundary region, and intercepting a boundary region adjacent to the currently traversed image block from an adjacent image block to obtain a second boundary region.

[0163] See also Figure 7 , shows a schematic diagram of intercepting a boundary area from the currently traversed image block and the adjacent image blocks. This embodiment does not directly process the currently traversed image block and the adjacent image blocks, but intercepts the boundary area from the currently traversed image block and the adjacent image blocks, and processes the intercepted boundary area, which can reduce the amount of calculation for the image blocks, thereby improving the efficiency of boundary fusion.

[0164] Step d2: Based on the lightweight second boundary fusion model, extract features from the first boundary area and the second boundary area respectively, and splice the two extracted features to obtain a second spliced ​​feature.

[0165] In order to reduce the consumption of computing resources, this embodiment adopts a lightweight second boundary fusion model to implement block boundary fusion. The lightweight second boundary fusion model has lower model complexity and memory usage.

[0166] Step d3: Based on the second post-splicing feature and the second boundary fusion model, a block boundary fusion result of the currently traversed image block and the adjacent image block at the splicing point is obtained.

[0167] For the implementation based on the boundary fusion model, since the block boundaries to be fused usually involve fewer image blocks, the consumption of computing resources can be effectively controlled. In addition, the implementation based on the boundary fusion model can obtain a more natural and accurate boundary fusion result.

[0168] The above describes the video super-resolution processing method provided by the embodiment of the present application. The following describes a device for executing the above video super-resolution processing method.

[0169] See also Figure 8 , Figure 8 The structure diagram of a video super-resolution processing device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the video super-resolution processing device includes: a block processing module 801, a texture complexity determination module 802, a first super-resolution processing module 803, a second super-resolution processing module 804 and a super-resolution processing result acquisition module 805.

[0170] The block processing module 801 is used to perform block processing on a target video frame to obtain multiple image blocks, wherein the target video frame is a video frame to be processed in a target video.

[0171] The texture complexity determination module 802 is used to determine whether each image block contains a complex texture.

[0172] The first super-resolution processing module 803 is used to perform super-resolution processing on the image block that does not contain complex textures by using a first super-resolution algorithm.

[0173] The second super-resolution processing module 804 is used to perform super-resolution processing on the image block containing complex textures by using a second super-resolution algorithm.

[0174] The complexity of the first super-resolution algorithm is lower than that of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than that of the first super-resolution algorithm.

[0175] The super-resolution processing result acquisition module 805 is used to obtain the super-resolution processing result of the target video frame according to the super-resolution processing results of the multiple image blocks.

[0176] In one possible implementation, when the first super-resolution processing module 803 adopts the first super-resolution algorithm to perform super-resolution processing on image blocks that do not contain complex textures, it is specifically used to adopt an interpolation-based super-resolution algorithm or a deep learning-based first super-resolution algorithm to perform super-resolution processing on image blocks that do not contain complex textures.

[0177] When the second super-resolution processing module 804 adopts the second super-resolution algorithm to perform super-resolution processing on the image block containing complex textures, it is specifically used to adopt the second super-resolution algorithm based on deep learning to perform super-resolution processing on the image block containing complex textures.

[0178] Among them, the complexity of the first super-resolution algorithm based on deep learning is lower than the complexity of the second super-resolution algorithm based on deep learning, and the processing effect of the second super-resolution algorithm based on deep learning is better than the processing effect of the first super-resolution algorithm based on deep learning.

[0179] In a possible implementation, when the first super-resolution processing module 803 adopts the interpolation-based super-resolution algorithm or the first super-resolution algorithm based on deep learning to perform super-resolution processing on the image block that does not contain a complex texture, it is specifically used to:

[0180] For each image patch that does not contain complex textures:

[0181] If the image block is a still image block, interpolation processing is performed on the image block, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; a mean of the super-resolution processing result of the image block and a super-resolution processing result of a reference image block is calculated, and the obtained mean is used as the final super-resolution processing result of the image block; wherein the still image block is an image block that does not contain a moving target, and the reference image block is an image block at the same position as the image block in a video frame before the target video frame;

[0182] If the image block is a moving image block, the image block is interpolated, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; wherein the moving image block is an image block containing a moving target.

[0183] In a possible implementation, when the second super-resolution processing module 804 uses the second super-resolution algorithm based on deep learning to perform super-resolution processing on the image block containing complex textures, it is specifically used to:

[0184] For each image patch containing a complex texture:

[0185] If the image block is a still image block, an image block at the same position as the image block is obtained from a video frame before the target video frame, and the image block at the same position or the super-resolution processing result of the image block at the same position is used as the first reference image block; using the pre-trained second super-resolution model and referring to the first reference image block, the image block is super-resolution processed; wherein the still image block is an image block that does not contain a moving target;

[0186] If the image block is a motion image block, a matching image block of the image block is found from a previous video frame of the target video frame, and the matching image block or the super-resolution processing result of the matching image block is used as a second reference image block; a pre-trained second super-resolution model is used to perform super-resolution processing on the image block with reference to the second reference image block; wherein the motion image block is an image block containing a moving target.

[0187] In a possible implementation, the second super-resolution processing module 804, when using the pre-trained second super-resolution model and referring to the second reference image block to perform super-resolution processing on the image block, is specifically used to:

[0188] Expanding the image block to obtain an expanded image block of the image block, wherein the expanded image block of the image block includes the image block and a surrounding image area of ​​the image block in the target video frame;

[0189] Inputting the expanded image block of the image block and the second reference image block into a pre-trained second super-resolution model to obtain a super-resolution processing result of the expanded image block of the image block;

[0190] The super-resolution processing result of the image block is extracted from the super-resolution processing result of the image block after the expansion of the image block.

[0191] In a possible implementation, the super-resolution processing result acquisition module 805 may include: an image block splicing module and a block boundary elimination module.

[0192] The image block stitching module is used to stitch together the super-resolution processing results of multiple image blocks to obtain a stitched image.

[0193] The block boundary elimination module is used to eliminate the block boundary lines in the spliced ​​image to obtain the super-resolution processing result of the target video frame.

[0194] In a possible implementation, when eliminating the block boundary line in the spliced ​​image, the block boundary elimination module is specifically used to:

[0195] Traverse the image blocks obtained by using the super-resolution algorithm based on deep learning in the stitched image:

[0196] If the currently traversed image block and the adjacent image block of the currently traversed image block are obtained by using different super-resolution algorithms, the block boundary at the joint of the currently traversed image block and the adjacent image block is fused.

[0197] In a possible implementation, when the block boundary elimination module merges the block boundary at the joint of the currently traversed image block and the adjacent image block, it is specifically used to:

[0198] A deblocking filtering algorithm is used to fuse the block boundary at the junction of the currently traversed image block and the adjacent image block;

[0199] Among them, if at least one of the currently traversed image block and the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the first filtering coefficient; if neither the currently traversed image block nor the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the second filtering coefficient, and the first filtering coefficient is smaller than the second filtering coefficient.

[0200] In a possible implementation, when the block boundary elimination module merges the block boundary at the joint of the currently traversed image block and the adjacent image block, it is specifically used to:

[0201] Acquire an intermediate feature generated when a currently traversed image block is obtained using a super-resolution algorithm based on deep learning as a first intermediate feature;

[0202] Based on the lightweight first boundary fusion model, features are extracted from adjacent image blocks of the currently traversed image block to obtain second intermediate features;

[0203] Based on the lightweight first boundary fusion model, the first intermediate feature is spliced ​​with the second intermediate feature to obtain a first spliced ​​feature;

[0204] Based on the first post-splicing feature and the first boundary fusion model, a block boundary fusion result of a splicing location of a currently traversed image block and an adjacent image block is obtained.

[0205] In a possible implementation, when the block boundary elimination module merges the block boundary at the joint of the currently traversed image block and the adjacent image block, it is specifically used to:

[0206] Cutting off a boundary region adjacent to an adjacent image block from a currently traversed image block to obtain a first boundary region, and cutting off a boundary region adjacent to the currently traversed image block from an adjacent image block to obtain a second boundary region;

[0207] Based on the lightweight second boundary fusion model, features are extracted from the first boundary area and the second boundary area respectively, and the two extracted features are spliced ​​to obtain a second spliced ​​feature;

[0208] Based on the second post-splicing feature and the second boundary fusion model, a block boundary fusion result of the currently traversed image block and the adjacent image block at the splicing point is obtained.

[0209] The video super-resolution processing device provided in the embodiment of the present application does not directly perform super-resolution processing on the entire video frame, but divides the video frame into blocks, and then adopts different super-resolution processing strategies for image blocks with different texture complexities. For image blocks that do not contain complex textures, a relatively low-complexity super-resolution algorithm is adopted to save computing resources. For image blocks that contain complex textures, more computing resources are invested and a highly complex super-resolution algorithm is adopted to obtain high-quality results. The video super-resolution processing device provided in the embodiment of the present application can reduce unnecessary computing overhead while ensuring the overall image quality.

[0210] An embodiment of the present application also provides an electronic device, which may include: at least one processor, at least one communication interface, at least one memory and at least one communication bus.

[0211] In the embodiment of the present application, the number of the processor, the communication interface, the memory, and the communication bus is at least one, and the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0212] The processor may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application;

[0213] The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0214] The memory stores a program, and the processor can call the program stored in the memory, where the program is used to implement the video super-resolution processing method provided in the above embodiment.

[0215] An embodiment of the present application also provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the video super-resolution processing method provided in the above embodiment.

[0216] An embodiment of the present application also provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the video super-resolution processing method provided in the above embodiment.

[0217] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0218] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0219] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0220] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A video super-resolution processing method, characterized in that: include: Performing block processing on a target video frame to obtain a plurality of image blocks, wherein the target video frame is a video frame to be processed in the target video; Determine whether each image block contains complex texture; Using a first super-resolution algorithm to perform super-resolution processing on an image block that does not contain a complex texture, and using a second super-resolution algorithm to perform super-resolution processing on an image block that contains a complex texture, to obtain super-resolution processing results of the multiple image blocks, wherein the complexity of the first super-resolution algorithm is lower than the complexity of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than the processing effect of the first super-resolution algorithm; The super-resolution processing result of the target video frame is obtained according to the super-resolution processing results of the multiple image blocks.

2. The video super-resolution processing method according to claim 1, characterized in that: The method of using a first super-resolution algorithm to perform super-resolution processing on an image block that does not contain a complex texture, and using a second super-resolution algorithm to perform super-resolution processing on an image block that contains a complex texture, comprises: Using an interpolation-based super-resolution algorithm or a first super-resolution algorithm based on deep learning to perform super-resolution processing on image blocks that do not contain complex textures; A second super-resolution algorithm based on deep learning is used to perform super-resolution processing on image blocks containing complex textures; Among them, the complexity of the first super-resolution algorithm based on deep learning is lower than the complexity of the second super-resolution algorithm based on deep learning, and the processing effect of the second super-resolution algorithm based on deep learning is better than the processing effect of the first super-resolution algorithm based on deep learning.

3. The video super-resolution processing method according to claim 2, characterized in that: The method of using an interpolation-based super-resolution algorithm or a first super-resolution algorithm based on deep learning to perform super-resolution processing on an image block that does not contain a complex texture includes: For each image patch that does not contain complex textures: If the image block is a still image block, interpolation processing is performed on the image block, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; a mean of the super-resolution processing result of the image block and a super-resolution processing result of a reference image block is calculated, and the obtained mean is used as the final super-resolution processing result of the image block; wherein the still image block is an image block that does not contain a moving target, and the reference image block is an image block at the same position as the image block in a video frame before the target video frame; If the image block is a moving image block, interpolation processing is performed on the image block, or the image block is input into a pre-trained first super-resolution model for processing to obtain a super-resolution processing result of the image block; wherein the moving image block is an image block containing a moving target.

4. The video super-resolution processing method according to claim 2, characterized in that: The second super-resolution algorithm based on deep learning is used to perform super-resolution processing on the image block containing complex textures, including: For each image patch containing a complex texture: If the image block is a still image block, an image block at the same position as the image block is obtained from a video frame before the target video frame, and the image block at the same position or the super-resolution processing result of the image block at the same position is used as the first reference image block; using a pre-trained second super-resolution model and referring to the first reference image block, super-resolution processing is performed on the image block; wherein the still image block is an image block that does not contain a moving target; If the image block is a motion image block, a matching image block of the image block is searched for in a previous video frame of the target video frame, and the matching image block or a super-resolution processing result of the matching image block is used as a second reference image block; super-resolution processing is performed on the image block using a pre-trained second super-resolution model and referring to the second reference image block; wherein the motion image block is an image block containing a moving target.

5. The video super-resolution processing method according to claim 4, characterized in that: The method of using the pre-trained second super-resolution model and referring to the second reference image block to perform super-resolution processing on the image block includes: Expanding the image block to obtain an expanded image block of the image block, wherein the expanded image block of the image block includes the image block and a surrounding image area of ​​the image block in the target video frame; Inputting the expanded image block of the image block and the second reference image block into a pre-trained second super-resolution model to obtain a super-resolution processing result of the expanded image block of the image block; The super-resolution processing result of the image block is extracted from the super-resolution processing result of the image block after the expansion of the image block.

6. The video super-resolution processing method according to any one of claims 1 to 5, characterized in that: The step of obtaining the super-resolution processing result of the target video frame according to the super-resolution processing results of the multiple image blocks includes: splicing the super-resolution processing results of the multiple image blocks to obtain a spliced ​​image; The block boundary lines in the spliced ​​image are eliminated to obtain a super-resolution processing result of the target video frame.

7. The video super-resolution processing method according to claim 6, characterized in that: The eliminating the block boundary line in the spliced ​​image includes: Traverse the image blocks obtained by using the super-resolution algorithm based on deep learning in the stitched image: If the currently traversed image block and the adjacent image block of the currently traversed image block are obtained by using different super-resolution algorithms, the block boundary at the joint of the currently traversed image block and the adjacent image block is fused.

8. The video super-resolution processing method according to claim 7, characterized in that: The fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block comprises: A deblocking filtering algorithm is used to fuse the block boundary at the junction of the currently traversed image block and the adjacent image block; Among them, if at least one of the currently traversed image block and the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the first filtering coefficient; if neither the currently traversed image block nor the adjacent image block contains complex texture, the filtering coefficient of the filtering algorithm adopts the second filtering coefficient, and the first filtering coefficient is smaller than the second filtering coefficient.

9. The video super-resolution processing method according to claim 7, characterized in that: The fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block comprises: Acquire an intermediate feature generated when a currently traversed image block is obtained using a super-resolution algorithm based on deep learning as a first intermediate feature; Based on the lightweight first boundary fusion model, features are extracted from adjacent image blocks of the currently traversed image block to obtain second intermediate features; Based on a lightweight first boundary fusion model, the first intermediate feature and the second intermediate feature are spliced ​​to obtain a first spliced ​​feature; Based on the first post-splicing feature and the first boundary fusion model, a block boundary fusion result of a splicing location of a currently traversed image block and the adjacent image block is obtained.

10. The video super-resolution processing method according to claim 7, characterized in that: The fusing of the block boundary at the joint of the currently traversed image block and the adjacent image block comprises: Cutting off a boundary region adjacent to the adjacent image block from the currently traversed image block to obtain a first boundary region, and cutting off a boundary region adjacent to the currently traversed image block from the adjacent image block to obtain a second boundary region; Based on the lightweight second boundary fusion model, extract features from the first boundary area and the second boundary area respectively, and splice the two extracted features to obtain a second spliced ​​feature; Based on the second post-splicing feature and the second boundary fusion model, a block boundary fusion result of a splicing location of a currently traversed image block and the adjacent image block is obtained.

11. A video super-resolution processing device, characterized in that: include: A block processing module, a texture complexity determination module, a first super-resolution processing module, a second super-resolution processing module and a super-resolution processing result acquisition module; The block processing module is used to perform block processing on the target video frame to obtain multiple image blocks, wherein the target video frame is a video frame to be processed in the target video; The texture complexity determination module is used to determine whether each image block contains a complex texture; The first super-resolution processing module is used to perform super-resolution processing on the image block that does not contain complex textures by using a first super-resolution algorithm; The second super-resolution processing module is used to perform super-resolution processing on the image block containing complex textures by using a second super-resolution algorithm, wherein the complexity of the first super-resolution algorithm is lower than the complexity of the second super-resolution algorithm, and the processing effect of the second super-resolution algorithm is better than the processing effect of the first super-resolution algorithm; The super-resolution processing result acquisition module is used to obtain the super-resolution processing result of the target video frame according to the super-resolution processing results of the multiple image blocks.

12. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the video super-resolution processing method as described in any one of claims 1 to 10.

13. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the video super-resolution processing method as described in any one of claims 1 to 10.

14. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the video super-resolution processing method as claimed in any one of claims 1 to 10.