Video processing method, device, equipment and storage medium

By segmenting and classifying the video frame sequence and dynamically adjusting the grouping method, the problem of low video frame grouping accuracy in the existing technology is solved, and more efficient resource allocation and video playback smoothness are achieved.

CN114071143BActive Publication Date: 2024-09-06CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010760076.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2024-09-06
Estimated Expiration
2040-07-31

AI Technical Summary

Technical Problem

In existing video processing technology, the GOP grouping method results in low accuracy of grouping results and unreasonable resource allocation. Especially when the video scene changes frequently, the correlation between adjacent video frames is low.

Method used

By dividing the video frame sequence into blocks, the video frame blocks are classified according to the correlation data of the motion intensity between adjacent video frames, and grouped according to the classification results. The grouping method is dynamically adjusted to improve grouping accuracy and resource allocation. Reasonableness.

Benefits of technology

It improves the accuracy of video frame sequence grouping results and the rationality of resource allocation, adapts to changes in different video scenes, and improves the smoothness of video playback and reconstruction quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114071143B
    Figure CN114071143B
Patent Text Reader

Abstract

The embodiment of the present invention proposes a video processing method, device, electronic device and computer storage medium, wherein the method performs block processing on multiple video frames in a video frame sequence respectively to obtain video frame blocks corresponding to the multiple video frames; classifies the video frame blocks corresponding to the multiple video frames according to correlation data to obtain classified video frame blocks, wherein the correlation data is data characterizing the intensity of motion between adjacent video frames in the multiple video frames; and groups the video frame sequence according to the classified video frame blocks. Since the video processing method performs block processing on the video frames and groups them according to the classification results of the video frame blocks corresponding to the video frames, rather than grouping according to the entire video frames, the obtained grouping results have higher accuracy and more reasonable resource allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video processing technology, and in particular to a video processing method, device, electronic equipment and computer storage medium. Background Art

[0002] In the existing video processing technology, the adaptive group of pictures (GOP) grouping method mainly dynamically adjusts the threshold value T according to the changes in the video scene requirements. In the case that the video scene changes frequently and the correlation between adjacent video frames is low, the result of summing the differences of all column vectors in the difference matrix of continuous video frames is used as the threshold value T to achieve dynamic adjustment of grouping according to the change of the scene. The accuracy of the obtained grouping results is relatively low, and the rationality of resource allocation is not high enough. Summary of the invention

[0003] The embodiment of the present invention is intended to provide a technical solution for video processing to solve the problem that the accuracy of the grouping result obtained according to the GOP grouping method in the prior art is relatively low.

[0004] An embodiment of the present invention provides a video processing method, the method comprising:

[0005] Performing block processing on multiple video frames in the video frame sequence respectively to obtain video frame blocks corresponding to the multiple video frames;

[0006] Classifying the video frame blocks corresponding to the multiple video frames according to the correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the multiple video frames;

[0007] The video frame sequence is grouped according to the classified video frame blocks.

[0008] Optionally, classifying the video frame blocks corresponding to the multiple video frames according to the correlation data includes:

[0009] Determine the magnitude relationship between the correlation data and at least one threshold value to obtain a first determination result;

[0010] According to the first judgment result, the video frame blocks corresponding to the multiple video frames are classified.

[0011] Optionally, classifying the video frame blocks corresponding to the multiple video frames according to the first judgment result includes:

[0012] When the first judgment result is that the correlation data is less than a first threshold, determining that the video frame block corresponding to the correlation data is a first type of video frame block;

[0013] When the first judgment result is that the correlation data is greater than or equal to a first threshold and less than a second threshold, determining that the video frame block corresponding to the correlation data is a second type of video frame block;

[0014] When the first judgment result is that the correlation data is greater than or equal to the second threshold, it is determined that the video frame block corresponding to the correlation data is a third type of video frame block.

[0015] Optionally, grouping the video frame sequence according to the classified video frame blocks includes:

[0016] Determining, according to an application scenario of the video frame sequence, at least one quantity threshold corresponding to the application scenario;

[0017] The video frame sequence is grouped according to the classified video frame blocks and the at least one quantity threshold.

[0018] Optionally, grouping the video frame sequence according to the classified video frame blocks and the at least one quantity threshold comprises:

[0019] According to the classified video frame blocks, respectively determining the number of video frame blocks of each type contained in the multiple video frames;

[0020] The video frame sequence is grouped according to the quantity of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames and the at least one quantity threshold.

[0021] Optionally, grouping the video frame sequence according to the number of video frame blocks of each type included in any pair of adjacent video frames in the multiple video frames and the at least one number threshold comprises:

[0022] Determine a magnitude relationship between a difference in the number of video frame blocks of each type included in any pair of adjacent video frames in the plurality of video frames and at least one quantity threshold, to obtain a second determination result;

[0023] The video frame sequence is grouped according to the second judgment result.

[0024] Optionally, grouping the video frame sequence according to the second judgment result includes:

[0025] When the second judgment result is that the difference in the number of a type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than the first quantity threshold, it is determined that any non-last video frame among the multiple video frames is in the first group; otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group.

[0026] Optionally, grouping the video frame sequence according to the second judgment result further includes:

[0027] When the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than the first quantity threshold, and the difference in the number of another type of video frames contained in any pair of adjacent video frames among the multiple video frames is less than the second quantity threshold, it is determined that any non-last video frame among the multiple video frames is in the first group; otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group.

[0028] Optionally, grouping the video frame sequence according to the classified video frame blocks further includes:

[0029] The video frame sequence is grouped according to the classified video frame blocks and a preset upper limit on the number of video frames in each group; wherein the upper limit is determined according to at least one of the following: a reconstruction accuracy requirement of the video frame and a complexity requirement of the video decoding end.

[0030] The embodiment of the present invention further provides a video processing device, which includes: an acquisition module, a classification module and a grouping module, wherein:

[0031] An acquisition module, used for performing block processing on multiple video frames in a video frame sequence respectively, so as to obtain video frame blocks corresponding to the multiple video frames;

[0032] a classification module, configured to classify the video frame blocks corresponding to the plurality of video frames according to correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the plurality of video frames;

[0033] A grouping module is used to group the video frame sequence according to the classified video frame blocks.

[0034] Optionally, the classification module is used to determine the size relationship between the correlation data and at least one threshold value to obtain a first determination result; and classify the video frame blocks corresponding to the multiple video frames according to the first determination result.

[0035] Optionally, the classification module is specifically used to determine that the video frame block corresponding to the correlation data is a first type of video frame block when the first judgment result is that the correlation data is less than a first threshold; determine that the video frame block corresponding to the correlation data is a second type of video frame block when the first judgment result is that the correlation data is greater than or equal to the first threshold and less than a second threshold; and determine that the video frame block corresponding to the correlation data is a third type of video frame block when the first judgment result is that the correlation data is greater than or equal to the second threshold.

[0036] Optionally, the grouping module is used to determine at least one quantity threshold corresponding to the application scenario of the video frame sequence according to the application scenario of the video frame sequence; and group the video frame sequence according to the classified video frame blocks and the at least one quantity threshold.

[0037] Optionally, the grouping module is used to determine the number of each type of video frame blocks contained in the multiple video frames according to the classified video frame blocks; and group the video frame sequence according to the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames and the at least one quantity threshold.

[0038] Optionally, the grouping module is specifically used to determine the size relationship between the difference in the number of video frame blocks of each type contained in any pair of adjacent video frames among the multiple video frames and at least one quantity threshold, to obtain a second judgment result; and group the video frame sequence according to the second judgment result.

[0039] Optionally, the grouping module is used to determine that any non-last video frame among the multiple video frames is in the first group if the second judgment result is that the difference in the number of a type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than a first quantity threshold; otherwise, determine that any non-last video frame among the multiple video frames is in the second group.

[0040] Optionally, the grouping module is further used to determine that any non-last video frame among the multiple video frames is in the first group if the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than a first quantity threshold, and the difference in the number of another type of video frames contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than a second quantity threshold; otherwise, determine that any non-last video frame among the multiple video frames is in the second group.

[0041] Optionally, a grouping module is used to group the video frame sequence according to the classified video frame blocks and a preset upper limit on the number of video frames in each group; wherein the upper limit is determined based on at least one of the following: a reconstruction accuracy requirement of the video frame and a complexity requirement of the video decoding end.

[0042] An embodiment of the present invention further provides an electronic device, comprising a processor and a memory for storing a computer program that can be run on the processor; wherein:

[0043] The processor is used to execute any one of the above-mentioned video processing methods when running the computer program.

[0044] An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned video processing methods is implemented.

[0045] It can be seen that the video processing method in the embodiment of the present invention performs block processing on multiple video frames in a video frame sequence respectively to obtain video frame blocks corresponding to the multiple video frames; classifies the video frame blocks corresponding to the multiple video frames according to correlation data to obtain classified video frame blocks, wherein the correlation data is data characterizing the intensity of motion between adjacent video frames in the multiple video frames; and groups the video frame sequence according to the classified video frame blocks. Since the video processing method performs block processing on the video frames and groups them according to the classification results of the video frame blocks corresponding to the video frames, rather than grouping according to the entire video frames, the obtained grouping results have higher accuracy and higher rationality of resource allocation.

[0046] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present invention and, together with the specification, are used to explain the technical solutions of the present invention.

[0048] Figure 1 It is a schematic diagram of the principle of an adaptive GOP grouping method in the related art;

[0049] Figure 2 is a flow chart of a video processing method according to an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of the size of PSNR values ​​for video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 1 according to an embodiment of the present invention;

[0051] Figure 4 A schematic diagram of the size of PSNR values ​​for video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 2 according to an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of the PSNR values ​​of video reconstruction using the A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 3 according to an embodiment of the present invention;

[0053] Figure 6 A schematic diagram of the time relationship of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 1 according to an embodiment of the present invention;

[0054] Figure 7 A schematic diagram of the time relationship of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 2 according to an embodiment of the present invention;

[0055] Figure 8 A schematic diagram of the time relationship of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 3 according to an embodiment of the present invention;

[0056] Fig. 9 A schematic diagram of the structure of a video processing device according to an embodiment of the present invention;

[0057] Fig.10 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the embodiments provided below are partial embodiments for implementing the present invention, rather than providing all embodiments for implementing the present invention. In the absence of conflict, the technical solutions recorded in the embodiments of the present invention can be implemented in any combination.

[0059] It should be noted that, in the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other related elements (such as steps in a method or units in a device, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in the method or apparatus including the element.

[0060] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0061] For example, the video processing method provided by the embodiment of the present invention includes a series of steps, but the video processing method provided by the embodiment of the present invention is not limited to the recorded steps. Similarly, the video image processing device provided by the embodiment of the present invention includes a series of modules, but the device provided by the embodiment of the present invention is not limited to including the modules explicitly recorded, and may also include modules required to obtain relevant information or perform processing based on information.

[0062] The embodiments of the present invention can be applied to hardware such as terminals and servers or computer systems composed of hardware, and can operate with many other general or special computing system environments or configurations, or can be implemented by a processor running computer executable code. Here, the terminal can be a thin client, a thick client, a handheld or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronic product, a network personal computer, a small computer system, etc., and the server can be a server computer system, a small computer system, a large computer system, and a distributed cloud computing technology environment including any of the above systems, etc.

[0063] Electronic devices such as terminals and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. In general, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0064] With the rapid development of cloud computing and big data technology, the amount of video data stored in cloud platforms is growing. When it reaches a massive level, it is urgent to improve the smoothness of video playback on wireless terminals. With the development of image processing technology and the dramatic increase in video data storage on cloud platforms, more and more platforms are beginning to pay attention to using video image processing technology to improve the smoothness of video data playback. Traditional video encoding algorithms are mainly used to process video images on the server side.

[0065] At present, wireless mobile terminals have a wide coverage area. When mobile users play videos, the most important thing is to solve the problem of limited network transmission capacity. Distributed Compressed Video Sensing (DCVS) is a new solution applied to the field of video transmission and processing in wireless networks. DCVS technology allows multiple related video frames to be encoded independently at the encoding end and jointly decoded at the decoding end, which makes it unnecessary for the decoding end to perform complex motion estimation and compensation, thereby reducing the complexity of the decoding end.

[0066] In the video encoding process, the video frame group or video frame group structure indicates the order of frames within and between frames in the original video stream. GOP is a group of continuous video frames in the original video sequence, and each video frame sequence consists of multiple continuous GOPs. In the DCVS framework, the purpose of GOP grouping of video frames is to use the first frame of each GOP group as a key frame and the remaining frames as non-key frames. The key frame is used to generate side information (equivalent to dictionary samples) at the decoding end to reconstruct non-key frames in combination with other information. Therefore, the video frame group structure determines the encoding mode of each video frame in the original video sequence. The grouping of GOP will affect the selection of key frames, and whether the selected key frames are representative will directly affect the quality of the dictionary samples at the decoding end, and then affect the reconstruction accuracy of non-key frames in the same group. Therefore, the accuracy of key frame selection plays a vital role in the reconstruction quality of the entire decoding end, and the problem of key frame selection is directly reflected in the GOP grouping of video frames.

[0067] When grouping video frame sequences, it should be ensured that the video frames in the same GOP group are as relevant as possible, that is, the motion changes of adjacent video frames in a GOP group should be as small as possible. Different regions in a video frame sequence have different inter-frame correlations, and it is necessary to adaptively select the appropriate grouping method based on the intensity of motion between video frames and different motion scenes. For video scenes that do not have great requirements on video reconstruction quality but have high requirements on video playback smoothness, it is necessary to focus on the speed of video transmission while ensuring the general video reconstruction effect; and for video scenes that have high requirements on reconstruction quality but can appropriately reduce the requirements on video playback smoothness, it is necessary to pay more attention to improving reconstruction quality while ensuring normal playback smoothness.

[0068] In the traditional DCVS framework, a fixed GOP length frame group structure is generally used, which seriously ignores the correlation between video frames in the video sequence and the impact of the video frame group structure on encoding complexity and decoding quality. Therefore, based on the limitations of the fixed video frame group structure, an adaptive GOP grouping is proposed. In the distributed video coding system based on compressed sensing, GOP grouping can be dynamically implemented according to the change of video scenes.

[0069] Figure 1 FIG. 1 is a schematic diagram of the principle of an adaptive GOP grouping method in the related art. Figure 1 As shown, the basic grouping module is used to implement grouping with a fixed GOP length. The adaptive GOP grouping method is based on the basic grouping module and adds a dynamic grouping separator, so that when the video scene changes, the threshold value T can be dynamically adjusted, so that different threshold values ​​T correspond to different video scenes, and then the dynamic grouping of video frames is realized according to the change of the scene; specifically, the original video frame sequence can obtain multiple image groups such as GOP1, GOP2, GOP3, GOP4 through dynamic grouping, and then the obtained multiple image groups are processed by the difference method, and then the image groups processed by the difference method are reorganized to restore the video frame sequence. Since the related technology is to group the video frame sequence according to the entire video frame, the accuracy of the obtained grouping result is relatively low, and the rationality of resource allocation is not high enough.

[0070] In order to solve the above technical problems, an embodiment of the present invention provides a video processing method. Figure 2 is a flow chart of a video processing method according to an embodiment of the present invention, such as Figure 2 As shown, the process may include:

[0071] Step 201: performing block processing on a plurality of video frames in a video frame sequence respectively to obtain video frame blocks corresponding to the plurality of video frames.

[0072] In one embodiment, a video frame sequence may include one or more videos, and multiple video frames are obtained through the video frame sequence. The multiple video frames may be obtained by performing frame processing on the video frame sequence. The specific implementation method of the frame processing is not limited here, and the implementation method of the frame processing may be any existing frame processing method.

[0073] In one example, the block processing can perform non-overlapping block processing on a single video frame (image). Specifically, the single video frame can be divided into at least two video frame blocks through the non-overlapping block processing. Here, the single video frame can be divided into multiple video frame blocks of equal sizes through the non-overlapping block processing, and the single video frame can be divided into multiple video frame blocks of unequal sizes through the non-overlapping block processing. For example, the single video frame can be divided into 4, 6 or 9 video frame blocks of equal sizes through the non-overlapping block processing.

[0074] For the implementation method of separately performing block processing on multiple video frames in a video frame sequence to obtain video frame blocks corresponding to the multiple video frames, exemplarily, all video frames in the video frame sequence may be separately subjected to non-overlapping block processing to obtain video frame blocks corresponding to all video frames. For example, when the number of the multiple video frames is 100 and four video frame blocks can be obtained by performing non-overlapping block processing on a single video frame, 400 video frame blocks can be obtained by separately performing block processing on the multiple video frames.

[0075] Step 202: Classify the video frame blocks corresponding to the multiple video frames according to the correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the multiple video frames.

[0076] As an implementation mode, the data of the intensity of motion between adjacent video frames in the multiple video frames may be the data of the intensity of motion between video frame blocks corresponding to two consecutive video frames in the multiple video frames; the video frame blocks corresponding to the multiple video frames are classified according to the correlation data to obtain the classified video frame blocks, and the video frame blocks corresponding to the multiple video frames are classified according to the size of the correlation data between the video frame blocks to obtain the classified video frame blocks. For example, when the size of the correlation data is within the first range, the video frame corresponding to the correlation data is determined to be a first type of video frame block, when the size of the correlation data is within the second range, the video frame corresponding to the correlation data is determined to be a second type of video frame block, and when the size of the correlation data is within the third range, the video frame corresponding to the correlation data is determined to be a third type of video frame block..., and then the classified video frame blocks can be obtained; here, there is no specific restriction on the number of types determined by classifying the video frame blocks corresponding to the multiple video frames, for example, they can be divided into 2 types of video frame blocks, or they can be divided into 3 types of video frame blocks.

[0077] Step 203: grouping the video frame sequence according to the classified video frame blocks.

[0078] In one embodiment, the video frame sequence is grouped according to the classified video frame blocks. The video frame sequence can be grouped according to the types of the classified video frame blocks. Specifically, the grouping of each video frame in the video frame sequence can be determined in sequence according to the types of each video frame block in the classified video frame blocks belonging to the same video frame. Specifically, it can be determined whether a non-first video frame in the video frame sequence is in the same group as the corresponding previous video frame, or in a different group from the corresponding previous video frame.

[0079] In practical applications, steps 201 to 203 can be implemented using a processor in an electronic device, and the processor can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), an FPGA, a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0080] It can be seen that the video processing method in the embodiment of the present invention performs block processing on multiple video frames in a video frame sequence respectively to obtain video frame blocks corresponding to the multiple video frames; classifies the video frame blocks corresponding to the multiple video frames according to correlation data to obtain classified video frame blocks, wherein the correlation data is data characterizing the intensity of motion between adjacent video frames in the multiple video frames; and groups the video frame sequence according to the classified video frame blocks. Since the video processing method performs block processing on the video frames and groups them according to the classification results of the video frame blocks corresponding to the video frames, rather than grouping according to the entire video frames, the obtained grouping results have higher accuracy and higher rationality of resource allocation.

[0081] In one implementation, the correlation data may represent an energy difference between video frame blocks corresponding to at least two video frames among the plurality of video frames.

[0082] In one example, at least two of the multiple video frames may be any at least two of the multiple video frames; the at least two video frames may be any two consecutive video frames of the multiple video frames, or any two non-consecutive video frames of the multiple video frames.

[0083] In one example, the at least two video frames include a previous video frame and a next video frame of any middle video frame in the plurality of video frames; the middle video frames represent other video frames in the video frame sequence except the first video frame and the last video frame.

[0084] Here, when the number of at least two video frames in the multiple video frames is greater than 2, the energy difference between the video frame blocks corresponding to the at least two video frames represents: the energy difference between the video frame blocks corresponding to the at least two video frames.

[0085] The energy difference between two video frame blocks can be obtained by subtracting the energy between the two video frame blocks to obtain a corresponding energy difference value, and then performing corresponding mathematical operations on the obtained energy difference value; in a specific example, the energy difference between the two video frame blocks can be obtained by dividing the energy difference between the two video frame blocks by a first energy value, where the first energy value can be a preset fixed-size energy value or a variable-size energy value. For example, the first energy can be the energy value of any one of the two video frame blocks.

[0086] Furthermore, the energy difference between the video frame blocks corresponding to at least two video frames in the multiple video frames may also refer to the energy difference between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame in the multiple video frames. In this case, the i-th video frame block in the next video frame may be The i-th video frame block corresponding to the previous video frame can be Then the energy difference between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame corresponding to the frame sub-block can be Among them, ||·|| 2 represents the 2-norm. In a specific example, the energy difference between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame can be Where i is a natural integer greater than or equal to 1, k is any non-zero positive number, and the energy difference between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame can also be Here, t+1 represents the time point of the next video frame after any intermediate video frame, and t-1 represents the time point of the previous video frame before any intermediate video frame. Represents the energy of the i-th video frame block corresponding to the previous video frame.

[0087] In one implementation, classifying the video frame blocks corresponding to the multiple video frames according to the correlation data includes:

[0088] Determine the magnitude relationship between the correlation data and at least one threshold value to obtain a first determination result;

[0089] According to the first judgment result, the video frame blocks corresponding to the multiple video frames are classified.

[0090] In one example, the size relationship between the correlation data and at least one threshold is determined to obtain a first judgment result. The method may be to determine multiple corresponding threshold ranges based on the number of at least one threshold, and then determine the size relationship between the correlation data and the multiple thresholds respectively to determine the size range of the correlation data, and then determine the threshold range of the correlation data. In a specific example, when the multiple thresholds include threshold A and threshold B, and threshold B is greater than threshold A, the corresponding multiple threshold ranges may be determined to be: less than threshold A, greater than or equal to threshold A and less than threshold B, and greater than or equal to threshold B. The first judgment result may be that the correlation data is less than threshold A, or that the correlation data is greater than or equal to threshold A and less than threshold B, or that the correlation data is greater than or equal to threshold B. Of course, different threshold ranges may be determined based on the number of thresholds, and then different judgment results may be determined.

[0091] For the implementation method of classifying the video frame blocks corresponding to the multiple video frames according to the first judgment result, exemplarily, the video frame blocks corresponding to the multiple video frames may be classified according to the threshold range of the correlation data determined by the first judgment result.

[0092] In one implementation, classifying the video frame blocks corresponding to the multiple video frames according to the first judgment result includes:

[0093] When the first judgment result is that the correlation data is less than a first threshold, determining that the video frame block corresponding to the correlation data is a first type of video frame block;

[0094] When the first judgment result is that the correlation data is greater than or equal to a first threshold and less than a second threshold, determining that the video frame block corresponding to the correlation data is a second type of video frame block;

[0095] When the first judgment result is that the correlation data is greater than or equal to the second threshold, it is determined that the video frame block corresponding to the correlation data is a third type of video frame block.

[0096] In one embodiment, the first threshold may be The second threshold may be Among them, max[e(x t-1 ,x t+1 )] represents the maximum value of the energy difference between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame in multiple video frames, min[e(x t-1 ,x t+1 ) represents the minimum value between the video frame blocks corresponding to the previous video frame and the next video frame of any intermediate video frame in the multiple video frame blocks, the first type of video frame block may be an approximately unchanged block, which may indicate that the energy between the video frame blocks corresponding to at least two video frames is approximately unchanged, the second type of video frame block may be a slowly changing block, which may indicate that the energy between the video frame blocks corresponding to at least two video frames is slowly changing, and the third type of video frame block may be a rapidly changing block, which may indicate that the energy between the video frame blocks corresponding to at least two video frames is rapidly changing.

[0097] When the first judgment result is that the correlation data is less than a first threshold, determining that the video frame block corresponding to the correlation data is a first type of video frame block may be implemented by: In the case of The corresponding video frame block is an approximately unchanged block; for the implementation method of determining that the video frame block corresponding to the correlation data is a second type of video frame block when the first judgment result is that the correlation data is greater than or equal to the first threshold and less than the second threshold, it can be in In the case of The corresponding video frame block is a slowly changing block; when the first judgment result is that the correlation data is greater than or equal to the second threshold, determining that the video frame block corresponding to the correlation data is a third type of video frame block can be In the case of The corresponding video frames are fast-changing frames.

[0098] In one embodiment, grouping the video frame sequence according to the classified video frame blocks includes: determining at least one quantity threshold corresponding to the application scenario according to the application scenario of the video frame sequence; and grouping the video frame sequence according to the classified video frame blocks and the at least one quantity threshold.

[0099] Here, the application scenario of the video frame sequence may be a scenario where the reconstruction quality of the video frame sequence is low but the smoothness of the video frame sequence is high, or a scenario where the reconstruction quality of the video frame sequence is high but a certain playback smoothness is sacrificed.

[0100] In one example, based on the application scenario of the video frame sequence, at least one quantity threshold corresponding to the application scenario is determined. This may be a case where the application scenario of the video frame sequence is a scenario that has low requirements on the reconstruction quality of the video frame sequence but high requirements on the smoothness of the video frame sequence, then a corresponding quantity threshold is determined.

[0101] In a possible implementation, the video frame sequence is grouped according to the classified video frame blocks and the at least one quantity threshold. The number of each type of video frame blocks contained in the multiple video frames may be determined separately according to the classified video frame blocks; and the video frame sequence is grouped according to the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames and the at least one quantity threshold.

[0102] As an implementation manner, according to the classified video frame blocks, the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames is determined respectively, which may be based on the number of each type of video frame blocks contained in each video frame in the classified video frame blocks, and the number of each type of video frame blocks contained in the multiple video frames is determined respectively; according to the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames and the at least one quantity threshold, the video frame sequence is grouped, which may be based on the size of the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames.

[0103] Furthermore, multiple video frames corresponding to the video frame sequence can be traversed from the first video frame of the multiple video frames until the end, and the dynamic GOP grouping can be completed according to the size of the number of each type of video frame blocks contained in any non-last video frame of the multiple video frames and the corresponding next video frame. For the grouping of the last video frame of the multiple video frames, it can be directly determined that the last video frame is in a preset grouping, for example, it can be determined that the last video frame is in the last grouping.

[0104] In one implementation, grouping the video frame sequence according to the number of video frame blocks of each type included in any pair of adjacent video frames in the multiple video frames and the at least one number threshold comprises:

[0105] Determine a magnitude relationship between a difference in the number of video frame blocks of each type included in any pair of adjacent video frames in the plurality of video frames and at least one quantity threshold, to obtain a second determination result;

[0106] The video frame sequence is grouped according to the second judgment result.

[0107] In one implementation, the difference in the number of video frame blocks of each type contained in any pair of adjacent video frames in the multiple video frames may be the absolute value of the difference in the number of video frame blocks of each type contained in any non-last video frame in the multiple video frames and the corresponding next video frame; determining the size relationship between the difference in the number of video frame blocks of each type contained in any pair of adjacent video frames in the multiple video frames and at least one quantity threshold to obtain a second judgment result may be to first determine the corresponding threshold range based on the number of at least one quantity threshold, for example, when the number of quantity thresholds includes two quantity thresholds, quantity threshold A and quantity threshold B, and quantity threshold B is greater than quantity threshold A, the threshold ranges that can be obtained are: less than threshold A, greater than or equal to threshold A and less than threshold B, and greater than or equal to threshold B, thereby determining that any non-last video frame in the multiple video frames is less than threshold B. The threshold range of the difference between the number of video frame blocks of each type contained in the first video frame and the corresponding next video frame, here, different quantity thresholds can also be set for the difference in the number of different types of video frame blocks, specifically, the quantity threshold 1 can be set for the first type of video frame block, the quantity threshold 2 can be set for the second type of video frame block, and the quantity threshold 3 can be set for the third type of video frame block, so as to determine the threshold range of the difference between the number of video frame blocks of each type contained in any non-last video frame in the multiple video frames and the corresponding next video frame; for the implementation method of grouping the video frame sequence according to the second judgment result, the video frame sequence can be grouped according to the threshold range of the difference between the number of video frame blocks of each type contained in any non-last video frame in the multiple video frames and the corresponding next video frame. Of course, different threshold ranges can be determined according to the number of thresholds, and then different judgment results can be determined, and then different grouping situations can be determined.

[0108] In one implementation, grouping the video frame sequence according to the second judgment result includes:

[0109] When the second judgment result is that the difference in the number of a type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than the first quantity threshold, it is determined that any non-last video frame among the multiple video frames is in the first group; otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group.

[0110] As an implementation method, for a scene with high requirements for video smoothness but not high requirements for video reconstruction quality (video scene 1), the difference in the number of video frame blocks of one type contained in any non-last video frame among multiple video frames and the corresponding next video frame may be the difference in the number of video frame blocks of the first type, the second type, or the third type contained in any non-last video frame among multiple video frames and the corresponding next video frame, wherein the difference in the number of video frame blocks of the second type contained in any non-last video frame among multiple video frames and the corresponding next video frame may be The difference between the number of the third type of video frame blocks contained in any non-last video frame among the plurality of video frames and the corresponding next video frame is in, represents the number of the second type of video frame blocks contained in any non-last video frame, represents the number of video frame blocks of the second type contained in the corresponding next video frame, Indicates the number of the third type of video frame blocks contained in any non-last video frame, Indicates the number of third type video frame blocks contained in the corresponding next video frame; the first quantity threshold can be determined based on technical experience, for example, the first quantity threshold can be M, M=3, the first group can be the group where the previous video frame corresponding to any non-last video frame is located, and the second group can be the next group of the group where the previous video frame corresponding to any non-last video frame is located.

[0111] For the implementation method in which the second judgment result is that the difference in the number of one type of video frame blocks contained in any non-last video frame among multiple video frames and the corresponding next video frame is less than the first quantity threshold, it may be that if the difference in the number of second type of video frame blocks contained in any non-last video frame among multiple video frames and the corresponding next video frame is less than M, it is determined that any non-last video frame among the multiple video frames is in the first group; otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group; it may be that it is determined that any non-last video frame among the multiple video frames and the corresponding previous video frame are in the same group; otherwise, it is determined that any non-last video frame among the multiple video frames and the corresponding previous video frame are in different groups.

[0112] In one implementation, grouping the video frame sequence according to the second judgment result further includes:

[0113] When the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than the first quantity threshold, and the difference in the number of another type of video frames contained in any pair of adjacent video frames among the multiple video frames is less than the second quantity threshold, it is determined that any non-last video frame among the multiple video frames is in the first group; otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group.

[0114] Here, for a scene that does not require high video smoothness but has high video reconstruction quality requirements (video scene 2), when one type is determined to be a first type of video frame block, another type included in any non-last video frame in the multiple video frames and the corresponding next video frame can be a video frame block of another type other than the first type of video frame block, for example, a second type of frame block or a third type of frame block, which is not specifically limited here. The second quantity threshold can be a quantity of 2 or a quantity of 1. When the corresponding second quantity threshold is 1, if it is less than the second quantity threshold, it can only be the number zero.

[0115] For the implementation method in which the second judgment result is that the difference in the number of one type of video frame blocks contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than the first number threshold, and the difference in the number of another type of video frames contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than the second number threshold, it can be that the difference in the number of second type of video frame blocks contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than M, and the difference in the number of first type or third type of video frames contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than 1 (equivalent to 0), it is determined that any non-last video frame among the multiple video frames is in the first group, otherwise, it is determined that any non-last video frame among the multiple video frames is in the second group, it can be determined that any non-last video frame among the multiple video frames and the corresponding previous video frame are in the same group, otherwise, it is determined that any non-last video frame among the multiple video frames and the corresponding previous video frame are in different groups.

[0116] In one embodiment, the grouping of the video frame sequence according to the classified video frame blocks includes: grouping the video frame sequence according to the classified video frame blocks and a preset upper limit on the number of video frames in each group, wherein the upper limit is determined based on at least one of the following: a reconstruction accuracy requirement of the video frame, a complexity requirement of the video decoding end.

[0117] As an implementation mode, the video frame sequence is grouped according to the classified video frame blocks and the preset upper limit of the number of video frames in each group. It can be that after determining that a video frame in multiple videos is in the first group according to the classified video frame blocks, it is further determined whether the number of video frames in the first group reaches the preset upper limit of the number of video frames in each group. If the preset upper limit of the number of video frames in each group is not reached, the video frame is divided into the first group. If the preset upper limit of the number of video frames in each group is reached, the video frame is divided into the second group. Specifically, the preset upper limit of the number of video frames in each group can be 6. When it is determined that a video frame in multiple videos and the corresponding previous video frame are in the same group, such as the first group, according to the classified video frame blocks, it is determined that the video frame is the number of video frames in the first group. When the video frame is the 7th video frame in the first group, the video frame is moved from the first group to the next group of the first group, such as the second group, which is conducive to improving the quality of video frame reconstruction and reducing the reconstruction time, and better realizing the reasonable allocation of resources.

[0118] Here, the reconstruction accuracy of the video frame and the complexity of the decoding end are in conflict with each other, and a suitable upper limit of the number needs to be selected to balance the reconstruction accuracy of the video frame and the complexity of the decoding end.

[0119] In the video processing method proposed in the embodiment of the present invention, the GOP grouping methods for video scene 1 and video scene 2 are represented by A-GOP-S1 and A-GOP-S2 respectively, and the fixed GOP grouping method with 3 video frames per group is represented by F-GOP-3.

[0120] In order to verify the reconstruction quality of different grouping methods, the Peak Signal to Noise Ratio (PSNR) values ​​of multiple video sequences reconstructed using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods were compared. Specifically, Figure 3 Schematic diagram of the PSNR values ​​of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 1 according to an embodiment of the present invention. Figure 4 Schematic diagram of the PSNR values ​​of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 2 according to an embodiment of the present invention. Figure 5 Schematic diagram of the PSNR values ​​of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 3 according to an embodiment of the present invention, respectively. Figure 3 , Figure 4 and Figure 5As shown, the horizontal axis is the sampling rate in Hertz Hz, and the vertical axis is the PSNR in dB, where the heights of the rectangular column filled with diagonal stripes, the rectangular column not filled with diagonal stripes, and the rectangular column completely filled with diagonal stripes represent the PSNR values ​​of the video reconstruction using the F-GOP-3 method, the A-GOP-S1 method, and the A-GOP-S2 method, respectively. Figure 3 , Figure 4 and Figure 5 It can be seen that the PSNR value of video reconstruction using the A-GOP-S2 method is significantly greater than the PSNR value of video reconstruction using the A-GOP-S1 method or the F-GOP-3 method. In other words, the A-GOP-S2 method is obviously more suitable for scenarios with high requirements for reconstruction quality.

[0121] In order to verify the time complexity of different grouping methods, the time relationship of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for multiple video sequences was compared. Figure 6 This is a schematic diagram of the time size of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 1 according to an embodiment of the present invention. Figure 7 This is a schematic diagram of the time size of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 2 according to an embodiment of the present invention. Figure 8 Schematic diagram of the time size of video reconstruction using A-GOP-S1, A-GOP-S2, and F-GOP-3 methods for video sequence 3 according to an embodiment of the present invention, respectively. Figure 6 , Figure 7 and Figure 8 As shown, the horizontal axis represents the sampling rate in Hz, and the vertical axis represents the time in seconds S, where the solid line, the dashed line with a larger spacing, and the dashed line with a smaller spacing represent the time for video reconstruction using the F-GOP-3 method, the A-GOP-S1 method, and the A-GOP-S2 method, respectively. Figure 6 , Figure 7 and Figure 8 It can be seen that the time required for video reconstruction using the A-GOP-S1 method is lower than that of the A-GOP-S2 and F-GOP-3 methods, and is more suitable for scenarios with low requirements on video reconstruction quality but high requirements on playback smoothness.

[0122] Based on the video processing method proposed in the above-mentioned embodiment, an embodiment of the present invention proposes a video processing device.

[0123] Fig. 9 FIG. 1 is a schematic diagram of the structure of an image processing device according to an embodiment of the present invention. Figure 3As shown, the device may include: an acquisition module 901, a classification module 902 and a grouping module 903, wherein:

[0124] An acquisition module 901 is used to perform block processing on multiple video frames in a video frame sequence to obtain video frame blocks corresponding to the multiple video frames;

[0125] A classification module 902 is used to classify the video frame blocks corresponding to the multiple video frames according to the correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the multiple video frames;

[0126] The grouping module 903 is configured to group the video frame sequence according to the classified video frame blocks.

[0127] Optionally, the classification module 902 is used to determine the size relationship between the correlation data and at least one threshold value to obtain a first determination result; and classify the video frame blocks corresponding to the multiple video frames according to the first determination result.

[0128] Optionally, the classification module 902 is specifically used to determine that the video frame block corresponding to the correlation data is a first type of video frame block when the first judgment result is that the correlation data is less than a first threshold; determine that the video frame block corresponding to the correlation data is a second type of video frame block when the first judgment result is that the correlation data is greater than or equal to the first threshold and less than a second threshold; and determine that the video frame block corresponding to the correlation data is a third type of video frame block when the first judgment result is that the correlation data is greater than or equal to the second threshold.

[0129] Optionally, the grouping module 903 is used to determine at least one quantity threshold corresponding to the application scenario of the video frame sequence according to the application scenario of the video frame sequence; and group the video frame sequence according to the classified video frame blocks and the at least one quantity threshold.

[0130] Optionally, the grouping module 903 is used to determine the number of each type of video frame blocks contained in the multiple video frames according to the classified video frame blocks; and group the video frame sequence according to the number of each type of video frame blocks contained in the adjacent video frames of any one of the multiple video frames and the at least one quantity threshold.

[0131] Optionally, the grouping module 903 is specifically used to determine the size relationship between the difference in the number of video frame blocks of each type contained in any pair of adjacent video frames among the multiple video frames and at least one quantity threshold, to obtain a second judgment result; and group the video frame sequence according to the second judgment result.

[0132] Optionally, the grouping module 903 is used to determine that any non-last video frame among the multiple video frames is in the first group when the second judgment result is that the difference in the number of a type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than a first quantity threshold; otherwise, determine that any non-last video frame among the multiple video frames is in the second group.

[0133] Optionally, the grouping module 903 is also used to determine that any non-last video frame among the multiple video frames is in the first group if the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames among the multiple video frames is less than a first quantity threshold, and the difference in the number of another type of video frames contained in any non-last video frame among the multiple video frames and the corresponding next video frame is less than a second quantity threshold; otherwise, determine that any non-last video frame among the multiple video frames is in the second group.

[0134] Optionally, the grouping module 903 is used to group the video frame sequence according to the classified video frame blocks and a preset upper limit on the number of video frames in each group, wherein the upper limit is determined based on at least one of the following: a reconstruction accuracy requirement of the video frame and a complexity requirement of the video decoding end.

[0135] In actual applications, the acquisition module 901, the classification module 902 and the grouping module 903 can be implemented using a processor in an electronic device, and the above processor can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

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

[0137] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0138] Specifically, a computer program instruction corresponding to a video processing method in this embodiment can be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the computer program instruction corresponding to a video processing method in the storage medium is read or executed by an electronic device, any one of the video processing methods in the aforementioned embodiments is implemented.

