CN103167282B - A kind of online updating method of image compression dynamic regulation - Google Patents

A kind of online updating method of image compression dynamic regulation Download PDF

Info

Publication number
CN103167282B
CN103167282B CN201110424594.5A CN201110424594A CN103167282B CN 103167282 B CN103167282 B CN 103167282B CN 201110424594 A CN201110424594 A CN 201110424594A CN 103167282 B CN103167282 B CN 103167282B
Authority
CN
China
Prior art keywords
image
frame
value
key reference
content information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110424594.5A
Other languages
Chinese (zh)
Other versions
CN103167282A (en
Inventor
赵怀慈
王立勇
赵大威
周雷
花海洋
刘明第
冯安祥
王闯
任士远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201110424594.5A priority Critical patent/CN103167282B/en
Publication of CN103167282A publication Critical patent/CN103167282A/en
Application granted granted Critical
Publication of CN103167282B publication Critical patent/CN103167282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of online updating method of image compression dynamic regulation, in Wireless Image Transmission Systems, specifically realized the dynamic adjustment of compression of images by dynamic calculation amendment quantization parameter QP.The present invention carries out infra-frame prediction and inter prediction according to H.264 international standard to YUV image, it is achieved room and time dependency compresses;The QP value of the key reference frame of an image sequence is calculated according to image content information;According to the different information of key reference frame He other frame, calculate the energy threshold of other frame, determine the QP value of all frames in described image sequence;According to the QP value of frames all in described image sequence, described image sequence is carried out quantification treatment, completes image compression.The present invention can dynamically revise the video dynamic compression of quantization parameter QP according to image content information, completes the online updating of compression of images code check in Wireless Image Transmission Systems.

Description

A kind of online updating method of image compression dynamic regulation
Technical field
The present invention relates to a kind of online updating method of image compression dynamic regulation, specifically without line chart Image transmission system is realized the dynamic adjustment of compression of images by dynamic calculation amendment quantization parameter QP.
Background technology
Wireless Image Transmission Systems is the field that present applied research is more popular, wherein in coding and decoding video side In method, H.264 coding and decoding video is a kind of popular canonical algorithm, and this technology has higher compression ratio, The features such as applied range, have been widely used in the various fields such as video conference, real-time monitoring. It is that the image gathered is carried out the compression processes such as infra-frame prediction, inter prediction, entropy code, it is achieved image Compression storage.Use H.264 decoding technique that the compressed bit stream received is decoded in decoding end, recover former Beginning image.By H.264 algorithm, image can carry out higher compression to store, according to actual application need Seek the coding transmission of video.Quantifying during Video coding is the most important compression coding technology, It is by numerical value less for each image sampling point coding mapping one-tenth, determines reflecting of quantization by quantization parameter QP Penetrate relation, directly determine the code check of compression of images.Wireless transmitting system is all in quantization parameter QP definite value now In the case of be operated, it is impossible to enough in system operation, quantization parameter QP H.264 is carried out dynamically Adjust, it is achieved dynamic compression ratio change, it is impossible to realize effectively dynamically updating compression.
Summary of the invention
Shortcoming for existing wireless image transmission system, it is impossible to carry out dynamic corrections QP according to image content information, Realizing the deficiency that compression bit rate adjusts in real time, the technical problem to be solved in the present invention is to provide one can basis Image content information dynamically revises the video dynamic compression of quantization parameter QP, completes wireless image transmission system The online updating of compression of images code check in system.
The technical scheme is that a kind of image compression dynamic regulation of the present invention Line update method, comprises the following steps:
According to H.264 international standard, YUV image is carried out infra-frame prediction and inter prediction, it is achieved space and time Between dependency compression;
The QP value of the key reference frame of an image sequence is calculated according to image content information;
According to the different information of key reference frame He other frame, calculate the energy threshold of other frame, determine described The QP value of all frames in image sequence;
According to the QP value of frames all in described image sequence, described image sequence is carried out quantification treatment, completes Image compression.
Described key reference frame be in the I frame of this image sequence, i.e. this image sequence other images with reference to figure Picture.
Described according to image content information calculate an image sequence key reference frame QP value particularly as follows:
Calculate the image content information of key reference frame;
Set up empirical relation model;
It is calculated the QP value of key reference frame.
The image content information of described calculating key reference frame is particularly as follows: join by edge detection algorithm detection key Examine the gradient information of frame, set up macroblock edges direction histogram, obtain the most probable predictive mode of each macro block And reconstructed blocks, make to subtract by image, obtain the residual image close with actual coding.
Described macro block is 8 × 8 macro blocks.
Described empirical relation model is
R=I*QP*ea
Wherein R represents code check, I representative image content information, i.e. residual image average:
Σ i = 0 M Σ j = 0 N P i , j / M * N
In formula, M is residual image abscissa, and N is the vertical coordinate of residual image, and QP represents quantization parameter, a=0.9 Representative model variable.
The described different information according to key reference frame He other frame, calculates the energy threshold of other frame, determines In described image sequence all frames QP value particularly as follows:
Calculate the energy threshold of other frame: Wherein αiBy the filter used in motion prediction The energy of ripple device determines, N is the frame number of this image sequence;
Calculate the QP value of other frame: QPt=Round (QP0+ 51CurAvg), wherein QP0 is crucial ginseng Examining the QP value of frame, QPi is the QP value of other frame.
The invention have the advantages that
1. the dynamic compression of wireless image transmission system adjusts.This method is based on H.264 video coding and decoding technology, same Time combine image content information, the dynamic pressure of video image by dynamically amendment quantization parameter QP, can be completed Contracting, it is achieved during wireless image transmission, the most dynamically revise compression ratio, it is achieved compression ratio and figure picture element The Balancing selection of amount.
The most existing Wireless Image Transmission Systems only went to revise compression ratio system is out of service when, It is tested to the most again determine suitable systematic parameter.Online updating side by image compression dynamic regulation Method, it is possible to achieve dynamically adjust compression ratio in system operation, convenient under different channels and application demand Dynamically adjusting, run without halt system and reset, can meet various application to greatest extent needs Ask, thus there is extremely important practical significance and researching value.
Accompanying drawing explanation
The online updating method flow diagram of Fig. 1 image compression dynamic regulation of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings and embodiment the present invention is described in further detail.
The inventive method is as it is shown in figure 1, comprise the following steps:
1. by H.264 carrying out video compress
The YUV image that this embodiment is gathered by image capture device, uses the coding H.264 of standard Technology, carries out image in frame, inter prediction, is compressed image, it is achieved Video coding leading portion algorithm Compression.
2. calculate the QP value of key reference frame in one group of image sequence according to image content information;
(1) I two field picture content information calculates;
First with the gradient information of edge detection algorithm detection key reference frame I frame, 8 × 8 macroblock edges are set up Direction histogram, obtains each 8 × 8 pieces of most probable predictive modes and reconstructed blocks, makees to subtract by image, To the residual image close with actual coding;By the meansigma methods of residual image as the image content information of I frame,
Σ i = 0 M Σ j = 0 N P i , j / M * N
In formula, M is residual image abscissa, and N is the vertical coordinate of residual image.
(2) empirical relation model is set up
According to analysis of experimental data, in the case of quantization parameter is constant, image content information (residual image Average) and code check is inversely, both image content information was the most complicated, generated number of coded bits the biggest, code Rate is the highest.Otherwise, image is the simplest, and it is the fewest that coding generates bit number, and code check is the lowest.
In the case of image content information is fixing, quantization parameter and code check are the most inversely.If amount Changing coefficient the highest, code check also can be the highest.Otherwise, the lowest.
Show that discovery three exists obvious index linear relation by standard test sequences being done experiment, according to Technology of Data Fitting, the expression formula setting triadic relation is as follows:
R=I*QP*ea
In formula, R represents code check, I representative image content information (residual image average), and QP represents and quantifies system Number, a representative model variable, bring test data into formula computation model parameter a=0.9 above.
Can be obtained by analysis of experimental data, the content information of quantization parameter QP and image be (residual image Average), and between code check, have empirical relation.
3. key reference frame and the different information of present frame, calculates energy threshold, determines QP value;
(1) calculating of the energy threshold of present frame
For only I frame and the image sequence of P frame, it was predicted that be unidirectional.The present invention because for image time Sequence requirement order display, has the requirement of real-time simultaneously, therefore only considers unidirectional situation, does not consider that B frame is double To prediction.Energy threshold is mainly determined by the energy of the wave filter used in motion prediction.Do at every two field picture After complete motion prediction, average energy change is calculated by following formula:
CurAvg = Σ i = 1 N α i * i / N
Wherein αiFor corresponding filter energy, only consider unidirectional prediction due to the present invention, therefore take 0.5.
Definition CurAvg is the energy threshold of every two field picture, and it is current frame image and key reference two field picture Energy quality is divided by the gross energy of same image sequence.
(2) calculating of the energy threshold of present frame
Due in H.264 the span of regulation QP be 0~51 so, calculate present frame according to energy threshold QP energy threshold
QPt=Round (QP0+51CurAvg)
In formula, Qp0 is the Qp value of key reference frame, just can be calculated the QP of the present frame of correspondence by above formula Value, so that it is determined that all of QP value in image sequence.
4., according to the QP value of all frames in the image sequence calculated, carry out quantification treatment, complete compression coding;
According to quantitative criteria mapping equation
FQ = Round ( y Q step )
Wherein y is input sample point coding, and Qstep is for quantifying to compensate, and FQ is quantized value, and Round () is Bracket function.Quantization step Qstep has 52 values in h .264.Wherein QP quantization parameter is as amount Change the sequence number compensated.When QP goes the finest quantization of minima 0 interval scale, when QP takes maximum 51 Represent the most coarse quantization.QP often increases by 6, and step-length increases by 1 times.The operation expression of concrete quantizing process For
|Zij|=(| Wij | * MF+f) > > qbits

Claims (4)

1. the online updating method of an image compression dynamic regulation, it is characterised in that comprise the following steps:
According to H.264 international standard, YUV image is carried out infra-frame prediction and inter prediction, it is achieved space and time Between dependency compression;
The QP value of the key reference frame of an image sequence is calculated according to image content information;
According to the different information of key reference frame He other frame, calculate the energy threshold of other frame, determine described The QP value of all frames in image sequence;
According to the QP value of frames all in described image sequence, described image sequence is carried out quantification treatment, completes Image compression;
Wherein, image content information particularly as follows: with edge detection algorithm detection key reference frame gradient information, Set up macroblock edges direction histogram, obtain the most probable predictive mode of each macro block and reconstructed blocks, by figure As making to subtract, obtain the residual image close with actual coding, by the meansigma methods of residual image as key reference The image content information of frame;
Wherein it is determined that in described image sequence all frames QP value particularly as follows:
Calculate the energy threshold of other frame:Wherein αiBy the filter used in motion prediction The energy of ripple device determines, N is the frame number of this image sequence, and i represents the serial number of image sequence;
Calculate the QP value of other frame: QPt=Round (QP0+ 51CurAvg), wherein QP0For key reference The QP value of frame, QPtQP value for other frame;
Described according to image content information calculate an image sequence key reference frame QP value particularly as follows:
Calculate the image content information of key reference frame;
Set up empirical relation model;
It is calculated the QP value of key reference frame;
The QP value of the described key reference frame calculating an image sequence according to image content information is particularly as follows: count Calculate the image content information of key reference frame, set up the QP value of image content information, code check and key reference frame Empirical relation model, R=I*QP*ea, R represents code check, I representative image content information, QP representative amount Change coefficient, a representative model variable, believe according to the picture material of known code check and calculated key reference frame Breath is calculated the QP value of key reference frame.
The online updating method of a kind of image compression dynamic regulation the most according to claim 1, it is characterised in that Described key reference frame is the reference picture of other images in the I frame of this image sequence, i.e. this image sequence.
The online updating method of a kind of image compression dynamic regulation the most according to claim 1, it is characterised in that Described macro block is 8 × 8 macro blocks.
The online updating method of a kind of image compression dynamic regulation the most according to claim 1, it is characterised in that Described empirical relation model is
R=I*QP*ea
Wherein R represents code check, I representative image content information, i.e. residual image average:
Σ i = 0 M Σ j = 0 N P i , j / M * N
In formula, M is residual image abscissa, and N is the vertical coordinate of residual image, and QP represents quantization parameter, a=0.9 Representative model variable, Pi,jRepresent each pixel of residual image.
CN201110424594.5A 2011-12-16 2011-12-16 A kind of online updating method of image compression dynamic regulation Active CN103167282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110424594.5A CN103167282B (en) 2011-12-16 2011-12-16 A kind of online updating method of image compression dynamic regulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110424594.5A CN103167282B (en) 2011-12-16 2011-12-16 A kind of online updating method of image compression dynamic regulation

Publications (2)

Publication Number Publication Date
CN103167282A CN103167282A (en) 2013-06-19
CN103167282B true CN103167282B (en) 2016-09-14

Family

ID=48589991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110424594.5A Active CN103167282B (en) 2011-12-16 2011-12-16 A kind of online updating method of image compression dynamic regulation

Country Status (1)

Country Link
CN (1) CN103167282B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837015B (en) * 2015-04-30 2017-11-17 电子科技大学 Low latency coding adaptation QP Offset adjusting methods
CN111757107B (en) * 2020-06-29 2024-03-05 北京百度网讯科技有限公司 Video coding method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738423A (en) * 2005-08-26 2006-02-22 华中科技大学 Method for controlling video code bit rate
CN1842162A (en) * 2005-03-28 2006-10-04 腾讯科技(深圳)有限公司 Motion image handling method in video coding
CN1984327A (en) * 2006-05-16 2007-06-20 华为技术有限公司 Video-frequency compression method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8331438B2 (en) * 2007-06-05 2012-12-11 Microsoft Corporation Adaptive selection of picture-level quantization parameters for predicted video pictures

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842162A (en) * 2005-03-28 2006-10-04 腾讯科技(深圳)有限公司 Motion image handling method in video coding
CN1738423A (en) * 2005-08-26 2006-02-22 华中科技大学 Method for controlling video code bit rate
CN1984327A (en) * 2006-05-16 2007-06-20 华为技术有限公司 Video-frequency compression method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Novel H.264 QP Adaptive MPDC Block-Matching Algorithm and Its VLSI Design;Chungan Peng;《2008 IEEE》;20081231;第1-4页 *
自适应视频编码和传输关键技术的研究;刘猛;《中国优秀硕士学位论文全文数据库 信息科技辑》;20111215;第3-4章 *

Also Published As

Publication number Publication date
CN103167282A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN1726709B (en) Method and device for encoding image of uncompressed digital video frequency sequence
CN101742319B (en) Background modeling-based static camera video compression method and background modeling-based static camera video compression system
CN101141636B (en) Data rate control method and video signal encoder
CN102150429B (en) System and method for video encoding using constructed reference frame
CN1110962C (en) Adaptive quantizer for use in video signal encoding system
CN100574427C (en) The control method of video code bit rate
CN104301724B (en) Method for processing video frequency, encoding device and decoding device
CN101854548B (en) Wireless multimedia sensor network-oriented video compression method
CN104320657B (en) The predicting mode selecting method of HEVC lossless video encodings and corresponding coding method
US20070031049A1 (en) Image compression device and image compression method
CN1596422A (en) A method and system for estimating objective quality of compressed video data
CN104683804A (en) Parameter-adaptive multidimensional bit rate control method based on video content characteristics
CN105208389B (en) A kind of Video coding hard decision quantization method based on content-adaptive migration model
CN104994382B (en) A kind of optimization method of perception rate distortion
CN102281446B (en) Visual-perception-characteristic-based quantification method in distributed video coding
CN101677398A (en) Scene switching code rate control method
US10515649B2 (en) Method for coding pulse vectors using statistical properties
CN103327325A (en) Intra-frame prediction mode rapid self-adaptation selection method based on HEVC standard
CN106412572A (en) Video stream encoding quality evaluation method based on motion characteristics
CN102158729A (en) Method for objectively evaluating encoding quality of video sequence without reference
CN101331773B (en) Device and method for processing rate controlled for video coding using rate-distortion characteristics
CN100493191C (en) Video encoder with low complexity noise reduction and video encoding method
CN103167282B (en) A kind of online updating method of image compression dynamic regulation
CN101459850B (en) Image compression quality prediction method and system
Onthriar et al. Performance comparison of emerging Dirac video codec with H. 264/AV

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant