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

By extracting and merging multiple single-frame image features from image sequences, and using classifiers to classify image quality, the problem of insufficient accuracy and scene matching of image quality evaluation in the existing technology is solved, achieving more accuracy and flexibility. image quality judgment.

CN118608926APending Publication Date: 2024-09-06CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410787050.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the image quality evaluation of the existing technology, the method evaluation relies on the full reference evaluation method, which fails to fully consider the multi-dimensional characteristics of the image in the actual scene, resulting in insufficient matching between the quality evaluation results and the scene, and insufficient accuracy and scalability.

Method used

By obtaining the image to be evaluated and the reference image from the image sequence, a variety of single-frame image features are extracted, merged for feature comparison, and combined with a classifier to classify image quality and generate evaluation results.

Benefits of technology

It improves the accuracy of image quality judgment and the scalability of the solution, enables a more comprehensive assessment of multi-dimensional features under static and dynamic conditions, and is suitable for various image scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608926A
    Figure CN118608926A
Patent Text Reader

Abstract

The embodiment of the invention relates to an image quality evaluation method and device, electronic equipment and a storage medium, and the method comprises the steps: carrying out the feature extraction of a to-be-evaluated image, and obtaining at least two single-frame image features; determining a reference image from the image sequence; obtaining at least two reference single-frame image features corresponding to the reference image; determining a target single-frame image feature for feature comparison from the at least two single-frame image features; comparing the target single-frame image features with corresponding reference single-frame image features to obtain continuous-frame image features; combining the at least two single-frame image features and the continuous-frame image features into a to-be-evaluated image feature; and carrying out image quality classification on the to-be-evaluated image features by using the classifier to obtain an evaluation result representing whether the quality of the to-be-evaluated image is qualified or not. According to the embodiment of the invention, image quality judgment can be fully carried out on static and dynamic multi-dimensional features, so that the accuracy of image quality judgment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image quality evaluation method, device, electronic device and storage medium. Background Art

[0002] With the development of computer vision technology and the gradual expansion of its application fields, methods such as object recognition and perspective conversion can be applied in various scenarios. For example, the perception technology of intelligent driving has gradually expanded from traditional front-view image perception to bird's-eye view perception (Bird Eye View, BEV) with six-camera surround vision.

[0003] In order to ensure high clarity before and after image processing, the image quality needs to be evaluated. However, the evaluation of the method still adopts the full reference evaluation method of the reconstructed image. By reconstructing the three-dimensional scene model of the driving scene and re-rendering the image after the perspective conversion, the Peak Signal Noise Ratio (PSNR) is used as the image quality evaluation method. Although evaluation indicators such as PSNR can be used to evaluate the quality of synthetic perspective image generation methods, this method does not take into account the characteristics of multiple dimensions of images taken in actual scenes, resulting in insufficient matching of the quality evaluation results with the scene, and insufficient accuracy of the quality evaluation and scalability of the data used in the evaluation. Summary of the invention

[0004] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide an image quality evaluation method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present application provides an image quality evaluation method, the method comprising: obtaining a frame of image from an image sequence as an image to be evaluated, and performing feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; determining the Nth frame of image located before the image to be evaluated from the image sequence as a reference image; obtaining at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; determining a target single-frame image feature for feature comparison from the at least two single-frame image features; comparing the target single-frame image feature with the corresponding reference single-frame image feature of the at least two reference single-frame image features to obtain a continuous frame image feature representing a feature change of continuous frames; merging the at least two single-frame image features with the continuous frame image feature, and determining the merged feature as the image feature to be evaluated; performing image quality classification on the image feature to be evaluated using a preset classifier to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0006] In one possible implementation, obtaining a frame of image from an image sequence as the image to be evaluated includes: obtaining a sequence of original images taken by a camera; performing a perspective transformation on each original image in the original image sequence to obtain a perspective transformation image sequence, and obtaining a frame of perspective transformation image from the perspective transformation image sequence as the image to be evaluated.

[0007] In one possible implementation, the classifier includes feature threshold data, and the feature type represented by the feature threshold data corresponds one-to-one to the feature type represented by the feature to be evaluated; using a preset classifier, the image quality of the image feature to be evaluated is classified to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified, including: comparing each image feature in the image feature to be evaluated with the feature threshold data of the corresponding feature type, to obtain an initial evaluation result corresponding to each image feature; if the number of initial evaluation results indicating that the image quality is qualified among the initial evaluation results obtained is greater than or equal to a preset number, an evaluation result indicating that the quality of the image to be evaluated is qualified is generated.

[0008] In one possible implementation, the classifier includes a classification model pre-trained based on a machine learning algorithm; using the preset classifier, image quality classification is performed on image features to be evaluated to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified, including: using the classification model to classify the image features to be evaluated to obtain quality data indicating the image quality of the image to be evaluated; based on the quality data, an evaluation result indicating whether the quality of the image to be evaluated is qualified is generated.

[0009] In one possible implementation, the classification model is pre-trained according to the following steps: obtaining a sample image and a category label corresponding to the sample image; extracting sample image features of the sample image; inputting the sample image features into a preset initial classification model to obtain a predicted category; using a preset loss function, determining a loss value representing the error between the predicted category and the category label; based on the loss value, adjusting the parameters of the initial classification model; in response to determining that the initial classification model after adjusting the parameters meets the preset training end conditions, determining the initial classification model after adjusting the parameters as the classification model.

[0010] In one possible implementation, obtaining sample images and category labels corresponding to the sample images includes: obtaining positive sample images from a preset positive sample image set, wherein the positive sample images correspond to qualified category labels indicating that the positive sample images are images of qualified quality, and the positive sample image set includes an original image subset and / or a first perspective transformed image subset; obtaining negative sample images from a preset negative sample image set, wherein the negative sample images correspond to unqualified category labels indicating that the negative sample images are images of unqualified quality, and the negative sample image set includes a second perspective transformed image subset.

[0011] In one possible implementation, feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features, including: color feature extraction is performed on the image to be evaluated to obtain single-frame color features; structural feature extraction is performed on the image to be evaluated to obtain single-frame structural features; single-frame color features and single-frame structural features are combined to obtain at least two single-frame image features.

[0012] In one possible implementation, structural feature extraction is performed on the image to be evaluated to obtain single-frame structural features, including: based on the color type used for color feature extraction, edge feature extraction is performed on the image to be evaluated to obtain single-frame edge features; and / or, based on the color type used for color feature extraction, texture feature extraction is performed on the image to be evaluated to obtain single-frame texture features; based on the single-frame edge features and / or single-frame texture features, single-frame structural features are generated.

[0013] In one possible implementation, determining a target single-frame image feature for feature comparison from at least two single-frame image features includes: determining a single-frame color feature as a target single-frame image feature for feature comparison from at least two single-frame image features.

[0014] In one possible embodiment, feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features, including: performing global feature extraction on the entire image to be evaluated according to at least two feature extraction types to obtain at least two single-frame global image features; performing semantic segmentation on the image to be evaluated, and determining a target area containing a target object from the semantically segmented image; performing local feature extraction on the target area according to at least two feature extraction types to obtain at least two single-frame local image features; and merging at least two single-frame global image features and at least two single-frame local image features to obtain at least two single-frame image features.

[0015] In one possible implementation, local feature extraction is performed on the target area according to at least two feature extraction types to obtain at least two single-frame local image features, including: in the image to be evaluated, multiple windows of preset sizes are set so that the multiple windows cover the target area; according to at least two feature extraction types, local image features are extracted from the area covered by the multiple windows to generate at least two single-frame local image features.

[0016] In one possible implementation, in the image to be evaluated, multiple windows of preset sizes are set so that the multiple windows cover the target area, including: setting a first number of windows on the boundary of the target area so that the first number of windows cover the boundary; and / or setting a second number of windows inside the target area so that the second number of windows cover the inside of the target area.

[0017] In a second aspect, an embodiment of the present application provides an image quality evaluation device, the device comprising: a first acquisition module, used to acquire a frame of image from an image sequence as an image to be evaluated, and perform feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; a first determination module, used to determine the Nth frame of image located before the image to be evaluated from the image sequence as a reference image; a second acquisition module, used to acquire at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; a second determination module, used to determine the Nth frame of image located before the image to be evaluated from the image sequence as a reference image; a second acquisition module, used to acquire at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; A determination module is used to determine a target single-frame image feature for feature comparison from at least two single-frame image features; a comparison module is used to compare the target single-frame image feature with the corresponding reference single-frame image feature of at least two reference single-frame image features to obtain a continuous frame image feature representing a feature change of continuous frames; a merging module is used to merge at least two single-frame image features with the continuous frame image feature, and determine the merged feature as the image feature to be evaluated; a classification module is used to use a preset classifier to perform image quality classification on the image feature to be evaluated, and obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the image quality evaluation method of the first aspect of the present application is implemented.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method as in any embodiment of the image quality assessment method of the first aspect described above is implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer readable code. When the computer readable code runs on a device, the processor in the device implements a method as in any embodiment of the image quality assessment method of the first aspect mentioned above.

[0021] The image quality evaluation method, device, electronic device and storage medium provided in the embodiment of the present application extract features of the image to be evaluated to obtain at least two single-frame image features; determine the reference image from the image sequence; obtain at least two reference single-frame image features corresponding to the reference image; determine the target single-frame image features for feature comparison from the at least two single-frame image features; compare the target single-frame image features with the corresponding reference single-frame image features to obtain continuous frame image features; merge at least two single-frame image features and continuous frame image features into the image features to be evaluated; use a classifier to classify the image quality of the image features to be evaluated, and obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified. The embodiment of the present application realizes the introduction of single-frame image features and multi-frame continuous image features when evaluating the image, and fully judges the image quality of multiple dimensions of features in static and dynamic conditions, thereby improving the accuracy of image quality judgment. In addition, the embodiment of the present application can evaluate the quality of various images, has a wide range of application fields, and the types of extracted features can be adjusted according to actual scenarios, thereby improving the scalability of the solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0024] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0025] Figure 1 A flowchart of an image quality evaluation method provided in an embodiment of the present application;

[0026] Figure 2A and Figure 2B A schematic diagram of an image with an original viewing angle and a transformed viewing angle provided in an embodiment of the present application;

[0027] Figure 3 A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0028] Figure 4A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0029] Figure 5 A flowchart of a method for training a classification model provided in an embodiment of the present application;

[0030] Figure 6 A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0031] Figure 7 A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0032] Figure 8 A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0033] Fig. 9 A flowchart of another image quality evaluation method provided in an embodiment of the present application;

[0034] Fig. 10A and Fig. 10B A schematic diagram of multiple windows covering a target area provided in an embodiment of the present application;

[0035] Fig.11 A schematic diagram of the structure of an image quality evaluation device provided in an embodiment of the present application;

[0036] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values ​​described in these embodiments do not limit the scope of the present application.

[0038] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.

[0039] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.

[0040] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0041] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0042] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0043] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.

[0044] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.

[0045] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0046] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0047] In order to solve the technical problems of low accuracy and scene adaptability of image quality evaluation in the prior art, the present application provides an image quality evaluation method that can fully judge the image quality of features in multiple dimensions under static and dynamic conditions, thereby improving the accuracy of image quality judgment and the scalability of the solution.

[0048] Figure 1A flow chart of an image quality assessment method provided for an embodiment of the present application. This method can be applied to one or more electronic devices such as vehicles (e.g., smart driving vehicles), desktop computers, portable computers, laptops, smart phones, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.

[0049] like Figure 1 As shown, the method specifically includes:

[0050] Step 101 : obtaining a frame of image from an image sequence as an image to be evaluated, and performing feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features.

[0051] In this embodiment, the above-mentioned image sequence is the images included in the video. For example, the images contained in the video captured in real time by a camera outside the vehicle constitute the image sequence. Each of the at least two single-frame image features corresponds to a feature extraction type. Among them, the image to be evaluated can be any image in the image sequence. For example, it can be the original image captured by the camera, or it can be an image processed by viewing angle transformation, synthesis and other processing methods. The image to be evaluated in this embodiment can be an image captured in various scenes, for example, an image captured by a panoramic camera on a vehicle, an image captured by a surveillance camera, an image captured by a mobile phone, etc.

[0052] The above-mentioned feature extraction types may include multiple types, for example, three color features of R, G, and B, grayscale features, edge features, texture features, and the like. The image features extracted according to each feature extraction type constitute the above-mentioned at least two single-frame image features. Usually, each of the at least two single-frame image features may be in the form of a feature map, and the size of the feature map may be the same as or different from the size of the image to be evaluated. For example, the image to be evaluated may be scaled first, and then the feature map of the scaled size may be extracted.

[0053] Step 102: determine, from the image sequence, an Nth frame image that is located before the image to be evaluated as a reference image.

[0054] In this embodiment, the positional relationship between the reference image and the image to be evaluated in the image sequence is fixed, and the reference image may be the first N frames of the image to be evaluated, where N is an arbitrary natural number.

[0055] Step 103: Obtain at least two reference single-frame image features corresponding to the reference image.

[0056] In this embodiment, the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features described above, that is, by executing step 101 for the reference image, at least two reference single-frame image features can be obtained.

[0057] Step 104: Determine a target single-frame image feature for feature comparison from at least two single-frame image features.

[0058] In this embodiment, the target single-frame image features used for feature comparison may be all single-frame image features of at least two single-frame image features, or may be single-frame image features corresponding to a specific feature type. For example, the target single-frame image features may include color feature data such as R, G, B, and grayscale.

[0059] Step 105 , comparing the target single-frame image feature with corresponding reference single-frame image features of at least two reference single-frame image features to obtain continuous frame image features representing feature changes of continuous frames.

[0060] In this embodiment, the method for comparing the single-frame image features can be performed by taking the difference of the feature values ​​under the same pixel coordinates, and the difference can be an actual value or an absolute value; other processing (such as normalization, etc.) can also be performed on the basis of the difference. The type of single-frame image features used in the comparison calculation should correspond, and the type of the continuous frame image features obtained is the same as the type of the target single-frame image features.

[0061] As an example, if the target continuous frame image features include four color feature maps of R, G, B and grayscale, then the four color feature maps can be respectively differentiated from the corresponding four color feature maps of R, G, B and grayscale in at least two reference single frame image features at the same pixel coordinates, and the obtained continuous frame image features also include four continuous frame feature maps.

[0062] Since in actual scenes, image sequences are continuous and features should not change too much, the features of continuous frame images can be used as a judgment indicator to reflect image quality.

[0063] Step 106: merge at least two single-frame image features and continuous-frame image features, and determine the merged features as the image features to be evaluated.

[0064] In this embodiment, if the number of single-frame image features is N and the number of continuous frame image features is M, the image features to be evaluated are a feature map containing N+M channels composed of the above-mentioned N single-frame image features and M continuous frame image features.

[0065] Step 107: Use a preset classifier to classify the image quality of the image features to be evaluated, and obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0066] In this embodiment, the classifier may be any type of software module for classification. For example, it may include a model for classification that is pre-trained using a machine learning method, and the model may classify the image to be evaluated as qualified or unqualified; the classifier may also include reference threshold data for comparing the quality of the image feature to be evaluated, and each value in the image feature to be evaluated may be compared with the corresponding reference threshold, and whether the quality of the image to be evaluated is qualified may be determined based on the comparison result.

[0067] The image quality of this embodiment can indicate whether the image's clarity, contrast, brightness and other attributes meet the requirements for image clarity, contrast, brightness and other attributes. If the image quality is judged to be qualified, it means that the image meets the requirements for image clarity, contrast, brightness and other attributes, and each image can be further processed, such as displaying on a screen, identifying qualified images, splicing and other processing.

[0068] The image quality evaluation method provided in the embodiment of the present application is to extract features from the image to be evaluated to obtain at least two single-frame image features; determine a reference image from an image sequence; obtain at least two reference single-frame image features corresponding to the reference image; determine the target single-frame image features for feature comparison from the at least two single-frame image features; compare the target single-frame image features with the corresponding reference single-frame image features to obtain continuous frame image features; merge at least two single-frame image features and continuous frame image features into the image features to be evaluated; and use a classifier to classify the image quality of the image features to be evaluated to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified. The embodiment of the present application realizes the introduction of single-frame image features and multi-frame continuous image features when evaluating an image, and fully judges the image quality of features in multiple dimensions under static and dynamic conditions, thereby improving the accuracy of image quality judgment. In addition, the embodiment of the present application can evaluate the quality of various images, has a wide range of application fields, and the types of extracted features can be adjusted according to actual scenarios, thereby improving the scalability of the solution.

[0069] In some optional implementations of this embodiment, in the above step 101, the image to be evaluated may be obtained according to the following sub-steps:

[0070] First, obtain the original image sequence captured by the camera.

[0071] The camera may be a camera for photographing various targets, for example, a panoramic camera arranged outside a vehicle, and the original image sequence is a sequence of images contained in the photographed video.

[0072] Then, a perspective transformation is performed on each original image in the original image sequence to obtain a perspective transformation image sequence, and a frame of the perspective transformation image is obtained from the perspective transformation image sequence as an image to be evaluated.

[0073] Specifically, the method for transforming the perspective of the original image can be implemented by using relevant methods in the art. Figure 2A and Figure 2B As shown, it is a schematic diagram showing the original image at the original viewing angle and the image after the viewing angle is transformed.

[0074] As an example, in the field of bird's-eye view perception technology applied to vehicles, the biggest problem with bird's-eye view perception is that it is highly dependent on camera parameters, or the ability to learn camera parameters is insufficient, resulting in the perception model trained with the panoramic six-camera data collected from different models cannot be universal. Therefore, at the data level, it is necessary to convert the existing panoramic six-camera data to the same model through perspective transformation to improve the universality of image data. However, the image after the perspective transformation often lacks true value, that is, there is no original image with the same perspective after the transformation. If the existing reference image quality evaluation methods such as PSNR are used, the quality of the synthetic image after the perspective transformation cannot be accurately evaluated.

[0075] This embodiment extracts single-frame image features and multi-frame continuous image features from the synthetic image after the perspective conversion, and fully judges the image quality based on the features in multiple dimensions in static and dynamic conditions, thereby accurately evaluating the quality of the synthetic image after the perspective conversion.

[0076] In some optional implementations of this embodiment, the classifier includes feature threshold data, and the feature type represented by the feature threshold data corresponds one-to-one with the feature type represented by the feature to be evaluated. In this embodiment, the feature threshold data can be pre-set manually based on engineering experience.

[0077] like Figure 3 As shown, step 107 includes:

[0078] Step 1071 , each image feature in the image features to be evaluated is compared with the feature threshold data of the corresponding feature type to obtain an initial evaluation result corresponding to each image feature.

[0079] Specifically, for one of the image features to be evaluated, the image feature can be compared with the corresponding feature threshold data in various ways. For example, the average value of the image feature can be calculated, the average value can be compared with the threshold, and whether the image feature meets the qualification condition can be determined based on the comparison result; or the value corresponding to each pixel point in the image feature can be compared with the threshold to determine the number of points that exceed (or do not exceed) the threshold, and whether the image feature meets the qualification condition can be determined based on the number.

[0080] As an example, for grayscale feature data, if the average value of the grayscale feature data is less than 20, or the number of pixels with a grayscale less than 20 in the grayscale feature data exceeds a preset number, it means that there are obvious black blocks on the image to be evaluated, while images taken in general traffic scenes rarely have such black blocks, so the quality of the image to be evaluated is unqualified.

[0081] Step 1072: If the number of initial evaluation results indicating that the image quality is qualified among the obtained initial evaluation results is greater than or equal to a preset number, an evaluation result indicating that the quality of the image to be evaluated is qualified is generated.

[0082] The preset number may be the same as the number of the image features to be evaluated, that is, when all the image features to be evaluated meet the qualified conditions, the quality of the image to be evaluated is determined to be qualified. The preset number may also be different from the number of the image features to be evaluated, that is, when a part of the image features to be evaluated meet the qualified conditions, the quality of the image to be evaluated is determined to be qualified.

[0083] This embodiment realizes the function of the classifier simply and quickly by setting feature threshold data, which can help to evaluate image quality efficiently and accurately, especially when the amount of image data is small, and can improve the efficiency of setting classification.

[0084] In some optional implementations of this embodiment, the classifier includes a classification model pre-trained based on a machine learning algorithm. The classifier in this embodiment can be trained based on various types of models, such as a support vector machine, a convolutional neural network, and the like.

[0085] like Figure 4 As shown, step 107 includes:

[0086] Step 1073: Classify the features of the image to be evaluated using the classification model to obtain quality data representing the image quality of the image to be evaluated.

[0087] Specifically, the classification model may use the features of the image to be evaluated to perform binary classification on the quality of the image to be evaluated. The quality data may indicate the quality of the image to be evaluated, for example, it may be a score, probability value, etc. indicating the quality.

[0088] Step 1074: Based on the quality data, generate an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0089] Specifically, the quality data output by the model can be compared with the benchmark data, and whether the image quality is qualified can be determined based on the comparison result. For example, if the quality data is a score representing the image quality, the score can be compared with the benchmark score. If it is greater than the benchmark score, the image quality is determined to be qualified, otherwise the image quality is determined to be unqualified.

[0090] Generally, when there are many images to be processed, the classification model in this embodiment may be used to improve the efficiency of distinguishing image quality.

[0091] As an example, the above classification model can be obtained based on support vector machine training. After training, the support vector machine can obtain a hyperplane and weight parameter w * and the amount of paranoia b * For an image to be evaluated, use the support vector machine to evaluate the image feature x according to the following formula (1): i Classify and get output y i :

[0092] y i =w *T x i +b * (1)

[0093] In getting y i After that, we can calculate y i The distance from the above hyperplane, if the distance is positive (or negative), indicates that the image quality is qualified, and if it is negative (or positive), indicates that the image quality is unqualified.

[0094] This embodiment achieves efficient judgment of the quality of the image to be evaluated by setting a pre-trained classification model. Especially when the number of images is large, it can avoid the need for manual analysis of the images and setting of feature thresholds, thereby improving the efficiency of image quality judgment.

[0095] In some optional implementations of this embodiment, such as Figure 5 As shown, it shows a flow chart of the training method of the above classification model, and the training method includes:

[0096] Step 501: Obtain a sample image and a category label corresponding to the sample image.

[0097] The sample image is of the same type as the image to be evaluated. The category label is data indicating whether the quality of the sample image is qualified.

[0098] Step 502: extracting sample image features of the sample image.

[0099] This step can be done according to the above Figure 1 According to the method described in the corresponding embodiment, single-frame image features and continuous-frame image features are extracted from the sample image, and the two types of feature data are merged into sample image features.

[0100] Step 503: Input the sample image features into a preset initial classification model to obtain a predicted category.

[0101] The initial classification model may be a model of various structures, such as a convolutional neural network, a support vector machine, etc. The initial classification model includes model parameters that can perform a series of calculations on the input sample image features and finally output data representing the predicted category.

[0102] Step 504: using a preset loss function, determine a loss value representing the error between the predicted category and the category label.

[0103] Specifically, the loss function may be a loss function for classification. For example, when the model structure is a support vector machine, a hinge loss function may be used; and when the model structure is a neural network, a cross entropy loss function may be used.

[0104] Step 505: Adjust the parameters of the initial classification model based on the loss value.

[0105] Specifically, the parameters of the initial classification model can be adjusted through the gradient descent method and the back propagation method to gradually reduce the loss value, that is, to minimize the error between the predicted category and the category label.

[0106] As an example, when the support vector machine is used as the initial classification model, if the total number of images is Q, for images I1, ...I i ,…I Q , and their corresponding features can be concatenated into a vector, using x1, ...x i ,...x Q ,∈R N Indicates that R N Represents the feature space. During the training phase, the support vector machine finds an optimal hyperplane y=w in the feature space. T x+b, so that the classification interval is maximized. The loss function used for model optimization is as follows:

[0107]

[0108] sty i (w T x i +b)≥1-ξ i (3)

[0109] Among them, ξ i >0, i=1, 2, ..., Q. Solving the above optimization problem can obtain the parameter w * and b * .

[0110] Step 506, in response to determining that the initial classification model after adjusting the parameters meets the preset training end condition, the initial classification model after adjusting the parameters is determined as the classification model.

[0111] Specifically, the training end condition may include but is not limited to at least one of the following: loss value convergence, training time reaches a preset time, training times reaches a preset number of times, etc.

[0112] This embodiment trains a classification model based on a machine learning method, so that the model parameters can be more closely matched with the actual scene, thereby efficiently and accurately evaluating the quality of the image to be evaluated.

[0113] In some optional implementations of this embodiment, the above step 501 may be performed as follows:

[0114] First, a positive sample image is obtained from a preset positive sample image set.

[0115] The positive sample image corresponds to a qualified category label indicating that the positive sample image is a qualified image, and the positive sample image set includes an original image subset and / or a first perspective transformed image subset. The original image subset is a set of images that have not been processed by perspective transformation, and the first perspective transformed image subset is a set of images that have been processed by perspective transformation.

[0116] Then, a negative sample image is obtained from a preset negative sample image set.

[0117] The negative sample image corresponds to an unqualified category label indicating that the negative sample image is an image of unqualified quality, and the negative sample image set includes a second perspective transformed image subset.

[0118] Usually, the quality of the original images taken by the camera is good and does not require quality evaluation, while the quality of the images after the perspective conversion needs to be evaluated. Therefore, this embodiment can enrich the number of positive samples and balance the positive and negative samples by setting the original images in the positive sample image set, thereby facilitating the training of a high-precision classification model.

[0119] In some optional implementations of this embodiment, such as Figure 6 As shown, step 101 includes:

[0120] Step 1011: extract color features from the image to be evaluated to obtain single-frame color features.

[0121] Specifically, the single-frame color features may include R, G, B, and grayscale features. Each color feature is in the form of a feature map, and its size may be the same as or different from that of the image to be evaluated.

[0122] Let I red ,I green ,I blue They are red, green and blue color features respectively, and the calculation formula of grayscale features is shown in the following formula (4):

[0123] I grey =I red *0.299+I green *0.587+I blue *0.114 (4)

[0124] During calculation, the R, G, and B values ​​of each pixel are calculated separately, and the obtained numerical values ​​are combined into grayscale feature data.

[0125] Step 1012: extract structural features from the image to be evaluated to obtain single-frame structural features.

[0126] The single-frame structural features may include edge feature data, texture feature data, etc. of the image. The method used for extracting the single-frame structural features may be performed according to the relevant method in the art.

[0127] Step 1013: merge the single-frame color features and the single-frame structural features to obtain at least two single-frame image features.

[0128] The at least two merged single-frame image features include a single-frame color feature and a single-frame structure feature.

[0129] This embodiment extracts color features and structural features from the image to be evaluated, so that the features of a single frame image can contain a richer variety of feature data, thereby facilitating multi-dimensional quality judgment of the image to be evaluated and improving the accuracy of image quality evaluation.

[0130] In some optional implementations of this embodiment, such as Figure 7 As shown, step 1012 includes:

[0131] Step 10121, based on the color type used for color feature extraction, edge feature extraction is performed on the image to be evaluated to obtain single-frame edge features; and / or, based on the color type used for color feature extraction, texture feature extraction is performed on the image to be evaluated to obtain single-frame texture features.

[0132] Specifically, edge feature extraction can be performed using a Canny operator. When the method is applied to a vehicle driving scene, the double thresholds in the Canny operator should be determined according to the traffic scene and should not be set too high.

[0133] Usually, when extracting edge features of a single frame, an extraction operation can be performed on each of the above color feature data, that is, as well as Four types of edge feature data.

[0134] The single-frame texture feature can be obtained by using Gabor filtering. blue , I green , I red and grayscale information I grey , respectively extracting the texture features of different Gabor kernels, and then different textures can be obtained. The specific definition of Gabor filter g(x, y; ) is shown in the following formula (5):

[0135]

[0136] Among them, x′=xcosθ+ysinθ, y′=-xsinθ+ycosθ. τ is the standard deviation, θ is the normal direction of the parallel stripes of the Gabor filter, λ is the wavelength, γ is the ellipticity of the filter, and φ is the phase shift. Since there are four types of color features, designing N types of Gabor filter kernels can obtain 4N different texture features.

[0137] Step 10122: Generate the single-frame structural features based on the single-frame edge features and / or the single-frame texture features.

[0138] The generated single-frame structural features include at least one of single-frame edge features and single-frame texture features.

[0139] This embodiment extracts edge features and / or texture features of the image to be evaluated, thereby achieving the use of edge features and / or texture features of the reference image when performing quality evaluation on the image to be evaluated, thereby facilitating judgment on the edges and textures of various objects in the image and further improving the accuracy of image quality evaluation.

[0140] In some optional implementations of this embodiment, based on the above Figure 6 In the corresponding embodiment, the above step 104 may be performed as follows:

[0141] From the at least two single-frame image features, a single-frame color feature is determined as a target single-frame image feature for feature comparison.

[0142] As an example, suppose the current image to be evaluated is I t1 , the single frame color features include I t1blue , I t1green , I t1red , I t1grey . Let the image adjacent to the image to be evaluated be It2 The reference single-frame image features corresponding to the above single-frame color features include I t2blue , I t2green , I t2red , I t2grey , then the continuous frame image features of the image to be evaluated are shown in the following equations (6) to (9):

[0143]

[0144] When the difference is calculated in the formula, the difference is calculated for each pair of pixels with the same coordinates in the image to be evaluated and the reference image. Generally, the structural features such as edge features and texture features mentioned above change dramatically between different frames and cannot accurately reflect the image quality changes between consecutive frames. Therefore, this embodiment can effectively extract the color changes from consecutive frames by using the single-frame color features as at least one target single-frame image feature for feature comparison. If the color changes dramatically, it can be determined that the image quality is poor, thereby helping to improve the accuracy of extracting the image features of consecutive frames so that the image features of consecutive frames can accurately reflect the image quality.

[0145] In some optional implementations of this embodiment, such as Figure 8 As shown, the above step 101 includes:

[0146] Step 1014 , performing global feature extraction on the entire image to be evaluated according to at least two feature extraction types, and obtaining at least two single-frame global image features.

[0147] The global feature extraction is to extract features from the entire image, and the obtained single-frame global image features represent various types of features of the entire image. Each global feature data in the single-frame global image features corresponds to a feature extraction type.

[0148] Step 1015 , semantically segment the image to be evaluated, and determine a target region containing the target object from the semantically segmented image.

[0149] The method for semantically segmenting the image to be evaluated can be performed using relevant methods in the art. For example, a pre-trained semantic segmentation network can be used for semantic segmentation. The image after semantic segmentation can contain multiple segmented areas, from which the area of ​​the target category can be selected as the target area. For example, in a driving scene, the target area can be a road area.

[0150] Step 1016: perform local feature extraction on the target area according to at least two feature extraction types to obtain at least two single-frame local image features.

[0151] Each of the at least two single-frame local image features corresponds to a feature extraction type. Specifically, feature extraction can be performed on pixels contained in the target area, and feature values ​​corresponding to pixels in other areas can be set to fixed values ​​(e.g., 0), so that the size of each generated local feature data is the same as the size of the image to be evaluated, and the feature value corresponding to the pixel point in the non-target area is 0, that is, the color is black.

[0152] Step 1017: merge at least two single-frame global image features and at least two single-frame local image features to obtain at least two single-frame image features.

[0153] The at least two single-frame image features generated include single-frame global image features and single-frame local image features.

[0154] It should be noted that this embodiment can be combined with the above Figure 6 or Figure 7 The corresponding embodiments are combined. That is, when extracting global features and local features of the image to be evaluated, color feature extraction and structural feature extraction can be performed, that is, the global image features of a single frame include color feature data and structural feature data, and the local image features of a single frame also include color feature data and structural feature data.

[0155] This embodiment achieves the goal of placing the focus of image quality judgment on the target area by performing global feature extraction and local feature extraction on the image to be evaluated, thereby facilitating targeted quality evaluation for actual scenes and improving the accuracy of image quality evaluation.

[0156] In some optional implementations of this embodiment, such as Fig. 9 As shown, the above step 1016 includes:

[0157] Step 10161: In the image to be evaluated, multiple windows of preset sizes are set so that the multiple windows cover the target area.

[0158] The number and position of the windows can be set manually or automatically according to the size and position of the target area. For example, the sliding step of the window can be set so that the area covered by the window when sliding includes the target area. Fig. 10A and Fig. 10B As shown, each dotted box is a window of a preset size, the target area is the road area, and the features extracted from the area covered by the window are local features.

[0159] It should be noted that the multiple windows in this embodiment may cover the entire target area or may cover part of the target area, as long as the extracted local features are sufficient to reflect the target area.

[0160] Step 10162: extract local image features from the areas covered by multiple windows according to at least two feature extraction types, and generate at least two single-frame local image features.

[0161] Specifically, for each window, feature data of the corresponding area can be extracted according to the at least two feature extraction types mentioned above, and the feature data corresponding to all windows are taken as a union to obtain at least two single-frame local image features.

[0162] This embodiment sets multiple windows and uses the areas covered by the windows to extract single-frame local image features, thereby realizing local feature extraction of the target area and its adjacent areas, which helps to extract richer features related to the target area. The at least two single-frame local image features extracted in this way can more accurately reflect the features of the target area, thereby improving the accuracy of image quality judgment using local features.

[0163] In some optional implementations of this embodiment, the above step 10161 may include the following sub-steps:

[0164] A first number of windows are set on a boundary of the target area so that the first number of windows cover the boundary; and / or a second number of windows are set inside the target area so that the second number of windows cover the inside of the target area.

[0165] like Fig. 10A and Fig. 10B As shown, the target area is a road area, and a plurality of windows are set on the roadside portion in the image. The roadside is the boundary of the target area, and these windows can cover the boundary.

[0166] like Fig. 10A As shown in the window 1001 in FIG. 1 , it is located in the road area and can cover the inside of the road area.

[0167] It should be noted that Fig. 10A and Fig. 10B The number and size of the windows shown are only examples. When extracting local features, the number and size of the windows can be adjusted arbitrarily, that is, the size of the area covered by the windows can be adjusted. The position of the window can be set on the boundary of the target area and / or inside the target area, and the position of the window can be set according to actual needs. Fig. 10B As shown, since the area of ​​the road area is small, it is only necessary to set a plurality of windows on the roadside to cover most of the road area. Therefore, it is not necessary to set windows inside the road area.

[0168] This embodiment achieves more targeted local feature extraction on the boundary and interior of the target area by setting a window on the boundary of the target area and / or inside the target area. The features of these areas can accurately reflect the features of the target area, thereby making the expressiveness of the local features more targeted, which helps to improve the accuracy of image quality evaluation using local features.

[0169] Fig.11 A schematic diagram of the structure of an image quality evaluation device provided in an embodiment of the present application. Specifically comprising: a first acquisition module 1101, used to acquire a frame of image from an image sequence as an image to be evaluated, and perform feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; a first determination module 1102, used to determine the Nth frame of image located before the image to be evaluated from the image sequence as a reference image; a second acquisition module 1103, used to acquire at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; a second determination module 1104, used to extract at least two reference single-frame image features from the at least two single-frame image features. Among the single-frame image features, a target single-frame image feature for feature comparison is determined; a comparison module 1105 is used to compare the target single-frame image feature with the corresponding reference single-frame image feature of at least two reference single-frame image features to obtain continuous frame image features representing feature changes of continuous frames; a merging module 1106 is used to merge at least two single-frame image features with the continuous frame image features, and determine the merged features as the image features to be evaluated; a classification module 1107 is used to use a preset classifier to perform image quality classification on the image features to be evaluated, and obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0170] In one possible implementation, the first acquisition module includes: an acquisition unit, used to acquire a sequence of original images taken by a camera; a transformation unit, used to perform a perspective transformation on each original image in the original image sequence to obtain a perspective transformation image sequence, and to acquire a frame of perspective transformation image from the perspective transformation image sequence as an image to be evaluated.

[0171] In one possible embodiment, the classifier includes feature threshold data, and the feature type represented by the feature threshold data corresponds one-to-one with the feature type represented by the feature to be evaluated; the classification module includes: a comparison unit, which is used to compare each image feature in the image features to be evaluated with the feature threshold data of the corresponding feature type, and obtain an initial evaluation result corresponding to each image feature; a first generation unit, which is used to generate an evaluation result indicating that the quality of the image to be evaluated is qualified if the number of initial evaluation results indicating that the image quality is qualified among the initial evaluation results obtained is greater than or equal to a preset number.

[0172] In one possible implementation, the classifier includes a classification model pre-trained based on a machine learning algorithm; the classification module includes: a classification unit, used to classify the features of the image to be evaluated using the classification model to obtain quality data representing the image quality of the image to be evaluated; and a second generation unit, used to generate an evaluation result indicating whether the quality of the image to be evaluated is qualified based on the quality data.

[0173] In one possible implementation, the classification model is pre-trained according to the following steps: obtaining a sample image and a category label corresponding to the sample image; extracting sample image features of the sample image; inputting the sample image features into a preset initial classification model to obtain a predicted category; using a preset loss function, determining a loss value representing the error between the predicted category and the category label; based on the loss value, adjusting the parameters of the initial classification model; in response to determining that the initial classification model after adjusting the parameters meets the preset training end conditions, determining the initial classification model after adjusting the parameters as the classification model.

[0174] In one possible implementation, obtaining sample images and category labels corresponding to the sample images includes: obtaining positive sample images from a preset positive sample image set, wherein the positive sample images correspond to qualified category labels indicating that the positive sample images are images of qualified quality, and the positive sample image set includes an original image subset and / or a first perspective transformed image subset; obtaining negative sample images from a preset negative sample image set, wherein the negative sample images correspond to unqualified category labels indicating that the negative sample images are images of unqualified quality, and the negative sample image set includes a second perspective transformed image subset.

[0175] In one possible embodiment, the first acquisition module includes: a first extraction unit, used to extract color features of the image to be evaluated to obtain single-frame color features; a second extraction unit, used to extract structural features of the image to be evaluated to obtain single-frame structural features; a first merging unit, used to merge the single-frame color features and the single-frame structural features to obtain at least two single-frame image features.

[0176] In one possible embodiment, the second extraction unit includes: a first extraction subunit, used to perform edge feature extraction on the image to be evaluated based on the color type used for color feature extraction, to obtain a single-frame edge feature; and / or, a second extraction subunit, used to perform texture feature extraction on the image to be evaluated based on the color type used for color feature extraction, to obtain a single-frame texture feature; a generation subunit, used to generate a single-frame structural feature based on the single-frame edge feature and / or the single-frame texture feature.

[0177] In a possible implementation manner, the second determination module is further configured to: determine, from at least two single-frame image features, a single-frame color feature as a target single-frame image feature for feature comparison.

[0178] In one possible embodiment, the first acquisition module includes: a third extraction unit, used to perform global feature extraction on the entire image to be evaluated according to at least two feature extraction types, so as to obtain at least two single-frame global image features; a segmentation unit, used to perform semantic segmentation on the image to be evaluated, and determine the target area containing the target object from the semantically segmented image; a fourth extraction unit, used to perform local feature extraction on the target area according to at least two feature extraction types, so as to obtain at least two single-frame local image features; and a second merging unit, used to merge at least two single-frame global image features and at least two single-frame local image features, so as to obtain at least two single-frame image features.

[0179] In one possible embodiment, the fourth extraction unit includes: a setting subunit, used to set multiple windows of preset sizes in the image to be evaluated, so that the multiple windows cover the target area; a third extraction subunit, used to extract local image features from the area covered by the multiple windows according to at least two feature extraction types, and generate at least two single-frame local image features.

[0180] In one possible implementation, the setting subunit is further used to: set a first number of windows on the boundary of the target area so that the first number of windows cover the boundary; and / or set a second number of windows inside the target area so that the second number of windows cover the inside of the target area.

[0181] The image quality evaluation device provided in this embodiment can be as follows Fig.11 The image quality assessment device shown in can execute all the steps of the above image quality assessment methods, thereby achieving the technical effects of the above image quality assessment methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.

[0182] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Fig.12 The electronic device 1100 shown includes: at least one processor 1201, a memory 1202, at least one network interface 1204 and other user interfaces 1203. The various components in the electronic device 1100 are coupled together via a bus system 1205. It is understood that the bus system 1205 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 1205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 1205 is not described in detail. Fig.12 Various buses are labeled as bus system 1205.

[0183] The user interface 1203 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0184] It can be understood that the memory 1202 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 1202 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0185] In some embodiments, the memory 1202 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 12021 and an application program 12022 .

[0186] Among them, the operating system 12021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 12022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 12022.

[0187] In this embodiment, by calling the program or instruction stored in the memory 1202, specifically, the program or instruction stored in the application 12022, the processor 1201 is used to execute the method steps provided by each method embodiment, for example, including:

[0188] A frame of image is obtained from an image sequence as an image to be evaluated, and feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; the Nth frame of image located before the image to be evaluated is determined from the image sequence as a reference image; at least two reference single-frame image features corresponding to the reference image are obtained, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; from the at least two single-frame image features, a target single-frame image feature for feature comparison is determined; the target single-frame image feature is compared with the corresponding reference single-frame image feature of the at least two reference single-frame image features to obtain continuous frame image features representing feature changes of continuous frames; the at least two single-frame image features and the continuous frame image features are merged, and the merged features are determined as the image features to be evaluated; the image quality of the image features to be evaluated is classified using a preset classifier to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0189] The method disclosed in the above embodiment of the present application can be applied to the processor 1201, or implemented by the processor 1201. The processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1201. The above processor 1201 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1202, and the processor 1201 reads the information in the memory 1202 and completes the steps of the above method in combination with its hardware.

[0190] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.

[0191] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0192] The electronic device provided in this embodiment may be Fig.12 The electronic device shown in can execute all the steps of the above-mentioned image quality evaluation methods, thereby achieving the technical effects of the above-mentioned image quality evaluation methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.

[0193] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0194] When one or more programs in the storage medium can be executed by one or more processors, the image quality evaluation method executed on the electronic device side can be implemented.

[0195] The processor is used to execute the program stored in the memory to implement the following steps of the image quality evaluation method performed on the electronic device side:

[0196] A frame of image is obtained from an image sequence as an image to be evaluated, and feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; the Nth frame of image located before the image to be evaluated is determined from the image sequence as a reference image; at least two reference single-frame image features corresponding to the reference image are obtained, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; from the at least two single-frame image features, a target single-frame image feature for feature comparison is determined; the target single-frame image feature is compared with the corresponding reference single-frame image feature of the at least two reference single-frame image features to obtain continuous frame image features representing feature changes of continuous frames; the at least two single-frame image features and the continuous frame image features are merged, and the merged features are determined as the image features to be evaluated; the image quality of the image features to be evaluated is classified using a preset classifier to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

[0197] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0198] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0199] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0200] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for evaluating image quality, characterized in that: The method comprises: Acquire a frame of image from the image sequence as the image to be evaluated, and perform feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; Determine, from the image sequence, an Nth frame image located before the image to be evaluated as a reference image; Acquire at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; Determining a target single-frame image feature for feature comparison from the at least two single-frame image features; Comparing the target single-frame image feature with the corresponding reference single-frame image feature of the at least two reference single-frame image features to obtain continuous frame image features representing the change of the features of continuous frames; Combining the at least two single-frame image features and the continuous-frame image features, and determining the combined features as the image features to be evaluated; The image quality classification is performed on the image features to be evaluated by using a preset classifier to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

2. The method according to claim 1, characterized in that The step of acquiring a frame of image from the image sequence as the image to be evaluated comprises: Get the original image sequence taken by the camera; Performing a perspective transformation on each original image in the original image sequence to obtain a perspective transformation image sequence, and acquiring a frame of the perspective transformation image from the perspective transformation image sequence as the image to be evaluated.

3. The method according to claim 1, characterized in that The classifier includes feature threshold data, and the feature type represented by the feature threshold data corresponds one-to-one with the feature type represented by the feature to be evaluated; The method of using a preset classifier to classify the image quality of the image features to be evaluated to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified includes: Comparing each image feature in the image features to be evaluated with the feature threshold data of the corresponding feature type, respectively, to obtain an initial evaluation result corresponding to each image feature; If, among the obtained initial evaluation results, the number of initial evaluation results indicating that the image quality is qualified is greater than or equal to a preset number, an evaluation result indicating that the quality of the image to be evaluated is qualified is generated.

4. The method according to claim 1, characterized in that: The classifier includes a classification model pre-trained based on a machine learning algorithm; The method of using a preset classifier to classify the image quality of the image features to be evaluated to obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified includes: Using the classification model to classify the features of the image to be evaluated, and obtain quality data representing the image quality of the image to be evaluated; Based on the quality data, an evaluation result indicating whether the quality of the image to be evaluated is qualified is generated.

5. The method according to claim 4, characterized in that The classification model is pre-trained according to the following steps: Obtaining a sample image and a category label corresponding to the sample image; extracting sample image features of the sample image; Inputting the sample image features into a preset initial classification model to obtain a predicted category; Determine a loss value representing an error between the predicted category and the category label using a preset loss function; Based on the loss value, adjusting the parameters of the initial classification model; In response to determining that the initial classification model after adjusting the parameters meets the preset training end condition, the initial classification model after adjusting the parameters is determined as the classification model.

6. The method according to claim 5, characterized in that The obtaining of the sample image and the category label corresponding to the sample image includes: Acquire a positive sample image from a preset positive sample image set, wherein the positive sample image corresponds to a qualified category label indicating that the positive sample image is an image of qualified quality, and the positive sample image set includes an original image subset and / or a first-view transformed image subset; A negative sample image is obtained from a preset negative sample image set, wherein the negative sample image corresponds to an unqualified category label indicating that the negative sample image is an image of unqualified quality, and the negative sample image set includes a second perspective transformed image subset.

7. The method according to claim 1, characterized in that The feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features, including: Extracting color features of the image to be evaluated to obtain single-frame color features; Extracting structural features of the image to be evaluated to obtain single-frame structural features; The single-frame color feature and the single-frame structure feature are combined to obtain the at least two single-frame image features.

8. The method according to claim 7, characterized in that The step of extracting structural features from the image to be evaluated to obtain single-frame structural features includes: Based on the color type used for the color feature extraction, edge feature extraction is performed on the image to be evaluated to obtain a single-frame edge feature; and / or, Based on the color type used in the color feature extraction, texture feature extraction is performed on the image to be evaluated to obtain single-frame texture features; The single-frame structural features are generated based on the single-frame edge features and / or the single-frame texture features.

9. The method according to claim 7, characterized in that: The step of determining, from the at least two single-frame image features, a target single-frame image feature for feature comparison comprises: From the at least two single-frame image features, the single-frame color feature is determined as a target single-frame image feature for feature comparison.

10. The method according to any one of claims 1 to 9, characterized in that: The feature extraction is performed on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features, including: According to the at least two feature extraction types, global feature extraction is performed on the entire image to be evaluated to obtain at least two single-frame global image features; Performing semantic segmentation on the image to be evaluated, and determining a target area containing a target object from the semantically segmented image; According to the at least two feature extraction types, local feature extraction is performed on the target area to obtain at least two single-frame local image features; The at least two single-frame global image features and the at least two single-frame local image features are combined to obtain the at least two single-frame image features.

11. The method according to claim 10, characterized in that The step of performing local feature extraction on the target area according to the at least two feature extraction types to obtain at least two single-frame local image features includes: In the image to be evaluated, a plurality of windows of preset sizes are set so that the plurality of windows cover the target area; According to the at least two feature extraction types, local image features are extracted from the areas covered by the multiple windows to generate the at least two single-frame local image features.

12. The method according to claim 11, characterized in that The step of setting a plurality of windows of preset sizes in the image to be evaluated so that the plurality of windows cover the target area comprises: Setting a first number of windows on a boundary of the target area so that the first number of windows covers the boundary; and / or, A second number of windows are set inside the target area, so that the second number of windows covers the inside of the target area.

13. An image quality evaluation device, characterized in that: The device comprises: A first acquisition module is used to acquire a frame of image from the image sequence as the image to be evaluated, and perform feature extraction on the image to be evaluated according to at least two preset feature extraction types to obtain at least two single-frame image features; A first determining module, used to determine, from the image sequence, an Nth frame image located before the image to be evaluated as a reference image; A second acquisition module is used to acquire at least two reference single-frame image features corresponding to the reference image, wherein the at least two reference single-frame image features are extracted in the same manner as the at least two single-frame image features; A second determination module is used to determine a target single-frame image feature for feature comparison from the at least two single-frame image features; A comparison module, used for comparing the target single-frame image feature with the corresponding reference single-frame image feature of the at least two reference single-frame image features to obtain a continuous frame image feature representing a change in the feature of the continuous frames; A merging module, used for merging the at least two single-frame image features and the continuous-frame image features, and determining the merged features as the image features to be evaluated; The classification module is used to use a preset classifier to classify the image quality of the image features to be evaluated, and obtain an evaluation result indicating whether the quality of the image to be evaluated is qualified.

14. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the image quality assessment method described in any one of claims 1 to 12 is implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image quality assessment method described in any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • Synthetic image data authenticity evaluation method, electronic equipment and storage medium

    CN119380152A

  • Morphological evaluation method for cattle frozen embryos

    CN119991667A