Image quality detection method and device, computer equipment and storage medium

By identifying and matching the regional features of target elements in the image, the problem of misjudgment in image quality detection in the existing technology is solved, and the accuracy of image quality detection is improved.

CN118735844APending Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310355792.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has misjudgment problems in image quality detection and cannot effectively improve the accuracy of image quality detection.

Method used

By identifying the target elements in the image to be detected, extracting the current regional features of the target element area, and matching them with the standard reference area features corresponding to each quality category, the regional quality category of the target element area is determined, thereby determining the image quality of the image to be detected. category.

Benefits of technology

The accuracy of image quality detection is improved, misjudgments are reduced, and the accuracy of image quality categories is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735844A_ABST
    Figure CN118735844A_ABST
Patent Text Reader

Abstract

The invention relates to an image quality detection method and device, computer equipment, a storage medium and a computer program product. The embodiment of the invention can be applied to the field of maps. The method comprises the following steps: acquiring a to-be-detected image, and identifying a target element in the to-be-detected image to obtain a target element area; current area features corresponding to the target element area are extracted, standard reference area features corresponding to all the quality categories are obtained, and the standard reference area features are obtained by conducting feature extraction on all the reference element areas corresponding to the quality categories; and fusing the region features of the reference elements. And determining the region quality category of the target element region based on the matching degree between the current region feature and the reference region feature corresponding to each quality category, and determining the image quality category corresponding to the to-be-detected image based on the region quality category of the target element region. By adopting the method, the accuracy of image quality detection can be 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 detection method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of computer vision technology, image processing technology has emerged. At present, when performing image processing, it is necessary to first collect images and then process the images for subsequent tasks. When collecting images, the quality of the collected images will be uneven. For example, some images have high clarity and some images have low clarity. It is usually necessary to judge the quality of the collected images and filter out the images with poor quality before processing the subsequent tasks. At present, image quality is usually detected using pre-set image quality judgment indicators. However, there is a problem of misjudgment when using image quality judgment indicators to detect image quality. Summary of the invention

[0003] Based on this, it is necessary to provide an image quality detection method, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of image quality detection in response to the above technical problems.

[0004] In a first aspect, the present application provides an image quality detection method. The method comprises:

[0005] Acquire an image to be detected, identify target elements in the image to be detected, and obtain a target element area;

[0006] Extract the current region features corresponding to the target element region, and obtain the standard reference region features corresponding to each quality category. The standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature;

[0007] Based on the matching degree between the current regional feature and the reference regional features corresponding to each quality category, determining the target reference regional feature corresponding to the current regional feature from the reference regional features corresponding to each quality category;

[0008] The quality category corresponding to the target reference area feature is used as the regional quality category of the corresponding target element area, and the image quality category corresponding to the image to be detected is determined based on the regional quality category of the target element area.

[0009] In a second aspect, the present application also provides an image quality detection device. The device comprises:

[0010] The region recognition module is used to obtain the image to be detected, identify the target element in the image to be detected, and obtain the target element region;

[0011] The feature extraction module is used to extract the current region features corresponding to the target element region and obtain the standard reference region features corresponding to each quality category. The standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature;

[0012] A feature matching module, configured to determine a target reference region feature corresponding to the current region feature from the reference region features corresponding to each quality category based on the matching degree between the current region feature and the reference region features corresponding to each quality category;

[0013] The quality category determination module is used to use the quality category corresponding to the target reference area feature as the regional quality category of the corresponding target element area, and determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area.

[0014] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0015] Acquire an image to be detected, identify target elements in the image to be detected, and obtain a target element area;

[0016] Extract the current region features corresponding to the target element region, and obtain the standard reference region features corresponding to each quality category. The standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature;

[0017] Based on the matching degree between the current regional feature and the reference regional features corresponding to each quality category, determining the target reference regional feature corresponding to the current regional feature from the reference regional features corresponding to each quality category;

[0018] The quality category corresponding to the target reference area feature is used as the regional quality category of the corresponding target element area, and the image quality category corresponding to the image to be detected is determined based on the regional quality category of the target element area.

[0019] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0020] Acquire an image to be detected, identify target elements in the image to be detected, and obtain a target element area;

[0021] Extract the current region features corresponding to the target element region, and obtain the standard reference region features corresponding to each quality category. The standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature;

[0022] Based on the matching degree between the current regional feature and the reference regional features corresponding to each quality category, determining the target reference regional feature corresponding to the current regional feature from the reference regional features corresponding to each quality category;

[0023] The quality category corresponding to the target reference area feature is used as the regional quality category of the corresponding target element area, and the image quality category corresponding to the image to be detected is determined based on the regional quality category of the target element area.

[0024] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0025] Acquire an image to be detected, identify target elements in the image to be detected, and obtain a target element area;

[0026] Extract the current region features corresponding to the target element region, and obtain the standard reference region features corresponding to each quality category. The standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature;

[0027] Based on the matching degree between the current regional feature and the reference regional features corresponding to each quality category, determining the target reference regional feature corresponding to the current regional feature from the reference regional features corresponding to each quality category;

[0028] The quality category corresponding to the target reference area feature is used as the regional quality category of the corresponding target element area, and the image quality category corresponding to the image to be detected is determined based on the regional quality category of the target element area.

[0029] The above-mentioned image quality detection method, device, computer equipment, storage medium and computer program product obtain the target element area by identifying the target element in the image to be detected; extract the current area feature corresponding to the target element area, and obtain the standard reference area feature corresponding to each quality category, the standard reference area feature is obtained by extracting the features of each reference element area of ​​the corresponding quality category, and fusing the features of each reference element area; based on the matching degree between the current area feature and the reference area feature corresponding to each quality category, determine the target reference area feature corresponding to the current area feature from the reference area features corresponding to each quality category; take the quality category corresponding to the target reference area feature as the regional quality category corresponding to the target element area, and determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area. That is, the regional quality category of the target element area is determined by the matching degree between the current area feature and the reference area feature corresponding to each quality category, which can improve the accuracy of image quality detection of the target element area, and then determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area, thereby improving the accuracy of the obtained image quality category. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A diagram showing an application environment of an image quality detection method in an embodiment;

[0031] Figure 2 is a flow chart of an image quality detection method in one embodiment;

[0032] Figure 3 is a schematic diagram of images of different quality categories in a specific embodiment;

[0033] Figure 4 is a schematic diagram of the architecture of a standard feature extraction model in a specific embodiment;

[0034] Figure 5 A schematic diagram of a process for training a standard feature extraction model in one embodiment;

[0035] Figure 6 A schematic diagram of a framework for target element identification in a specific embodiment;

[0036] Figure 7 is a schematic diagram of a model structure of a target element detection model in a specific embodiment;

[0037] Figure 8 A schematic diagram of candidate box generation in a specific embodiment;

[0038] Fig. 9 A schematic diagram of a process for determining characteristics of a target reference area in one embodiment;

[0039] Fig.10 is a schematic diagram of a framework of a regional image quality detection model in a specific embodiment;

[0040] Fig.11 A schematic diagram of a process of training a regional image quality detection model in an embodiment;

[0041] Fig.12 is a flowchart of an image quality detection method in a specific embodiment;

[0042] Fig.13 is a schematic diagram of a framework of image quality detection in a specific embodiment;

[0043] Fig.14 is a schematic diagram of each signboard image in a specific embodiment;

[0044] Fig.15 is a structural block diagram of an image quality detection device in one embodiment;

[0045] Fig.16 is an internal structure diagram of a computer device in one embodiment;

[0046] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] Computer Vision Technology (CV) Computer vision is a science that studies how to make machines "see". To put it more specifically, it refers to the use of cameras and computers to replace human eyes to identify, follow and measure targets, and further perform graphics processing to make computer processing into images that are more suitable for human eye observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and mapping, automatic driving, smart transportation and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0049] The solutions provided in the embodiments of the present application involve technologies such as image processing, image recognition, and smart transportation using artificial intelligence, which are specifically described through the following embodiments:

[0050] The image quality detection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. The server 104 can obtain the image to be detected uploaded by the terminal 102, identify the target elements in the image to be detected, and obtain the target element area; extract the current area features corresponding to the target element area, and obtain the standard reference area features corresponding to each quality category. The standard reference area features are obtained by extracting features of each reference element area of ​​the corresponding quality category, respectively, to obtain each reference element area feature, and fuse each reference element area feature; based on the matching degree of the current area feature with the reference area feature corresponding to each quality category, the target reference area feature corresponding to the current area feature is determined from the reference area features corresponding to each quality category; the quality category corresponding to the target reference area feature is used as the regional quality category corresponding to the target element area, and the image quality category corresponding to the image to be detected is determined based on the regional quality category of the target element area. The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0051] In one embodiment, Figure 2 As shown, a method for detecting image quality is provided. Figure 1 The method is described by taking the server in the example, and the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0052] S202, acquiring an image to be detected, identifying target elements in the image to be detected, and obtaining a target element region.

