Film source scene complexity analysis method and system based on compressed information

文档序号:1675887 发布日期:2019-12-31 浏览:22次 中文

阅读说明:本技术 基于压缩信息的片源场景复杂度分析方法和系统 (Film source scene complexity analysis method and system based on compressed information ) 是由 舒倩 于 2019-09-20 设计创作,主要内容包括:本发明提出一种基于压缩信息的片源场景复杂度分析方法和系统。本发明方法用运动矢量强度来表示片源内各场景复杂度;同时设置标识符控制场景复杂度计算开关,避免对每个场景复杂度逐一计算,进一步优化计算量。(The invention provides a film source scene complexity analysis method and system based on compressed information. The method uses the motion vector intensity to represent the complexity of each scene in a film source; meanwhile, an identifier is set to control a scene complexity calculating switch, so that the complexity of each scene is prevented from being calculated one by one, and the calculated amount is further optimized.)

1. A method for analyzing complexity of a film source scene based on compressed information is characterized by comprising the following steps:

calculating the complexity of the current scene;

acquiring the current scene number of film sources and the current piecewise complexity of the film sources; the current film source segmentation complexity comprises the complexity of each scene of the current film source and the scene aging with the same complexity;

and acquiring the overall complexity of the current film source.

2. The method of claim 1, wherein the calculating the complexity of the current scene further comprises:

and assigning initial values to the scene judgment frame, the scene quantity, the scene parameter set and the first temporary variable.

3. The method of claim 2, wherein the scene decision frame is assigned with a first frame, the scene number is assigned with an initial value of 1, and the scene parameter set is assigned with an initial value of { Thres ™K}, a first temporary variable temp1Is 1;

wherein, ThresKBit _ cur/bit _ next; bit _ cur and bit _ next respectively represent the bits of the current scene judgment frame and the frame after the playing sequence number of the current scene judgment frame.

4. The method of claim 3, wherein the picture-source scene complexity analysis method based on compressed information is characterized in that

The complexity formula for calculating the current scene is as follows:

weightxi,j=|1/2*wb-j|、weightyi,j=|1/2*hb-i|;

wherein, comKRepresenting the complexity of the Kth scene in the current film source; weight xi,j、weightyi,jRespectively representing the first and second position weights of the ith row and jth column block of the current scene judgment frame; wb and hb respectively represent the column width and the line width of the image in units of blocks; mvxi,j、mvyi,jRespectively representing the x-axis and y-axis components of the motion vector of the ith row and jth column block; sum and | respectively represent summation and absolute value operation.

5. The method as claimed in claim 4, wherein the obtaining the current scene number and the current segmentation complexity comprises:

step A1: if I frames exist in the frames which are not judged by the current film source or numI & gt Thres is satisfiedIWb and hb frames, setting the frame with the minimum play sequence number in the frames meeting the condition as a scene judgment frame, and enabling a second temporary variable temp2The minimum playing sequence number is obtained, and then step A2 is carried out; otherwise, the scene judgment frame is judged to be unsuccessfully set, the statistics of the scene number K is completed, and the second temporary variable temp is made2The playing sequence number of the last frame of the current film source is updated, and then the scene aging L with the same complexity is updatedK=temp2-temp1+1, entering the step of acquiring the overall complexity of the current film source; wherein, numI, ThresIRespectively representing the number of intra-prediction blocks of the current frame, the threshold of I block, ThresI>0.8;

Step A2: calculating a scene complexity change identifier delta;

Figure FDA0002208523280000021

step A3: if the scene complexity change identifier δ is 1, go to step a 4; otherwise, go back to step A1;

step A4: updating the scene timeliness L with the same complexity firstlyK=temp2-temp1A scene parameter set Ω ═ Ω U { bit _ cur/bit _ next }, a first temporary variable temp1=temp2(ii) a Then, calculating: complexity of K-K +1 scenario

Figure FDA0002208523280000022

6. The method for analyzing scene complexity of a film source based on compressed information as claimed in claim 5, wherein the obtaining of the overall complexity of the current film source specifically comprises:

7. a system for analyzing complexity of a scene of a film source based on compressed information, the system comprising:

the first scene complexity calculating module is used for calculating the complexity of the current scene;

the film source scene quantity and segmentation complexity calculating device is used for acquiring the current film source scene quantity and the current film source segmentation complexity; the current film source segmentation complexity comprises the complexity of each scene of the current film source and the scene aging with the same complexity;

and the film source overall complexity calculating module is used for acquiring the current film source overall complexity.

8. The system for analyzing complexity of scene source based on compressed information according to claim 7, further comprising an initialization module, connected to the current scene complexity calculating module, for assigning initial values to the scene decision frame, the number of scenes, the scene parameter set, and the first temporary variable.

9. The system of claim 8, wherein the scene decision frame is assigned with a first frame, the scene number is assigned with a first value of 1, and the scene parameter set is assigned with a first value of { Thres ™K}, a first temporary variable temp1Is 1;

wherein, ThresKBit _ cur/bit _ next; bit _ cur and bit _ next respectively represent the bits of the current scene judgment frame and the frame after the playing sequence number of the current scene judgment frame.

10. The system for analyzing complexity of a scene from a film source based on compressed information according to claim 9, wherein the calculating complexity of the current scene is specifically:

Figure FDA0002208523280000031

weightxi,j=|1/2*wb-j|、weightyi,j=|1/2*hb-i|;

