CN114554204A - Method and device for adjusting image quality of coded image - Google Patents

Method and device for adjusting image quality of coded image Download PDF

Info

Publication number
CN114554204A
CN114554204A CN202210063578.6A CN202210063578A CN114554204A CN 114554204 A CN114554204 A CN 114554204A CN 202210063578 A CN202210063578 A CN 202210063578A CN 114554204 A CN114554204 A CN 114554204A
Authority
CN
China
Prior art keywords
information
image
quantization parameter
adjusting
preset
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.)
Pending
Application number
CN202210063578.6A
Other languages
Chinese (zh)
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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology Co Ltd
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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN202210063578.6A priority Critical patent/CN114554204A/en
Publication of CN114554204A publication Critical patent/CN114554204A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion

Abstract

The invention discloses a method and a device for adjusting the image quality of a coded image, wherein the method comprises the following steps: acquiring image information to be coded; extracting and calculating characteristic information of image information to be coded to obtain initial quantization parameter information; processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used to instruct to adjust the quality of the encoded image. Therefore, the image quantization parameter information used for indicating and adjusting the image quality of the coded image can be obtained through the characteristic information extraction processing and the calculation processing of the image information to be coded and the comprehensive processing of the edge density model and the parameter adjusting model, the image quantization parameter information is beneficial to flexibly adjusting the image quality of the coded image through the depth adjustment of the quantization parameter according to the real-time image quality adjusting requirement, and the coding image quality requirements of different scenes are further met.

Description