[0053] The image to be detected refers to an image that needs to be quality-tested, and the image quality is used to characterize the clarity of the image. The better the image quality, the higher the clarity of the image, and the clearer the image. The worse the image quality, the lower the clarity of the image, and the more blurred the image. The target element is used to characterize the object in the image, and the object can be any real object or a virtual object. The real object can be a person, an object, an animal, etc. The virtual object can be a virtual person, a virtual object, a virtual object, etc. The images collected in different scenes are different, and the target elements in the image are different. For example, in a map application scenario, the image to be detected can be a road image, and the target element can be physical point information on the road, such as a traffic restricted intersection, a speed limit sign, an electronic eye, etc. In a face recognition application scenario, the image to be detected can be a face image, and the target element can be a face. In an animal recognition application scenario, the image to be detected can be an animal image, and the target element can be an animal. The target element area refers to the area of ​​the target element in the image. The target element area is the area of ​​interest in the image.

[0054] Specifically, the server can obtain the image to be detected from the database. The server can obtain the image to be detected collected and uploaded by the terminal. The server can also obtain the image to be detected from the service provider providing business services. The server can also obtain the image to be detected from the service provider providing data services. The server can also directly obtain the image to be detected collected by the image acquisition device, which is a device for image acquisition, and can be a camera, a camcorder, a camera, etc. Then the server identifies the target element in the image to be detected through a neural network, and extracts the area where the target element is located from the image to be detected to obtain the target element area. In one embodiment, the server can obtain a video that needs to be tested for image quality, and then use each frame in the video as the image to be detected. The server can also extract key frames in the video, and then use the key frames as the image to be detected.

[0055] S204, extract the current area features corresponding to the target element area, and obtain the standard reference area features corresponding to each quality category. The standard reference area features are obtained by extracting features from each reference element area of ​​the corresponding quality category, obtaining each reference element area feature, and fusing each reference element area feature.

[0056] Among them, the current region feature is a feature vector used to characterize the target element region, and it can also be a feature map. The quality category is a category corresponding to the preset image quality. Different image qualities correspond to different types. For example, if the image quality is clear, the corresponding quality category is the clear category. If the image quality is blurred, the corresponding quality category is the blurred category. When the image quality is between clear and blurred, the corresponding quality category can be the intermediate category. The reference element region feature is a feature vector corresponding to the reference element region, and it can also be a feature map. The reference element region refers to the image region where the reference element is located, and the reference element region is the image region corresponding to the quality category. Each quality category will have different image regions corresponding to reference elements. The reference element refers to an element of the same type as the target element. For example, in a road image, the reference element refers to physical point information on the road that can be the same as the target element. The standard reference region feature refers to the fusion feature of each reference element region corresponding to the quality category, and is the standard feature of the image region corresponding to the quality category. The standard reference region features corresponding to different quality categories are different.

[0057] Specifically, the server extracts the current region features corresponding to the target element region through a neural network, wherein the neural network may be a feedforward neural network, a recurrent neural network, etc. In one embodiment, the server may also extract color features, texture features, shape features, spatial relationship features, etc. corresponding to the target element region as the current region features corresponding to the target element region.

[0058] Then the server obtains the standard reference area features corresponding to each quality category from the database. The quality category may include a clear category and a fuzzy category, and the server obtains the standard reference area features corresponding to the clear category and the standard reference area features corresponding to the fuzzy category from the database. Among them, the standard reference area features corresponding to the clear category may be obtained by the server in advance by obtaining each reference element area corresponding to the clear category, and then fusing the reference element area features corresponding to each reference element area. The standard reference area features corresponding to the fuzzy category may be obtained by the server in advance by obtaining each reference element area corresponding to the fuzzy category, and then fusing the reference element area features corresponding to each reference element area. In one embodiment, the quality category may also include an intermediate category, and the server simultaneously obtains the standard reference area features corresponding to the intermediate category from the database. The standard reference area features corresponding to the intermediate category are obtained by the server in advance by obtaining each reference element area corresponding to the intermediate category, and then fusing the reference element area features corresponding to each reference element area. The intermediate category refers to a category between the clear category and the fuzzy category, which is used to characterize that the clarity of the image is between clear and fuzzy.

[0059] S206: Based on the matching degree between the current region feature and the reference region features corresponding to each quality category, determine the target reference region feature corresponding to the current region feature from the reference region features corresponding to each quality category.

[0060] Among them, the matching degree is used to characterize the similarity between the current region feature and the reference region feature. The higher the similarity, the more consistent the current region feature is with the reference region feature, and the more consistent the target element region is with the image region of the quality category corresponding to the reference region feature. The target reference region feature refers to the reference region feature with the highest matching degree with the current region feature.

[0061] Specifically, the server may use a similarity algorithm to calculate the matching degree between the current region feature and the reference region feature corresponding to each quality category, wherein the similarity algorithm may be a cosine similarity, a distance similarity algorithm, etc. The server calculates the feature similarity between the reference region feature corresponding to each quality category and the current region feature to obtain each matching degree, and then selects the reference region feature corresponding to the maximum matching degree from each matching degree to determine the target reference region feature corresponding to the current region feature.

[0062] S208, taking the quality category corresponding to the target reference region feature as the region quality category corresponding to the target element region, and determining the image quality category corresponding to the image to be detected based on the region quality category of the target element region.

[0063] Among them, the regional quality category refers to the quality category corresponding to the target element region, which is used to characterize the image quality corresponding to the region in the image. The image quality category refers to the quality category corresponding to the image to be detected, which is used to characterize the image quality corresponding to the entire image.

[0064] Specifically, the server uses the quality category corresponding to the target reference region feature as the regional quality category of the corresponding target element region. In one embodiment, the server may also obtain at least two target reference region features from the reference region features corresponding to each quality category according to the degree of matching, and then obtain the quality categories corresponding to the at least two target reference region features. When the quality categories corresponding to the at least two target reference region features are consistent, the quality category is used as the regional quality category of the target element region. When there are inconsistent quality categories among the quality categories corresponding to the at least two target reference region features, the server may use the quality category representing high image quality as the regional quality category of the target element region, and the server may also use the quality category representing low image quality as the regional quality category of the target element region.

[0065] Then the regional quality category of the target element area is used as the image quality category corresponding to the image to be detected. When the image to be detected includes a target element area, the server can directly use the regional quality category of the target element area as the image quality category corresponding to the image to be detected. When the image to be detected includes at least two target element areas, the server can determine the image quality category corresponding to the image to be detected based on the regional quality category of each target element area, wherein the server can use the regional quality category representing the highest image quality as the image quality category corresponding to the image to be detected. The server can also use the regional quality category representing the lowest image quality as the image quality category corresponding to the image to be detected. The server can also count the regional quality category of each target element area and obtain the regional quality category with the largest number as the image quality category corresponding to the image to be detected. The server can also count the regional quality category of each target element area and obtain the regional quality category with the least number as the image quality category corresponding to the image to be detected.

[0066] In one embodiment, the image to be detected may also be a target element image directly. The server may directly obtain the target element image for image quality detection, then extract the current image features corresponding to the target element image, calculate the matching degree between the current image features and the reference area features corresponding to each quality category, and directly determine the image quality category corresponding to the target element image according to the matching degree, thereby eliminating the need for target element detection and improving the efficiency of image quality detection.

[0067] The above-mentioned image quality detection method, device, computer equipment, storage medium and computer program product obtain the target element area by identifying the target element in the image to be detected; extract the current area feature corresponding to the target element area, and obtain the standard reference area feature corresponding to each quality category, the standard reference area feature is obtained by extracting the features of each reference element area of ​​the corresponding quality category, and fusing the features of each reference element area; based on the matching degree between the current area feature and the reference area feature corresponding to each quality category, determine the target reference area feature corresponding to the current area feature from the reference area features corresponding to each quality category; take the quality category corresponding to the target reference area feature as the regional quality category corresponding to the target element area, and determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area. That is, the regional quality category of the target element area is determined by the matching degree between the current area feature and the reference area feature corresponding to each quality category, which can improve the accuracy of image quality detection of the target element area, and then determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area, thereby improving the accuracy of the obtained image quality category.

[0068] In one embodiment, before S202, that is, before acquiring the image to be detected, identifying the target element in the image to be detected, and obtaining the target element area, the following steps are also included:

[0069] Obtain each reference element area corresponding to a preset quality category; extract features from each reference element area to obtain features of each reference element area; fuse the features of each reference element area to obtain features of a standard reference area corresponding to the preset quality category.

[0070] Among them, the preset quality category is a pre-set quality category. Different quality categories are used to reflect different image qualities. The quality category can also be a quality level. The higher the quality level, the better the image quality, that is, the higher the image clarity. The lower the quality level, the lower the image quality, that is, the lower the image clarity, the blurrier the image.

[0071] Specifically, the server can obtain the various reference element areas corresponding to the preset quality category from the database, that is, obtain the images corresponding to the reference elements. In the same application scenario, there will be images corresponding to different reference elements in the same quality category. The server can obtain the various reference element areas corresponding to the preset quality category in the application scenario from the database. The server can also obtain the various reference element areas corresponding to the preset quality category in the application scenario uploaded by the terminal. The server can also obtain the various reference element areas corresponding to the preset quality category sent by the service provider providing business services. The server can also obtain the various reference element areas corresponding to the preset quality category from the service provider providing data services.

[0072] At this time, the server can use a neural network to extract the image features of each reference element area to obtain the features of each reference element area. The server can also extract the color features, texture features, shape features and spatial relationship features of each reference element area, and then splice the color features, texture features, shape features and spatial relationship features to obtain the features of each reference element area. The server then fuses the features of each reference element area, wherein feature vector operations can be performed between the features of each reference element area, such as vector sum operations, vector product operations, etc., to obtain the standard reference area features corresponding to the preset quality category.

[0073] In one embodiment, the preset quality categories may include at least two, and then the server obtains the reference element areas corresponding to the at least two quality categories, and then respectively merges the reference element area features of the reference element areas corresponding to each quality category, and then merges all the reference element area features corresponding to each instruction category to obtain the standard reference area features corresponding to each quality category.

[0074] In a specific embodiment, Figure 3 The figure shows a schematic diagram of images of different quality categories, that is, the server can obtain various sign images on the road in the map application scenario, including various sign images corresponding to the image blur category and various sign images corresponding to the image clear category. The server then extracts the features of each fuzzy sign image corresponding to the image blur category, fuses the features of each fuzzy sign image, and obtains the standard reference area features of the image blur category. Then, the server extracts the features of each clear sign image corresponding to the image clear category, fuses the features of each clear sign image, and obtains the standard reference area features of the image clear category.

[0075] In the above embodiment, each reference element region corresponding to the preset quality category is obtained; each reference element region is subjected to feature extraction to obtain each reference element region feature. Then, each reference element region feature is fused to obtain the standard reference region feature corresponding to the preset quality category, so that the obtained standard reference region feature is more accurate.

[0076] In one embodiment, the regional features of the reference elements are fused to obtain the standard reference regional features corresponding to the preset quality category, including the steps of:

[0077] The regional features of each reference element are spliced ​​to obtain a spliced ​​feature; a convolution operation is performed based on the spliced ​​feature to obtain a standard reference regional feature corresponding to a preset quality category.

[0078] Among them, the splicing feature refers to the feature obtained by splicing the regional features of each reference element end to end.

[0079] Specifically, the server may splice each reference element region feature end to end to obtain a spliced ​​feature. The end to end splicing may be splicing each reference element region feature end to end in sequence according to a pre-set splicing order. The splicing order may also be determined according to the order in which the server obtains the reference element regions. The splicing order may also be determined according to the order in which the server finds the reference element regions. The server then performs a convolution operation on the spliced ​​feature using a convolution parameter, which is pre-set, and reduces the dimension of the spliced ​​feature through the convolution operation to obtain a standard reference region feature. In one embodiment, the server may also superimpose each reference element region feature to obtain a superimposed feature, that is, superimpose feature vectors to obtain a feature map, use the feature map as the superimposed feature, perform a convolution operation on the superimposed feature, and obtain a standard reference region feature corresponding to a preset quality category.

[0080] In the above embodiment, the stitching features are obtained by splicing the regional features of each reference element, and then a convolution operation is performed based on the stitching features to obtain the standard reference regional features corresponding to the preset quality category, so that the obtained standard reference regional features can be more accurate.

[0081] In one embodiment, the image quality detection method further includes the steps of:

[0082] Input each reference element area into the standard feature extraction model; extract features from each reference element area through the feature extraction network in the standard feature extraction model to obtain the features of each reference element area; fuse the features of each reference element area through the feature fusion network in the standard feature extraction model to obtain the standard reference area features corresponding to the preset quality category.

[0083] The standard feature extraction model is a neural network model used to extract the standard reference area features corresponding to the quality category, and the standard feature extraction model is pre-trained. The feature extraction network is a neural network used for feature extraction, which may be a convolutional neural network. The feature fusion network refers to a neural network used for feature fusion, which may be a convolutional neural network.

[0084] Specifically, the server obtains a pre-trained standard feature extraction model and then deploys the standard feature extraction model. When each reference feature area is obtained, the deployed standard feature extraction model can be called to perform standard feature extraction, that is, the server uses each reference feature area as the input of the standard feature extraction model, and the feature extraction network in the standard feature extraction model receives each reference feature area, and extracts the reference feature area features corresponding to each reference feature area through the trained feature extraction parameters. Then, the reference feature area features corresponding to each reference feature area are input into the feature fusion network, and the feature fusion network splices the reference feature area features corresponding to each reference feature area to obtain spliced ​​features, and then uses the spliced ​​features and convolution parameters to perform convolution operations to obtain output standard reference area features.

[0085] In a specific embodiment, Figure 4 The figure shows the architecture of the standard feature extraction model. Specifically, the server receives each blurred road sign image, inputs each blurred road sign image into the convolutional neural network for feature extraction, and obtains the feature vector of each road sign image, which includes k1, k2, k3, k4...kn. Then, the feature vectors of each road sign image are superimposed to obtain a superimposed feature map, and then the superimposed feature map is convoluted through the convolutional neural network to obtain the standard reference area feature K corresponding to the output image blur category.

[0086] In the above embodiment, features of each reference element region are extracted through the feature extraction network in the standard feature extraction model to obtain features of each reference element region, and features of each reference element region are fused through the feature fusion network in the standard feature extraction model to obtain standard reference region features corresponding to the preset quality category, thereby improving the efficiency and accuracy of the obtained standard reference region features.

[0087] In one embodiment, Figure 5 As shown, the training steps of the standard feature extraction model include:

[0088] S502, obtaining each training image and a corresponding training category label, and inputting each training image into an initial image classification model.

[0089] The training image is an image used when training the standard feature extraction model. The training category label is a label of the category corresponding to the training image, and the training category label is pre-set. The category corresponding to the training image can be a category obtained after classifying the object in the training image. The initial image classification model refers to an image classification model that initializes the model parameters. The image classification model is a neural network model for classifying images. The object image classification can be the classification of objects in the image, the classification and recognition of image quality, or the classification of image scenes, etc.

[0090] Specifically, the server can obtain each training image and the corresponding training category label from the database, or from the service provider providing data services, or from the training images uploaded by the terminal, or from the service provider. The server then uses a neural network to establish an initial image classification model, that is, to establish a neural network architecture for image classification, and then initialize the network parameters in the neural network, for example, zero initialization, random initialization, Gaussian distribution initialization, etc., to obtain an initial image classification model.

[0091] S504, extracting features from each training image through the initial feature extraction network in the initial image classification model to obtain features of each training image.

[0092] The initial feature extraction network refers to a feature extraction network with initialized network parameters, which is used to extract features of an image. The feature extraction network may be a convolutional neural network, a recurrent neural network, etc. The training image features are features corresponding to the training images extracted using the initialized network parameters in the initial feature extraction network during training.

[0093] Specifically, the server extracts features from each training image through the initial feature extraction network in the initial image classification model to obtain features of each training image. The training image can be weighted by initializing the network parameters in the initial feature extraction network to obtain output training image features. The training image features can be feature vectors or feature maps. The initial feature extraction network extracts features from each training image in turn, and when all training images are extracted through the feature extraction network, the features of each training image are obtained.

[0094] S506, fusing the features of each training image through the initial feature fusion network in the initial image classification model to obtain training fusion features.

[0095] S508, performing image classification on the training fusion features through the initial classification network in the initial image classification model to obtain image training categories.

[0096] Among them, the initial feature fusion network refers to the feature fusion network with network parameters initialized. The feature fusion network is a network used to fuse features. The fusion features extracted by the feature fusion network include common image semantic information. The training fusion features are the fusion features extracted during training. The initial classification network refers to the classification network with network parameters initialized. The classification network is a network for classification and recognition. The categories in the classification network are pre-set. The classification network determines the final category according to the probability of each category by identifying the probability of each category. The image training category is the category corresponding to each training image identified during training.

[0097] Specifically, the server fuses each training image feature through the initial feature fusion network in the initial image classification model to obtain a training fusion feature, that is, the network parameters in the initial feature fusion network are used to weight and calculate each training image feature to obtain a training fusion feature, and then the training fusion feature is used to perform classification calculation through the network parameters in the initial classification network to obtain the output image training category. The training fusion feature is used to classify the image through the initial classification network in the initial image classification model, that is, the training fusion feature can be weighted and calculated using the network parameters of the initial classification network, and then normalized to obtain the output image training category.

[0098] S510, updating the initial image classification model based on the training category label and the image training category to obtain an updated image classification model;

[0099] S512, the updated image classification model is used as the initial image classification model, and the steps of obtaining each training image and the corresponding training category label and inputting each training image into the initial image classification model are returned and iteratively executed until the training is completed to obtain the target image classification model.

[0100] The updated image classification model refers to the image classification model after the network parameters are updated. The target image classification model refers to the image classification model that meets the training completion conditions, and the training completion conditions may be that the training reaches the maximum number of iterations, the network parameters obtained by training no longer change, and the training loss reaches a preset loss threshold.

[0101] Specifically, the server uses the training category labels and the image training categories to calculate the loss information of the model training, and can use the classification loss function to calculate the error between the training category labels and the image training categories to obtain the loss information of the model training. Then, the gradient descent algorithm is used to reversely update the model parameters in the initial image classification model according to the loss information to obtain an updated image classification model. The server then uses the updated image classification model as the initial image classification model, and returns to obtain each training image and the corresponding training category label, and iterates the steps of inputting each training image into the initial image classification model until the training is completed, and the trained initial image classification model is used as the final training to obtain the target image classification model.

[0102] S514, obtaining a standard feature extraction model based on the target feature extraction network and the target feature fusion network in the target image classification model.

[0103] Among them, the target feature extraction network is a trained neural network for feature extraction, and the target feature fusion network is a trained neural network for feature fusion.

[0104] Specifically, the server separates a target feature extraction network and a target feature fusion network from the trained target image classification model, and uses the target feature extraction network and the target feature fusion network as standard feature extraction models.

[0105] In the above embodiment, each training image and the corresponding training category label are obtained, and each training image is input into the initial image classification model for training. When the training is completed, the target feature extraction network and the target feature fusion network in the target image classification model obtained by training are used as the standard feature extraction model, thereby improving the accuracy of the obtained standard feature extraction model.

[0106] In one embodiment, step 202, identifying a target element in the image to be detected and obtaining a target element region, includes:

[0107] The image convolution features of the image to be detected are extracted, and noise filtering is performed based on the image convolution features to obtain filtering features; the filtering features are nonlinearly mapped to obtain mapping features, and region extraction is performed based on the mapping features to obtain the target element region.

[0108] Among them, the image convolution feature refers to the image feature obtained after convolution calculation. The filtering feature refers to the image feature after filtering noise. The mapping feature refers to the image feature obtained after nonlinear mapping.

[0109] Specifically, the server uses the pixel values ​​corresponding to the image to be detected to perform convolution calculations and extract image convolution features. Then, the image convolution features are normalized, the noise in the features is filtered to obtain filter features, and finally, the filter features are nonlinearly mapped using a nonlinear mapping function to obtain mapping features, and finally, the mapping features are used to extract regions to obtain the target element regions.

[0110] In a specific embodiment, a target element detection model can be used to identify target elements in the image to be detected and obtain a target element region. Specifically, Figure 6 As shown in the figure, a schematic diagram of the overall framework of target element recognition is provided, and the image to be detected is obtained. Figure 6 The left image inputs the image to be detected into the target feature detection model, which can be established using a convolutional neural network. Figure 7 As shown in the figure, it is a schematic diagram of the model structure of the target feature detection model, wherein the image to be detected is subjected to feature extraction through the feature extraction part, which is composed of a convolution layer (Convolution), a normalization layer (Batch Normalization) and an activation layer (Relu). The convolution layer is used to extract basic features such as edge texture. The normalization layer is used to normalize the features extracted by the convolution layer according to the normal distribution, filter out the noise features in the features, and make the model converge faster. The activation layer is responsible for nonlinear mapping of the features extracted by the convolution layer to enhance the generalization ability of the model. The feature map corresponding to the image to be detected is extracted through the feature extraction part, and then the target feature detection model generates a candidate box based on the extracted feature map, as shown in Figure 8 As shown in the figure, it is a schematic diagram of candidate box generation, where the extracted image features are used, each feature point is taken as the center point, and 9 candidate boxes with three aspect ratios of {1:1, 2:1, 1:2} and scales of 1, 2, and 3 feature points are selected as feature detection candidate boxes. Finally, the target feature area is determined from each feature detection candidate box, that is, Figure 6 The selected part of the output image.

[0111] In the above embodiment, the image convolution features of the image to be detected are extracted, noise filtering is performed, and nonlinear mapping is performed to obtain mapping features. Finally, the mapping features are used to perform region extraction to obtain the target element region, thereby improving the accuracy of the obtained target element region.

[0112] In one embodiment, S206, based on the matching degree between the current region feature and the reference region features corresponding to each quality category, determining the target reference region feature corresponding to the current region feature from the reference region features corresponding to each quality category, comprises the steps of:

[0113] The similarities between the current region feature and the reference region feature corresponding to each quality category are calculated to obtain each matching degree; the target matching degree is determined from each matching degree, and the reference region feature corresponding to the target matching degree is used as the target reference region feature corresponding to the current region feature.

[0114] The target matching degree refers to the matching degree of the reference area features that need to be determined after screening, and can be the maximum matching degree.

[0115] Specifically, the server calculates the similarity between the current region feature and the reference region feature corresponding to each quality category. For example, the server calculates the similarity between the current region feature and the reference region feature corresponding to the image blur category, and calculates the similarity between the current region feature and the reference region feature corresponding to the image clarity category. It can also calculate the similarity between the current region feature and the reference region features corresponding to other quality categories, thereby obtaining the matching degree corresponding to each reference region feature. Then, the sizes of the matching degrees are compared, and the maximum matching degree is selected from the matching degrees as the target matching degree, and then the reference region feature corresponding to the target matching degree is used as the target reference region feature corresponding to the current region feature.

[0116] In a specific embodiment, the similarity between the current region feature and the reference region feature can be calculated using the formula (1) shown below.

[0117]

[0118] Among them, c refers to the calculated similarity, F refers to the matching algorithm, Refers to the current regional characteristics. It refers to the reference area characteristics corresponding to the i-th quality category.

[0119] That is, the similarity can be calculated using the matching algorithm of the spatial norm to obtain the similarity. The closer to 1, the more similar, and the closer to 0, the more different. The similarity can be calculated using the formula (2) shown below, that is, the sum of the squares of the distance differences of the corresponding feature bits is calculated.

[0120]

[0121] in, It refers to the jth feature bit in the current region feature. It refers to the jth feature bit in the reference region feature. Z refers to the number of bits of the feature, which is a positive integer.

[0122] In the above embodiment, the similarities between the current region feature and the reference region features corresponding to each quality category are calculated to obtain each matching degree, and then the target matching degree is determined from each matching degree. The reference region feature corresponding to the target matching degree is used as the target reference region feature corresponding to the current region feature, thereby improving the accuracy of the obtained target reference region feature.

[0123] In one embodiment, the quality categories include an image clarity category and an image blur category;

[0124] like Fig. 9 As shown, S206, based on the matching degree between the current regional feature and the reference regional features corresponding to each quality category, determining the target reference regional feature corresponding to the current regional feature from the reference regional features corresponding to each quality category, includes:

[0125] S902, calculating the similarity between the current region feature and the reference region feature corresponding to the image clarity category to obtain the image clarity matching degree;

[0126] S904, calculating the similarity between the current region feature and the reference region feature corresponding to the image blur category, and obtaining the image blur matching degree.

[0127] Among them, the image clarity category refers to the category corresponding to the image clarity category. The image blur category refers to the category corresponding to the image blur category. That is, the image may include a blurred image and a clear image. A blurred image indicates that the image quality is poor and needs to be filtered. A clear image indicates that the image quality is good and can be used subsequently. The image clarity matching degree refers to the possibility used to characterize the target element area is the image area corresponding to the image clarity category. The higher the image clarity matching degree, the higher the possibility that the target element area is the image area corresponding to the image clarity category. The image blur matching degree refers to the possibility used to characterize the target element area is the image area corresponding to the image blur category. The higher the image blur matching degree, the higher the possibility that the target element area is the image area corresponding to the image blur category.

[0128] Specifically, when the image quality category includes an image clarity category and an image blur category, when calculating the matching degree, the server may use a distance similarity algorithm to calculate the similarity between the current region feature and the reference region feature corresponding to the image clarity category to obtain the image clarity matching degree. Then, the distance similarity algorithm is used to calculate the similarity between the current region feature and the reference region feature corresponding to the image blur category to obtain the image blur matching degree. The distance similarity algorithm obtains the similarity by calculating the distance between the current region feature and the reference region feature.

[0129] S906, based on the error between the image clarity matching degree and the image blur matching degree, determine the target reference region feature corresponding to the current region feature from the reference region features corresponding to the image clarity category and the reference region features corresponding to the image blur category.

[0130] Specifically, the server calculates the image clarity matching degree and the image blur matching degree to obtain the error between the matching degrees. The error is used to characterize the gap between the detected image clarity category and the image blur category. Then, according to the size of the error, the target reference area feature corresponding to the current area feature is determined from the reference area feature corresponding to the image clarity category and the reference area feature corresponding to the image blur category. When the error is a positive value, it means that the image clarity matching degree is significantly greater than the image blur matching degree. At this time, the reference area feature corresponding to the image clarity matching degree is used as the target reference area feature corresponding to the current area feature. When the error is a negative value, it means that the image blur matching degree is significantly greater than the image clarity matching degree. At this time, the reference area feature corresponding to the image blur matching degree is used as the target reference area feature corresponding to the current area feature.

[0131] In the above embodiment, the image clarity matching degree and the image blur matching degree are obtained by calculation, and then the error between the image clarity matching degree and the image blur matching degree is calculated. According to the error, the target reference area feature corresponding to the current area feature is determined from the reference area features corresponding to the image clarity category and the reference area features corresponding to the image blur category, thereby improving the accuracy of the obtained target reference area feature.

[0132] In one embodiment, S906, based on the error between the image clarity matching degree and the image blur matching degree, determining the target reference region feature corresponding to the current region feature from the reference region features corresponding to the image clarity category and the reference region features corresponding to the image blur category includes:

[0133] The error between the image clarity matching degree and the image blur matching degree is calculated. When the error exceeds the preset error threshold, the image clarity matching degree and the image blur matching degree are compared. When the image clarity matching degree is greater than the image blur matching degree, the reference region feature corresponding to the image clarity category is used as the target reference region feature corresponding to the current region feature. When the image blur matching degree is greater than the image clarity matching degree, the reference region feature corresponding to the image blur category is used as the target reference region feature corresponding to the current region feature.

[0134] The preset error threshold refers to a preset threshold of the difference between the image clarity matching degree and the image blur matching degree.

[0135] Specifically, the server calculates the error between the image clarity matching degree and the image blur matching degree, and when the error exceeds a preset error threshold, compares the image clarity matching degree and the image blur matching degree. When the image clarity matching degree is greater than the image blur matching degree, it means that the current region feature is more similar to the reference region feature corresponding to the image clarity category. At this time, the server uses the reference region feature corresponding to the image clarity category as the target reference region feature corresponding to the current region feature. When the image blur matching degree is greater than the image clarity matching degree, it means that the current region feature is more similar to the reference region feature corresponding to the image template category. At this time, the server uses the reference region feature corresponding to the image blur category as the target reference region feature corresponding to the current region feature.

[0136] In one embodiment, when the error does not exceed a preset error threshold, a preset undetermined category is used as the region quality category of the target feature region.

[0137] Among them, the preset undetermined category refers to an image quality category in which a preset error does not exceed a preset error threshold. The preset undetermined category is used to characterize the image clarity level between image blur and image clarity, that is, the situation where it is impossible to determine whether the image is clear or blurry, indicating that the image clarity level of the image is between image clarity and image blur.

[0138] Specifically, when the server determines that the error does not exceed the preset error threshold, the preset undetermined category can be directly used as the regional quality category of the target element area. The images of the preset undetermined category can be re-detected or directly filtered. In a specific embodiment, when the similarity between the target element area image and the image clarity category is high and the similarity with the image blur category is low, at this time, the target element area image is judged to be in the image clarity category. When the similarity between the target element area image and the image blur category is low and the similarity with the image blur category is high, at this time, the target element area image is judged to be in the image blur category. When the similarity between the target element area image and the image clarity category and the image blur category is high or low, that is, consistent, it means that the image quality of the target element area image is between image blur and image clarity.

[0139] In the above embodiment, by calculating the error between the image clarity matching degree and the image blur matching degree, and then comparing the error with the preset error threshold, when the error exceeds the preset error threshold, the image clarity matching degree and the image blur matching degree are compared to determine the target reference area feature corresponding to the current area feature. When the error does not exceed the preset error threshold, the preset undetermined category is used as the area quality category of the target element area, thereby improving the accuracy of image quality detection.

[0140] In one embodiment, the target element region includes at least two;

[0141] Determining the image quality category corresponding to the image to be detected based on the regional quality category of the target element area includes:

[0142] Calculate the area ratios of at least two target element areas to the image to be detected, and take the area quality category of the target element area with the largest area ratio as the image quality category corresponding to the image to be detected.

[0143] The area ratio refers to the ratio of the size of the target element area to the overall size of the image to be detected.

[0144] Specifically, the server calculates the area of ​​the target element region and the image area of ​​the image to be detected, and then calculates the ratio of the area to the image area to obtain the area ratio corresponding to the target element region. The server traverses all target element regions in the image to be detected and obtains the area ratio corresponding to each target element region. Then, the area ratio corresponding to each target element region is compared, and the area quality category of the target element region corresponding to the largest area ratio is used as the image quality category corresponding to the image to be detected.

[0145] In the above embodiment, when the image to be detected includes at least two target element areas, the area ratios of the at least two target element areas and the image to be detected are calculated, and the area quality category of the target element area with the largest area ratio is used as the image quality category corresponding to the image to be detected, which can improve the accuracy of the image quality category corresponding to the image to be detected.

[0146] In one embodiment, the image quality detection method further includes:

[0147] The reference regional features corresponding to the target element area and each quality category are input into the regional image quality detection model; the current regional features corresponding to the target element area are extracted through the feature extraction network in the regional image quality detection model, and based on the matching degree between the current regional features and the reference regional features corresponding to each quality category, the target reference regional features corresponding to the current regional features are determined from the reference regional features corresponding to each quality category, and the quality category corresponding to the target reference regional features is used as the regional quality category corresponding to the target element area.

[0148] Among them, the regional image quality detection model is a neural network model for detecting the image quality of the target element region, and the neural network model is trained using the historical target element region and the corresponding image quality category label. The feature extraction network is a neural network used to extract image features.

[0149] Specifically, the server pre-acquires the historical target element region and the corresponding image quality category labels for training, obtains the regional image quality detection model, and then deploys and uses the regional image quality detection model. When the image quality needs to be detected, the reference region features corresponding to the target element region and each quality category are input into the regional image quality detection model, and feature extraction is performed through the feature extraction network in the regional image quality detection model to obtain the feature vector of the corresponding image, that is, the current regional feature. Then, the current regional feature is respectively compared with the reference regional features corresponding to each quality category, that is, the matching degree between the current regional feature and the reference regional features corresponding to each quality category is calculated, and the similarity is calculated using the matching algorithm of the spatial norm, that is, the sum of the squares of the distance difference of the same feature bit is calculated to obtain each matching degree, and finally the quality category of the reference regional feature corresponding to the maximum matching degree is selected as the regional quality category of the target element region.

[0150] In a specific embodiment, Fig.10As shown, it is a schematic diagram of the framework of the regional image quality detection model. Specifically, the reference region features corresponding to the image to be detected and each quality category are input into the regional image quality detection model. The regional image quality detection model first extracts the current features of the image to be detected, and the image to be detected can be the image corresponding to the target element region. Then the current features are compared with the reference region features corresponding to each quality category, that is, the similarity between the current features and the reference region features corresponding to each quality category is calculated, and the target reference region features corresponding to the maximum similarity are selected. Then the quality category corresponding to the target reference region features is used as the quality category corresponding to the image to be detected, thereby obtaining the image quality comparison result, and finally the quality category corresponding to the image to be detected is used as the output of the regional image quality detection model. That is, through image quality comparison, the image quality comparison result is obtained, thereby obtaining the quality category of the image, thereby improving the accuracy of image quality detection.

[0151] In the above embodiment, the regional image quality detection model is used to detect and obtain the regional quality category of the target element region, thereby improving the efficiency of obtaining the regional quality category.

[0152] In one embodiment, Fig.11 As shown, the training steps of the regional image quality detection model include:

[0153] S1102, obtaining the target element region image to be trained and the corresponding region image quality category label.

[0154] The target element region image to be trained is an image of the target element used in training. The regional image quality category label is a label of the image quality category corresponding to the target element region image to be trained. The regional image quality category label may include an image clarity label and an image blur label, and the target element region image to be trained may include a clear target element region image and a blurred target element region image.

[0155] Specifically, the server can obtain the target element region image to be trained and the corresponding region image quality category label from the database. The server can also obtain the target element region image to be trained and the corresponding region image quality category label from the service provider providing data services. The server can also obtain the target element region image to be trained and the corresponding region image quality category label uploaded by the terminal.

[0156] S1104, input the target element region image to be trained and the reference region features corresponding to each quality category into the initial region image quality detection model to perform region image quality detection, and obtain the training region quality category corresponding to the target element region image to be trained.

[0157] The initial regional image quality detection model refers to a regional image quality detection model with initialized model parameters, and the regional image quality detection model is established using a neural network. The training regional quality category is a quality category corresponding to the regional image of the target element to be trained obtained during training.

[0158] Specifically, the target element region image to be trained and the reference region features corresponding to each quality category are input into the initial region image quality detection model. The initial region image quality detection model extracts the features of the target element region image to be trained through the initialized model parameters, and then uses the distance similarity algorithm to calculate the matching degree between the extracted features and the reference region features corresponding to each quality category. Then, the quality category corresponding to the maximum matching degree is used as the training region quality category corresponding to the target element region image to be trained.

[0159] S1106, updating the initial regional image quality detection model based on the training regional quality category and the regional image quality category label to obtain an updated regional image quality detection model.

[0160] S1108, taking the updated regional image quality detection model as the initial regional image quality detection model, and returning to the step of obtaining the regional image of the target element to be trained and the corresponding regional image quality category label, and iterating and executing until the training is completed, the regional image quality detection model is obtained.

[0161] Specifically, the server can use a classification loss function to calculate the error between the training area quality category and the regional image quality category label to obtain training loss information, and the classification loss function can be a cross entropy loss function. Then, the training loss information is used to reversely update the model wiper in the initial regional image quality detection model. When the update is completed, an updated regional image quality detection model is obtained. Then, the updated regional image quality detection model is used as the initial regional image quality detection model, and the step of obtaining the regional image of the target element to be trained and the corresponding regional image quality category label is returned and iterated until the training is completed. The trained initial regional image quality detection model is used as the regional image quality detection model obtained by the final training, wherein the training completion can be when the training reaches the maximum number of iterations, when the training loss information reaches a preset loss threshold, or when the model parameters converge.

[0162] In the above embodiment, the initial regional image quality detection model is trained by using the target element region image to be trained, the regional image quality category label and the reference region features corresponding to each quality category. When the training is completed, the regional image quality detection model is obtained, thereby improving the accuracy of the obtained regional image quality detection model.

[0163] In a specific embodiment, Fig.12 As shown, a flow chart of an image quality detection method is provided, specifically:

[0164] S1202, obtaining each reference element area corresponding to each quality category, inputting each reference element area corresponding to each quality category into the standard feature extraction model in turn for feature extraction, obtaining each reference element area feature, and fusing each reference element area feature to obtain the standard reference area feature corresponding to each quality category.

[0165] S1204, obtaining an image to be detected, extracting image convolution features of the image to be detected, performing noise filtering based on the image convolution features to obtain filtering features, performing nonlinear mapping on the filtering features to obtain mapping features, performing region extraction based on the mapping features to obtain a target element region.

[0166] S1206, extracting the current region features corresponding to the target element region, and obtaining the standard reference region features corresponding to each quality category.

[0167] S1208, calculating the similarity between the current region feature and the reference region feature corresponding to the image clarity category to obtain the image clarity matching degree. Calculating the similarity between the current region feature and the reference region feature corresponding to the image blur category to obtain the image blur matching degree.

[0168] S1210, calculating the error between the image clarity matching degree and the image blur matching degree, and when the error exceeds a preset error threshold, comparing the image clarity matching degree and the image blur matching degree. When the image clarity matching degree is greater than the image blur matching degree, taking the reference region feature corresponding to the image clarity category as the target reference region feature corresponding to the current region feature.

[0169] S1212, when the image blur matching degree is greater than the image clarity matching degree, the reference region feature corresponding to the image blur category is used as the target reference region feature corresponding to the current region feature. When the error does not exceed the preset error threshold, the preset undetermined category is used as the region quality category of the target feature region.

[0170] S1214, taking the quality category corresponding to the target reference region feature as the region quality category corresponding to the target element region, and determining the image quality category corresponding to the image to be detected based on the region quality category of the target element region.

[0171] In the above embodiment, the current region features corresponding to the target element area of ​​the image to be detected are compared with the standard reference region features corresponding to each quality category to determine the matching standard reference region features, and then the quality category corresponding to the matching standard reference region features is used as the region quality category of the target element area, and the image quality category corresponding to the image to be detected is determined based on the region quality category of the target element area, thereby improving the accuracy of the obtained image quality category.

[0172] In a specific embodiment, the image quality detection method is applied in a map update scenario. Specifically, when updating the road image data in the map, the server collects the road image through an image acquisition device. Then, the image quality detection is performed on the collected road image. Fig.13 As shown, it is a schematic diagram of the framework for image quality detection of road images. Among them, the server obtains the collected road image sequence, and then starts to perform image quality detection from the first frame of road image. When performing image quality detection, the first frame of road image is firstly detected for target elements, and the target element can be a signboard in the road image, so as to obtain the signboard image in the first frame of road image. Then a fusion comparison quality detection is performed. The server first obtains the standard reference area features corresponding to each quality category. The standard reference area features are obtained by extracting features from each signboard image of the corresponding quality category, obtaining each reference element area feature, and fusing each reference element area feature. As shown Fig.14 As shown in the figure, it is a schematic diagram of each sign image. The server obtains the sign images of the image blur category and the sign images of the image clear category. Each sign image represents the corresponding traffic element. Then the features corresponding to each sign image of the image blur category are extracted, and then all the features of the image blur category are spliced ​​and fused through the convolutional neural network to obtain the standard reference area features corresponding to the image blur category. Then the features corresponding to each sign image of the image clear category are extracted, and then all the features of the image clear category are spliced ​​and fused through the convolutional neural network to obtain the standard reference area features corresponding to the image clear category.

[0173] At this time, the server extracts the features of the signboard image extracted from the first frame image to obtain the features of the current region. Then, the features of the current region are matched with the standard reference region features corresponding to each quality category, that is, the similarity between the features of the current region and the standard reference region features corresponding to each quality category is calculated, and the quality category of the standard reference region feature corresponding to the maximum similarity is selected as the quality category corresponding to the signboard image, for example, it can be an image blur category. According to the quality category corresponding to the signboard image, the quality category of the first frame image is obtained as an image blur category. Then, the server sequentially traverses each frame of road image in the collected image sequence to obtain the quality category corresponding to each frame of road image, and the quality category may include an image blur category and an image clarity category, thereby improving the accuracy of road image quality detection. Then, the server screens the road images collected in the road image sequence, and filters the road images corresponding to the image blur category, thereby obtaining the road images corresponding to the image clarity category. That is, the road images corresponding to the image clarity category are used as road images that have passed the image quality detection, and then the road images that have passed the image quality detection are used as road images for subsequent task processing, for example, the road images in the map data are updated using the road images that have passed the image quality detection. In a specific embodiment, the image quality detection method can also be applied to the scenario of batch updating of map images. Specifically, the server collects images of the target road through an image acquisition device to obtain a road image sequence. Each road image in the road image sequence can be an image containing map elements such as traffic restriction intersections, speed limit signs, and electronic eyes on the target road. Then, each road image in the road image sequence can be batch detected, that is, image quality detection is performed on each road image in the road image sequence at the same time, that is, the features of each road image are extracted at the same time to obtain each road image feature. Then, each road image feature is matched with the standard reference area feature corresponding to each quality category, that is, the similarity between each road image feature and the standard reference area feature corresponding to each quality category is respectively determined, and the quality category of the standard reference area feature corresponding to the maximum similarity is selected as the quality category corresponding to each road image, and the image quality detection results of the batch detection are obtained, which can include road images of the clear image category and road images of the blurred image category. Finally, each target road image corresponding to the image clarity category is obtained from the road image sequence, and the saved historical map images of the target roads are updated in batches, that is, each historical map image of the target road is updated to each target road image corresponding to the image clarity category, so as to obtain the updated map image of the target road.