wherein, comKRepresenting the complexity of the Kth scene in the current film source; weight xi,j、weightyi,jRespectively representing the first and second position weights of the ith row and jth column block of the current scene judgment frame; wb and hb respectively represent the column width and the line width of the image in units of blocks; mvxi,j、mvyi,jRespectively representing the x-axis and y-axis components of the motion vector of the ith row and jth column block; sum and | respectively represent summation and absolute value operation.

11. The system of claim 10, wherein the means for calculating the current number of film source scenes and the complexity of segmentation comprises:

a first judgment processing module for judging if there is I frame or num I > Thres in the frame not judged by the current film sourceIWb and hb frames, setting the frame with the minimum play sequence number in the frames meeting the condition as a scene judgment frame, and enabling a second temporary variable temp2Entering a scene complexity change identifier calculation module for the minimum playing sequence number; otherwise, the scene judgment frame is judged to be unsuccessfully set, the statistics of the scene number K is completed, and the second temporary variable temp is made2The playing sequence number of the last frame of the current film source is updated, and then the scene aging L with the same complexity is updatedK=temp2-temp1+1, entering a film source overall complexity calculating module;

wherein, numI, ThresIRespectively representing the number of intra-prediction blocks of the current frame, the threshold of I block, ThresI>0.8;

The scene complexity change identifier calculation module is used for calculating a scene complexity change identifier delta;

Figure FDA0002208523280000032

the second judgment processing module is used for judging whether the scene complexity change identifier delta is 1 or not, and entering a variable parameter updating and second scene complexity calculating module; otherwise, the first judgment processing module is returned.

A variable parameter updating and second scene complexity calculating module for updating the scene aging L with the same complexity firstlyK=temp2-temp1A scene parameter set Ω ═ { bit _ cur/bit _ next }, a first temporary variable temp1=temp2(ii) a The complexity of the K-K +1 scene is then calculated

Figure FDA0002208523280000033

12. The system for analyzing scene complexity of film source based on compressed information according to claim 11, wherein the obtaining of the overall complexity of the current film source specifically comprises:

Figure FDA0002208523280000041

Technical Field

The invention relates to the technical field of video coding, in particular to a method and a system for analyzing complexity of a film source scene based on compressed information.

Background

The complexity analysis of the film source is one of the methods for improving the performance of the encoding and transcoding: if the complexity of the film source is predicted, the encoder and the transcoder can improve the performance by selecting encoding and transcoding parameters more suitable for the current film source; and if the coding and transcoding algorithm is designed aiming at the characteristics of the film source, the code rate can be more reasonably distributed, and the rate distortion performance is further improved. On the other hand, when performing the encoding and decoding on-line based on the slice source analysis, the system usually has the requirement of real-time performance, so the adopted algorithm needs low calculation amount. Meanwhile, although the actual film source has diversity, only the motion attribute is a factor which has the largest influence on code rate distribution, and when the film source has compressed information, if a film source analysis method is designed based on the information, unnecessary calculation can be avoided, and the real-time performance of the algorithm is further improved.

Disclosure of Invention

The embodiment of the invention aims to provide a method for analyzing complexity of a film source scene based on compressed information, and aims to solve the problem that the complexity analysis calculation amount of the film source scene in the prior art is large.

The embodiment of the invention is realized in such a way that a method for analyzing the complexity of a film source scene based on compressed information comprises the following steps:

calculating the complexity of the current scene;

acquiring the current scene number of film sources and the current piecewise complexity of the film sources; the current film source segmentation complexity comprises the complexity of each scene of the current film source and the scene aging with the same complexity;

and acquiring the overall complexity of the current film source.

Further, the calculating the complexity of the current scene further comprises:

and assigning initial values to the scene judgment frame, the scene quantity, the scene parameter set and the first temporary variable.

Another objective of an embodiment of the present invention is to provide a system for analyzing complexity of a film source scene based on compressed information, where the system includes:

the first scene complexity calculating module is used for calculating the complexity of the current scene;

the film source scene quantity and segmentation complexity calculating device is used for acquiring the current film source scene quantity and the current film source segmentation complexity; the current film source segmentation complexity comprises the complexity of each scene of the current film source and the scene aging with the same complexity;

and the film source overall complexity calculating module is used for acquiring the current film source overall complexity.

Further, the system further comprises an initialization module connected to the current scene complexity calculation module, and configured to assign initial values to the scene determination frame, the scene number, the scene parameter set, and the first temporary variable.

The invention has the advantages of

The invention provides a film source scene complexity analysis method and system based on compressed information. The method uses the motion vector intensity to represent the complexity of each scene in a film source; meanwhile, an identifier is set to control a scene complexity calculating switch, so that the complexity of each scene is prevented from being calculated one by one, and the calculated amount is further optimized.

Drawings

FIG. 1 is a flowchart of a method for complexity analysis of a slice source scene based on compressed information according to a preferred embodiment of the present invention;

FIG. 2 is a flowchart of the detailed method of Step2 in FIG. 1;

FIG. 3 is a diagram of a system for complexity analysis of a scene source based on compressed information according to a preferred embodiment of the present invention;

fig. 4 is a block diagram of the apparatus for calculating the number of scenes of the current film source and the complexity of segmentation in fig. 3.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples, and for convenience of description, only parts related to the examples of the present invention are shown. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The invention provides a film source scene complexity analysis method and system based on compressed information. The method uses the motion vector intensity to represent the complexity of each scene in a film source; meanwhile, an identifier is set to control a scene complexity calculating switch, so that the complexity of each scene is prevented from being calculated one by one, and the calculated amount is further optimized.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于处理视频的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类