[0139] Based on the same technical concept as the above embodiments, see Fig.10 , which shows an electronic device provided by an embodiment of the present invention, which may include: a memory 1001 and a processor 1002; wherein,

[0140] The memory 1001 is used to store computer programs and data;

[0141] The processor 1002 is configured to execute the computer program stored in the memory to implement any one of the video processing methods in the foregoing embodiments.

[0142] In practical applications, the memory 1001 may be a volatile memory, such as RAM; or a non-volatile memory, such as ROM, flash memory, hard disk drive (HDD) or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 1002.

[0143] The processor 1002 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It is understandable that for different augmented reality cloud platforms, the electronic device used to implement the processor function may also be other, which is not specifically limited in the embodiment of the present invention.

[0144] In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present invention can be used to execute the method described in the above method embodiment. The specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0145] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0146] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0147] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0148] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0150] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A video processing method, characterized in that: The method comprises: Performing block processing on multiple video frames in the video frame sequence respectively to obtain video frame blocks corresponding to the multiple video frames; Classifying the video frame blocks corresponding to the multiple video frames according to the correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the multiple video frames; The video frame sequence is grouped according to the classified video frame blocks; including: determining at least one quantity threshold value corresponding to the application scenario according to the application scenario of the video frame sequence; determining the number of video frame blocks of each type contained in the multiple video frames according to the classified video frame blocks; judging the size relationship between the difference in the number of video frame blocks of each type contained in any pair of adjacent video frames in the multiple video frames and at least one quantity threshold value, and obtaining a second judgment result; and grouping the video frame sequence according to the second judgment result; Wherein, according to the second judgment result, the video frame sequence is grouped; including: when the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames in a plurality of video frames is less than a first quantity threshold, and the difference in the number of another type of video frames contained in any pair of adjacent video frames in a plurality of video frames is less than a second quantity threshold, determining that any non-last video frame in the plurality of video frames is in a first group; otherwise, determining that any non-last video frame in the plurality of video frames is in a second group; wherein the first group is the group where the previous video frame corresponding to any non-last video frame is located, and the second group is the next group of the group where the previous video frame corresponding to any non-last video frame is located.

