Image compression quality prediction method and system
Through the image compression quality prediction system, the quality prediction model and the deep learning model are used to analyze the outliers and features of the image, solving the problem of inaccurate image compression quality prediction in the existing technology, and providing accurate compression quality evaluation and stability guarantee. .
Patent Information
- Application Number
- CN202410675334.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing image compression methods lack accurate prediction of compressed image quality, resulting in users being unable to make reasonable trade-offs and choices before compression.
An image compression quality prediction system is designed. By obtaining and analyzing the abnormal values, contrast values and saturation values of pre- and post-compression images, and using quality prediction models and deep learning models, the quality prediction coefficients are calculated to predict image compression quality. .
It achieves accurate prediction of image compression quality, provides users with a basis for selecting compression parameters, improves the stability of image compression, and avoids quality loss.
Smart Images

Figure CN118283268B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image compression, and in particular to an image compression quality prediction method and system. Background Art
[0002] With the advent of the digital age, the amount of image data has exploded. In order to store and transmit these massive image data, image compression technology has been widely used. Therefore, in the field of image processing and transmission, compression is an indispensable step, which helps to reduce the demand for storage space and transmission bandwidth. However, the compression process may cause loss of image quality, especially in lossy compression. The existing compression methods lack accurate prediction of the quality of compressed images, which makes it impossible for users to make reasonable trade-offs and choices before compression. Therefore, developing a method and system that can predict image compression quality has important practical application value. Summary of the invention
[0003] In order to overcome the above technical problems, the purpose of the present invention is to provide an image compression quality prediction method and system, which solves the problem that the existing compression methods lack accurate prediction of the quality of the compressed image, resulting in the user being unable to make reasonable trade-offs and choices before compression.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] An image compression quality prediction system, comprising:
[0006] A pre-compression storage module is used to receive the information acquisition instruction to obtain the pre-compression quality evaluation information of the selected qualified image Hj, and send the pre-compression quality evaluation information to the quality evaluation module; wherein the pre-compression quality evaluation information includes the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ;
[0007] The specific process of the pre-pressing storage module obtaining the pre-pressing quality evaluation information is as follows:
[0008] After receiving the information acquisition instruction, the image abnormality coefficient HY, contrast and saturation of the selected qualified image Hj are acquired, and they are marked as the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ respectively, and the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ are sent to the quality evaluation module;
[0009] A post-compression storage module, used to receive the information acquisition instruction to obtain the post-compression quality evaluation information of the post-compression image Hj, and send the post-compression quality evaluation information to the quality evaluation module; wherein the post-compression quality evaluation information includes the post-compression picture abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH;
[0010] The specific process of the post-pressing storage module obtaining the post-pressing quality evaluation information is as follows:
[0011] Mark the compressed image formed after compressing the selected qualified image Hj as compressed image Hj;
[0012] After receiving the information acquisition instruction, the image abnormality coefficient HY, contrast and saturation of the compressed image Hj are acquired, and they are marked as compressed image abnormality value YH, compressed contrast value DH and compressed saturation value BH respectively, and the compressed image abnormality value YH, compressed contrast value DH and compressed saturation value BH are sent to the quality evaluation module;
[0013] The quality evaluation module is used to obtain the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, and to obtain the compression quality prediction value according to the quality prediction coefficient ZYj, and to display the compression quality prediction value.
[0014] As a further solution of the present invention: the specific process of the quality evaluation module obtaining the compression quality prediction value is as follows:
[0015] The pre-compression picture abnormal value YQ, pre-compression contrast value DQ, pre-compression saturation value BQ, post-compression picture abnormal value YH, post-compression contrast value DH and post-compression saturation value BH are quantized, and the values of the pre-compression picture abnormal value YQ, pre-compression contrast value DQ, pre-compression saturation value BQ, post-compression picture abnormal value YH, post-compression contrast value DH and post-compression saturation value BH are extracted, and substituted into the formula for calculation. According to the formula The quality prediction coefficient ZYj is obtained, where κ is a preset mathematical constant, β1, β2 and β3 are preset proportional coefficients corresponding to the set image abnormality coefficient HY, contrast and saturation, β1, β2 and β3 satisfy β1+β2+β3=1, 0<β2<β3<β1<1, and β1=0.58, β2=0.20, β3=0.22;
[0016] All quality prediction coefficients ZYj are summed up and averaged, and are marked as compression quality prediction values, and the compression quality prediction values are displayed.
[0017] As a further solution of the present invention: the image compression quality prediction system further includes:
[0018] The model building module is used to build a quality prediction model for image quality prediction.
[0019] As a further solution of the present invention: the pre-compression storage module is also used to obtain the image abnormality information of the pre-compression image i, and send the image abnormality information to the quality analysis module; wherein the image abnormality information includes flickering information SD, stuck frame information KZ and deformation information BX.
[0020] As a further solution of the present invention: the specific process of the pre-compression storage module obtaining the abnormal picture information is as follows:
[0021] Obtain all uncompressed images from historical data and mark them as pre-compression images i, where i=1, 2, 3, ..., n, where n is a positive integer, n represents the total number of pre-compression images, and i represents the number of any pre-compression image;
[0022] Obtain the number of screen flickering and jittering phenomena that occur during the playback of the pre-compression image i, and mark them as flicker value SS and jitter value DD respectively. Quantify the flicker value SS and jitter value DD, extract the values of the flicker value SS and jitter value DD, and substitute them into the formula for calculation. According to the formula Obtain flicker information SD, where s1 and s2 are preset proportional coefficients corresponding to the set flicker value SS and jitter value DD, respectively, s1 and s2 satisfy s1+s2=1, 0<s2<s1<1, and s1=0.55, s2=0.45;
[0023] Obtain the number of times the pre-compression image i appears stuttering and the number of times the frame skipping occurs during playback, and mark them as the stuttering value KD and the frame skipping value TZ, respectively. Quantify the stuttering value KD and the frame skipping value TZ, extract the values of the stuttering value KD and the frame skipping value TZ, and substitute them into the formula for calculation. According to the formula Obtain the stuck frame information KZ, where k1 and k2 are the preset proportional coefficients corresponding to the set stuck value KD and the frame skip value TZ, respectively, k1 and k2 satisfy k1+k2=1, 0<k1<k2<1, k1=0.37, k2=0.63;
[0024] The number of stretching, compression, distortion and the total area of spot phenomenon of the pre-compression image i during playback are obtained, and they are marked as stretching value LS, compression value YS, distortion value NQ and spot value BD respectively. The stretching value LS, compression value YS, distortion value NQ and spot value BD are quantified, and the values of the stretching value LS, compression value YS, distortion value NQ and spot value BD are extracted and substituted into the formula for calculation. According to the formula Obtain deformation information BX, wherein b1, b2, b3 and b4 are preset proportional coefficients corresponding to the set stretch value LS, compression value YS, distortion value NQ and spot value BD, respectively, b1, b2, b3 and b4 satisfy b1+b2+b3+b4=1, 0<b4<b3<b2<b1<1, and b1=0.31, b2=0.28, b3=0.23, b4=0.18;
[0025] The flash information SD, the card frame information KZ and the deformation information BX are sent to the quality analysis module.
[0026] As a further solution of the present invention: the image compression quality prediction system further includes:
[0027] The quality analysis module is used to obtain the picture abnormality coefficient HY according to the picture abnormality information, and send the picture abnormality coefficient HY to the quality evaluation module.
[0028] As a further solution of the present invention: the specific process of the quality analysis module obtaining the picture abnormality coefficient HY is as follows:
[0029] The flashing information SD, the stuck frame information KZ and the deformation information BX are quantified, the values of the flashing information SD, the stuck frame information KZ and the deformation information BX are extracted, and the values are substituted into the formula for calculation. The image abnormality coefficient HY is obtained, where ρ is a preset error adjustment factor, ρ=1.106, h1, h2 and h3 are preset weight factors corresponding to the set flash information SD, stuck frame information KZ and deformation information BX, h1, h2 and h3 satisfy h3>h2>h1>1.958, h1=2.21, h2=2.93, h3=3.75;
[0030] The picture abnormality coefficient HY is sent to the quality evaluation module.
[0031] As a further solution of the present invention: the quality evaluation module is also used to divide the pre-compression image i into abnormal images and qualified images according to the picture abnormality coefficient HY, and screen the qualified images to obtain the selected qualified image Hj, and at the same time generate information acquisition instructions, and send the information acquisition instructions to the pre-compression storage module and the post-compression storage module.
[0032] As a further solution of the present invention: the specific process of the quality evaluation module generating the information acquisition instruction is as follows:
[0033] Compare the image abnormality coefficient HY with the preset image abnormality threshold HYy:
[0034] If the image abnormality coefficient HY ≥ the image abnormality threshold HYy, the pre-compression image i is marked as an abnormal image;
[0035] If the image abnormality coefficient HY is less than the image abnormality threshold HYy, the pre-compression image i is marked as a qualified image;
[0036] Obtain the occupied capacity and duration of the image that needs to be predicted for image compression quality, screen out qualified images with the same occupied capacity and duration, and mark them as selected qualified images Hj, j=1, 2, 3, ..., m, where m is a positive integer, m represents the total number of selected qualified images, j is the number of any selected qualified image, and at the same time generate an information acquisition instruction and send the information acquisition instruction to the pre-compression storage module and the post-compression storage module.
[0037] As a further solution of the present invention: a method for predicting image compression quality comprises the following steps:
[0038] Step 1: The model building module builds a quality prediction model for image quality prediction;
[0039] Step 2: The pre-compression storage module obtains the image abnormality information of the pre-compression image i, wherein the image abnormality information includes the flicker information SD, the stuck frame information KZ and the deformation information BX, and sends the image abnormality information to the quality analysis module;
[0040] Step 3: The quality analysis module obtains the picture abnormality coefficient HY according to the picture abnormality information, and sends the picture abnormality coefficient HY to the quality evaluation module;
[0041] Step 4: The quality evaluation module divides the pre-compression image i into abnormal images and qualified images according to the image abnormality coefficient HY, and screens the qualified images to obtain the selected qualified image Hj, and generates an information acquisition instruction at the same time, and sends the information acquisition instruction to the pre-compression storage module and the post-compression storage module;
[0042] Step 5: The pre-compression storage module receives the information acquisition instruction to acquire the pre-compression quality evaluation information of the selected qualified image Hj, wherein the pre-compression quality evaluation information includes the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ, and sends the pre-compression quality evaluation information to the quality evaluation module;
[0043] Step 6: The post-compression storage module receives the information acquisition instruction to acquire the post-compression quality evaluation information of the post-compression image Hj, wherein the post-compression quality evaluation information includes the post-compression image abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH, and sends the post-compression quality evaluation information to the quality evaluation module;
[0044] Step 7: The quality evaluation module obtains the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, obtains the compression quality prediction value according to the quality prediction coefficient ZYj, and displays the compression quality prediction value.
[0045] Beneficial effects of the present invention:
[0046] The present invention provides an image compression quality prediction method and system. The method first collects and analyzes data of images that have been compressed in historical data to obtain picture abnormality information. The picture abnormality coefficient obtained based on the picture abnormality information can comprehensively measure the picture abnormality degree of the image before compression, and the larger the picture abnormality coefficient is, the higher the picture abnormality degree is. When the picture abnormality degree is high, it is not used as a basis for quality prediction. Then, a qualified image is selected as a basis for quality prediction, and pre-compression quality evaluation information and post-compression quality evaluation information are obtained. A quality prediction coefficient is obtained based on the pre-compression quality evaluation information and the post-compression quality evaluation information. The compression quality prediction value obtained based on the quality prediction coefficient can predict and evaluate the image compression quality, and the larger the compression quality prediction value is, the higher the image compression quality is. The compression quality prediction value can be used as an effective reference for users to select image compression.
[0047] The system automatically extracts image features through a deep learning model, avoiding the tedious manual feature extraction process in traditional methods, improving processing efficiency, and using the model to predict image quality, which can accurately reflect the quality of compressed images, providing a reliable basis for adjusting compression parameters, ensuring image compression stability, and avoiding unexpected quality loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The present invention will be further described below in conjunction with the accompanying drawings.
[0049] Figure 1 It is a principle block diagram of an image compression quality prediction system in the present invention;
[0050] Figure 2 It is a flow chart of an image compression quality prediction method in the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Embodiment 1:
[0053] See also Figure 1 As shown, this embodiment is an image compression quality prediction system, comprising the following modules: a model building module, a pre-compression storage module, a quality analysis module, a quality evaluation module and a post-compression storage module;
[0054] Wherein, the model building module is used to build a quality prediction model for image quality prediction;
[0055] The pre-compression storage module is used to obtain the image abnormality information of the pre-compression image i, and send the image abnormality information to the quality analysis module; wherein the image abnormality information includes flicker information SD, stuck frame information KZ and deformation information BX; it is also used to receive the information acquisition instruction to obtain the pre-compression quality evaluation information of the selected qualified image Hj, and send the pre-compression quality evaluation information to the quality evaluation module; wherein the pre-compression quality evaluation information includes the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ;
[0056] The quality analysis module is used to obtain a picture abnormality coefficient HY according to the picture abnormality information, and send the picture abnormality coefficient HY to the quality evaluation module;
[0057] The quality evaluation module is used to divide the pre-compression image i into abnormal images and qualified images according to the image abnormality coefficient HY, and screen the qualified images to obtain the selected qualified image Hj, and generate an information acquisition instruction at the same time, and send the information acquisition instruction to the pre-compression storage module and the post-compression storage module; it is also used to obtain the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, and obtain the compression quality prediction value according to the quality prediction coefficient ZYj, and display the compression quality prediction value;
[0058] Among them, the post-compression storage module is used to receive the information acquisition instruction to obtain the post-compression quality evaluation information of the post-compression image Hj, and send the post-compression quality evaluation information to the quality evaluation module; wherein the post-compression quality evaluation information includes the post-compression picture abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH.
[0059] Embodiment 2:
[0060] See also Figure 2 As shown, this embodiment is a method for predicting image compression quality, comprising the following steps:
[0061] Step 1: The model building module builds a quality prediction model for image quality prediction;
[0062] Step 2: The pre-compression storage module obtains the image abnormality information of the pre-compression image i, wherein the image abnormality information includes the flicker information SD, the stuck frame information KZ and the deformation information BX, and sends the image abnormality information to the quality analysis module;
[0063] Step 3: The quality analysis module obtains the picture abnormality coefficient HY according to the picture abnormality information, and sends the picture abnormality coefficient HY to the quality evaluation module;
[0064] Step 4: The quality evaluation module divides the pre-compression image i into abnormal images and qualified images according to the image abnormality coefficient HY, and screens the qualified images to obtain the selected qualified image Hj, and generates an information acquisition instruction at the same time, and sends the information acquisition instruction to the pre-compression storage module and the post-compression storage module;
[0065] Step 5: The pre-compression storage module receives the information acquisition instruction to acquire the pre-compression quality evaluation information of the selected qualified image Hj, wherein the pre-compression quality evaluation information includes the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ, and sends the pre-compression quality evaluation information to the quality evaluation module;
[0066] Step 6: The post-compression storage module receives the information acquisition instruction to acquire the post-compression quality evaluation information of the post-compression image Hj, wherein the post-compression quality evaluation information includes the post-compression image abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH, and sends the post-compression quality evaluation information to the quality evaluation module;
[0067] Step 7: The quality evaluation module obtains the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, obtains the compression quality prediction value according to the quality prediction coefficient ZYj, and displays the compression quality prediction value.
[0068] Embodiment 3:
[0069] Based on any of the above embodiments, Embodiment 3 of the present invention is a model building module. The function of the model building module is to build a quality prediction model. The specific process is as follows:
[0070] The model building module adopts convolutional neural network deep learning technology to construct a quality prediction model for image quality prediction, wherein the quality prediction model includes a pre-compression storage module, a post-compression storage module, a quality analysis module and a quality evaluation module.
[0071] Embodiment 4:
[0072] Based on any of the above embodiments, Embodiment 4 of the present invention is a pre-pressing storage module, and the pre-pressing storage module has two functions;
[0073] The first function is to obtain abnormal picture information, where the abnormal picture information includes flashing information SD, stuck frame information KZ and deformation information BX. The specific process is as follows:
[0074] The pre-compression storage module obtains all uncompressed images from the historical data and marks them as pre-compression images i, where i=1, 2, 3, ..., n, where n is a positive integer, n represents the total number of pre-compression images, and i represents the number of any pre-compression image;
[0075] The pre-compression storage module obtains the number of screen flickering and jittering phenomena that occur during the playback of the pre-compression image i, and marks them as flicker value SS and jitter value DD respectively, quantizes the flicker value SS and jitter value DD, extracts the values of the flicker value SS and jitter value DD, and substitutes them into the formula for calculation. Obtain flicker information SD, where s1 and s2 are preset proportional coefficients corresponding to the set flicker value SS and jitter value DD, respectively, s1 and s2 satisfy s1+s2=1, 0<s2<s1<1, and s1=0.55, s2=0.45;
[0076] The pre-compression storage module obtains the number of times the pre-compression image i appears stuttering and the number of times the frame skipping occurs during playback, and marks them as stuttering value KD and frame skipping value TZ respectively, quantizes the stuttering value KD and the frame skipping value TZ, extracts the values of the stuttering value KD and the frame skipping value TZ, and substitutes them into the formula for calculation. Obtain the stuck frame information KZ, where k1 and k2 are the preset proportional coefficients corresponding to the set stuck value KD and the frame skip value TZ, respectively, k1 and k2 satisfy k1+k2=1, 0<k1<k2<1, k1=0.37, k2=0.63;
[0077] The pre-compression storage module obtains the number of stretching phenomena, the number of compression phenomena, the number of distortion phenomena, and the total area of spot phenomena in the pre-compression image i during playback, and marks them as stretching value LS, compression value YS, distortion value NQ, and spot value BD, respectively. The stretching value LS, compression value YS, distortion value NQ, and spot value BD are quantified, and the values of the stretching value LS, compression value YS, distortion value NQ, and spot value BD are extracted and substituted into the formula for calculation. According to the formula Obtain deformation information BX, wherein b1, b2, b3 and b4 are preset proportional coefficients corresponding to the set stretch value LS, compression value YS, distortion value NQ and spot value BD, respectively, b1, b2, b3 and b4 satisfy b1+b2+b3+b4=1, 0<b4<b3<b2<b1<1, and b1=0.31, b2=0.28, b3=0.23, b4=0.18;
[0078] The pre-press storage module sends the flashing information SD, the card frame information KZ and the deformation information BX to the quality analysis module;
[0079] The second function is to obtain pre-compression quality evaluation information, where the pre-compression quality evaluation information includes the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ. The specific process is as follows:
[0080] The pre-compression storage module receives the information acquisition instruction to obtain the picture abnormality coefficient HY, contrast and saturation of the selected qualified image Hj, and marks them as the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ respectively, and sends the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ to the quality evaluation module.
[0081] Embodiment 5:
[0082] Based on any of the above embodiments, Embodiment 5 of the present invention is a quality analysis module. The function of the quality analysis module is to obtain a picture abnormality coefficient HY. The specific process is as follows:
[0083] The quality analysis module quantifies the flash information SD, the stuck frame information KZ and the deformation information BX, extracts the values of the flash information SD, the stuck frame information KZ and the deformation information BX, and substitutes them into the formula for calculation. The image abnormality coefficient HY is obtained, where ρ is a preset error adjustment factor, ρ=1.106, h1, h2 and h3 are preset weight factors corresponding to the set flash information SD, stuck frame information KZ and deformation information BX, h1, h2 and h3 satisfy h3>h2>h1>1.958, h1=2.21, h2=2.93, h3=3.75;
[0084] The quality analysis module sends the picture abnormality coefficient HY to the quality evaluation module.
[0085] Embodiment 6:
[0086] Based on any of the above embodiments, Embodiment 6 of the present invention is a quality evaluation module, and the quality evaluation module has two functions;
[0087] One of the functions is to obtain the selected qualified image Hj. The specific process is as follows:
[0088] The quality evaluation module compares the image abnormality coefficient HY with the preset image abnormality threshold HYy:
[0089] If the image abnormality coefficient HY ≥ the image abnormality threshold HYy, the pre-compression image i is marked as an abnormal image;
[0090] If the image abnormality coefficient HY is less than the image abnormality threshold HYy, the pre-compression image i is marked as a qualified image;
[0091] The quality evaluation module obtains the occupied capacity and duration of the image that needs to be predicted for image compression quality, screens out qualified images with the same occupied capacity and duration, and marks them as selected qualified images Hj, j=1, 2, 3, ..., m, where m is a positive integer, m represents the total number of selected qualified images, j is the number of any selected qualified image, and generates an information acquisition instruction at the same time, and sends the information acquisition instruction to the pre-compression storage module and the post-compression storage module;
[0092] The second function is to obtain the compression quality prediction value. The specific process is as follows:
[0093] The quality evaluation module quantifies the pre-compression image abnormality value YQ, pre-compression contrast value DQ, pre-compression saturation value BQ, post-compression image abnormality value YH, post-compression contrast value DH and post-compression saturation value BH, extracts the values of the pre-compression image abnormality value YQ, pre-compression contrast value DQ, pre-compression saturation value BQ, post-compression image abnormality value YH, post-compression contrast value DH and post-compression saturation value BH, and substitutes them into the formula for calculation. According to the formula The quality prediction coefficient ZYj is obtained, where κ is a preset mathematical constant, β1, β2 and β3 are preset proportional coefficients corresponding to the set image abnormality coefficient HY, contrast and saturation, β1, β2 and β3 satisfy β1+β2+β3=1, 0<β2<β3<β1<1, and β1=0.58, β2=0.20, β3=0.22;
[0094] The quality evaluation module sums up all the quality prediction coefficients ZYj and calculates the average value, marks it as the compression quality prediction value, and displays the compression quality prediction value.
[0095] Embodiment 7:
[0096] Based on any of the above embodiments, Embodiment 7 of the present invention is a post-compression storage module, and the function of the post-compression storage module is to obtain post-compression quality evaluation information, wherein the post-compression quality evaluation information includes a post-compression picture abnormality value YH, a post-compression contrast value DH, and a post-compression saturation value BH. The specific process is as follows:
[0097] The post-compression storage module marks the compressed image formed after compressing the selected qualified image Hj as the post-compression image Hj;
[0098] The post-compression storage module receives the information acquisition instruction to obtain the picture abnormality coefficient HY, contrast and saturation of the post-compression image Hj, and marks them as the post-compression picture abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH respectively, and sends the post-compression picture abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH to the quality evaluation module.
[0099] Based on Examples 1-7, the working principle of the present invention is as follows:
[0100] The present invention provides an image compression quality prediction method and system. A quality prediction model for image quality prediction is constructed through a model building module. The image abnormality information of the pre-compression image is obtained through a pre-compression storage module, wherein the image abnormality information includes flicker information, frame stuck information and deformation information. The image abnormality coefficient is obtained according to the image abnormality information through a quality analysis module. The pre-compression image is divided into abnormal images and qualified images according to the image abnormality coefficient through a quality evaluation module, and the qualified images are screened to obtain a selected qualified image. At the same time, an information acquisition instruction is generated. The pre-compression storage module receives the information acquisition instruction to obtain the pre-compression quality evaluation information of the selected qualified image, wherein the pre-compression quality evaluation information includes a pre-compression image abnormality value, a pre-compression contrast value and a pre-compression saturation value. The post-compression storage module receives the information acquisition instruction to obtain the post-compression quality evaluation information of the post-compression image, wherein the post-compression quality evaluation information includes a post-compression image abnormality value, a post-compression contrast value and a post-compression saturation value. The quality evaluation module obtains a quality prediction coefficient according to the pre-compression quality evaluation information and the post-compression quality evaluation information, and obtains a compression quality prediction value according to the quality prediction coefficient, and the compression quality prediction value is converted into a compression quality prediction value. Display; the method first collects and analyzes the compressed images in the historical data to obtain the image abnormality information. The image abnormality coefficient obtained according to the image abnormality information can comprehensively measure the image abnormality degree of the image before compression, and the larger the image abnormality coefficient is, the higher the image abnormality degree is. When the image abnormality degree is high, it is not used as the basis for quality prediction. Then, the qualified image is selected as the basis for quality prediction, and the pre-compression quality evaluation information and the post-compression quality evaluation information are obtained. The quality prediction coefficient is obtained according to the pre-compression quality evaluation information and the post-compression quality evaluation information. The compression quality prediction value obtained according to the quality prediction coefficient can predict and evaluate the image compression quality, and the larger the compression quality prediction value is, the higher the image compression quality is. The compression quality prediction value can be used as an effective reference for the user to select image compression; the system automatically extracts image features through a deep learning model, avoids the tedious manual feature extraction process in the traditional method, improves processing efficiency, and uses the model to predict image quality, which can accurately reflect the quality of the compressed image, provide a reliable basis for compression parameter adjustment, ensure image compression stability, and avoid accidental quality loss.
[0101] It should be further explained that the above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0102] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0103] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined in this application, they shall all fall within the protection scope of the present invention.
Claims
1. An image compression quality prediction system, characterized in that: include: A pre-compression storage module is used to obtain the image abnormality information of the pre-compression image i, and send the image abnormality information to the quality analysis module; wherein the image abnormality information includes flicker information SD, stuck frame information KZ and deformation information BX; it is also used to receive the information acquisition instruction to obtain the pre-compression quality evaluation information of the selected qualified image Hj, and send the pre-compression quality evaluation information to the quality evaluation module; wherein the pre-compression quality evaluation information includes the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ; The specific process of the pre-compression storage module obtaining abnormal image information is as follows: Get all uncompressed images from the historical data and mark them as pre-compression images i; Obtain the number of screen flickering and jittering phenomena that occur during the playback of the pre-compression image i, and mark them as flicker value SS and jitter value DD respectively. The flicker value SS and jitter value DD are quantified according to the formula Obtaining flicker information SD, wherein s1 and s2 are preset proportional coefficients corresponding to the set flicker value SS and jitter value DD respectively; Obtain the number of times the pre-compression image i appears stuttering and the number of times the frame skipping occurs during playback, and mark them as the stuttering value KD and the frame skipping value TZ, respectively. The stuttering value KD and the frame skipping value TZ are quantified according to the formula Obtain stuck frame information KZ, where k1 and k2 are preset proportional coefficients corresponding to the set stuck value KD and frame skip value TZ respectively; The number of stretching, compression, distortion and total area of spot phenomenon of pre-compression image i during playback are obtained, and they are marked as stretching value LS, compression value YS, distortion value NQ and spot value BD respectively. The stretching value LS, compression value YS, distortion value NQ and spot value BD are quantified according to the formula Obtain deformation information BX, wherein b1, b2, b3 and b4 are preset proportional coefficients corresponding to the set stretch value LS, compression value YS, distortion value NQ and spot value BD respectively; Send the flashing information SD, the card frame information KZ and the deformation information BX to the quality analysis module; The specific process of the pre-pressing storage module obtaining the pre-pressing quality evaluation information is as follows: After receiving the information acquisition instruction, the image abnormality coefficient HY, contrast and saturation of the selected qualified image Hj are acquired, and they are marked as the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ respectively, and the pre-compression image abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ are sent to the quality evaluation module; The quality analysis module is used to obtain a picture abnormality coefficient HY according to the picture abnormality information, and send the picture abnormality coefficient HY to the quality evaluation module; The specific process of the quality analysis module obtaining the picture abnormality coefficient HY is as follows: The flash information SD, the frame information KZ and the deformation information BX are quantized according to the formula Obtain the picture abnormality coefficient HY, wherein ρ is a preset error adjustment factor, h1, h2 and h3 are respectively preset weight factors corresponding to the set flash information SD, stuck frame information KZ and deformation information BX; Send the picture abnormality coefficient HY to the quality evaluation module; A post-compression storage module, used to receive the information acquisition instruction to obtain the post-compression quality evaluation information of the post-compression image Hj, and send the post-compression quality evaluation information to the quality evaluation module; wherein the post-compression quality evaluation information includes the post-compression picture abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH; The specific process of the post-pressing storage module obtaining the post-pressing quality evaluation information is as follows: Mark the compressed image formed after compressing the selected qualified image Hj as compressed image Hj; After receiving the information acquisition instruction, the image abnormality coefficient HY, contrast and saturation of the compressed image Hj are acquired, and they are marked as compressed image abnormality value YH, compressed contrast value DH and compressed saturation value BH respectively, and the compressed image abnormality value YH, compressed contrast value DH and compressed saturation value BH are sent to the quality evaluation module; The quality evaluation module is used to obtain the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, and to obtain the compression quality prediction value according to the quality prediction coefficient ZYj, and to display the compression quality prediction value.
2. The image compression quality prediction system according to claim 1, characterized in that: The specific process of the quality evaluation module obtaining the compression quality prediction value is as follows: The pre-compression image abnormal value YQ, pre-compression contrast value DQ, pre-compression saturation value BQ, post-compression image abnormal value YH, post-compression contrast value DH and post-compression saturation value BH are quantized according to the formula The quality prediction coefficient ZYj is obtained, wherein κ is a preset mathematical constant, and β1, β2 and β3 are preset proportional coefficients corresponding to the set picture abnormality coefficient HY, contrast and saturation respectively; All quality prediction coefficients ZYj are summed up and averaged, and are marked as compression quality prediction values, and the compression quality prediction values are displayed.
3. The image compression quality prediction system according to claim 1, characterized in that: Also includes: The model building module is used to build a quality prediction model for image quality prediction.
4. The image compression quality prediction system according to claim 1, characterized in that: The quality evaluation module is also used to divide the pre-compression image i into abnormal images and qualified images according to the image abnormality coefficient HY, and screen the qualified images to obtain the selected qualified image Hj, while generating information acquisition instructions and sending the information acquisition instructions to the pre-compression storage module and the post-compression storage module.
5. The image compression quality prediction system according to claim 4, characterized in that: The specific process of the quality evaluation module generating information acquisition instructions is as follows: Compare the image abnormality coefficient HY with the preset image abnormality threshold HYy: If the image abnormality coefficient HY ≥ the image abnormality threshold HYy, the pre-compression image i is marked as an abnormal image; If the image abnormality coefficient HY is less than the image abnormality threshold HYy, the pre-compression image i is marked as a qualified image; Obtain the occupied capacity and duration of the image that needs image compression quality prediction, screen out qualified images with the same occupied capacity and duration, and mark them as selected qualified images Hj. At the same time, generate information acquisition instructions and send the information acquisition instructions to the pre-compression storage module and the post-compression storage module.
6. An image compression quality prediction method of the image compression quality prediction system according to any one of claims 1 to 5, characterized in that: The following steps are involved: Step 1: The model building module builds a quality prediction model for image quality prediction; Step 2: The pre-compression storage module obtains the image abnormality information of the pre-compression image i, wherein the image abnormality information includes the flicker information SD, the stuck frame information KZ and the deformation information BX, and sends the image abnormality information to the quality analysis module; Step 3: The quality analysis module obtains the picture abnormality coefficient HY according to the picture abnormality information, and sends the picture abnormality coefficient HY to the quality evaluation module; The specific process of the quality analysis module obtaining the picture abnormality coefficient HY is as follows: The flash information SD, the frame information KZ and the deformation information BX are quantized according to the formula Obtain the picture abnormality coefficient HY, wherein ρ is a preset error adjustment factor, h1, h2 and h3 are respectively preset weight factors corresponding to the set flash information SD, stuck frame information KZ and deformation information BX; Step 4: The quality evaluation module divides the pre-compression image i into abnormal images and qualified images according to the image abnormality coefficient HY, and screens the qualified images to obtain the selected qualified image Hj, and generates an information acquisition instruction at the same time, and sends the information acquisition instruction to the pre-compression storage module and the post-compression storage module; Step 5: The pre-compression storage module receives the information acquisition instruction to acquire the pre-compression quality evaluation information of the selected qualified image Hj, wherein the pre-compression quality evaluation information includes the pre-compression picture abnormality value YQ, the pre-compression contrast value DQ and the pre-compression saturation value BQ, and sends the pre-compression quality evaluation information to the quality evaluation module; Step 6: The post-compression storage module receives the information acquisition instruction to acquire the post-compression quality evaluation information of the post-compression image Hj, wherein the post-compression quality evaluation information includes the post-compression image abnormality value YH, the post-compression contrast value DH and the post-compression saturation value BH, and sends the post-compression quality evaluation information to the quality evaluation module; Step 7: The quality evaluation module obtains the quality prediction coefficient ZYj according to the pre-compression quality evaluation information and the post-compression quality evaluation information, obtains the compression quality prediction value according to the quality prediction coefficient ZYj, and displays the compression quality prediction value.