[0174] In a specific embodiment, the server can automatically update the map image according to a preset time period, that is, when the server detects that the current time reaches the preset time period, it triggers an event for automatically updating the map image. At this time, the server responds to the event for automatically updating the map image, collects each map image to be updated in batches through an image acquisition device, and then performs image quality detection on each map image, filters out the map images with blurred images from each map image, thereby obtaining each target map image with clear images, and then uses each target map image to automatically update, that is, replace the historically saved map image to obtain an updated map image.

[0175] In a specific embodiment, the image quality detection method is applied to a face recognition scenario, specifically:

[0176] The server collects character images, detects faces in the collected character images, and obtains the current face image, and then extracts features from the current face image to obtain features of the current face image. The server then obtains the image standard features corresponding to the blurred face image and the image standard features corresponding to the clear face image stored in the database. Then the similarity between the current face image features and the image standard features corresponding to the blurred face image is calculated, and the similarity between the current face image features and the image standard features corresponding to the clear face image is calculated at the same time. When the image standard features of the clear face image are highly similar to the current face image features of the current face image, the image quality detection result corresponding to the current face image is a result of a clear image. At this point, face recognition can be performed on the current face image to obtain the corresponding face specific information. When the image standard features of the blurred face image are highly similar to the current face image features of the current face image, the image quality detection result corresponding to the current face image is a result of a blurred image. At this time, face recognition cannot be performed normally using a blurred face image. Therefore, the server needs to re-acquire the collected face image and perform image quality detection until a clear face image is detected. Then, face recognition is performed on the face image to obtain the face recognition result.

[0177] In a specific embodiment, the image quality detection method is applied to a video media platform, specifically:

[0178] When the video or picture media platform obtains the video or picture uploaded by the user, it first performs an image quality detection on the video or picture, that is, performs an image quality detection on the video frame, that is, the target object in the video frame can be detected to obtain the target object area, and then the current object features corresponding to the target object area are extracted. Then the server obtains the standard reference area features corresponding to the clear target object image and the blurred target object image, calculates the similarity between the current object features and the standard reference area features, compares the size of the similarity, and takes the image quality category corresponding to the maximum similarity as the regional quality category corresponding to the target object area, and then determines the quality category of the video frame according to the regional quality category corresponding to the target object area. When the quality category of the video frame is that the video frame is a blurred image, it means that the image quality detection has not passed. At this time, the server can generate image quality prompt information of blurred image, send the image quality prompt information to the terminal corresponding to the user and display it, and the user can re-upload the video that meets the image quality requirements of the video media platform. When the video frame is a clear image, the image quality detection passes. At this time, the server detects the image quality of all video frames in the video. When the image quality of all video frames is a clear image, it means that the image quality detection of the video passes. At this time, the server can receive the video uploaded by the user and publish the uploaded video on the video media platform. The image quality detection method can also be applied to the picture media platform to detect the image quality of the picture uploaded by the user. When the image quality detection passes, the picture uploaded by the user is published on the platform.

[0179] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0180] Based on the same inventive concept, the embodiment of the present application also provides an image quality detection device for implementing the above-mentioned image quality detection method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image quality detection device embodiments provided below can refer to the limitations of the image quality detection method above, and will not be repeated here.

[0181] In one embodiment, Fig.15 As shown, an image quality detection device 1500 is provided, comprising: a region identification module 1502, a feature extraction module 1504, a feature matching module 1506 and a quality category determination module 1508, wherein:

[0182] The region identification module 1502 is used to obtain the image to be detected, identify the target element in the image to be detected, and obtain the target element region;

[0183] The feature extraction module 1504 is used to extract the current region feature corresponding to the target element region, and obtain the standard reference region feature corresponding to each quality category. The standard reference region feature is obtained by extracting the features of each reference element region of the corresponding quality category, and then fusing the features of each reference element region.

[0184] A feature matching module 1506 is used to determine a target reference region feature corresponding to the current region feature from the reference region features corresponding to each quality category based on the matching degree between the current region feature and the reference region features corresponding to each quality category;

[0185] The quality category determination module 1508 is used to use the quality category corresponding to the target reference area feature as the regional quality category of the corresponding target element area, and determine the image quality category corresponding to the image to be detected based on the regional quality category of the target element area.

[0186] In one embodiment, the image quality detection device 1500 further includes:

[0187] The feature fusion module is used to obtain each reference element area corresponding to the preset quality category; extract the features of each reference element area to obtain the features of each reference element area; and fuse the features of each reference element area to obtain the standard reference area features corresponding to the preset quality category.

[0188] In one embodiment, the feature fusion module is further used to splice the regional features of each reference element to obtain a spliced ​​feature; and perform a convolution operation based on the spliced ​​feature to obtain a standard reference regional feature corresponding to a preset quality category.

[0189] In one embodiment, the image quality detection device 1500 further includes:

[0190] The model fusion module is used to input each reference element area into the standard feature extraction model; extract features from each reference element area through the feature extraction network in the standard feature extraction model to obtain the features of each reference element area; fuse the features of each reference element area through the feature fusion network in the standard feature extraction model to obtain the standard reference area features corresponding to the preset quality category.

[0191] In one embodiment, the image quality detection device 1500 further includes:

[0192] The model training module is used to obtain each training image and the corresponding training category label, and input each training image into the initial image classification model; extract features from each training image through the initial feature extraction network in the initial image classification model to obtain features of each training image; fuse the features of each training image through the initial feature fusion network in the initial image classification model to obtain training fusion features; classify the training fusion features through the initial classification network in the initial image classification model to obtain image training categories; update the initial image classification model based on the training category label and the image training category to obtain an updated image classification model; use the updated image classification model as the initial image classification model, and return to the steps of obtaining each training image and the corresponding training category label, and inputting each training image into the initial image classification model, and iteratively execute until the training is completed to obtain the target image classification model; obtain the standard feature extraction model based on the target feature extraction network and the target feature fusion network in the target image classification model.

[0193] In one embodiment, the region identification module 1502 is also used to extract image convolution features of the image to be detected, perform noise filtering based on the image convolution features to obtain filtering features; perform nonlinear mapping on the filtering features to obtain mapping features, perform region extraction based on the mapping features to obtain the target element region.

[0194] In one embodiment, the feature matching module 1506 is also used to calculate the similarity between the current region feature and the reference region feature corresponding to each quality category to obtain each matching degree; determine the target matching degree from each matching degree, and use the reference region feature corresponding to the target matching degree as the target reference region feature corresponding to the current region feature.

[0195] In one embodiment, the quality categories include an image clarity category and an image blur category;

[0196] The feature matching module 1506 is also used to calculate the similarity between the current region feature and the reference region feature corresponding to the image clarity category to obtain the image clarity matching degree; calculate the similarity between the current region feature and the reference region feature corresponding to the image blur category to obtain the image blur matching degree; based on the error between the image clarity matching degree and the image blur matching degree, determine the target reference region feature corresponding to the current region feature from the reference region features corresponding to the image clarity category and the reference region features corresponding to the image blur category.

[0197] In one embodiment, the feature matching module 1506 is also used to calculate the error between the image clarity matching degree and the image blur matching degree. When the error exceeds a preset error threshold, the image clarity matching degree and the image blur matching degree are compared; when the image clarity matching degree is greater than the image blur matching degree, the reference area feature corresponding to the image clarity category is used as the target reference area feature corresponding to the current area feature; when the image blur matching degree is greater than the image clarity matching degree, the reference area feature corresponding to the image blur category is used as the target reference area feature corresponding to the current area feature; when the error does not exceed the preset error threshold, the preset undetermined category is used as the area quality category of the target element area.

[0198] In one embodiment, the target element area includes at least two; the quality category determination module 1508 is also used to calculate the area ratio of at least two target element areas to the image to be detected, and take the area quality category of the target element area with the largest area ratio as the image quality category corresponding to the image to be detected.

[0199] In one embodiment, the image quality detection device 1500 further includes:

[0200] The model detection module is used to input the reference regional features corresponding to the target element region and each quality category into the regional image quality detection model; extract the current regional features corresponding to the target element region through the feature extraction network in the regional image quality detection model, and based on the matching degree between the current regional features and the reference regional features corresponding to each quality category, determine the target reference regional features corresponding to the current regional features from the reference regional features corresponding to each quality category, and use the quality category corresponding to the target reference regional features as the regional quality category corresponding to the target element region.

[0201] In one embodiment, the image quality detection device 1500 further includes:

[0202] The detection model training module is used to obtain the target element region image to be trained and the corresponding regional image quality category label; input the target element region image to be trained and the reference region features corresponding to each quality category into the initial regional image quality detection model to perform regional image quality detection, and obtain the training regional quality category corresponding to the target element region image to be trained; based on the training regional quality category and the regional image quality category label, the initial regional image quality detection model is updated to obtain an updated regional image quality detection model; the updated regional image quality detection model is used as the initial regional image quality detection model, and the step of obtaining the target element region image to be trained and the corresponding regional image quality category label is returned to iteratively execute until the training is completed to obtain the regional image quality detection model.

[0203] Each module in the above-mentioned image quality detection device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0204] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.16 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image data to be detected and standard reference area features corresponding to each quality category. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image quality detection method is implemented.

[0205] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.17As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image quality detection method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0206] Those skilled in the art will understand that Fig.16 as well as Fig.17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0207] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0208] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0209] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0210] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0211] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0212] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0213] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An image quality detection method, characterized in that: The method comprises: Acquire an image to be detected, identify target elements in the image to be detected, and obtain a target element area; Extracting the current region features corresponding to the target element region, and obtaining the standard reference region features corresponding to each quality category, wherein the standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, obtaining each reference element region feature, and fusing each reference element region feature; Based on the matching degree between the current region feature and the reference region features corresponding to the respective quality categories, determining the target reference region feature corresponding to the current region feature from the reference region features corresponding to the respective quality categories; The quality category corresponding to the target reference region feature is used as the region quality category of the corresponding target element region, and the image quality category corresponding to the image to be detected is determined based on the region quality category of the target element region.

2. The method according to claim 1, characterized in that Before acquiring the image to be detected, identifying the target element in the image to be detected, and obtaining the target element area, the method further includes: Obtain each reference element area corresponding to the preset quality category; Extracting features from each reference element region to obtain features of each reference element region; The regional features of the various reference elements are fused to obtain the standard reference regional features corresponding to the preset quality category.

3. The method according to claim 2, characterized in that The fusing of the reference element regional features to obtain the standard reference regional features corresponding to the preset quality category includes: Splicing the regional features of the reference elements to obtain splicing features; A convolution operation is performed based on the splicing features to obtain standard reference area features corresponding to the preset quality category.

4. The method according to claim 2, characterized in that: The method further comprises: Inputting each reference feature region into a standard feature extraction model; Extracting features from each reference element region through a feature extraction network in the standard feature extraction model to obtain features of each reference element region; The features of the reference element regions are fused through a feature fusion network in the standard feature extraction model to obtain standard reference region features corresponding to the preset quality category.

5. The method according to claim 4, characterized in that The training steps of the standard feature extraction model include: Obtaining each training image and a corresponding training category label, and inputting each training image into an initial image classification model; Extracting features from each of the training images using an initial feature extraction network in the initial image classification model to obtain features of each training image; The features of each training image are fused through an initial feature fusion network in the initial image classification model to obtain a training fusion feature; Performing image classification on the training fusion features through the initial classification network in the initial image classification model to obtain image training categories; The initial image classification model is updated based on the training category label and the image training category to obtain an updated image classification model; The updated image classification model is used as the initial image classification model, and the steps of returning to obtain each training image and the corresponding training category label, and inputting each training image into the initial image classification model are iteratively executed until the training is completed to obtain the target image classification model; The standard feature extraction model is obtained based on the target feature extraction network and the target feature fusion network in the target image classification model.

6. The method according to claim 1, characterized in that The step of identifying the target element in the image to be detected and obtaining the target element area includes: Extracting image convolution features of the image to be detected, and performing noise filtering based on the image convolution features to obtain filtering features; The filtering features are nonlinearly mapped to obtain mapping features, and region extraction is performed based on the mapping features to obtain the target element region.

7. The method according to claim 1, characterized in that The determining, based on the matching degree between the current region feature and the reference region features corresponding to the respective quality categories, the target reference region feature corresponding to the current region feature from the reference region features corresponding to the respective quality categories, comprises: Calculating the similarities between the current region features and the reference region features corresponding to each quality category to obtain each matching degree; A target matching degree is determined from the various matching degrees, and a reference region feature corresponding to the target matching degree is used as a target reference region feature corresponding to the current region feature.

8. The method according to claim 1, characterized in that The quality categories include a clear image category and a blurry image category; The determining, based on the matching degree between the current region feature and the reference region features corresponding to the respective quality categories, the target reference region feature corresponding to the current region feature from the reference region features corresponding to the respective quality categories, comprises: Calculating the similarity between the current region feature and the reference region feature corresponding to the image clarity category to obtain the image clarity matching degree; Calculating the similarity between the current region feature and the reference region feature corresponding to the image blur category to obtain the image blur matching degree; Based on the error between the image clarity matching degree and the image blur matching degree, a target reference region feature corresponding to the current region feature is determined from the reference region features corresponding to the image clarity category and the reference region features corresponding to the image blur category.

9. The method according to claim 8, characterized in that The determining, based on the error between the image clarity matching degree and the image blur matching degree, of the target reference region feature corresponding to the current region feature from the reference region features corresponding to the image clarity category and the reference region features corresponding to the image blur category, comprises: Calculating the error between the image clarity matching degree and the image blur matching degree, and when the error exceeds a preset error threshold, comparing the image clarity matching degree and the image blur matching degree; When the image clarity matching degree is greater than the image blur matching degree, taking the reference region feature corresponding to the image clarity category as the target reference region feature corresponding to the current region feature; When the image blur matching degree is greater than the image clarity matching degree, taking the reference region feature corresponding to the image blur category as the target reference region feature corresponding to the current region feature; When the error does not exceed a preset error threshold, a preset undetermined category is used as the regional quality category of the target element region.

10. The method according to claim 1, characterized in that The target element area includes at least two; The determining the image quality category corresponding to the image to be detected based on the region quality category of the target element region includes: The area ratios of the at least two target element regions and the image to be detected are calculated, and the area quality category of the target element region with the largest area ratio is used as the image quality category corresponding to the image to be detected.

11. The method according to claim 1, characterized in that: The method further comprises: Inputting the target element region and the reference region features corresponding to each quality category into a regional image quality detection model; The current regional features corresponding to the target element region are extracted through the feature extraction network in the regional image quality detection model, and based on the matching degree between the current regional features and the reference regional features corresponding to the various quality categories, the target reference regional features corresponding to the current regional features are determined from the reference regional features corresponding to the various quality categories, and the quality category corresponding to the target reference regional features is used as the regional quality category of the corresponding target element region.

12. The method according to claim 11, characterized in that The training steps of the regional image quality detection model include: Obtain the target element region image to be trained and the corresponding region image quality category label; Inputting the target element region image to be trained and the reference region features corresponding to each quality category into an initial region image quality detection model to perform region image quality detection, and obtaining a training region quality category corresponding to the target element region image to be trained; The initial regional image quality detection model is updated based on the training regional quality category and the regional image quality category label to obtain an updated regional image quality detection model; The updated regional image quality detection model is used as the initial regional image quality detection model, and the step of obtaining the target element regional image to be trained and the corresponding regional image quality category label is returned and iteratively executed until the training is completed to obtain the regional image quality detection model.

13. An image quality detection device, characterized in that: The device comprises: A region recognition module is used to obtain an image to be detected, identify target elements in the image to be detected, and obtain a target element region; A feature extraction module is used to extract the current region features corresponding to the target element region, and obtain the standard reference region features corresponding to each quality category, wherein the standard reference region features are obtained by extracting features from each reference element region of the corresponding quality category, and fusing the features of each reference element region; A feature matching module, configured to determine a target reference region feature corresponding to the current region feature from the reference region features corresponding to the respective quality categories based on the matching degree between the current region feature and the reference region features corresponding to the respective quality categories; The quality category determination module is used to use the quality category corresponding to the target reference area feature as the area quality category of the corresponding target element area, and determine the image quality category corresponding to the image to be detected based on the area quality category of the target element area.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are 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 steps of the method according to any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

Citation Information

Cited By

  • Image quality adjustment device and image quality adjustment method

    TWI924228B

  • Image processing method and apparatus, and related device

    WO2026138389A1