Image quality evaluation method, system, electronic device and storage medium

By obtaining the sharpness parameter values ​​of the target region of the image, calculating the contrast score and assigning weights, the accuracy and efficiency problems of image sharpness evaluation in the prior art are solved, and a fast and accurate image quality assessment is achieved.

CN115797267BActive Publication Date: 2026-11-20XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211404996.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2026-11-20
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

Existing technologies rely on subjective human judgment for image sharpness assessment, which is prone to errors and expensive. These assessment tools are not suitable for batch testing and cannot quickly and accurately evaluate image quality.

Method used

By acquiring the sharpness parameter values ​​of each target region in the test image and the reference image, a sharpness contrast score is calculated, and a sharpness evaluation index, including noise, detail, and sharpness evaluation, is obtained based on the region weights.

Benefits of technology

It enables rapid and accurate image quality assessment, improving judgment efficiency and assessment accuracy, and is suitable for automated assessment of large numbers of images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115797267B_ABST
    Figure CN115797267B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of image processing, and provides an image quality evaluation method, system, electronic device and storage medium. The image quality evaluation method comprises the following steps: obtaining a definition parameter value of each target region in a test image and a definition parameter value of each target region in a reference image; obtaining a definition contrast score of each target region in the test image and each target region in the reference image according to the definition parameter value of each target region in the test image and the definition parameter value of each target region in the reference image; determining a weight value of each target region according to the definition contrast score of each target region, and obtaining a definition evaluation index of the test image according to the definition contrast score of each target region and the weight value of each target region. The method can evaluate the quality of an image in a large quantity and subjectively, and improves the judgment efficiency and evaluation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to an image quality assessment method, system, electronic device, and storage medium. Background Technology

[0002] With the development of science and technology, the functions of mobile terminals such as smartphones are becoming increasingly diverse. Image quality is now a crucial factor to consider for photographic tools such as cameras, smartphones, and tablets, and it remains a key focus for the image quality of mainstream electronic devices.

[0003] In existing technologies, image sharpness is often evaluated through subjective manual assessment or by using assessment tools. Manual testing relies on the experience of the assessors, which can easily lead to misjudgments. On the other hand, assessment tools rely too heavily on taking professional image cards, are only suitable for laboratory shooting, and are expensive, making them unsuitable for batch testing. Summary of the Invention

[0004] Therefore, it is necessary to provide a solution that can quickly and accurately assess the subjective sharpness of a large number of images to address the aforementioned technical problems, thereby realizing an image quality assessment method, system, electronic device, and storage medium for electronic devices.

[0005] This application provides an image quality assessment method, the method comprising: Obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of the target region in the reference image, wherein there are multiple target regions; Based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, a sharpness comparison value between each target region in the test image and each target region in the reference image is obtained. Based on the sharpness comparison score of each target region, the weight of each target region is determined, and based on the sharpness comparison score of each target region and the weight of each target region, the sharpness evaluation index of the test image is obtained.

[0006] In some embodiments, obtaining the sharpness comparison value between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image includes: Calculate the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0007] Specifically, the target area includes a first area to a third area, and the sharpness parameter value includes a noise value. Correspondingly, the sharpness contrast ratio of each target area includes the noise contrast ratio of the first area, the noise contrast ratio of the second area, and the noise contrast ratio of the third area. The step of determining the weight of each target region based on the sharpness comparison score of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region, includes: Determine whether the noise contrast ratio of at least one region among the first region, the second region, and the third region is greater than a first threshold. If the region is greater than the first threshold, it is considered the first region. Then, it is determined whether the noise contrast ratio of the first region is greater than the second threshold, wherein the second threshold is greater than the first threshold. If not, then the weight of the first region to the third region is determined to be 1, and the total noise score is obtained based on the noise contrast score of the first region to the third region and the weight of the first region to the third region. The noise evaluation result of the test image is obtained based on the total noise score.

