Image processing method and device, computer readable storage medium, and terminal

By using a dynamic anchor point and pairwise comparison method for image quality ranking, the problem of low accuracy in image quality annotation in existing technologies is solved, achieving accurate ranking and score annotation of image quality, and improving the objectivity and efficiency of annotation.

CN117455880BActive Publication Date: 2026-11-20SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311488237.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-11-20
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

Existing image quality annotation methods mainly rely on subjective scoring, resulting in low annotation accuracy and difficulty in achieving accurate image quality ranking and score annotation.

Method used

An image quality ranking method combining dynamic anchor points and pairwise comparisons is adopted. Anchor point images are determined through iterative operations, and non-anchor point images are compared in pairs to gradually divide the quality sub-level intervals, ultimately obtaining accurate image quality ranking and score labeling.

Benefits of technology

It improves the objectivity and accuracy of image quality annotation, reduces the number of pairwise comparisons, and improves sorting and annotation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117455880B_ABST
    Figure CN117455880B_ABST
Patent Text Reader

Abstract

An image processing method and device, a computer readable storage medium and a terminal are provided. The method comprises determining a set of images to be sorted; performing one or more rounds of iteration operations based on the set of images to be sorted to determine a set of images sorted according to image quality. The application further determines a quality score of each image and labels the image according to the sorting position of each image in the set of images sorted according to image quality. The disclosed scheme can accurately sort a set of images according to image quality, so that subsequent determination of a quality score of each image and labeling can be more objective and accurate based on the set of images sorted according to image quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and more specifically to an image processing method and apparatus, a computer-readable storage medium, and a terminal. Background Technology

[0002] Image quality assessment metrics serve as evaluation standards and optimization targets for images. These metrics include, but are not limited to, sharpness, noise, and exposure. While subjective image evaluation is generally reliable and accurate, it is time-consuming, expensive, and cannot be directly embedded into practical systems as an optimization measure. Therefore, objective image evaluation methods are increasingly being used in image quality assessment techniques. Objective image evaluation aims to obtain an image quality prediction model that can accurately predict image quality. Training such a model requires pre-constructing a training image set labeled with image quality scores. The accuracy of the quality scores labeled on the training image set has a significant impact on the model training effect.

[0003] In existing technologies, there are two main methods for quality score annotation of image sets: one is the direct subjective quality scoring method, where the annotator performs a subjective qualitative quality assessment of the image to be annotated, and then directly gives the image quality score and annotates it. This is an absolutely subjective image quality evaluation method. Because it relies too much on the subjective feelings of the rater, the annotated image quality scores often have large errors. For example, two images may have a large difference in actual image quality, but the annotator may assign similar or even the same quality score. The other method is the single-stimulus scoring method, where the annotator scores and annotates the image quality based on a pre-set image quality scoring table (which may contain some scoring criteria or scoring suggestions). Although this method provides pre-defined scoring criteria, it is still essentially based on the subjective evaluation results of a single image, and the annotation accuracy is still not high. Summary of the Invention

[0004] One of the objectives of this invention is to provide an image processing method that can accurately sort an image set according to image quality, which helps to more objectively and accurately determine and label the quality score of each image based on the image set sorted by image quality.

[0005] To achieve the above objectives, embodiments of the present invention provide an image processing method, comprising the following steps: determining a set of images to be sorted; performing one or more rounds of iterative operations based on the set of images to be sorted to determine a set of images sorted according to image quality; wherein, the iterative operation includes: in each iteration from the first round, for each quality level interval of the current round, determining N within that quality level interval. ijEach quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted; for each image in a quality sub-level interval (excluding anchor images), compare the image quality of each image with at least a portion of the anchor images in that quality sub-level interval to determine the quality sub-level interval to which each image should be included in the sorting, thus obtaining N. ij +1 sorted quality sub-level intervals; the sorted quality sub-level intervals with more than a preset number of images obtained in the current round are used as the quality level intervals for the next round, and the iteration continues for the next round; the iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted by image quality is determined based on all sorted quality sub-level intervals with less than or equal to the preset number obtained in each round; where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

[0006] Optionally, the image quality of each image is compared in pairs with at least a portion of the anchor images in the quality level interval to determine the quality sub-level interval to which each image is to be sorted. This includes: for each image, selecting one anchor image from all the anchor images in the quality level interval as the first anchor image, and then comparing the image quality of this image with the first anchor image; if the image quality of the first anchor image is lower than that of this image, then for the remaining anchor images with image quality higher than the first anchor image, the image quality is compared in pairs with this image in order of image quality from low to high, until a critical anchor image with image quality higher than this image is determined; the quality sub-level to which the critical anchor image belongs is recorded as the first quality sub-level, and the quality sub-level with image quality lower than the first quality sub-level and adjacent to the first quality sub-level is recorded as the second quality sub-level; the image is included in the quality sub-level interval to be sorted with the first quality sub-level and the second quality sub-level as endpoints, respectively.

[0007] Optionally, selecting one anchor image from all anchor images in the quality level range as the first anchor image includes: randomly selecting one anchor image from all anchor images in the quality level range as the first anchor image; or selecting an anchor image belonging to the median quality sub-level from all anchor images in the quality level range as the first anchor image; or selecting the anchor image whose quality assessment result is closest to the first anchor image from all anchor images in the quality level range as the first anchor image.

[0008] Optionally, after determining the image set sorted by image quality, the method further includes: determining and labeling the quality score of each image based on the sorting position of each image in the image set sorted by image quality.

[0009] Optionally, determining and labeling the quality score of each image based on its sorting position in the image set sorted by image quality includes: selecting one round from the iteration operations; for the anchor images determined in the selected round, using multiple quality sub-level intervals formed by two adjacent anchor images as endpoints as initial intervals; adjusting the endpoints of each initial interval based on the number of images included in each initial interval in the image set sorted by image quality, such that the difference in the number of images contained in any two adjusted intervals is less than or equal to a first preset threshold, and the adjusted intervals are denoted as scoring intervals; for each scoring interval, determining the quality score of the image based on the quality score of the endpoints of the scoring interval and the sorting position of each image included in the scoring interval within the scoring interval, and labeling the image using the determined quality score; wherein, the quality score of the endpoints of each scoring interval is determined based on the quality score of the preset highest quality level and the sorting position of the scoring interval among all scoring intervals.

[0010] Optionally, the quality scores for the endpoints of each rating interval are determined using the following formula:

[0011]

[0012]

[0013] Where X represents the preset highest quality score, N represents the total number of rating intervals, and i represents the rating interval whose sorted position is i-th among all rating intervals. This represents the quality score at the left endpoint of the i-th rating interval. Let i represent the quality score of the right endpoint of the i-th rating interval, where 1 ≤ i ≤ N, and i and N are both positive integers.

[0014] The quality score of each image in the i-th rating interval is determined using the following formula;

[0015]

[0016] Where M represents the total number of images, including endpoint images, in the i-th rating interval. Let m represent the quality score of the m-th image in the i-th rating interval, where 1 ≤ m ≤ M, and m and M are both positive integers.

[0017] Optionally, the same set of images to be sorted has multiple corresponding sets of images sorted according to image quality, and each image in the set of images to be sorted has a corresponding quality score in each set of images sorted according to image quality; the method further includes: for each image, determining whether the variance of the multiple quality scores of the image is less than or equal to a second preset threshold; if the determination result is yes, then calculating the difference between each quality score of the image and a reference quality score to obtain multiple differences; if at least one difference is outside a preset error range, then comparing the image quality of the image with multiple images on the left and right sides of the set of images sorted according to image quality to redetermine the sorting position of the image in the set of images sorted according to image quality; and determining the final quality score of the image based on the redetermined sorting position of the image in the multiple sets of images sorted according to image quality.

[0018] Optionally, the quality score is selected from: sharpness score, noise score, and exposure score.

[0019] Optionally, the set of images to be sorted is obtained by taking pictures of the target scene using multiple different image acquisition devices under various brightness environments.

[0020] This invention also provides an image processing apparatus, comprising: a module for determining an image set to be sorted, configured to determine an image set to be sorted; and an iterative operation module, configured to perform one or more rounds of iterative operations based on the image set to be sorted, to determine an image set sorted according to image quality; wherein the iterative operation includes: in each iteration starting from the first round, for each quality level interval of the current round, determining N within the quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij+1 quality sub-level intervals to be sorted; for each image in a quality sub-level interval (excluding anchor images), compare the image quality of each image with at least a portion of the anchor images in that quality sub-level interval to determine the quality sub-level interval to which each image should be included in the sorting, thus obtaining N. ij +1 sorted quality sub-level intervals; the sorted quality sub-level intervals with more than a preset number of images obtained in the current round are used as the quality level intervals for the next round, and the iteration continues for the next round; the iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted by image quality is determined based on all sorted quality sub-level intervals with less than or equal to the preset number obtained in each round; where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

[0021] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when run by a processor, executes the steps of the above-described image processing method.

[0022] This invention also provides a terminal, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the steps of the above-described image processing method when running the computer program.

[0023] Compared with the prior art, the technical solution of the embodiments of the present invention has the following beneficial effects:

[0024] In this embodiment of the invention, an image quality ranking method combining "dynamic anchor points" and "pairwise comparisons" is employed. Based on the set of images to be ranked, one or more rounds of iterative operations are performed. In each iteration, for each quality level interval of the current round, it is determined that it belongs to N... ij N of each quality sub-level ij Anchor point image, wherein the quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted; compare the image quality of each image in a quality level interval (excluding the anchor image) with the anchor image in pairs to categorize the images into appropriate quality sub-level intervals, thus obtaining N. ij+1 sorted quality sub-level intervals; take the sorted quality sub-level intervals with more than a preset number of images obtained in the current round as the quality level intervals for the next round, and continue the next round of iteration; stop iterating when the number of images in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and determine the image set sorted by image quality based on all sorted quality sub-level intervals with less than or equal to the preset number of images obtained in each round.

[0025] On the one hand, compared to existing methods that directly and subjectively score or label image quality, or use single-stimulus scoring, this implementation method first sorts the images by quality and then determines and labels quality scores based on the sorting results. Specifically, it first identifies anchor images sorted by quality, and then sorts the remaining non-anchor images based on pairwise comparisons of the anchor images. After one or more iterations, a set of images accurately sorted by quality is finally obtained. This helps to accurately determine and label the quality scores of each image based on their sequential order, reducing the strong subjectivity of existing image quality scoring techniques and improving the objectivity and accuracy of image quality score labeling.

[0026] On the other hand, compared to comparing all images in the image set to be sorted pairwise, this implementation first divides each quality level interval into several quality sub-levels and determines the "anchor images" belonging to each quality sub-level. Subsequent pairwise comparisons of image quality only require comparison with the anchor images. Since each "anchor image" in each quality level interval is an image with a pre-determined quality ranking, once the quality sub-level interval to be sorted (i.e., the quality sub-level interval composed of two adjacent anchor images) is determined, there is no need for further pairwise comparisons with other anchor images. This significantly reduces the number of pairwise comparisons, improves sorting efficiency, and further enhances annotation efficiency. Attached Figure Description

[0027] Figure 1 This is a flowchart of an image processing method according to an embodiment of the present invention;

[0028] Figure 2 yes Figure 1 A detailed flowchart of the iterative operation of the image processing method described herein;

[0029] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S22;

[0030] Figure 4 This is a partial flowchart of another image processing method in an embodiment of the present invention;

[0031] Figure 5 This is a schematic diagram of the structure of an image processing device according to an embodiment of the present invention. Detailed Implementation

[0032] To make the above-mentioned objectives, features and beneficial effects of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0033] Reference Figure 1 , Figure 1 This is a flowchart of an image processing method according to an embodiment of the present invention. The method may include steps S11 to S12:

[0034] Step S11: Determine the set of images to be sorted;

[0035] Step S12: Perform one or more rounds of iterative operations based on the image set to be sorted to determine the image set sorted according to image quality.

[0036] In the specific implementation of step S11, the set of images to be sorted can be obtained by taking pictures of the target scene using multiple different image acquisition devices under various brightness environments.

[0037] Specifically, the multiple image acquisition devices can be selected from several smartphones and / or cameras produced by different manufacturers at different times and at different price points, in order to cover image capture hardware and image processing algorithms with different configurations. The multiple brightness environments can be shooting environments with natural light or preset light sources of varying brightness. For example, the light source can be selected from, but is not limited to, a D65 1000 lux light source, a TL84 300 lux light source, an A-light 300 lux light source, a TL84 100 lux light source, a TL84 20 lux light source, an A-light 20 lux light source, an A-light 5 lux light source, and an H-light 1 lux light source. Generally speaking, the higher the brightness of the light source in the shooting environment, the better the image quality; the lower the brightness of the light source, the worse the image quality. In specific implementations, multiple images can be captured using one or more image acquisition devices in each brightness environment, while maintaining a consistent field of view during shooting.

[0038] Specifically, the target scene can be a real outdoor or indoor scene containing multiple targets, or it can be an artificial scene containing multiple preset targets. The targets included in the target scene can be selected from portraits, paint, banknotes, fabrics, feathers, plants, etc., but are not limited to these, as long as they can contain as rich colors, textures, and intricate patterns as possible.

[0039] In a specific implementation of step S12, as a non-limiting example, the image quality evaluation index can be sharpness, and correspondingly, the image quality evaluation result can be the image sharpness evaluation result, and the quality level can be the sharpness level. The image set sorted by image quality, determined by performing one or more rounds of iterative operations, can be the image set sorted by sharpness.

[0040] The following combination Figure 2 The specific process of performing iterative operations based on the set of images to be sorted in step S12 is described in detail.

[0041] Reference Figure 2 , Figure 2 yes Figure 1 The flowchart below shows the iterative operation of the image processing method described. Specifically, the iterative operation may include the following steps S21 to S24.

[0042] In step S21, in each iteration starting from the first round, for each quality level interval of the current round, N is determined within that quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted.

[0043] Specifically, N is determined for each quality level range of the current wheel. ij The image quality of each quality sub-level is between the image quality of the two endpoint levels of its respective quality level interval (the left and right endpoint quality levels of the quality level interval, respectively), and the N... ij The image quality of each quality sub-level increases in order from the level closest to the left end of the interval to the level closest to the right end of the interval.

[0044] Furthermore, the quality assessment results based on at least a portion of the images within the quality level range determine which belong to the N. ij N of each quality sub-level ij The image can be executed using any of the following implementation methods:

[0045] In a first specific embodiment, at least a portion of the images within the quality level range are manually viewed, and the quality of each image is subjectively qualitatively evaluated. Based on the subjective qualitative evaluation results, images belonging to the N range are determined from the at least a portion of the images.ij N of each quality sub-level ij Images. For example, based on subjective qualitative evaluation results, at least a portion of the images can be sorted from low to high image quality, and images belonging to the N categories can be selected from the sorted images. ij N of each quality sub-level ij Zhang image.

[0046] In a second specific implementation, objective evaluation results (e.g., resolution values) of at least a portion of the images within the quality level range are determined, and then, based on the objective evaluation results, images belonging to the N range are determined from the at least a portion of the images. ij N of each quality sub-level ij Images. For example, the at least a portion of the images can be sorted by resolution value from smallest to largest, and images belonging to the N categories can be selected from the sorted images. ij N of each quality sub-level ij The image consists of 3 images. The higher the resolution value, the higher the image quality.

[0047] In a third specific implementation, for at least a subset of images within the quality level range, a subjective evaluation result (e.g., a score for image quality given by a human) and an objective evaluation result (e.g., a resolution value) are determined for each image; then, the subjective and objective evaluation results for each image are weighted to determine a comprehensive evaluation result; and based on the comprehensive evaluation result, images belonging to the N subset are determined from the at least a subset of images. ij N of each quality sub-level ij Images. For example, the images can be sorted by quality from smallest to largest based on the comprehensive evaluation results, and images belonging to the N categories can be selected from the sorted images. ij N of each quality sub-level ij The image is evaluated using a list of images. The higher the overall evaluation score, the higher the image quality.

[0048] In the fourth specific implementation, for at least a portion of the images within the quality level range, a pre-trained image quality assessment algorithm or model can be used to assess the image quality of the at least a portion of the images. Then, based on the output of the algorithm or model, the images belonging to the N categories can be determined from the at least a portion of the images. ij N of each quality sub-level ij Images. For example, if the model outputs an image quality score, then the images can be sorted by quality score from smallest to largest, and images belonging to the N categories can be selected from the sorted images. ij N of each quality sub-level ij Zhang image.

[0049] Furthermore, each image may include a central region and an edge region, wherein the quality of the edge region is lower than that of the central region. In the above specific embodiments, the subjective evaluation result or the objective evaluation result of the image can be the result of a subjective or objective evaluation of the central region of the image.

[0050] In practice, the quality level interval in the first round can be an interval with the worst quality image (corresponding to the lowest quality level) and the best quality image (corresponding to the highest quality level) in the image set to be sorted as its endpoints. That is, in the first iteration, there is only a single quality level interval, and the two endpoints of this quality level interval correspond to the lowest quality image and the highest quality image in the image set to be sorted, respectively. The total number of images contained in this quality level interval is the total number of images in the image set to be sorted.

[0051] Furthermore, the method for determining the worst-quality (lowest quality level) and best-quality (highest quality level) images in the image set to be sorted may be as follows: selection may be based on a subjective qualitative evaluation of some or all images in the image set; alternatively, it may be determined by combining subjective evaluation results with objective indicators (e.g., resolution values); or it may be determined using a quality evaluation algorithm or model; or other appropriate methods. This embodiment of the invention does not limit this approach.

[0052] In specific implementation, the number N of quality sub-levels determined within each quality level range of the current wheel is... ij This can be appropriately set based on the total number of images contained within that quality level range. For example, N can be set. ij The value is a preset ratio of the total number of images to be sorted within the quality grade range. Without limitation, the preset ratio can be selected from an appropriate value within the range [1 / 10, 1 / 5].

[0053] In step S22, for the remaining images in the quality level interval excluding the anchor images, the image quality of each image is compared in pairs with at least a portion of the anchor images in the quality level interval to determine the quality sub-level interval to be sorted for each image, thereby obtaining N. ij +1 sorted quality sub-level intervals.

[0054] In step S23, the sorted quality sub-level intervals obtained in the current round, which contain more than a preset number of images, are used as the quality level intervals for the next round, and the next round of iteration continues.

[0055] In step S24, the iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted according to image quality is determined based on all sorted quality sub-level intervals obtained in each round that contain an image number less than or equal to the preset number.

[0056] Where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

[0057] The process of the above iterative operation is further explained in detail below with a non-restrictive example.

[0058] In the first iteration, steps 1.1 to 1.3 can be performed.

[0059] 1.1 Determine the worst quality image A0 (corresponding to the lowest quality level) and the best quality image A in the image set to be sorted. n (Corresponding to the highest quality level), and designated A0 and A n The first-round quality grade range [A0, A] is formed by the endpoints. n (Among them, in the first iteration, only [A0, A...) n [This is a quality grade range]; then within that quality grade range [A0, A...] n [N is determined within] ij Each quality sub-level is determined, and each belongs to N in the image set to be sorted. ij N of each quality sub-level ij Zhang image.

[0060] Without limitation, the image set to be sorted contains 90 images of varying quality, that is, the quality level range for the first round is [A0, A...]. n The dataset contains 90 images. In the first iteration, the quality level range for these 90 images is [A0, A...]. n Nine quality sub-levels (i.e., N) are determined within the range. ij =9, i=1, j=1), the images belonging to these 9 quality sub-levels are denoted as: A1, A2, A3, A4, A5, A6, A7, A8, A9, where these 9 images and those belonging to the quality level interval [A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, where ... n The endpoint levels of the images A0 and A n All are denoted as anchor point images, and the quality level range [A0, A...] nThe quality is divided into 10 unsorted sub-level intervals by 9 quality sub-levels, denoted as: [A0, A1], [A1, A2], [A2, A3], [A3, A4], [A4, A5], [A5, A6], [A6, A7], [A7, A8], [A8, A9], [A9, A1 ... n ].

[0061] In this round, each quality sub-level interval to be sorted is not included in other images except for its own endpoint image.

[0062] 1.2 For the quality grade range [A0, A...] n For each image other than the anchor point image, the quality level range [A0, A1] is defined. n At least a portion of the anchor point images are compared in pairs to determine the quality sub-level interval to be sorted for each image, resulting in 10 sorted quality sub-level intervals, denoted as: [A0, A1]', [A1, A2]', [A2, A3]', [A3, A4]', [A4, A5]', [A5, A6]', [A6, A7]', [A7, A8]', [A8, A9]', [A9 ...3, A4]', [A4, A5]', [A5, A6]', [A6, A7]', [A7, A8]', [A8, A9]', [A9, A1]', [A1, A2]', [A3, A4]', [A4, A5]', [A5, A6]', [A6, A7]', [A7, A8]', [A8, A9]', [A9, A1]', [A1, A2]', [A3, A4]', [A4, A5]', [A5, A6]', [A7, A8]', [A9, A1]', [A1, A2]', [A7, n ]'.

[0063] After the operation described in 1.2 above, each sorted quality sub-level interval contains not only the interval endpoint image, but also x images that have been included in the sorted quality sub-level interval (in this example, x can be as small as 0 and as large as 90-11=79).

[0064] 1.3 The quality sub-level intervals obtained in the current round (i.e., the first round) after sorting the number of images that are greater than the preset number are used as the quality level intervals for the next round, and the next round of iteration continues.

[0065] Specifically, the number of images contained in each sorted quality sub-level interval obtained in the first round can be determined first. Then, one or more quality sub-level intervals containing more than a preset number of images among all sorted quality sub-level intervals obtained in the first round can be determined as the quality level intervals for the next round (i.e., the second round), and the second round of iteration can continue.

[0066] In this example, assuming that the number of images contained in the 10 sorted quality sub-level intervals obtained in the first iteration is greater than the preset number, these 10 sorted quality sub-level intervals need to be used as the 10 quality level intervals for the second round (i.e.: [A0, A1]', [A1, A2]', [A2, A3]', [A3, A4]', [A4, A5]', [A5, A6]', [A6, A7]', [A7, A8]', [A8, A9]', [A9, A1 ...4, A5]', [A5, A6]', [A6, A7]', [A7, A8]', [A8, A9]', [A9, A1]', [A2, A3]', [A4, A5]', [A5, A6]', [A7, A8]', [A9, A1]', [A2, A3]', [A4, A5]', [A6, A7]', [A7, A8]', [A9, A1]', [A2, A3]', [A4, A5]', [A6, A7]', [A7, A8]', [A9, A1]', [A2, A3] n ]'), and continue the second round of iteration.

[0067] In the second iteration, steps 2.1 to 2.2 can be performed.

[0068] 2.1 For each quality level interval in the second round, determine N within that quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted.

[0069] 2.2 For the remaining images in this quality level interval, excluding the anchor images, compare the image quality of each image in pairs with at least a portion of the anchor images in this quality level interval to determine the quality sub-level interval to be sorted for each image, thereby obtaining N. ij +1 sorted quality sub-level intervals.

[0070] Specifically, the following uses the first quality level interval [A0, A1]' of the second round as an example to explain the specific execution process of steps 2.1 to 2.2 above.

[0071] In the specific implementation of step 2.1, for the first quality level interval [A0, A1]' of the second round, assuming that the interval [A0, A1]' contains a total of 10 images, without limitation, two quality sub-levels (i.e., N) can be determined within the interval [A0, A1]'. ij=2, i=2, j=1), the images belonging to these two quality sub-levels are denoted as a1 and a2 respectively. Among them, these two images and the images A0 and A1 belonging to the endpoint level of the interval [A0, A1]' are all denoted as anchor point images. The quality level interval [A0, A1]' is divided into three unsorted quality sub-level intervals by the two quality sub-levels, which are denoted as [A0, a1], [a1, a2], and [a2, A1] respectively.

[0072] In this round, each quality sub-level interval to be sorted is not included in other images except for its own endpoint image.

[0073] In the specific implementation of step 2.2, for the remaining images of the quality level interval [A0, A1]' excluding the anchor point images, the image quality of each image is compared in pairs with at least a portion of the anchor point images of the quality level interval [A0, A1]' to determine the quality sub-level interval to be sorted for each image, thereby obtaining 3 sorted quality sub-level intervals, denoted as [A0, a1]', [a1, a2]', and [a2, A1]' respectively.

[0074] The second round involves dividing the other quality level intervals into sub-quality level intervals to be sorted and performing pairwise comparisons of image quality to obtain N corresponding to each quality level interval. ij The specific scheme for the +1 sorted quality sub-level intervals shall be implemented in accordance with the schemes described in steps 2.1 to 2.2 above, and will not be repeated here.

[0075] After the operations described in 2.2 above, each sorted quality sub-level interval contains not only the interval endpoint images but also several images that have been included in that sorted quality sub-level interval.

[0076] 2.3 The quality sub-level intervals obtained in the current round, which contain more than a preset number of images, are used as the quality level intervals for the next round, and the next round of iteration continues.

[0077] Specifically, the number of images contained in each sorted quality sub-level interval obtained in the current round (i.e., the second round) can be determined first. Then, one or more quality sub-level intervals containing more than the preset number of images among all sorted quality sub-level intervals obtained in the current round can be determined as the quality level intervals for the next round (i.e., the third round), and the third round of iteration can continue.

[0078] The total number of sorted quality sub-level intervals obtained in the current round is the sum of the number of sorted quality sub-level intervals obtained for each quality level interval in the current round. For example, assuming that each quality level interval in the current round has 3 sorted quality sub-level intervals after steps 2.1 and 2.2.1 above, then the total number of sorted quality sub-level intervals obtained in the current round is 10 × 3 = 30.

[0079] Furthermore, assuming that among these 30 sorted quality sub-level intervals, 15 of them contain more than the preset number of images, these 15 sorted quality sub-level intervals should be used as the 15 quality level intervals for the third round, and the third round of iteration should continue. For the specific execution process in subsequent iterations, please refer to steps 2.1 to 2.3 of the second round of iterations mentioned above, which will not be repeated here.

[0080] The iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number. Based on all sorted quality sub-level intervals obtained in each round that contain an image number less than or equal to the preset number, the image set sorted by image quality is determined.

[0081] It should be noted that, in this application, the number of images contained in each sorted quality sub-level interval refers to the total number of images, including the images at both ends of the interval and the non-interval endpoint images included in the interval.

[0082] Furthermore, the process of determining the image set sorted by image quality based on all sorted quality sub-level intervals (denoted as target quality sub-level intervals) containing images with a number less than or equal to the preset number obtained in each round can be performed using any of the following implementation methods.

[0083] In one specific implementation, the preset number can be set to 3, in which case the quality ranking position of all images in the target quality sub-level intervals obtained in each round can be directly used as the quality ranking position of all images in the image set to be ranked, thereby obtaining the image set sorted according to image quality.

[0084] It is understood that, in the above implementation, for any sorted quality sub-level interval, if the number of images contained in the interval is less than or equal to 3, it means that in addition to the two endpoint images of the interval, the interval contains at most 1 non-endpoint image included in the interval (and the quality of the image is between the quality of the two endpoint images of the interval). Therefore, the 3 images contained in the interval are the images after the image quality sorting has been completed.

[0085] In another specific implementation, the preset number can be set to other appropriate values ​​greater than 3 (e.g., 4 or 5). In this case, for each target quality sub-level interval obtained in each round, the image quality of each non-interval endpoint image included in the interval, excluding the images at the two endpoints of the interval, can be sorted to determine the quality sorting position of each image in the target quality sub-level interval. Then, the quality sorting position of all images in the target quality sub-level intervals obtained in each round is used as the quality sorting position of all images in the image set to be sorted, thereby obtaining the image set sorted according to image quality.

[0086] The method for ranking the image quality of each non-interval endpoint image within the target quality level interval, excluding the images at the two endpoints of the interval, can be to compare the image quality in pairs, or to score the image quality of each non-interval endpoint image and rank the image quality according to the quality score, or to use other appropriate ranking methods, which are not limited here.

[0087] Reference Figure 3 , Figure 3 yes Figure 2 A flowchart of a specific implementation of step S22. In step S22, the image quality of each image is compared in pairs with at least a portion of the anchor images in the quality level range to determine the quality sub-level range to which each image should be included in the sorting process. This may specifically include steps S31 to S34.

[0088] In step S31, for each image, one anchor image is selected from all anchor images in the quality level range as the first anchor image, and then the image quality of the selected image is compared with the first anchor image.

[0089] In step S32, if the image quality of the first anchor point image is lower than that of the image, then for the remaining anchor point images with higher image quality than the first anchor point image, their image quality is compared with that image in pairs in order of increasing image quality, until a critical anchor point image with higher image quality is determined.

[0090] In step S33, the quality sub-level to which the critical anchor point image belongs is recorded as the first quality sub-level, and the quality sub-level whose image quality is lower than the first quality sub-level and adjacent to the first quality sub-level is recorded as the second quality sub-level.

[0091] In step S34, the image is included in the unsorted quality sub-level intervals, with the first quality sub-level and the second quality sub-level as endpoints respectively.

[0092] In this embodiment of the invention, since each anchor image in the quality level range has its own quality sub-level or range endpoint level, that is, each anchor image in the quality level range is an image sorted according to image quality, for each image in the quality level range other than the anchor images (denoted as the image to be compared), if the image quality of the first anchor image is lower than the image quality of the image to be compared, it is only necessary to compare the image quality of the remaining anchor images in the quality level range whose image quality is higher than the first anchor image with the image to be compared in pairs, until a critical anchor image whose image quality is higher than the image is determined. Therefore, compared to comparing the image quality of the image to be compared in pairs with all remaining anchor images in the quality level range other than the first anchor image, this embodiment can effectively reduce the number of comparisons by utilizing transitive relationships.

[0093] Furthermore, for the remaining anchor images whose image quality is higher than the first anchor image in the quality level range, the image quality is compared with the image to be compared in pairs according to the order of image quality from low to high. Compared with the random or disordered pair comparison method, the number of comparisons can be further reduced, thereby improving sorting efficiency and reducing computational overhead.

[0094] Furthermore, one or more of the following implementation methods can be used to determine the first anchor image from all anchor images in the quality grade range.

[0095] Method 1: Randomly select one anchor image from all anchor images in the quality level range as the first anchor image.

[0096] Method 2: Select the anchor image belonging to the median quality sub-level from all anchor images in the quality level range, and use it as the first anchor image.

[0097] Method 3: Select the anchor image that is closest to the quality assessment result of the current image from all anchor images in the quality level range, and use it as the first anchor image.

[0098] Understandably, randomly selecting the first anchor image might result in a significant quality difference between the first anchor image and the image to be compared, thus increasing the number of subsequent pairwise comparisons. In other words, a large number of pairwise comparisons are needed to determine the critical anchor image. In contrast, selecting an anchor image belonging to the median quality sub-level as the first anchor image can reduce the total number of comparisons, thereby further improving sorting efficiency and reducing computational overhead. Alternatively, selecting the anchor image with the closest quality assessment result to the image to be compared as the first anchor image can minimize the number of pairwise comparisons for each image to be compared, significantly improving sorting efficiency.

[0099] In specific implementation, for each image (i.e., the image to be compared), the anchor image whose quality assessment result is closest to that image can be determined based on subjective human evaluation, or based on the image's resolution value, or based on other quantifiable indicators that can characterize image quality. This embodiment of the invention does not limit the specific method for determining the anchor image whose quality assessment result is closest to the image to be compared, as long as it facilitates the rapid and accurate determination of the anchor image whose quality assessment result is closest.

[0100] Furthermore, after determining the image set sorted by image quality, the method may further include: determining and labeling the quality score of each image based on its sorting position in the image set. For specific implementation details regarding image quality score labeling, please refer to the following... Figure 4 Steps S41 to S43 in the process.

[0101] Reference Figure 4 , Figure 4 This is a partial flowchart of another image processing method according to an embodiment of the present invention. The other image processing method may include... Figure 1 Steps S11 to S12 may further include steps S41 to S43. Steps S41 to S43 may be performed after step S12.

[0102] In step S41, one round is selected from the iteration operations. For the anchor point image determined in the selected round, multiple quality sub-level intervals formed by two adjacent anchor point images as endpoints are used as the initial interval.

[0103] In a non-restrictive example, the anchor images determined in the first iteration can be selected, and multiple quality sub-level intervals formed by two adjacent anchor images as endpoints can be used as the initial intervals.

[0104] Continue to use Figure 2 The example provided in the description of iterative operations shows that the anchor points determined in the first iteration are: A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A... n The multiple quality sub-level intervals (i.e., initial intervals) formed by the endpoints of the two adjacent anchor point images are as follows: [A0, A1], [A1, A2], [A2, A3], [A3, A4], [A4, A5], [A5, A6], [A6, A7], [A7, A8], [A8, A9], [A9, A1] n ].

[0105] In step S42, based on the number of images included in each initial interval of the image set sorted by image quality, the endpoints of each initial interval are adjusted so that the difference in the number of images contained in any two adjusted intervals is less than or equal to a first preset threshold. The adjusted intervals are denoted as scoring intervals.

[0106] In specific implementations, the first preset threshold can be appropriately set based on the total number Y of the image set sorted by image quality and the number N of the initial intervals. For example, the preset threshold can be set as a preset percentage of Y / N. Non-limitingly, the preset percentage can be selected from the interval [10%, 30%]. As an example, if the total number of images Y = 1000 and the number of initial intervals N = 10, the preset threshold can be set to (1000 ÷ 10) × 20% = 20.

[0107] In the example above, the adjusted score range can be divided as follows: [A0, B1], [B1, B2], [B2, B3], [B3, B4], [B4, B5], [B5, B6], [B6, B7], [B7, B8], [B8, B9], [B9, A n It is understandable that, in the example above, after adjusting the endpoints of each initial interval, except for the left endpoint A0 of the first initial interval and the right endpoint A of the last initial interval... n The endpoints of the remaining intervals may or may not change. For ease of distinction, different identifiers than those of the initial intervals are used to indicate the endpoints of each scoring interval.

[0108] In step S43, for each scoring interval, the quality score of the image is determined based on the quality scores of the endpoints of the scoring interval and the sorting position of each image included in the scoring interval within the scoring interval, and the determined quality score is used to label the image.

[0109] The quality score of the endpoint of each scoring interval is determined based on the quality score of the preset highest quality level and the ranking position of that scoring interval among all scoring intervals.

[0110] In this embodiment of the invention, since the number of images included in each initial interval of the image set sorted by image quality may vary significantly, the endpoints of each initial interval are adjusted to ensure that the difference in the number of images contained in any two adjusted intervals remains within a preset difference (i.e., the first preset threshold), resulting in multiple scoring intervals with a more uniform distribution of image numbers. This helps to make the subsequent distribution of image quality scores determined based on each scoring interval more uniform. Furthermore, the image quality evaluation model can be trained using an image set labeled with more uniform quality scores to obtain a more optimized training effect.

[0111] Furthermore, the quality scores at the endpoints of each scoring interval are determined using the following formula:

[0112]

[0113]

[0114] Where X represents the preset highest quality score, N represents the total number of rating intervals, and i represents the rating interval whose sorted position is i-th among all rating intervals. This represents the quality score at the left endpoint of the i-th rating interval. Let i represent the quality score of the right endpoint of the i-th rating interval, where 1 ≤ i ≤ N, and i and N are both positive integers.

[0115] In the example above, there are a total of 10 rating intervals, and the order of the rating intervals is: [A0, B1], [B1, B2], [B2, B3], [B3, B4], [B4, B5], [B5, B6], [B6, B7], [B7, B8], [B8, B9], [B9, A n [This is not restrictive; the highest quality grade can be preset to a quality score of 1, i.e., A] n The quality score is 1. Based on the above formula, for the first scoring interval [A0, B1], the quality score of the left endpoint A0 is (1-1)×1 / 10=0, and the quality score of the right endpoint B1 is 1×1 / 10=0.1; for the second scoring interval [B1, B2], the quality score of the left endpoint B1 is 0.1, and the quality score of the right endpoint B2 is 2×1 / 10=0.2, and so on, for the 10th scoring interval [B9, A n The mass fraction of the left endpoint B9 is (10-1)×1 / 10=0.9, and the mass fraction of the right endpoint A is... n The mass fraction is 10 × 1 / 10 = 1.

[0116] The quality score of each image in the i-th rating interval is determined using the following formula;

[0117]

[0118] Where M represents the total number of images, including endpoint images, in the i-th rating interval. Let m represent the quality score of the m-th image in the i-th rating interval, where 1 ≤ m ≤ M, and m and M are both positive integers.

[0119] Furthermore, the same set of images to be sorted has multiple corresponding sets of images sorted according to image quality, and each image in the set of images to be sorted has a corresponding quality score in each set of images sorted according to image quality; the method further includes: for each image, determining whether the variance of the multiple quality scores of the image is less than or equal to a second preset threshold; if the determination result is yes, then calculating the difference between each quality score of the image and a reference quality score to obtain multiple differences; if at least one difference is outside a preset error range, then comparing the image quality of the image with multiple images on the left and right sides of the set of images sorted according to image quality to redetermine the sorting position of the image in the set of images sorted according to image quality; and determining the final quality score of the image based on the redetermined sorting position of the image in the multiple sets of images sorted according to image quality.

[0120] In practice, n iterations can be performed on the same set of images to be sorted (each iteration includes one or more rounds of iterations, and the image quality can be evaluated and sorted by n different image quality assessment experts in each of the n iterations) to obtain n sets of images sorted by image quality (referred to as sorted image sets); then, based on the sorting position of the image in each of the n sorted image sets, n quality scores of the image can be determined.

[0121] Specifically, determining the final quality score of an image based on its re-determined sorting position in multiple image sets sorted by image quality may include: determining a new quality score based on the re-determined sorting position of the image in each image set sorted by image quality; and averaging or weighting the determined new quality scores to obtain the final quality score of the image.

[0122] The method for determining the new quality score based on the re-determined sorting position of the image in each image set sorted by image quality can be performed by referring to the description and related formulas for determining the image quality score in step S43 above, and will not be repeated here.

[0123] The reference quality score can be selected as the median quality score among multiple quality scores of the image, or it can be the average of multiple quality scores of the image. The second preset threshold and the preset error range can be appropriately set according to the needs of the actual scenario, and this embodiment of the invention does not limit them.

[0124] In this embodiment of the invention, by considering the variance of multiple quality scores for each image and the difference between each quality score and a reference quality score, it is determined whether the sorting position of the image needs to be adjusted, thereby re-determining the final quality score of the image. This helps to avoid potential errors in individual quality scores and further improves the accuracy of quality score labeling.

[0125] Furthermore, after labeling all images in the image set sorted by image quality with quality scores, the labeling effect of the labeled image set can be verified. Specifically, 80% of the labeled image set can be selected as training data to train the image quality assessment model (e.g., the Contrite image quality evaluator); the remaining 20% ​​of the images can be used as test data to test the accuracy of the model's predicted scores.

[0126] Reference Figure 5 , Figure 5 This is a schematic diagram of the structure of an image processing device according to an embodiment of the present invention. The image processing device may include:

[0127] The image set determination module 51 is used to determine the image set to be sorted.

[0128] Iteration operation module 52 is used to perform one or more rounds of iteration operations based on the image set to be sorted, so as to determine the image set sorted according to image quality;

[0129] The iterative operation includes:

[0130] In each iteration from the first round onwards, for each quality level interval in the current round, N is determined within that quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted;

[0131] For each image within the quality level interval, excluding the anchor images, the image quality is compared pairwise with at least a subset of the anchor images within that quality level interval to determine the quality sub-level interval to which each image should be included in the ranking, thus obtaining N. ij +1 sorted quality sub-level intervals;

[0132] The quality sub-level intervals obtained in the current round, after sorting and having a number of images greater than a preset number, are used as the quality level intervals for the next round, and the process continues for the next round of iteration.

[0133] The iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted by image quality is determined based on all sorted quality sub-level intervals obtained in each round that contain an image number less than or equal to the preset number.

[0134] Where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

[0135] For details regarding the principles, implementation, and beneficial effects of this image processing device, please refer to the preceding text. Figures 1 to 4 The descriptions of the image processing methods shown are not repeated here.

[0136] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the above-described... Figures 1 to 4 The steps of the image processing method are shown. The computer-readable storage medium may include non-volatile or non-transitory memory, and may also include optical discs, hard disk drives, solid-state drives, etc.

[0137] Specifically, in this embodiment of the invention, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0138] It should also be understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0139] This invention also provides a terminal, including a memory and a processor. The memory stores a computer program that can run on the processor, and when the processor runs the computer program, it performs the above-described... Figures 1 to 4 The steps of the image processing method shown are illustrated. The terminal may include, but are not limited to, mobile phones, computers, tablets, and other terminal devices, and may also be servers, cloud platforms, etc.

[0140] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article indicates that the preceding and following related objects have an "or" relationship.

[0141] In the embodiments of this application, "multiple" refers to two or more.

[0142] The descriptions of "first," "second," etc., appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They have no order and do not indicate any special limitation on the number of devices in the embodiments of this application, nor do they constitute any limitation on the embodiments of this application.

[0143] It should be noted that the sequence number of each step in this embodiment does not represent a limitation on the execution order of each step.

[0144] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. An image processing method, characterized in that, include: Determine the set of images to be sorted; Perform one or more rounds of iterative operations based on the image set to be sorted, in order to determine the image set sorted according to image quality; The iterative operation includes: In each iteration from the first round onwards, for each quality level interval in the current round, N is determined within that quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted; For each image within the quality level interval, excluding the anchor images, the image quality is compared pairwise with at least a subset of the anchor images within that quality level interval to determine the quality sub-level interval to which each image should be included in the ranking, thus obtaining N. ij +1 sorted quality sub-level intervals; take the sorted quality sub-level intervals with more than a preset number of images obtained in the current round as the quality level intervals for the next round, and continue to the next round of iteration; The iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted by image quality is determined based on all sorted quality sub-level intervals obtained in each round that contain an image number less than or equal to the preset number. Where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

2. The method according to claim 1, characterized in that, For each image, image quality is compared pairwise with at least a subset of anchor images within that quality level range to determine the quality sub-level range to which each image should be included in the ranking, including: For each image, select one anchor image from all anchor images in the quality level range as the first anchor image, and then compare the image quality of this image with the first anchor image. If the image quality of the first anchor point image is lower than that of the image, then for the remaining anchor point images with higher image quality than the first anchor point image, their image quality is compared with that image in pairs in order of increasing image quality, until a critical anchor point image with higher image quality is determined. The quality sub-level to which the critical anchor point image belongs is denoted as the first quality sub-level, and the quality sub-level whose image quality is lower than the first quality sub-level and is adjacent to the first quality sub-level is denoted as the second quality sub-level. The image is placed into a sorted quality sub-level interval, with the first quality sub-level and the second quality sub-level as endpoints respectively.

3. The method according to claim 2, characterized in that, Select one anchor image from all anchor images within this quality level range as the first anchor image, including: Randomly select one anchor image from all anchor images within this quality level range as the first anchor image; or, Select the anchor image belonging to the median quality sub-level from all anchor images in this quality level range, and use it as the first anchor image; or, Select the anchor image that is closest to the quality assessment result of the current image from all anchor images in the quality grade range, and use it as the first anchor image.

4. The method according to claim 1, characterized in that, After determining the image set sorted by image quality, the method further includes: Based on the sorting position of each image in the image set after sorting by image quality, the quality score of each image is determined and labeled.

5. The method according to claim 4, characterized in that, Based on the sorting position of each image in the image set after sorting by image quality, determine and label the quality score of each image, including: Select one round from the various iteration operations. For the anchor point image determined in the selected round, use multiple quality sub-level intervals formed by two adjacent anchor point images as endpoints as the initial interval. Based on the number of images included in each initial interval of the image set sorted by image quality, the endpoints of each initial interval are adjusted so that the difference in the number of images contained in any two adjusted intervals is less than or equal to a first preset threshold. The adjusted intervals are denoted as scoring intervals. For each rating interval, the quality score of the image is determined based on the quality scores of the endpoints of the rating interval and the ranking position of each image included in the rating interval within the rating interval, and the image is labeled using the determined quality score. The quality score of the endpoint of each scoring interval is determined based on the quality score of the preset highest quality level and the ranking position of that scoring interval among all scoring intervals.

6. The method according to claim 5, characterized in that, The quality score for each endpoint of a rating interval is determined using the following formula: Where X represents the preset highest quality score, N represents the total number of rating intervals, and i represents the rating interval whose sorted position is i-th among all rating intervals. This represents the quality score at the left endpoint of the i-th rating interval. Let i represent the quality score of the right endpoint of the i-th rating interval, where 1 ≤ i ≤ N, and i and N are both positive integers. The quality score of each image in the i-th rating interval is determined using the following formula; Where M represents the total number of images, including endpoint images, in the i-th rating interval. Let m represent the quality score of the m-th image in the i-th rating interval, where 1 ≤ m ≤ M, and m and M are both positive integers.

7. The method according to claim 5 or 6, characterized in that, The same set of images to be sorted has multiple corresponding sets of images sorted by image quality. Each image in the set of images to be sorted has a corresponding quality score in each set of images sorted by image quality. The method further includes: For each image, determine whether the variance of multiple quality scores for that image is less than or equal to a second preset threshold. If the judgment result is yes, then calculate the difference between each quality score of the image and the reference quality score to obtain multiple differences; If at least one difference is outside the preset error range, the image quality is compared in pairs with multiple images on the left and right sides of the image set to which it belongs, sorted by image quality, to redetermine the sorting position of the image in the image set to which it belongs; based on the redetermined sorting position of the image in the multiple image sets to which it belongs, the final quality score of the image is determined.

8. The method according to claim 4, characterized in that, The mass fraction is selected from: Sharpness score, noise score, exposure score.

9. The method according to claim 1, characterized in that, The set of images to be sorted was obtained by taking pictures of the target scene using multiple different image acquisition devices under various lighting conditions.

10. An image processing apparatus, characterized in that, include: The image set to be sorted module is used to determine the image set to be sorted. An iterative operation module is used to perform one or more rounds of iterative operations based on the image set to be sorted, so as to determine the image set sorted according to image quality; The iterative operation includes: In each iteration from the first round onwards, for each quality level interval in the current round, N is determined within that quality level interval. ij Each quality sub-level, and based on the quality assessment results of at least a portion of the images within that quality level range, determines which of the N sub-levels belong to the N sub-levels. ij N of each quality sub-level ij Images, of which N ij The image and the image belonging to the endpoint level of this quality level range are both recorded as anchor point images. This quality level range is defined by N. ij Each quality sub-level is divided into N ij +1 quality sub-level intervals to be sorted; For each image within the quality level interval, excluding the anchor images, the image quality is compared pairwise with at least a subset of the anchor images within that quality level interval to determine the quality sub-level interval to which each image should be included in the ranking, thus obtaining N. ij +1 sorted quality sub-level intervals; take the sorted quality sub-level intervals with more than a preset number of images obtained in the current round as the quality level intervals for the next round, and continue to the next round of iteration; The iteration stops when the number of images contained in any sorted quality sub-level interval obtained in the current round is less than or equal to the preset number, and the image set sorted by image quality is determined based on all sorted quality sub-level intervals obtained in each round that contain an image number less than or equal to the preset number. Where i represents the current round, j represents the j-th quality level interval of the current round, i≥1, j≥1, and i and j are both positive integers.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program is executed by the processor to perform the steps of the image processing method according to any one of claims 1 to 9.

12. A terminal comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, characterized in that, When the processor runs the computer program, it performs the steps of the image processing method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Deep learning of quantitative ultrasound multi-parametric images at pre-treatment to predict breast cancer response to chemotherapy

    CA3243246A1

  • Human face recognition detection device based on multi- video camera information integration

    CN101236599A