Method and device for adjusting image quality of coded image
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for adjusting image quality of a coded image.
Background
At present, because a code rate control calculation module fixes a calculation mode of a quantization parameter and does not reserve an interface for setting an adjustment strategy by a user, the image quality of a coded image cannot be flexibly adjusted in real time according to actual needs, and the user cannot pertinently adjust the coded image quality of some texture regions according to the current scene. Therefore, it is important to provide a method and an apparatus for adjusting the quality of a coded image, so as to flexibly adjust the quality of the coded image by depth adjustment of quantization parameters according to the real-time quality adjustment requirement, and further meet the quality requirements of coded images of different scenes.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for adjusting image quality of a coded image, which can obtain image quantization parameter information for instructing to adjust the image quality of the coded image by extracting and calculating feature information of image information to be coded and performing comprehensive processing on an edge density model and a parameter adjustment model, and is beneficial to flexibly adjusting the image quality of the coded image by depth adjustment of quantization parameters according to real-time image quality adjustment needs, thereby meeting the requirements of the coded image quality of different scenes.
In order to solve the above technical problem, a first aspect of the embodiments of the present invention discloses a method for adjusting quality of a coded image, where the method includes:
acquiring image information to be coded;
extracting and calculating characteristic information of the image information to be coded to obtain initial quantization parameter information;
processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used for indicating the adjustment of the quality of the coded image.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjustment model to obtain image quantization parameter information includes:
calculating the initial quantization parameter information by using a preset edge density model to obtain edge density information; the edge density information represents the strength of the texture of the coded image in the image information to be coded;
and matching and calculating the edge density information by using a preset parameter adjusting model to obtain image quantization parameter information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing calculation processing on the initial quantization parameter information by using a preset edge density model to obtain edge density information includes:
calculating the initial quantization parameter information by using a preset calculation operator to obtain direction edge information;
and calculating the direction edge information according to preset constraint condition information to obtain edge density information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the matching and calculating the edge density information by using a preset parameter adjustment model to obtain image quantization parameter information includes:
matching the edge density information by using a preset parameter adjusting model to obtain parameter offset information;
and calculating the initial quantization parameter information by using the parameter offset information to obtain image quantization parameter information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing matching processing on the edge density information by using a preset parameter adjustment model to obtain parameter offset information includes:
judging whether the grade threshold value is larger than or equal to the edge density value corresponding to the edge density information or not for any grade threshold value in a preset parameter adjusting model to obtain a first judgment result;
when the first judgment result is yes, determining the grade threshold as a target threshold;
and determining the adjustment offset information corresponding to the target threshold as parameter offset information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing feature information extraction and calculation processing on the to-be-encoded image information to obtain initial quantization parameter information includes:
extracting characteristic information from the image information to be coded to obtain image characteristic information;
and calculating the image characteristic information by using preset code rate redundant information to obtain initial quantization parameter information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing calculation processing on the image feature information by using preset code rate redundancy information to obtain initial quantization parameter information includes:
determining a target bit number according to the image characteristic information and preset code rate redundancy information;
and calculating the target bit number by using a preset quantization parameter model to obtain initial quantization parameter information.
The second aspect of the embodiments of the present invention discloses a device for adjusting the quality of a coded image, which comprises:
the acquisition module is used for acquiring image information to be coded;
the first processing module is used for extracting and calculating the characteristic information of the image information to be coded to obtain initial quantization parameter information;
the second processing module is used for processing the initial quantization parameter information by utilizing a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used for indicating the adjustment of the quality of the coded image.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the second processing module processes the initial quantization parameter information by using a preset edge density model and a preset parameter adjustment model, and a specific manner of obtaining the image quantization parameter information is as follows:
calculating the initial quantization parameter information by using a preset edge density model to obtain edge density information; the edge density information represents the strength of the texture of the coded image in the image information to be coded;
and matching and calculating the edge density information by using a preset parameter adjusting model to obtain image quantization parameter information.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the second processing module performs calculation processing on the initial quantization parameter information by using a preset edge density model, and a specific manner of obtaining the edge density information is as follows:
calculating the initial quantization parameter information by using a preset calculation operator to obtain direction edge information;
and calculating the direction edge information according to preset constraint condition information to obtain edge density information.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the specific manner of obtaining the image quantization parameter information by the second processing module performing matching and calculation processing on the edge density information by using a preset parameter adjustment model is as follows:
matching the edge density information by using a preset parameter adjusting model to obtain parameter offset information;
and calculating the initial quantization parameter information by using the parameter offset information to obtain image quantization parameter information.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the second processing module performs matching processing on the edge density information by using a preset parameter adjustment model, and a specific manner of obtaining parameter offset information is as follows:
judging whether the grade threshold value is larger than or equal to the edge density value corresponding to the edge density information or not for any grade threshold value in a preset parameter adjusting model to obtain a first judgment result;
when the first judgment result is yes, determining the grade threshold as a target threshold;
and determining the adjustment offset information corresponding to the target threshold value as parameter offset information.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the first processing module includes a first processing sub-module and a second processing sub-module, wherein:
the first processing submodule is used for extracting and processing the characteristic information of the image information to be coded to obtain image characteristic information;
and the second processing submodule is used for calculating and processing the image characteristic information by using preset code rate redundant information to obtain initial quantization parameter information.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the second processing sub-module performs calculation processing on the image feature information by using preset code rate redundancy information, and a specific manner of obtaining initial quantization parameter information is as follows:
determining a target bit number according to the image characteristic information and preset code rate redundancy information;
and calculating the target bit number by using a preset quantization parameter model to obtain initial quantization parameter information.
The third aspect of the present invention discloses another apparatus for adjusting quality of a coded image, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of the method for adjusting the image quality of the coded image disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions for performing some or all of the steps of the method for adjusting the image quality of an encoded image disclosed in the first aspect of the present invention when the computer instructions are called.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, image information to be coded is obtained; extracting and calculating characteristic information of image information to be coded to obtain initial quantization parameter information; processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used to instruct to adjust the quality of the encoded image. Therefore, the image quantization parameter information used for indicating and adjusting the image quality of the coded image can be obtained through the characteristic information extraction processing and the calculation processing of the image information to be coded and the comprehensive processing of the edge density model and the parameter adjusting model, the image quantization parameter information is beneficial to flexibly adjusting the image quality of the coded image through the depth adjustment of the quantization parameter according to the real-time image quality adjusting requirement, and the coding image quality requirements of different scenes are further met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for adjusting the quality of a coded image according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for adjusting the quality of an encoded image according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for adjusting the quality of a coded image according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another apparatus for adjusting the quality of an encoded image according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for adjusting quality of encoded images according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, product, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method and a device for adjusting the image quality of a coded image, which can obtain image quantization parameter information for indicating the adjustment of the image quality of the coded image through the extraction processing and the calculation processing of characteristic information of image information to be coded and the comprehensive processing of an edge density model and a parameter adjustment model, are favorable for flexibly adjusting the image quality of the coded image through the depth adjustment of quantization parameters according to the real-time image quality adjustment requirement, and further meet the coding image quality requirements of different scenes. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for adjusting image quality of an encoded image according to an embodiment of the present invention. The method for adjusting the quality of the encoded image described in fig. 1 is applied to an image processing system, such as a local server or a cloud server for quality adjustment management of the encoded image, and the embodiment of the invention is not limited thereto. As shown in fig. 1, the method for adjusting the quality of the encoded image may include the following operations:
101. and acquiring image information to be coded.
102. And extracting and calculating characteristic information of the image information to be coded to obtain initial quantization parameter information.
103. And processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information.
In an embodiment of the present invention, the image quantization parameter information is used to instruct to adjust quality of an encoded image.
In this optional embodiment, as an optional implementation manner, after the processing the initial quantization parameter information by using the preset edge density model and the preset parameter adjustment model, the method further includes:
coding the image quantization parameter information to obtain bit stream information and output bit number information;
and storing the bit stream information to a data storage module.
Optionally, the output bit number information is used to update the code rate redundancy information.
Therefore, the method for adjusting the image quality of the coded image described in the embodiment of the invention can obtain the image quantization parameter information for indicating to adjust the image quality of the coded image through the extraction processing and the calculation processing of the feature information of the image information to be coded and the comprehensive processing of the edge density model and the parameter adjustment model, is favorable for flexibly adjusting the image quality of the coded image through the depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, and further meets the coding image quality requirements of different scenes.
In an optional embodiment, the processing the initial quantization parameter information by using the preset edge density model and the preset parameter adjustment model in step 103 to obtain image quantization parameter information includes:
calculating the initial quantization parameter information by using a preset edge density model to obtain edge density information; the edge density information represents the strength and weakness of the texture of the coded image in the image information to be coded;
and matching and calculating the edge density information by using a preset parameter adjusting model to obtain image quantization parameter information.
Optionally, the edge density model supports macroblocks of different sizes for different coding standards. For example, the macroblock size supportable by the encoding standard of H264 is 16 × 16 pixels; the macroblock size that can be supported by the encoding standards of H265 and VP9 is 64x64 pixels.
Therefore, the image quality adjusting method for the coded image described in the embodiment of the invention can utilize the edge density model to calculate and process the initial quantization parameter information to obtain the edge density information, and then utilize the parameter adjusting model to match and calculate and process the edge density information to obtain the image quantization parameter information, which is beneficial to flexibly adjusting the image quality of the coded image through the depth adjustment of the quantization parameter according to the real-time image quality adjusting requirement, thereby meeting the image quality requirements of different scenes.
In another optional embodiment, the performing, by using a preset edge density model, calculation processing on the initial quantization parameter information to obtain edge density information includes:
calculating the initial quantization parameter information by using a preset calculation operator to obtain direction edge information;
and calculating the direction edge information according to the preset constraint condition information to obtain edge density information.
Optionally, the direction edge information includes horizontal edge information and/or vertical edge information, which is not limited in the embodiment of the present invention.
Optionally, the edge density information includes an edge density value and/or image number information, which is not limited in the embodiment of the present invention.
In this optional embodiment, as an optional implementation, the specific manner of performing calculation processing on the initial quantization parameter information by using a preset calculation operator to obtain the directional edge information is as follows:
performing convolution calculation by using a horizontal convolution kernel and the initial quantization parameter information to obtain horizontal direction edge information;
and performing convolution calculation by using the vertical convolution kernel and the initial quantization parameter information to obtain vertical edge information.
Optionally, the specific manner of performing convolution calculation on the horizontal convolution kernel and the initial quantization parameter information is as follows:
Figure BDA0003479172540000081
i1∈[1,14],j1∈[1,14];
wherein G ishorFor horizontal direction edge information, GxFor a horizontal convolution kernel, i1、j1、n1And m1All are coordinate parameters, and A is initial quantization parameter information.
Preferably, the above
Figure BDA0003479172540000082
Optionally, the specific manner of performing convolution calculation on the vertical convolution kernel and the initial quantization parameter information is as follows:
Figure BDA0003479172540000083
i2∈[1,14],j2∈[1,14];
wherein G isverFor vertical direction edge information, GyFor a vertical convolution kernel, i2、j2、n2And m2Are all coordinate parameters.
Preferably, the above
Figure BDA0003479172540000091
In this optional embodiment, as another optional implementation, the specific way of obtaining the edge density information by performing calculation processing on the direction edge information according to the preset constraint condition information is as follows:
calculating the horizontal direction edge information and the vertical direction edge information to obtain standby edge information;
and calculating the edge information to be used according to preset constraint condition information to obtain edge density information.
Optionally, the constraint condition information is the edge density information in a range of [0,255 ].
Optionally, the specific way of calculating the horizontal direction edge information and the vertical direction edge information is as follows:
G[i3,j3]=(abs(Ghor[i3,j3])+abs(Gver[i3,j3]))>>1
i3∈[1,14],j3∈[1,14];
where G is the standby edge information, i3And j3Are all coordinate parameters.
Optionally, the specific manner of calculating the edge information to be used is as follows:
Figure BDA0003479172540000092
i3∈[1,14],j3∈[1,14];
Figure BDA0003479172540000093
wherein m is the edge density value.
Therefore, the method for adjusting the image quality of the coded image can utilize the calculation operator to perform calculation processing on the initial quantization parameter information and further perform calculation processing according to the constraint condition information to obtain the edge density information, and is favorable for flexibly adjusting the image quality of the coded image through depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, so that the requirements of the image quality of the coded images of different scenes are met.
In another optional embodiment, the matching and calculating the edge density information by using a preset parameter adjustment model to obtain image quantization parameter information includes:
matching the edge density information by using a preset parameter adjusting model to obtain parameter offset information;
and calculating the initial quantization parameter information by using the parameter offset information to obtain image quantization parameter information.
Optionally, the parameter adjustment model includes a parameter adjustment curve and/or a parameter adjustment table, which is not limited in the embodiment of the present invention.
Optionally, the parameter adjustment model represents a relationship between a level of the edge density value, a level threshold, and adjustment offset information.
Optionally, the larger the rank of the edge density value is, the larger the rank threshold corresponding to the edge density value is.
Optionally, the smaller the edge density value is, the weaker the texture representing the image to be processed is, and the larger the edge density value is, the stronger the texture representing the image to be processed is.
Optionally, the encoding definition of the weak texture can be improved by reducing the image quantization parameter information of the weak texture, and the code rate cannot be greatly increased by properly reducing the image quantization parameter information of the weak texture.
Optionally, the code rate can be saved by adjusting the image quantization parameter information of the strong texture, the code rate is used for offsetting the code rate improvement of the weak texture area, and the subjective effect cannot be greatly reduced by appropriately adjusting the image quantization parameter information of the strong texture.
Optionally, the calculating the initial quantization parameter information by using the parameter offset information is to add a parameter offset corresponding to the parameter offset information and an initial quantization parameter value corresponding to the initial quantization parameter information to obtain an image quantization parameter value corresponding to the image quantization parameter information.
Optionally, the matching processing on the edge density information by using the preset parameter adjustment model is to search from small to large in sequence according to the rank order of the edge density values, and determine the parameter offset by judging the rank threshold and the initial quantization parameter value.
Therefore, the image quality adjusting method for the coded image, which is described by the embodiment of the invention, can utilize the parameter adjusting model to perform matching processing on the edge density information, and further perform calculation processing to obtain image quantization parameter information, so that the image quality of the coded image can be flexibly adjusted through depth adjustment of quantization parameters according to the real-time image quality adjusting requirement, and the image quality requirements of different scenes can be further met.
In another optional embodiment, the matching the edge density information by using a preset parameter adjustment model to obtain parameter offset information includes:
judging whether the grade threshold is greater than or equal to the edge density value corresponding to the edge density information or not for any grade threshold in a preset parameter adjusting model to obtain a first judgment result;
when the first judgment result is yes, determining the grade threshold as a target threshold;
and determining the adjustment offset information corresponding to the target threshold as parameter offset information.
Optionally, after traversing all the level thresholds in the parameter adjustment model, when there is no level threshold greater than or equal to the edge density value corresponding to the edge density information, determining that the parameter offset information is a vacancy.
Therefore, the method for adjusting the image quality of the coded image described in the embodiment of the invention can determine the parameter offset information through the analysis and judgment of the level threshold, and is more favorable for flexibly adjusting the image quality of the coded image through the depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the requirements of the image quality of the coded images of different scenes.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for adjusting the quality of an encoded image according to an embodiment of the present invention. The method for adjusting the quality of the encoded image described in fig. 2 is applied to an image processing system, such as a local server or a cloud server for quality adjustment management of the encoded image, and the embodiment of the present invention is not limited thereto. As shown in fig. 2, the method for adjusting the quality of the encoded image may include the following operations:
201. and acquiring image information to be coded.
202. And extracting the characteristic information of the image information to be coded to obtain the image characteristic information.
203. And calculating the image characteristic information by using the preset code rate redundant information to obtain initial quantization parameter information.
204. And processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information.
In the embodiment of the present invention, for specific technical details and technical noun explanations of step 201 and step 204, reference may be made to the detailed description of step 101 and step 103 in the first embodiment, and details are not repeated in the embodiment of the present invention.
Optionally, the image feature information includes image bit number information and/or image texture complexity information, which is not limited in the embodiment of the present invention.
Therefore, the image quality adjusting method for the coded image described in the embodiment of the invention can obtain the image characteristic information by extracting and processing the characteristic information of the image information to be coded, then calculate and process the image characteristic information to obtain the initial quantization parameter information, and then obtain the image quantization parameter information for indicating to adjust the image quality of the coded image by the comprehensive processing of the edge density model and the parameter adjusting model, so that the image quality of the coded image can be flexibly adjusted by the depth adjustment of the quantization parameter according to the real-time image quality adjusting requirement, and the image quality requirements of different scenes can be further met.
In another optional embodiment, the calculating the image feature information by using the preset code rate redundancy information to obtain the initial quantization parameter information includes:
determining a target bit number according to the image characteristic information and preset code rate redundancy information;
and calculating the target bit number by using a preset quantization parameter model to obtain initial quantization parameter information.
Optionally, the initial quantization parameter information includes an initial quantization parameter and/or image number information, which is not limited in the embodiment of the present invention.
In this optional embodiment, as an optional implementation, the specific way of determining the target bit number according to the image feature information and the preset code rate redundancy information is as follows:
calculating the image bit number information and the code rate redundancy information by using a preset first image processing model to obtain a first image processing factor;
calculating the image texture complexity information to obtain a second image processing factor;
calculating the first image processing factor and the second image processing factor by using a preset second image processing model to obtain an image characteristic factor;
and determining the target bit number according to the image characteristic factor.
Optionally, the specific manner of the first image processing model is as follows:
Figure BDA0003479172540000121
wherein λ is1Is a first image processing factor, B1As picture bit number information, B2Is code rate redundancy information. Optionally, the specific manner of the second image processing model is as follows:
λ0=λ1+α·λ2
wherein λ is0Is an image characteristic factor, λ2α is a first correction factor, which is a second image processing factor.
Optionally, the specific manner of the quantitative parameter model is as follows:
Figure BDA0003479172540000122
wherein, B0As a target number of bits, beta is the image frame coefficient, gamma1And gamma2Qp is an initial quantization parameter for the second correction coefficient and the third correction coefficient.
Therefore, the method for adjusting the image quality of the coded image described in the embodiment of the invention can obtain the initial quantization parameter by determining the target bit number and further calculating and processing the target bit number by using the quantization parameter model, and is more beneficial to flexibly adjusting the image quality of the coded image by adjusting the depth of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the requirements of the coded image quality of different scenes.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for adjusting image quality of a coded image according to an embodiment of the present invention. The apparatus described in fig. 3 can be applied to an image processing system, such as a local server or a cloud server for adjusting and managing the quality of an encoded image, and the embodiment of the invention is not limited thereto. As shown in fig. 3, the apparatus may include:
the acquisition module is used for acquiring image information to be coded;
the first processing module is used for extracting and calculating the characteristic information of the image information to be coded to obtain initial quantization parameter information;
the second processing module is used for processing the initial quantization parameter information by utilizing a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used to instruct to adjust the quality of the encoded image.
It can be seen that, by implementing the apparatus for adjusting the image quality of the encoded image described in fig. 3, the image quantization parameter information for instructing to adjust the image quality of the encoded image can be obtained by extracting and calculating the feature information of the image information to be encoded and performing comprehensive processing on the edge density model and the parameter adjustment model, which is beneficial to flexibly adjusting the image quality of the encoded image by depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the requirements of the image quality of the encoded image in different scenes.
In another alternative embodiment, as shown in fig. 4, the second processing module processes the initial quantization parameter information by using a preset edge density model and a preset parameter adjustment model, and the specific manner of obtaining the image quantization parameter information is as follows:
calculating the initial quantization parameter information by using a preset edge density model to obtain edge density information; the edge density information represents the strength and weakness of the texture of the coded image in the image information to be coded;
and matching and calculating the edge density information by using a preset parameter adjusting model to obtain image quantization parameter information.
It can be seen that, with the encoded image quality adjusting apparatus described in fig. 4, the edge density model can be used to perform calculation processing on the initial quantization parameter information to obtain the edge density information, and then the parameter adjusting model is used to perform matching and calculation processing on the edge density information to obtain the image quantization parameter information, which is beneficial to flexibly adjusting the encoded image quality through depth adjustment of the quantization parameters according to the real-time image quality adjustment requirement, thereby meeting the encoded image quality requirements of different scenes.
In yet another alternative embodiment, as shown in fig. 4, the second processing module performs calculation processing on the initial quantization parameter information by using a preset edge density model, and the specific manner of obtaining the edge density information is as follows:
calculating the initial quantization parameter information by using a preset calculation operator to obtain direction edge information;
and calculating the direction edge information according to the preset constraint condition information to obtain edge density information.
It can be seen that, with the encoded image quality adjusting apparatus described in fig. 4, the initial quantization parameter information can be calculated by using a calculation operator, and further calculation processing is performed according to the constraint condition information to obtain the edge density information, which is beneficial to flexibly adjusting the encoded image quality by depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the encoded image quality requirements of different scenes.
In yet another alternative embodiment, as shown in fig. 4, the second processing module performs matching and calculation processing on the edge density information by using a preset parameter adjustment model, and the specific manner of obtaining the image quantization parameter information is as follows:
matching the edge density information by using a preset parameter adjusting model to obtain parameter offset information;
and calculating the initial quantization parameter information by using the parameter offset information to obtain image quantization parameter information.
It can be seen that, with the encoded image quality adjusting apparatus described in fig. 4, the parameter adjustment model can be used to perform matching processing on the edge density information, and then image quantization parameter information is obtained through further calculation processing, which is more beneficial to flexibly adjusting the image quality of the encoded image through depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the encoded image quality requirements of different scenes.
In yet another alternative embodiment, as shown in fig. 4, the second processing module performs matching processing on the edge density information by using a preset parameter adjustment model, and the specific manner of obtaining the parameter offset information is as follows:
judging whether the grade threshold is greater than or equal to the edge density value corresponding to the edge density information or not for any grade threshold in a preset parameter adjusting model to obtain a first judgment result;
when the first judgment result is yes, determining the grade threshold as a target threshold;
and determining the adjustment offset information corresponding to the target threshold as parameter offset information.
It can be seen that, with the encoded image quality adjusting apparatus described in fig. 4, parameter offset information can be determined through analysis and judgment of the level threshold, which is more beneficial to flexibly adjusting the image quality of the encoded image through depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby meeting the encoded image quality requirements of different scenes.
In yet another alternative embodiment, as shown in fig. 4, the first processing module includes a first processing sub-module and a second processing sub-module, wherein:
the first processing submodule is used for extracting and processing the characteristic information of the image information to be coded to obtain the image characteristic information;
and the second processing submodule is used for calculating and processing the image characteristic information by using the preset code rate redundant information to obtain initial quantization parameter information.
Therefore, by implementing the encoded image quality adjusting apparatus described in fig. 4, the image feature information can be obtained by extracting and processing the feature information of the image information to be encoded, the initial quantization parameter information can be obtained by performing calculation processing on the image feature information, and the image quantization parameter information for instructing to adjust the image quality of the encoded image can be obtained by performing comprehensive processing on the edge density model and the parameter adjusting model, which is beneficial to flexibly adjusting the image quality of the encoded image by performing depth adjustment on the quantization parameter according to the real-time image quality adjusting requirement, thereby meeting the encoded image quality requirements of different scenes.
In yet another alternative embodiment, as shown in fig. 4, the second processing sub-module performs calculation processing on the image feature information by using the preset code rate redundancy information, and the specific way of obtaining the initial quantization parameter information is as follows:
determining a target bit number according to the image characteristic information and preset code rate redundancy information;
and calculating the target bit number by using a preset quantization parameter model to obtain initial quantization parameter information.
It can be seen that, with the encoded image quality adjusting apparatus described in fig. 4, the initial quantization parameter can be obtained by determining the target number of bits and then performing further calculation processing on the target number of bits by using the quantization parameter model, which is more beneficial to flexibly adjusting the image quality of the encoded image by depth adjustment of the quantization parameter according to the real-time image quality adjustment requirement, thereby satisfying the encoded image quality requirements of different scenes.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another apparatus for adjusting quality of encoded images according to an embodiment of the present invention. The apparatus described in fig. 5 can be applied to an image processing system, such as a local server or a cloud server for adjusting and managing the quality of an encoded image, and the embodiment of the invention is not limited thereto. As shown in fig. 5, the apparatus may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 for executing the steps of the method for adjusting the image quality of the encoded image as described in the first embodiment or the second embodiment.
EXAMPLE five
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps in the image quality adjusting method of the coded image described in the first embodiment or the second embodiment.
Example six
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute the steps of the image quality adjusting method of the coded image described in the first embodiment or the second embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
Finally, it should be noted that: the method and apparatus for adjusting the image quality of a coded image disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for adjusting the quality of a coded image, the method comprising:
acquiring image information to be coded;
extracting and calculating characteristic information of the image information to be coded to obtain initial quantization parameter information;
processing the initial quantization parameter information by using a preset edge density model and a preset parameter adjustment model to obtain image quantization parameter information; the image quantization parameter information is used for adjusting the quality of the encoded image.
2. The method of claim 1, wherein the processing the initial quantization parameter information using a preset edge density model and a preset parameter adjustment model to obtain image quantization parameter information comprises:
calculating the initial quantization parameter information by using a preset edge density model to obtain edge density information; the edge density information represents the strength of the texture of the coded image in the image information to be coded;
and matching and calculating the edge density information by using a preset parameter adjusting model to obtain image quantization parameter information.
3. The method of claim 2, wherein the calculating the initial quantization parameter information using a preset edge density model to obtain edge density information comprises:
calculating the initial quantization parameter information by using a preset calculation operator to obtain direction edge information;
and calculating the direction edge information according to preset constraint condition information to obtain edge density information.
4. The method for adjusting image quality of encoded images according to claim 2, wherein the matching and calculating the edge density information by using a preset parameter adjustment model to obtain image quantization parameter information comprises:
matching the edge density information by using a preset parameter adjusting model to obtain parameter offset information;
and calculating the initial quantization parameter information by using the parameter offset information to obtain image quantization parameter information.
5. The method of claim 4, wherein the matching the edge density information using a preset parameter adjustment model to obtain parameter offset information comprises:
judging whether the grade threshold value is larger than or equal to the edge density value corresponding to the edge density information or not for any grade threshold value in a preset parameter adjusting model to obtain a first judgment result;
when the first judgment result is yes, determining the grade threshold as a target threshold;
and determining the adjustment offset information corresponding to the target threshold value as parameter offset information.
6. The method for adjusting the quality of an encoded image according to claim 1, wherein the extracting and calculating the feature information of the image information to be encoded to obtain initial quantization parameter information comprises:
extracting characteristic information from the image information to be coded to obtain image characteristic information;
and calculating the image characteristic information by using preset code rate redundant information to obtain initial quantization parameter information.
7. The method for adjusting image quality of encoded images according to claim 6, wherein the obtaining initial quantization parameter information by performing calculation processing on the image feature information using preset code rate redundancy information comprises:
determining a target bit number according to the image characteristic information and preset code rate redundancy information;
and calculating the target bit number by using a preset quantization parameter model to obtain initial quantization parameter information.
8. An apparatus for adjusting quality of a coded image, the apparatus comprising:
the acquisition module is used for acquiring image information to be coded;
the first processing module is used for extracting and calculating the characteristic information of the image information to be coded to obtain initial quantization parameter information;
the second processing module is used for processing the initial quantization parameter information by utilizing a preset edge density model and a preset parameter adjusting model to obtain image quantization parameter information; the image quantization parameter information is used for adjusting the quality of the encoded image.
9. An apparatus for adjusting quality of a coded image, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for adjusting the image quality of the encoded image according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions which, when invoked, perform the method of adjusting the quality of an encoded image according to any one of claims 1 to 7.
CN202210063578.6A 2022-01-20 2022-01-20 Method and device for adjusting image quality of coded image Pending CN114554204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210063578.6A CN114554204A (en) 2022-01-20 2022-01-20 Method and device for adjusting image quality of coded image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210063578.6A CN114554204A (en) 2022-01-20 2022-01-20 Method and device for adjusting image quality of coded image