2. The method according to claim 1, characterized in that The classifying the video frame blocks corresponding to the multiple video frames according to the correlation data includes: Determine the magnitude relationship between the correlation data and at least one threshold value to obtain a first determination result; According to the first judgment result, the video frame blocks corresponding to the multiple video frames are classified.

3. The method according to claim 2, characterized in that The classifying the video frame blocks corresponding to the multiple video frames according to the first judgment result includes: When the first judgment result is that the correlation data is less than a first threshold, determining that the video frame block corresponding to the correlation data is a first type of video frame block; When the first judgment result is that the correlation data is greater than or equal to a first threshold and less than a second threshold, determining that the video frame block corresponding to the correlation data is a second type of video frame block; When the first judgment result is that the correlation data is greater than or equal to the second threshold, it is determined that the video frame block corresponding to the correlation data is a third type of video frame block.

4. The method according to claim 1, characterized in that The step of grouping the video frame sequence according to the classified video frame blocks further comprises: The video frame sequence is grouped according to the classified video frame blocks and a preset upper limit on the number of video frames in each group; wherein the upper limit is determined according to at least one of the following: a reconstruction accuracy requirement of the video frame and a complexity requirement of the video decoding end.

5. A video processing device, characterized in that: The device comprises: an acquisition module, a classification module and a grouping module, wherein: An acquisition module is used to perform block processing on multiple video frames in a video frame sequence to obtain video frame blocks corresponding to the multiple video frames; a classification module, configured to classify the video frame blocks corresponding to the plurality of video frames according to correlation data to obtain classified video frame blocks, wherein the correlation data is data representing the intensity of motion between adjacent video frames in the plurality of video frames; A grouping module, for grouping the video frame sequence according to the classified video frame blocks; comprising: for determining at least one quantity threshold value corresponding to the application scenario according to the application scenario of the video frame sequence; for determining the number of each type of video frame blocks contained in the multiple video frames according to the classified video frame blocks; for determining the size relationship between the difference in the number of each type of video frame blocks contained in any pair of adjacent video frames in the multiple video frames and at least one quantity threshold value to obtain a second judgment result; and for grouping the video frame sequence according to the second judgment result; Wherein, it is used to group the video frame sequence according to the second judgment result; comprising: when the second judgment result is that the difference in the number of one type of video frame blocks contained in any pair of adjacent video frames in a plurality of video frames is less than a first quantity threshold, and the difference in the number of another type of video frames contained in any pair of adjacent video frames in a plurality of video frames is less than a second quantity threshold, determining that any non-last video frame in the plurality of video frames is in the first group; otherwise, determining that any non-last video frame in the plurality of video frames is in the second group; wherein the first group is the group where the previous video frame corresponding to any non-last video frame is located, and the second group is the next group of the group where the previous video frame corresponding to any non-last video frame is located.

6. An electronic device, characterized in that: comprising a processor and a memory for storing a computer program capable of running on the processor; wherein, When the processor is used to run the computer program, it executes the video processing method according to any one of claims 1 to 4.

7. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the video processing method according to any one of claims 1 to 4 is implemented.