[0008] Furthermore, the step of determining the weight of each target region based on the sharpness comparison score of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region, further includes: If the noise contrast scores in the first, second, and third regions are all less than or equal to the first threshold, then the weight of the first region is determined to be 0.4, the weight of the second region to be 0.3, and the weight of the third region to be 0.3. Based on the noise contrast scores from the first to the third regions and the weights from the first to the third regions, the total noise score is obtained. The noise evaluation result of the test image is obtained based on the total noise score.

[0009] In some embodiments, the target region includes a first region to a third region, and the sharpness parameter value includes a detail value. Correspondingly, the detail contrast ratio value of each target region includes the detail contrast ratio value of the first region, the detail contrast ratio value of the second region, and the detail contrast ratio value of the third region. The step of determining the weight of each target region based on the detail contrast ratio of each target region, and obtaining the detail evaluation index of the test image based on the detail contrast ratio of each target region and the weight of each target region, includes: Determine whether the detail contrast score of at least one region among the first, second, and third regions is less than a third threshold. If the region smaller than the third threshold is not the first region, then the weight of the first region is determined to be 0.5, the weight of the second region is 0.25, and the weight of the third region is 0.25. The total score of details is obtained based on the detailed comparison score from the first region to the third region and the weight of the first region to the third region. The detail evaluation result of the test image is obtained based on the total detail score.

[0010] Furthermore, the target area includes a first area to a third area, and the sharpness parameter value includes a sharpness value. Correspondingly, the sharpness contrast ratio of each target area includes the sharpness contrast ratio of the first area, the sharpness contrast ratio of the second area, and the sharpness contrast ratio of the third area. The step of determining the weight of each target region based on the sharpness contrast ratio of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness contrast ratio of each target region and the weight of each target region, includes: Determine whether the detail contrast score of at least one region among the first, second, and third regions is greater than or equal to a fourth threshold. If not, then the weight of the first region to the third region is determined to be 0.5, and the total detail score is obtained based on the detail comparison score of the first region to the third region and the weight of the first region to the third region. The noise evaluation result of the test image is obtained based on the total detail score.

[0011] Specifically, the first region is the central region, the second region is the automatic region, and the third region is the region of interest.

[0012] This application provides an image quality assessment system, including: A sharpness parameter value acquisition module is used to obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, wherein there are multiple target regions; The sharpness comparison score acquisition module is used to obtain the sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; The sharpness evaluation module determines the weight of each target region based on the sharpness comparison score of each target region, and obtains the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region.

[0013] This application provides an electronic device, including a processor and a memory. The memory stores at least one instruction, at least one program, a code set, or an instruction set. The instruction, the program, the code set, or the instruction set is loaded and executed by the processor to implement the above-described image quality assessment method.

[0014] This application provides a non-transitory computer-readable storage medium, characterized in that when the instructions in the storage medium are executed by the processor of a mobile terminal, the mobile terminal is able to execute the above-described image quality assessment method.

[0015] The image quality assessment method, system, electronic device, and storage medium provided in this application obtain the sharpness parameters of each target region in the test image and the reference image, thereby obtaining the sharpness contrast ratio of each target region, and then obtaining the image sharpness index based on the contrast ratio and weight of the target regions. This method allows for a large-scale and subjective assessment of image quality, improving judgment efficiency and assessment accuracy. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating an image quality assessment method in one embodiment; Figure 2 This is a flowchart illustrating the evaluation results of a test image compared to a reference image in one embodiment. Figure 3 This is a block diagram of an image quality assessment system in one embodiment; Figure 4 This is an internal structure diagram of a terminal device in one embodiment. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0018] In one embodiment, such as Figure 1As shown, an image quality assessment method is provided. This embodiment illustrates the method's application to an electronic device; however, it is understood that the method can also be applied to a server, or to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the image quality assessment method includes the following steps: Step S101: Obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, wherein there are multiple target regions.

[0019] Specifically, the test image is obtained by taking pictures using a test camera. The reference image is obtained by taking pictures using a comparison camera. The sharpness values ​​of the test image and the reference image are then obtained. Multiple target areas can be selected, with a minimum of three areas preferred.

[0020] Step S102: Based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, obtain the sharpness comparison value between each target region in the test image and each target region in the reference image.

[0021] Specifically, the sharpness parameter values ​​of the target regions in the test image and the reference image are selected respectively, thereby obtaining the sharpness comparison value of each target region in the test image and each target region in the reference image.

[0022] In some embodiments, obtaining the sharpness comparison value between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image includes: Calculate the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0023] Specifically, for example, the sharpness parameter value of the target area in the test image is 40, and the target area parameter value of the reference image is 50. Then, the sharpness parameter value of the target area in the test image is subtracted from the target area parameter value of the reference image, plus a base score. Here, the base score is 50, i.e., (40-50)+50=40. Therefore, 40 is the calculated result of the sharpness comparison score for one of the target areas.

[0024] Step S103: Determine the weight of each target region based on the sharpness comparison score of each target region, and obtain the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region.

[0025] Specifically, different regions are assigned different weights based on their specific characteristics. By combining the sharpness score with the weight of the target region, a sharpness evaluation index is obtained. Based on this index, the quality of the test image relative to the reference image can be determined.

[0026] In some embodiments, the target region includes a first region to a third region, and the sharpness parameter value includes a noise value. Correspondingly, the sharpness contrast ratio of each target region includes the noise contrast ratio of the first region, the noise contrast ratio of the second region, and the noise contrast ratio of the third region. The step of determining the weight of each target region based on the sharpness comparison score of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region, includes: Determine whether the noise contrast ratio of at least one region among the first region, the second region, and the third region is greater than a first threshold. If the region is greater than the first threshold, it is considered the first region. Then, it is determined whether the noise contrast ratio of the first region is greater than the second threshold, wherein the second threshold is greater than the first threshold. If not, then the weight of the first region to the third region is determined to be 1, and the total noise score is obtained based on the noise contrast score of the first region to the third region and the weight of the first region to the third region. The noise evaluation result of the test image is obtained based on the total noise score.

[0027] Specifically, the target sharpness parameters include three indicators: noise level, detail, and sharpness. The target area is divided into three regions: a first region, a second region, and a third region. The noise levels of the first, second, and third regions are calculated based on the test image and the reference image, respectively, to obtain the noise contrast ratios for the first, second, and third regions.

[0028] The first threshold is set to 55, and this threshold can be adaptively adjusted based on the presented effect. For example, consider a scenario where the noise contrast value of the first region is greater than the first threshold but not greater than the second threshold. Figure 2As shown, the noise contrast score for the first region is 60, the noise contrast score for the second region is 65, and the noise score for the third region is 70. If at least one of these contrast scores is greater than the first threshold, then it is determined whether the noise contrast score for the first region is greater than the second threshold, which is set to 80. Since the noise contrast score for the first region (60) is not greater than the second threshold (80), the weight of the first to third regions is determined to be 1. The maximum noise contrast score from the first to the third region is selected and multiplied by the weight value of 1 to obtain the total noise score. If the total noise score is 70, then the evaluation result is "Noise performance is slightly worse than the reference image".

[0029] The maximum noise score between the first and third regions is multiplied by a weight of 1 to obtain the total noise score. If the total noise score is 85, the evaluation result is "noise performance is worse than the comparison machine" based on the total noise score of 85.

[0030] In another implementation, where the noise contrast ratio of the first region is greater than the second threshold, for example, as shown below... Figure 2 As shown, the noise contrast ratio for the first region is 90, for the second region it is 70, and for the third region it is 60. If at least one contrast ratio is greater than the first threshold, then it is determined whether the noise in the first region exceeds the second threshold, thus determining whether the noise is too high. Here, the second threshold is set to 80, meaning the noise in the first region (90) is greater than the second threshold (80). Therefore, the output is "Noise too high, affecting judgment."

[0031] In one embodiment, determining the weight of each target region based on the sharpness comparison score of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region, further includes: If the noise contrast scores in the first, second, and third regions are all less than or equal to the first threshold, then the weight of the first region is determined to be 0.4, the weight of the second region to be 0.3, and the weight of the third region to be 0.3. Based on the noise contrast scores from the first to the third regions and the weights from the first to the third regions, the total noise score is obtained. The noise evaluation result of the test image is obtained based on the total noise score.

[0032] Specifically, for example, Figure 2As shown, the noise contrast ratio for the first region is 40, for the second region it is 45, and for the third region it is 50. That is, the noise contrast ratios in the first, second, and third regions are all less than or equal to the first threshold of 55. Therefore, the weights for the first region are determined to be 0.4, the second region 0.3, and the third region 0.3, resulting in a total noise score of 40. 0.4+45 0.3+50 0.3 = 44.5. Based on the total noise score of 44.5, the output evaluation result is "the test image performs better than the reference image in terms of noise".

[0033] In summary, when the total noise score is between [0, 20], it indicates that "the test image performs better than the reference image in terms of noise." When the total noise score is between (20, 45), it indicates that "the noise performance of the test image is slightly better than that of the reference image"; When the total noise score is between (45, 55), it indicates that "the noise performance of the test image is consistent with that of the reference image"; When the total noise score is between [55, 80), it indicates that "the noise performance of the test image is slightly worse than that of the reference image". When the total noise score is between [80, 100], it indicates that "the noise performance of the test image is worse than that of the reference image".

[0034] In one embodiment, the target area includes a first area to a third area, and the sharpness parameter value includes a detail value. Correspondingly, the detail contrast ratio value of each target area includes the detail contrast ratio value of the first area, the detail contrast ratio value of the second area, and the detail contrast ratio value of the third area. The step of determining the weight of each target region based on the detail contrast ratio of each target region, and obtaining the sharpness evaluation index of the test image based on the detail contrast ratio of each target region and the weight of each target region, includes: Determine whether the detail contrast score of at least one region among the first, second, and third regions is less than a third threshold. If the region smaller than the third threshold is not the first region, then the weight of the first region is determined to be 0.5, the weight of the second region is 0.25, and the weight of the third region is 0.25. The total score of details is obtained based on the detailed comparison score from the first region to the third region and the weight of the first region to the third region. The detail evaluation result of the test image is obtained based on the total detail score.

[0035] Specifically, examples illustrate the case where the detail comparison score of at least one region among the first, second, and third regions is less than the third threshold, such as... Figure 2 As shown. Here, the third threshold is set to 20, and the third threshold can be adjusted appropriately according to the required level of detail. The detail contrast ratio of the first region is 50, the detail contrast ratio of the second region is 30, and the detail contrast ratio of the third region is 10. At this point, there is one region with a detail contrast ratio smaller than the third threshold.

[0036] At this point, the region smaller than the third preset threshold is considered a non-first region. Therefore, the weight of the first region is determined to be 0.5, the weight of the second region to be 0.25, and the weight of the third region to be 0.25, resulting in a total detail score of 50. 0.5+30 0.25+10 0.25 = 35. Based on the total detail score of 35, the output evaluation result is "the test image's detail performance is slightly worse than the reference image".

[0037] If the area smaller than the third preset threshold is the first area, then the evaluation result "the test image details are too poor, affecting the judgment" will be output.

[0038] In other implementations, if the detail comparison score of all regions in the first, second, and third regions is less than the third threshold, then the weight of the first region is determined to be 0.5, the weight of the second region to be 0.25, and the weight of the third region to be 0.25, and the detail evaluation result is determined based on the weights and the detail comparison score of each region.

[0039] In summary, when the total detail score is between [0, 20], it indicates that "the test image's detail performance is worse than the reference image"; A total detail score between 20 and 45 indicates that "the test image's detail is slightly worse than the reference image." When the total detail score is between (45, 55), it means that "the detail performance of the test image is consistent with that of the reference image"; When the total detail score is between [55, 80), it means that "the test image shows slightly better detail than the reference image"; When the total detail score is between [80, 100], it means that "the test image shows better detail than the reference image".

[0040] In some embodiments, the target region includes a first region to a third region, and the sharpness parameter value includes a sharpness value. Correspondingly, the sharpness contrast ratio of each target region includes the sharpness contrast ratio of the first region, the sharpness contrast ratio of the second region, and the sharpness contrast ratio of the third region. The step of determining the weight of each target region based on the sharpness contrast ratio of each target region, and obtaining the sharpness evaluation index of the test image based on the sharpness contrast ratio of each target region and the weight of each target region, includes: Determine whether the sharpness contrast ratio of at least one region among the first, second, and third regions is greater than or equal to a fourth threshold. If not, then the weight of the first region to the third region is determined to be 0.5, and the total sharpness score is obtained based on the sharpness comparison score of the first region to the third region and the weight of the first region to the third region. The sharpness evaluation result of the test image is obtained based on the total sharpness score.

[0041] Specifically, for example, there are regions where at least one of the first, second, and third regions does not have a detail contrast score greater than or equal to the fourth threshold, such as... Figure 2 As shown. Here, the fourth threshold is set to 80, and this threshold can be adjusted appropriately according to sharpness requirements. The sharpness contrast ratio of the first region is 40, the second region is 50, and the third region is 60. Since there is no region with a sharpness contrast ratio greater than the fourth preset threshold, the weight of the first to third regions is determined to be 0.5. Total sharpness score = (maximum sharpness contrast ratio among the first to third regions) 0.5+ (Minimum sharpness ratio between Zone 1 and Zone 3) 0.5 = 60 0.5+40 0.5 = 50. Based on the total sharpness score of 50, the output evaluation result is "the sharpness performance of the test image is slightly worse than that of the reference image".

[0042] If the sharpness contrast ratio of at least one of the first, second, and third regions is greater than or equal to the fourth threshold, then the evaluation result "the sharpness of the test image is much higher than that of the reference image" will be output.

[0043] In summary, when the total sharpness score is between [0, 20], it indicates that "the sharpness performance of the test image is worse than that of the reference image"; When the total sharpness score is between (20, 45), it means that "the sharpness performance of the test image is slightly worse than that of the reference image". When the total sharpness score is between 45 and 55, it means that "the sharpness of the test image is higher than that of the reference image". When the total sharpness score is between [55, 80), it means that "the sharpness of the test image is slightly higher than that of the reference image"; When the total sharpness score is between [80, 100], it means that "the sharpness of the test image is much higher than that of the reference image".

[0044] In some embodiments, the first region is a central region, the second region is an automatic region, and the third region is a region of interest.

[0045] Specifically, the first region is the central region of the image, which has the greatest impact on the image's visual appeal. The second region is the automatic region, which can be adjusted according to the image content; it can be a flat area or a dense area of ​​the image. The region of interest is the area to be processed, outlined in the image using rectangles, circles, ellipses, irregular polygons, etc., and is usually the edge region.

[0046] In summary, the image quality assessment method provided in this application obtains the sharpness parameters of each target region in the test image and the reference image, thereby obtaining the sharpness contrast ratio of each target region. Based on the contrast ratio and weights of the target regions, the image sharpness index is obtained. This method allows for a large-scale and subjective assessment of image quality, improving judgment efficiency and assessment accuracy.

[0047] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0048] In one embodiment, such as Figure 3 As shown, Figure 3 This is a structural block diagram of an image quality assessment system according to an embodiment of this application. The image quality assessment system includes: a sharpness parameter value acquisition module 210, a sharpness contrast value acquisition module 220, and a sharpness evaluation module 230.

[0049] The sharpness parameter value acquisition module 210 is used to obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, wherein there are multiple target regions; The sharpness comparison score acquisition module 220 is used to obtain the sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; The sharpness evaluation module 230 determines the weight of each target region based on the sharpness comparison score of each target region, and obtains the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region.

[0050] In some embodiments, the sharpness comparison score acquisition module 220 further includes: calculating the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0051] In summary, the image quality assessment system provided in this application obtains the sharpness parameters of each target region in the test image and the reference image, thereby obtaining the sharpness contrast ratio of each target region. Based on the contrast ratio and weights of the target regions, the image sharpness index is obtained. This method allows for a large-scale and subjective assessment of image quality, improving judgment efficiency and assessment accuracy.

[0052] For specific limitations regarding an image quality assessment system, please refer to the limitations of the corresponding image quality assessment method mentioned above, which will not be repeated here. Each module in the aforementioned image quality assessment system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0053] In one embodiment, an electronic device is provided, which may be a terminal device, and its internal structure diagram may be as follows: Figure 4As shown, the terminal device includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements an application opening method. The display screen can be an LCD screen or a communication e-ink display. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the terminal device's casing, or an external keyboard, touchpad, or mouse.

[0054] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the solution of this application and does not constitute a limitation on the mobile terminal to which the solution of this application is applied. A specific mobile terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0055] In one embodiment, the electronic device provided in this application can be implemented as a computer program, and the computer program can be implemented as follows: Figure 4 The system runs on the computer device shown. The computer device's memory can store the various program modules that make up this image quality assessment system, for example... Figure 3 The diagram shows a sharpness parameter value acquisition module, a sharpness contrast ratio value acquisition module, and a sharpness evaluation module. The computer program comprised of these modules causes the processor to execute the steps of an image quality assessment method according to various embodiments of this application described in this specification.

[0056] For example, such as Figure 4 The computer device shown can be used as follows Figure 3The image quality assessment system shown includes a sharpness parameter value acquisition module, which performs operations to obtain the sharpness parameter values ​​of each target region in the test image and the reference image. A sharpness contrast ratio acquisition module performs operations to obtain a sharpness contrast ratio between each target region in the test image and the reference image, based on the sharpness parameter values ​​of each target region in the test image and the reference image. A sharpness evaluation module performs operations to determine the weight of each target region based on the sharpness contrast ratio, and obtains a sharpness evaluation index for the test image based on the sharpness contrast ratio and the weight of each target region.

[0057] In one embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: obtaining a sharpness parameter value for each target region in a test image and a sharpness parameter value for each target region in a reference image, wherein there are multiple target regions; obtaining a sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter values ​​for each target region in the test image and the sharpness parameter values ​​for each target region in the reference image; determining a weight for each target region based on the sharpness comparison score for each target region, and obtaining a sharpness evaluation index for the test image based on the sharpness comparison score for each target region and the weight for each target region.

[0058] In one embodiment, obtaining the sharpness comparison value between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image includes: Calculate the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0059] In summary, the electronic device provided in this application obtains the sharpness contrast ratio of each target region by acquiring the sharpness parameters of each target region in the test image and the reference image, and then obtains the image sharpness index based on the contrast ratio and weight of the target regions. This method allows for a large-scale and subjective evaluation of image quality, improving judgment efficiency and evaluation accuracy.

[0060] In one embodiment, a non-transitory computer-readable storage medium stores a computer program that, when executed by a processor, performs the following steps: obtaining a sharpness parameter value for each target region in a test image and a sharpness parameter value for each target region in a reference image, wherein there are multiple target regions; obtaining a sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter values ​​for each target region in the test image and the sharpness parameter values ​​for each target region in the reference image; determining a weight for each target region based on the sharpness comparison score for each target region, and obtaining a sharpness evaluation index for the test image based on the sharpness comparison score for each target region and the weight for each target region.

[0061] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: calculating the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0062] In summary, this application provides a non-transitory computer-readable storage medium that obtains the sharpness parameters of each target region in a test image and a reference image, thereby obtaining a sharpness contrast ratio for each target region. Based on the contrast ratio and weights of the target regions, an image sharpness index is derived. This method allows for a large-scale and subjective evaluation of image quality, improving judgment efficiency and evaluation accuracy.

[0063] In one embodiment, a computer program product is provided, which, when executed by a processor of a mobile terminal, enables an electronic device to perform the following steps: obtaining a sharpness parameter value for each target region in a test image and a sharpness parameter value for each target region in a reference image, wherein there are multiple target regions; obtaining a sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter values ​​for each target region in the test image and the sharpness parameter values ​​for each target region in the reference image; determining a weight for each target region based on the sharpness comparison score for each target region, and obtaining a sharpness evaluation index for the test image based on the sharpness comparison score for each target region and the weight for each target region.

[0064] In one embodiment, obtaining the sharpness comparison value between each target region in the test image and each target region in the reference image based on the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image includes: Calculate the difference between the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image; Based on the difference and the preset baseline score, the sharpness comparison score of each target region in the test image and each target region in the reference image is obtained.

[0065] In summary, the computer program product provided in this application obtains the sharpness parameters of each target region in a test image and a reference image, thereby obtaining a sharpness contrast ratio for each target region. Based on the contrast ratio and weights of the target regions, an image sharpness index is derived. This method allows for a large-scale and subjective evaluation of image quality, improving judgment efficiency and evaluation accuracy.

[0066] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM), etc.

[0067] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. An image quality assessment method, characterized in that, include: Obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of the target region in the reference image, wherein there are multiple target regions; Based on the sharpness parameter values ​​of each target region in the test image and the sharpness parameter values ​​of each target region in the reference image, a sharpness contrast score is obtained between each target region in the test image and the reference image. This includes: calculating the difference between the sharpness parameter values ​​of each target region in the test image and the sharpness parameter values ​​of each target region in the reference image; and obtaining the sharpness contrast score between each target region in the test image and the reference image based on the difference and a preset baseline score. The target region includes a first region to a third region. When the sharpness parameter value includes a noise value, the sharpness contrast ratio of each target region includes the noise contrast ratio of the first region, the noise contrast ratio of the second region, and the noise contrast ratio of the third region. Based on the sharpness contrast ratio of each target region, a weight is determined for each target region. The sharpness evaluation index of the test image is obtained based on the sharpness contrast ratio of each target region and its weight. Alternatively, when the sharpness parameter value includes a detail value, the detail contrast ratio of each target region includes the detail contrast ratio of the first region, the detail contrast ratio of the second region, and the detail contrast ratio of the third region. The detail contrast ratio of each target region is used to determine the weight of each target region. Based on the detail contrast ratio of each target region and its weight, the sharpness evaluation index of the test image is obtained. Alternatively, when the sharpness parameter value includes a sharpness value, the corresponding sharpness contrast ratio of each target region includes the sharpness contrast ratio of the first region, the sharpness contrast ratio of the second region, and the sharpness contrast ratio of the third region. Based on the sharpness contrast ratio of each target region, the weight of each target region is determined. Based on the sharpness contrast ratio of each target region and its weight, the sharpness evaluation index of the test image is obtained. Based on the sharpness comparison score of each target region, the weight of each target region is determined, and based on the sharpness comparison score of each target region and the weight of each target region, the sharpness evaluation index of the test image is obtained.

2. The image quality assessment method according to claim 1, characterized in that, When the sharpness parameter value includes noise, the weight of each target region is determined based on the sharpness comparison score of each target region, and the sharpness evaluation index of the test image is obtained based on the sharpness comparison score of each target region and the weight of each target region, including: Determine whether the noise contrast ratio of at least one region among the first region, the second region, and the third region is greater than a first threshold. If the region is greater than the first threshold, it is considered the first region. Then, it is determined whether the noise contrast score of the first region is greater than the second threshold, where the second threshold is greater than the first threshold. If not, the weight of the first region to the third region is determined to be 1, and the total noise score is obtained based on the noise contrast score of the first region to the third region and the weight of the first region to the third region. The noise evaluation result of the test image is obtained based on the total noise score.

3. The image quality assessment method according to claim 2, characterized in that, Based on the sharpness comparison score of each target region, a weight is determined for each target region. Then, based on the sharpness comparison score and the weight of each target region, a sharpness evaluation index for the test image is obtained. The method further includes: If the noise contrast scores in the first, second, and third regions are all less than or equal to the first threshold, then the weight of the first region is determined to be 0.4, the weight of the second region to be 0.3, and the weight of the third region to be 0.

3. Based on the noise contrast scores from the first to the third regions and the weights from the first to the third regions, the total noise score is obtained. The noise evaluation result of the test image is obtained based on the total noise score.

4. The image quality assessment method according to claim 1, characterized in that, When the sharpness parameter value includes a detail value, the weight of each target region is determined based on the detail contrast ratio of each target region, and the detail evaluation index of the test image is obtained based on the detail contrast ratio of each target region and the weight of each target region, including: Determine whether the detail contrast score of at least one region among the first, second, and third regions is less than a third threshold. If the region smaller than the third threshold is not the first region, then the weight of the first region is determined to be 0.5, the weight of the second region is 0.25, and the weight of the third region is 0.

25. Based on the detailed comparison score from the first region to the third region and the weight of the first region to the third region, the total detailed score is obtained. The detail evaluation result of the test image is obtained based on the total detail score.

5. The image quality assessment method according to claim 1, characterized in that, When the sharpness parameter value includes a sharpness value, the weight of each target region is determined based on the sharpness contrast ratio of each target region, and the sharpness evaluation index of the test image is obtained based on the sharpness contrast ratio of each target region and the weight of each target region, including: Determine whether the sharpness contrast ratio of at least one region among the first, second, and third regions is greater than or equal to a fourth threshold. If not, then the weight of the first region to the third region is determined to be 0.5, and the total sharpness score is obtained based on the sharpness comparison score of the first region to the third region and the weight of the first region to the third region. The sharpness evaluation result of the test image is obtained based on the total sharpness score.

6. The image quality assessment method according to any one of claims 2-5, characterized in that, The first region is the central region, the second region is the automatic region, and the third region is the region of interest.

7. An image quality assessment system, characterized in that, include: A sharpness parameter value acquisition module is used to obtain the sharpness parameter value of each target region in the test image and the sharpness parameter value of each target region in the reference image, wherein there are multiple target regions; The sharpness comparison score acquisition module is used to obtain a sharpness comparison score between each target region in the test image and each target region in the reference image based on the sharpness parameter values ​​of each target region in the test image and the sharpness parameter values ​​of each target region in the reference image. The target regions include a first region to a third region. When the sharpness parameter values ​​include noise values, the sharpness comparison score of each target region correspondingly includes the noise comparison score of the first region, the noise comparison score of the second region, and the noise comparison score of the third region. Based on the sharpness comparison score of each target region, a weight is determined for each target region. Based on the sharpness comparison score of each target region and the weight of each target region, a sharpness evaluation index for the test image is obtained. Alternatively, when the sharpness parameter values ​​include detail values... Correspondingly, the detail contrast ratio of each target region includes the detail contrast ratio of the first region, the detail contrast ratio of the second region, and the detail contrast ratio of the third region. Based on the detail contrast ratio of each target region, the weight of each target region is determined, and the detail evaluation index of the test image is obtained based on the detail contrast ratio of each target region and the weight of each target region. Alternatively, when the sharpness parameter value includes a sharpness value, the sharpness contrast ratio of each target region includes the sharpness contrast ratio of the first region, the sharpness contrast ratio of the second region, and the sharpness contrast ratio of the third region. Based on the sharpness contrast ratio of each target region, the weight of each target region is determined, and the sharpness evaluation index of the test image is obtained based on the sharpness contrast ratio of each target region and the weight of each target region. The sharpness evaluation module determines the weight of each target region based on the sharpness comparison score of each target region, and obtains the sharpness evaluation index of the test image based on the sharpness comparison score of each target region and the weight of each target region.

8. An electronic device, characterized in that, The system includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the instruction, program, code set, or instruction set is loaded and executed by the processor to implement the image quality assessment method according to any one of claims 1-6.

9. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal is able to perform the image quality assessment method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Image definition evaluation method, automatic focusing method and corresponding devices

    CN106934790A