Publications (1)

Publication Number Publication Date
CN114554204A true CN114554204A (en) 2022-05-27

Family

ID=81671344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210063578.6A Pending CN114554204A (en) 2022-01-20 2022-01-20 Method and device for adjusting image quality of coded image

Country Status (1)

Country Link
CN (1) CN114554204A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101416512A (en) * 2006-04-07 2009-04-22 微软公司 Quantization adjustment based on texture level
CN101572810A (en) * 2008-04-29 2009-11-04 合肥坤安电子科技有限公司 Video encoding method based on interested regions
CN102714725A (en) * 2010-01-06 2012-10-03 杜比实验室特许公司 High performance rate control for multi-layered video coding applications
US20170070745A1 (en) * 2014-03-10 2017-03-09 Euclid Discoveries, Llc Perceptual Optimization for Model-Based Video Encoding
CN107087163A (en) * 2017-06-26 2017-08-22 杭州当虹科技有限公司 A kind of coding method of lifting HDR Subjective video qualities
CN109862359A (en) * 2018-12-29 2019-06-07 北京数码视讯软件技术发展有限公司 Bit rate control method, device and electronic equipment based on hierarchical B-frame
CN110062230A (en) * 2019-04-29 2019-07-26 湖南国科微电子股份有限公司 Image encoding method and device
CN110620924A (en) * 2019-09-23 2019-12-27 广州虎牙科技有限公司 Method and device for processing coded data, computer equipment and storage medium
CN111988611A (en) * 2020-07-24 2020-11-24 北京达佳互联信息技术有限公司 Method for determining quantization offset information, image coding method, image coding device and electronic equipment
CN112738516A (en) * 2021-03-30 2021-04-30 浙江华创视讯科技有限公司 Encoding method, encoding device, storage medium and electronic equipment
CN112887725A (en) * 2021-01-19 2021-06-01 珠海全志科技股份有限公司 Reference frame buffer data compression method, computer device and computer readable storage medium
WO2021244341A1 (en) * 2020-06-05 2021-12-09 中兴通讯股份有限公司 Picture coding method and apparatus, electronic device and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101416512A (en) * 2006-04-07 2009-04-22 微软公司 Quantization adjustment based on texture level
CN101572810A (en) * 2008-04-29 2009-11-04 合肥坤安电子科技有限公司 Video encoding method based on interested regions
CN102714725A (en) * 2010-01-06 2012-10-03 杜比实验室特许公司 High performance rate control for multi-layered video coding applications
US20170070745A1 (en) * 2014-03-10 2017-03-09 Euclid Discoveries, Llc Perceptual Optimization for Model-Based Video Encoding
CN107087163A (en) * 2017-06-26 2017-08-22 杭州当虹科技有限公司 A kind of coding method of lifting HDR Subjective video qualities
CN109862359A (en) * 2018-12-29 2019-06-07 北京数码视讯软件技术发展有限公司 Bit rate control method, device and electronic equipment based on hierarchical B-frame
CN110062230A (en) * 2019-04-29 2019-07-26 湖南国科微电子股份有限公司 Image encoding method and device
CN110620924A (en) * 2019-09-23 2019-12-27 广州虎牙科技有限公司 Method and device for processing coded data, computer equipment and storage medium
WO2021244341A1 (en) * 2020-06-05 2021-12-09 中兴通讯股份有限公司 Picture coding method and apparatus, electronic device and computer readable storage medium
CN111988611A (en) * 2020-07-24 2020-11-24 北京达佳互联信息技术有限公司 Method for determining quantization offset information, image coding method, image coding device and electronic equipment
CN112887725A (en) * 2021-01-19 2021-06-01 珠海全志科技股份有限公司 Reference frame buffer data compression method, computer device and computer readable storage medium
CN112738516A (en) * 2021-03-30 2021-04-30 浙江华创视讯科技有限公司 Encoding method, encoding device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHENYU LIU, ET AL: "Optimize x265 Rate Control: An Exploration of Lookahead in Frame Bit Allocation and Slice Type Decision", 《IEEE TRANSACTIONS ON IMAGE PROCESSING ( VOLUME: 28, ISSUE: 5, MAY 2019)》 *
姜晓鹏: "基于视觉显著性的HEVC快速帧间预测算法研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Similar Documents

Publication Publication Date Title
US11178404B2 (en) Method and apparatus of video coding
CN108337515B (en) Video coding method and device
US11070803B2 (en) Method and apparatus for determining coding cost of coding unit and computer-readable storage medium
CN110620924B (en) Method and device for processing coded data, computer equipment and storage medium
CN112672149B (en) Video processing method and device, storage medium and server
EP0624981A2 (en) Motion vector detecting circuit
CN109587491A (en) A kind of intra-frame prediction method, device and storage medium
CN110956594A (en) Image filtering method and device, electronic equipment and storage medium
CN112437301B (en) Code rate control method and device for visual analysis, storage medium and terminal
CN114554204A (en) Method and device for adjusting image quality of coded image
CN109951706B (en) Video coding method, device and coder
CN113691811B (en) Coding block dividing method, device, system and storage medium
CN113438386B (en) Dynamic and static judgment method and device applied to video processing
CN113068050B (en) Method and device for determining sample point adaptive compensation mode of tree-shaped coding block
CN111445411B (en) Image denoising method, image denoising device, computer equipment and storage medium
CN115914629A (en) Video coding method and device and electronic equipment
US20210112283A1 (en) Encoding apparatus, image interpolating apparatus and encoding program
CN112866692B (en) HEVC-based coding unit dividing method and device and electronic equipment
CN113194311B (en) Image processing method, image processor, and storage medium
CN116886880B (en) Method, device, equipment and computer program product for adjusting surveillance video
Wang et al. Video coding optimization with visual-attention area extraction
CN115955564A (en) Video coding method, device, equipment and medium
CN110784716A (en) Media data processing method, device and medium
CN116471405A (en) Encoding method, encoding device, electronic equipment and readable storage medium
CN114782258A (en) Adaptive sharpening overshoot control method and device for image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination