Image data annotation method, device, electronic device and storage medium

By establishing a feature index library and using annotators to compare to determine image quality, the problem of time-consuming, labor-intensive and subjective deviations in image data annotation in the existing technology is solved, and efficient and accurate image data annotation is achieved.

CN112949709BActive Publication Date: 2024-09-24BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110219060.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-26
Publication Date
2024-09-24
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

The existing annotation methods for image data sets without reference quality are time-consuming and labor-intensive, and due to different annotation manpower, there may be subjective deviations between the new annotated data set and the already annotated data set, making it difficult to completely supplement the already annotated data set.

Method used

By extracting the feature set of the image data set to be annotated and the image data set that has been annotated, a feature index library is established, similar annotated image data is retrieved based on the characteristics of the image data to be annotated, and the annotated image data with the closest image quality is determined through comparison between the annotators. image data to obtain the image quality score of the image data to be annotated.

Benefits of technology

It reduces the manpower requirements for labeling, improves labeling efficiency, reduces subjective deviations, and ensures labeling consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112949709B
    Figure CN112949709B
Patent Text Reader

Abstract

The present disclosure provides an image data annotation method, device, electronic device and storage medium, the method comprising: extracting feature sets of a to-be-annotated image data set and annotated image data sets, and establishing a feature index library according to the scene feature sets of the annotated image data sets; retrieving a plurality of annotated image data similar to the features of the to-be-annotated image data from the established feature index library according to the features of the to-be-annotated image data; determining the annotated image data whose image quality is closest to the to-be-annotated image data according to a comparison of the image qualities of the plurality of annotated image data with the to-be-annotated image data by an annotator; and obtaining the image quality score of the to-be-annotated image data based on the image quality score of the closest annotated image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to an image data annotation method, an image data annotation device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the rise of video social networks, the explosive growth of video data requires computers to process and analyze it quickly. Among them, video quality analysis plays a pivotal role and is widely used in scenarios such as recommendation and search. The popularity of deep learning has also spawned the topic of image / video quality analysis based on deep learning. Among these topics, quality-labeled no-reference data sets have become an important factor in determining the performance of the model. A good image data labeling method can determine the speed and quality of no-reference data construction.

[0003] Currently, most of the annotations of the reference-free quality image datasets are annotated using a 5-point absolute score method, where users observe a single stimulus image and then give a score of 1-5. Because there is a subjective bias in the scoring of a single user, the subjective bias is often eliminated by taking the average of the scores of multiple users. Taking the current public dataset KonIQ-10k data as an example, the scoring of each image has been annotated at least 120 times. Taking 1,000 images as an example, this will require at least 120,000 annotations, which is very time-consuming and labor-intensive and not very practical for daily annotation. If the human annotation is reorganized, due to the different annotation manpower, there may be a subjective deviation in the distribution of the newly annotated dataset and the annotated image dataset, and it cannot fully serve as a supplement to the annotated image dataset, so score distribution verification and consistency verification are required. Summary of the invention

[0004] The present disclosure provides an image data annotation method, an image data annotation device, an electronic device, and a computer-readable storage medium to at least solve the problem of high complexity required for annotating image data in the related art, and may not solve any of the above problems.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an image data annotation method, comprising: extracting feature sets of an image data set to be annotated and an annotated image data set, and establishing a feature index library according to the scene feature set of the annotated image data set; retrieving a plurality of annotated image data having features similar to the features of the image data to be annotated from the established feature index library according to the features of the image data to be annotated; determining the annotated image data having the closest image quality to the image data to be annotated according to a comparison of the image qualities of the plurality of annotated image data with the image data to be annotated by the annotator; and obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data.

[0006] According to a first aspect of an embodiment of the present disclosure, the feature set is a multi-dimensional scene feature set of global pooling of image data obtained by a convolutional neural network.

[0007] According to a first aspect of an embodiment of the present disclosure, retrieving multiple annotated image data having features similar to those of the image data to be annotated from an established feature index library includes: determining multiple similar annotated image data according to the Euclidean distance between the image data to be annotated and the scene features.

[0008] According to a first aspect of an embodiment of the present disclosure, providing the multiple annotated image data and the image data to be annotated to an annotator, and determining the annotated image data whose image quality is closest to the image data to be annotated based on a comparison of the image qualities of the multiple annotated image data and the image data to be annotated by the annotator comprises: sorting the multiple similar annotated image data based on image quality scores of the multiple similar annotated image data; determining the annotated image data to be used for comparison with the image data to be annotated from the sorted multiple annotated image data through binary search, and determining the annotated image data whose image quality score is closest to the image data to be annotated from the multiple annotated image data based on the comparison result of the annotator.

[0009] According to a first aspect of an embodiment of the present disclosure, determining the annotated image data to be compared with the image data to be annotated from the sorted plurality of annotated image data by binary search, and determining the annotated image data whose image quality score is closest to the image data to be annotated from the plurality of annotated image data according to the comparison result of the annotator includes: providing the annotated image data with an intermediate image quality score from the plurality of similar annotated image data as anchor image data to the annotator for comparison together with the image data to be annotated; in response to the comparison result obtained from the annotator indicating that the image quality score of the image data to be annotated is higher or lower than the anchor image data, selecting the annotated image data with an intermediate image quality score from the remaining annotated image data with an image quality score higher or lower than the anchor image data from the plurality of similar annotated image data as anchor image data to the annotator for comparison, until the annotated image data whose image quality score is closest to the image data to be annotated is determined according to the comparison result.

[0010] According to a first aspect of an embodiment of the present disclosure, labeling the image data to be labeled based on the image quality score of the closest labeled image data includes: in response to determining that the image quality score of the image data to be labeled is between the image quality scores of two labeled image data, determining the average of the image quality scores of the two labeled image data as the image quality score of the image data to be labeled.

[0011] According to a first aspect of an embodiment of the present disclosure, labeling the image data to be labeled based on the image quality score of the closest labeled image data includes: in response to determining that the image quality score of the image data to be labeled is higher or lower than all data among the multiple similar labeled image data, obtaining the image quality score of the image data to be labeled based on the highest image quality score or the lowest image quality score among the multiple similar labeled image data.

[0012] According to a first aspect of an embodiment of the present disclosure, obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data includes: taking the average of the image quality scores obtained after multiple annotators have annotated the image data to be annotated as the final image quality score of the image data to be annotated.

[0013] According to a second aspect of an embodiment of the present disclosure, there is provided an image data annotation device, comprising: a feature extraction unit, configured to extract feature sets of a to-be-annotated image data set and an annotated image data set, and establish a feature index library according to the scene feature sets of the annotated image data set; a retrieval unit, configured to retrieve, according to the features of the to-be-annotated image data, a plurality of annotated image data having features similar to the features of the to-be-annotated image data from the established feature index library; a data comparison unit, configured to determine the annotated image data having the closest image quality to the to-be-annotated image data according to a comparison of the image qualities of the plurality of annotated image data and the to-be-annotated image data by an annotator; and a annotation parameter acquisition unit, configured to obtain an image quality score of the to-be-annotated image data based on the image quality score of the closest annotated image data.

[0014] According to a second aspect of an embodiment of the present disclosure, the feature set is a globally pooled multi-dimensional scene feature set of image data obtained by a convolutional neural network.

[0015] According to a second aspect of an embodiment of the present disclosure, the retrieval unit is configured to select a plurality of similar annotated image data according to a Euclidean distance between the image data to be annotated and the scene features.

[0016] According to a second aspect of an embodiment of the present disclosure, the data comparison unit includes: a sorting unit, configured to sort the multiple similar annotated image data according to image quality scores of the multiple similar annotated image data; a searching unit, configured to determine the annotated image data to be compared with the image data to be annotated from the sorted multiple annotated image data through a binary search, and determine the annotated image data from the multiple annotated image data whose image quality score is closest to the image data to be annotated according to the comparison result of the annotator.

[0017] According to a second aspect of an embodiment of the present disclosure, the search unit is configured to: provide the annotated image data with an intermediate image quality score among the multiple similar annotated image data as anchor image data to an annotator for comparison together with the image data to be annotated; in response to a comparison result obtained from the annotator indicating that the image quality score of the image data to be annotated is higher or lower than the anchor image data, select the annotated image data with an intermediate image quality score from the remaining annotated image data with an image quality score higher or lower than the anchor image data among the multiple similar annotated image data as anchor image data to provide to the annotator for comparison, until the annotated image data with an image quality score closest to the image data to be annotated is determined according to the comparison result.

[0018] According to a second aspect of an embodiment of the present disclosure, the annotation parameter acquisition unit is configured to: in response to determining that the image quality score of the image data to be annotated is between the image quality scores of two annotated image data, determine the average value of the image quality scores of the two annotated image data as the image quality score of the image data to be annotated.

[0019] According to a second aspect of an embodiment of the present disclosure, the annotation parameter acquisition unit is configured to: in response to determining that the image quality score of the image data to be annotated is higher or lower than all data in the multiple similar annotated image data, obtain the image quality score of the image data to be annotated based on the highest image quality score or the lowest image quality score in the multiple similar annotated image data.

[0020] According to a second aspect of an embodiment of the present disclosure, the annotation parameter acquisition unit is configured to use an average value of image quality scores obtained after multiple annotators annotate the image data to be annotated as a final image quality score of the image data to be annotated.

[0021] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: at least one processor; and at least one memory storing computer executable instructions, wherein when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the image data labeling method as described above.

[0022] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is enabled to execute the image data labeling method as described above.

[0023] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, and instructions in the computer program product are executed by at least one processor to perform the image data labeling method as described above.

[0024] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the performance of the encoding path can be evaluated and the optimal encoding path can be determined according to the actual performance indicators of the encoder under the encoding path, so that a more accurate frame type path can be obtained for a specific scene, and the performance indicators can be limited as needed to obtain an encoding path solution that meets expectations. This path can not only be used to improve the compression performance of video encoding and save a lot of bandwidth costs, but also provide reference values ​​in training data for different configurations to achieve the purpose of strategy tuning.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0027] Figure 1 is a flowchart illustrating an image data annotation method according to an exemplary embodiment of the present disclosure.

[0028] Figure 2 is a block diagram illustrating an image data tagging apparatus according to an exemplary embodiment of the present disclosure.

[0029] Figure 3 is a schematic diagram illustrating an electronic device for image data annotation according to an exemplary embodiment of the present disclosure.

[0030] Figure 4 is a schematic diagram showing an electronic device for image data annotation according to another exemplary embodiment. DETAILED DESCRIPTION

[0031] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0033] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0034] Before describing the embodiments of the present disclosure in detail, some terms or abbreviations that may be involved in the embodiments of the present disclosure are first described.

[0035] Figure 1 is a flowchart of an image data annotation method according to an exemplary embodiment of the present disclosure.

[0036] Annotation can be understood as adding labels to training data and / or evaluating the data. For example, when annotating an object in an image, the added labels may include whether it is a user, whether it is a vehicle, etc.; evaluating an image may include, for example, scoring the quality of the image, for example, considering the resolution, sharpness, white balance, etc. of the image and giving a score from 1 to 10, etc. In the following description, the image data annotation method according to the exemplary embodiment of the present disclosure is described by taking the scoring of the quality of the image data as an example, but it should be understood that the image data annotation method of the exemplary embodiment of the present disclosure may also be applied to other annotation scenarios.

[0037] First, in step S110, feature sets of the to-be-annotated image dataset and the annotated image dataset are extracted, and a feature index library is established according to the scene feature set of the annotated image dataset.

[0038] Here, the labeled image dataset can be obtained and the feature set can be extracted through various public datasets and deep learning neural networks. For example, the scene feature set (for example, 2048-dimensional scene feature set) of the labeled image dataset and the image dataset to be labeled can be obtained through a scene classification deep learning neural network (for example, resnet 50) trained on the public places365 dataset. Here, the scene features may include, for example, scene feature parameters such as scenery, characters, indoors, and outdoors. The feature set may be a multidimensional scene feature set of global pooling of image data obtained by a convolutional neural network, for example, it may be a feature set after global pooling of the last convolution layer of resnet 50. Then, a feature index library may be established based on the scene feature set extracted from the labeled image dataset (for example, KonIQ-10k). According to an exemplary embodiment of the present disclosure, a binary tree method may be used to establish a feature index library. Specifically, for a large amount of data, two points are randomly selected as the initial center nodes, and the kmeans process with clustering of 2 is executed, which eventually converges to two cluster centers. The feature space is divided into two parts by the central vertical line connecting the two cluster centers, and then the two subspaces are subjected to similar clustering processes in turn, until each subspace has only K data nodes at most. In this way, the process of establishing a feature index library is completed.

[0039] Next, in step S120, based on the features of the image data to be annotated, multiple annotated image data with features similar to the features of the image data to be annotated are retrieved from the established feature index library. For example, an image to be annotated may be randomly selected from the image data set to be annotated, and then the scene features corresponding to the image to be annotated may be extracted from the scene feature set that has been extracted, and the scene features may be used to search in the scene index library that we established previously to extract the closest N annotated image sets. N may be an integer that is pre-set as needed, which may ensure that the number of subsequent selection and comparison is reduced while having a better annotation effect. According to an exemplary embodiment of the present disclosure, multiple similar annotated images may be selected based on the Euclidean distance between the scene features of the image to be annotated.

[0040] Then, in step S130, the annotated image data whose image quality is closest to the image data to be annotated is determined based on the comparison of the image quality of the multiple annotated image data and the image data to be annotated by the annotator. Finally, in step S140, the image quality score of the image data to be annotated is obtained based on the image quality score of the closest annotated image data.

[0041] Through the above operations, the scope of the annotated image data that the annotated image data refers to can be narrowed. Through the double stimulation comparison of the annotated image data and the image data to be annotated, the advantages of manual annotation and artificial intelligence recognition are combined, reducing the manpower requirements for annotation.

[0042] According to an exemplary embodiment of the present disclosure, in step S130, the multiple similar annotated image data may be sorted according to their image quality scores, and the annotated image data to be compared with the image data to be annotated may be determined from the sorted multiple annotated image data through binary search, and the comparison result may be obtained from the annotator, and then the annotated image data whose image quality score is closest to the image data to be annotated may be determined from the multiple annotated image data according to the comparison result of the annotator.

[0043] Specifically, annotated image data with an intermediate image quality score among the multiple similar annotated image data may be provided to an annotator as anchor image data for comparison together with the image data to be annotated. In response to a comparison result obtained from the annotator indicating that the image quality score of the image data to be annotated is higher or lower than that of the anchor image data, annotated image data with an intermediate image quality score is selected from the remaining annotated image data with an image quality score higher or lower than that of the anchor image data among the multiple similar annotated image data and provided to the annotator as anchor image data for comparison, until the annotated image data with an image quality score closest to the image data to be annotated is determined according to the comparison result.

[0044] That is, in response to the annotator giving a higher evaluation to the image data to be annotated, the annotated image data with an intermediate image quality score is selected from the remaining annotated image data with a higher image quality score in the multiple similar annotated image data as anchor image data for comparison with the image data to be annotated, or in response to the annotator giving a lower evaluation to the image data to be annotated, the annotated image data with an intermediate image quality score is selected from the remaining annotated image data with a lower image quality score in the multiple similar annotated image data as anchor image data for comparison with the image data to be annotated. The above comparison process is repeated until the annotated image data with the image quality score closest to the image data to be annotated evaluated by the annotator is found among the multiple similar annotated image data.

[0045] For example, if the quality of the image to be annotated is compared with the quality of the annotated image, the image to be annotated and the annotated image determined by the above binary search can be displayed to the annotator together, and options such as "similar", "higher", "lower" and the like can be provided on the user interface, so that the annotator can obtain the comparison results of the image to be annotated and the annotated image.

[0046] Through the above binary search method, the object that the annotator believes has the closest image quality score to the image data to be annotated can be quickly found from multiple candidate annotated image data, thereby improving the annotation efficiency and saving labor costs. It should be understood that the binary search method is only an example of quickly finding the annotated image data that is closest to the image data to be annotated, and those skilled in the art can use other search methods.

[0047] For example, if 11 annotated images with scene features similar to the image to be annotated are obtained in step S120, their quality scores are n1 to n 11 , we can find the annotated image with a score of n6, and provide it to the annotator to form an annotation pair with the image to be annotated, so that the annotator can choose an image that he thinks has better quality. Next, the background algorithm selects the next anchor image to be compared from the remaining 10 annotated images according to the annotator's choice. If the annotator's last choice is that the anchor image has better quality (that is, the anchor image has a higher quality score), then the annotated image with an intermediate quality score of n3 is selected from the 5 annotated images with lower quality scores than the current anchor image as the anchor image, and provided to the annotator for comparison with the image to be annotated, and so on, until the annotated image selected by the annotator with the quality score closest to the image to be annotated is found.

[0048] According to an exemplary embodiment of the present disclosure, in step S140, if the labeled image data closest to the image data to be labeled has been found, the image quality score of the data may be assigned to the image data to be labeled as its final image quality score.

[0049] If the annotator's final comparison result of the image quality score of the image data to be annotated is between the image quality scores of the two annotated image data, the average of the image quality scores of the two annotated image data is determined as the image quality score of the image data to be annotated. For example, in the above example, if the annotator's final comparison result is that the quality score of the image to be annotated is higher than n4 but lower than n5, n4+n5 / 2 can be used as the final quality score of the image to be annotated.

[0050] If the annotator's final comparison result of the image quality score of the image data to be annotated is higher or lower than all the data in the multiple similar annotated image data, the image quality score of the image data to be annotated is obtained based on the highest image quality score or the lowest image quality score in the multiple similar annotated image data. For example, in the above example, if the annotator's final comparison result is that the quality score of the image to be annotated is higher than the quality scores of the 11 annotated images, then n 11The final quality score of the image to be annotated is obtained by adding 0.5 to the score of n1. If the annotator's final comparison result shows that the quality score of the image to be annotated is lower than the quality scores of the 11 annotated images, the final quality score of the image to be annotated can be obtained by subtracting 0.5 from the score of n1.

[0051] It should be understood that the above processing method for the image quality score of the image data to be labeled is only illustrative, and those skilled in the art may adjust it according to actual needs.

[0052] According to an exemplary embodiment of the present disclosure, the average of the image quality scores obtained after multiple annotators have annotated the image data to be annotated can be used as the final image quality score of the image data to be annotated. For example, by taking the average score of 5 annotators as the final annotation, the minor subjective bias can be eliminated to the maximum extent. In this way, high-confidence annotation can be completed with less manpower in a small range of model iterations, which greatly reduces manpower compared to the original 5point ACR annotation method that requires 120 annotators. At the same time, by comparing the time it takes for the annotators to complete, although the time spent on a single annotation has increased, the overall annotation time of 5 annotators is still much less than that of 120 annotators, which facilitates daily annotation.

[0053] Figure 2 is a block diagram illustrating an image data tagging apparatus according to an exemplary embodiment of the present disclosure.

[0054] like Figure 2 As shown, the image data annotation apparatus 200 according to an exemplary embodiment of the present disclosure may include a feature extraction unit 210 , a retrieval unit 220 , a data comparison unit 230 , and an annotation parameter acquisition unit 240 .

[0055] According to an exemplary embodiment of the present disclosure, the feature extraction unit 210 is configured to extract feature sets of the to-be-annotated image dataset and the annotated image dataset, and to establish a feature index library according to the scene feature sets of the annotated image dataset.

[0056] The retrieval unit 220 is configured to retrieve, from the established feature index library, a plurality of annotated image data having features similar to the features of the image data to be annotated, according to the features of the image data to be annotated.

[0057] The data comparison unit 230 is configured to determine the annotated image data having the closest image quality to the image data to be annotated based on the comparison of the image quality of the plurality of annotated image data and the image data to be annotated by the annotator.

[0058] The annotation parameter acquisition unit 240 is configured to obtain the image quality score of the image data to be annotated according to the image quality score of the closest annotated image data.

[0059] According to an exemplary embodiment of the present disclosure, the labeled image data and the image data to be labeled are image data, the feature set is a multi-dimensional scene feature set of global pooling of image data obtained by a convolutional neural network, and the image quality score is an image quality score.

[0060] According to an exemplary embodiment of the present disclosure, the retrieval unit 220 is configured to select a plurality of similar annotated images according to the Euclidean distance between the image and the scene feature of the image to be annotated.

[0061] According to an exemplary embodiment of the present disclosure, the data comparison unit 230 may include: a sorting unit 231, configured to sort the multiple similar annotated image data according to the image quality scores of the multiple similar annotated image data; a search unit 232, configured to determine the annotated image data to be used for comparison with the image data to be annotated from the sorted multiple annotated image data through a binary search, and determine the annotated image data that is closest to the image quality score of the image data to be annotated from the multiple annotated image data according to the comparison result of the annotator.

[0062] According to an exemplary embodiment of the present disclosure, the search unit 232 is configured to: provide the annotated image data with an intermediate image quality score among the multiple similar annotated image data as anchor image data to the annotator for comparison together with the image data to be annotated; in response to a comparison result obtained from the annotator indicating that the image quality score of the image data to be annotated is higher or lower than the anchor image data, select the annotated image data with an intermediate image quality score from the remaining annotated image data with an image quality score higher or lower than the anchor image data among the multiple similar annotated image data as anchor image data to provide to the annotator for comparison, until the annotated image data with an image quality score closest to the image data to be annotated is determined according to the comparison result.

[0063] According to an exemplary embodiment of the present disclosure, the annotation parameter acquisition unit 240 is configured to: in response to determining that the image quality score of the image data to be annotated is between the image quality scores of two annotated image data, determine the average value of the image quality scores of the two annotated image data as the image quality score of the image data to be annotated.

[0064] According to an exemplary embodiment of the present disclosure, the annotation parameter acquisition unit 240 is configured to: in response to determining that the image quality score of the image data to be annotated is higher or lower than all data in the multiple similar annotated image data, obtain the image quality score of the image data to be annotated based on the highest image quality score or the lowest image quality score in the multiple similar annotated image data.

[0065] According to an exemplary embodiment of the present disclosure, the annotation parameter acquisition unit 240 is configured to use the average of the image quality scores obtained after multiple annotators annotate the image data to be annotated as the final image quality score of the image data to be annotated.

[0066] The above has been referred to Figure 1 right Figure 2 The processes of feature extraction, index retrieval, similar data search and image quality score acquisition pointed to by the feature extraction unit 210, retrieval unit 220, data comparison unit 230 and annotation parameter acquisition unit 240 of the image data annotation device 200 are described in detail and will not be repeated here.

[0067] Figure 3 1 is a block diagram showing a structure of an electronic device 300 for image data annotation according to an exemplary embodiment of the present disclosure. The electronic device 300 may be, for example, a smart phone, a tablet computer, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, or a desktop computer. The electronic device 300 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0068] Typically, the electronic device 300 includes a processor 301 and a memory 302 .

[0069] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In an exemplary embodiment of the present disclosure, the processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0070] The memory 302 may include one or more computer-readable storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the present disclosure. Figure 1 The method embodiment shown provides a video encoding method.

[0071] In some embodiments, the electronic device 300 may further optionally include: a peripheral device interface 303 and at least one peripheral device. The processor 301, the memory 302 and the peripheral device interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a touch display screen 305, a camera 306, an audio circuit 307, a positioning component 308 and a power supply 309.

[0072] The peripheral device interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the peripheral device interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the peripheral device interface 303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0073] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.

[0074] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, set on the front panel of the electronic device 300; in other embodiments, the display screen 305 can be at least two, respectively set on different surfaces of the terminal 300 or in a folding design; in some other embodiments, the display screen 305 can be a flexible display screen, set on the curved surface or folding surface of the terminal 300. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0075] The camera assembly 306 is used to capture images or videos. Optionally, the camera assembly 306 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 306 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0076] The audio circuit 307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 301 for processing, or input them into the radio frequency circuit 304 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 300. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 301 or the radio frequency circuit 304 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 307 may also include a headphone jack.

[0077] The positioning component 308 is used to locate the current geographic location of the electronic device 300 to implement navigation or LBS (Location Based Service). The positioning component 308 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0078] The power supply 309 is used to power various components in the electronic device 300. The power supply 309 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 309 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0079] In some embodiments, the electronic device 300 further includes one or more sensors 310 , including but not limited to: an acceleration sensor 311 , a gyroscope sensor 312 , a pressure sensor 313 , a fingerprint sensor 314 , an optical sensor 315 , and a proximity sensor 316 .

[0080] The acceleration sensor 311 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 300. For example, the acceleration sensor 311 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 301 can control the touch display screen 305 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 311. The acceleration sensor 311 can also be used for collecting game or user motion data.

[0081] The gyro sensor 312 can detect the body direction and rotation angle of the terminal 300, and the gyro sensor 312 can cooperate with the acceleration sensor 311 to collect the user's 3D actions on the terminal 300. The processor 301 can implement the following functions based on the data collected by the gyro sensor 312: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0082] The pressure sensor 313 can be set on the side frame of the terminal 300 and / or the lower layer of the touch display screen 305. When the pressure sensor 313 is set on the side frame of the terminal 300, it can detect the user's holding signal of the terminal 300, and the processor 301 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 313. When the pressure sensor 313 is set on the lower layer of the touch display screen 305, the processor 301 controls the operability controls on the UI according to the user's pressure operation on the touch display screen 305. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0083] The fingerprint sensor 314 is used to collect the user's fingerprint, and the processor 301 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 314, or the fingerprint sensor 314 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 301 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 314 can be set on the front, back, or side of the electronic device 300. When a physical button or a manufacturer logo is set on the electronic device 300, the fingerprint sensor 314 can be integrated with the physical button or the manufacturer logo.

[0084] The optical sensor 315 is used to collect the ambient light intensity. In one embodiment, the processor 301 can control the display brightness of the touch display screen 305 according to the ambient light intensity collected by the optical sensor 315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 305 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 305 is reduced. In another embodiment, the processor 301 can also dynamically adjust the shooting parameters of the camera assembly 306 according to the ambient light intensity collected by the optical sensor 315.

[0085] The proximity sensor 316, also called a distance sensor, is usually arranged on the front panel of the electronic device 300. The proximity sensor 316 is used to collect the distance between the user and the front of the electronic device 300. In one embodiment, when the proximity sensor 316 detects that the distance between the user and the front of the terminal 300 is gradually decreasing, the processor 301 controls the touch display screen 305 to switch from the screen-on state to the screen-off state; when the proximity sensor 316 detects that the distance between the user and the front of the electronic device 300 is gradually increasing, the processor 301 controls the touch display screen 305 to switch from the screen-off state to the screen-on state.

[0086] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the electronic device 300, and may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0087] Figure 4 FIG. 4 is a block diagram of another electronic device 400. For example, the electronic device 400 may be provided as a server. Figure 4 , the electronic device 400 includes one or more processing processors 410 and a memory 420. The memory 420 may include one or more programs for executing the above image data annotation method. The electronic device 500 may also include a power supply component 530 configured to perform power management of the electronic device 400, a wired or wireless network interface 440 configured to connect the electronic device 400 to a network, and an input / output (I / O) interface 450. The electronic device 400 may operate based on an operating system stored in the memory 420, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0088] According to an embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the image data annotation method according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0089] According to an embodiment of the present disclosure, a computer program product may also be provided, and instructions in the computer program product may be executed by a processor of a computer device to complete the above method.

[0090] According to the image data annotation method, device, electronic device, and computer-readable storage medium disclosed in the present invention, an iterative annotation method for performing dual-stimulation annotation after dynamically searching and annotating anchored image data based on image semantic information is provided, which can reduce manpower requirements to meet daily annotation needs. The image data annotation method and device disclosed in the present invention can quickly expand the existing annotated image data set while ensuring annotation consistency, and increase the existing annotated image data set in an incremental annotation manner, thereby promoting the improvement of the effect of the deep model and its rapid implementation in the industry.

[0091] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0092] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for labeling image data, characterized in that: include: Extract feature sets of the image dataset to be annotated and the annotated image dataset, and establish a feature index library based on the scene feature set of the annotated image dataset; According to the features of the image data to be annotated, a plurality of annotated image data having features similar to the features of the image data to be annotated are retrieved from the established feature index library; Determining, by the annotator, the labeled image data having the closest image quality to the image data to be labeled based on a comparison of the image quality of the plurality of labeled image data with the image data to be labeled; Obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data, The feature index library is a scene feature index library established by using a binary tree, and retrieving a plurality of annotated image data having features similar to the image data to be annotated from the established feature index library comprises: using scene features corresponding to the image data to be annotated to search in the established scene feature index library to obtain a plurality of similar annotated image data, The feature set is a multi-dimensional scene feature set of global pooling of image data obtained through a convolutional neural network.

2. The method according to claim 1, characterized in that Retrieving a plurality of annotated image data with features similar to the image data to be annotated from the established feature index library includes: A plurality of similar annotated image data are determined according to the Euclidean distance between the scene features of the image data to be annotated and the scene features of the image data to be annotated.

3. The method according to claim 1, characterized in that The step of determining the labeled image data having the closest image quality to the image data to be labeled according to the comparison of the image quality of the plurality of labeled image data with the image data to be labeled by the annotator comprises: sorting the plurality of similar annotated image data according to image quality scores of the plurality of similar annotated image data; The labeled image data to be compared with the image data to be labeled are determined from the sorted multiple labeled image data by binary search, and the labeled image data whose image quality score is closest to the image data to be labeled is determined from the multiple labeled image data according to the comparison result of the annotator.

4. The method according to claim 3, characterized in that The step of determining the labeled image data to be compared with the image data to be labeled from the sorted plurality of labeled image data by binary search, and determining the labeled image data whose image quality score is closest to the image data to be labeled from the plurality of labeled image data according to the comparison result of the annotator includes: providing the annotated image data with an intermediate image quality score among the similar plurality of annotated image data as anchor image data to an annotator for comparison together with the image data to be annotated; In response to a comparison result obtained from an annotator indicating that the image quality score of the image data to be annotated is higher or lower than the anchor image data, annotated image data with an intermediate image quality score is selected from the remaining annotated image data having a higher or lower image quality score than the anchor image data among the multiple similar annotated image data as anchor image data to be provided to the annotator for comparison until the annotated image data with the image quality score closest to the image data to be annotated is determined according to the comparison result.

5. The method according to claim 4, characterized in that The obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data comprises: In response to determining that the image quality score of the image data to be labeled is between the image quality scores of two labeled image data, an average value of the image quality scores of the two labeled image data is determined as the image quality score of the image data to be labeled.

6. The method according to claim 4, characterized in that The obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data comprises: In response to determining that the image quality score of the image data to be labeled is higher or lower than all data in the multiple similar labeled image data, the image quality score of the image data to be labeled is obtained based on the highest image quality score or the lowest image quality score in the multiple similar labeled image data.

7. The method according to claim 1, characterized in that The obtaining the image quality score of the image data to be annotated based on the image quality score of the closest annotated image data comprises: An average value of image quality scores obtained after multiple annotators annotate the image data to be annotated is used as a final image quality score of the image data to be annotated.

8. An image data annotation device, comprising: A feature extraction unit is configured to extract feature sets of the to-be-annotated image dataset and the annotated image dataset, and to establish a feature index library according to the scene feature sets of the annotated image dataset; A retrieval unit is configured to retrieve, from an established feature index library, a plurality of annotated image data having features similar to the features of the image data to be annotated, according to the features of the image data to be annotated; A data comparison unit is configured to determine the annotated image data whose image quality is closest to the image data to be annotated based on the comparison of the image quality of the plurality of annotated image data and the image data to be annotated by the annotator; a marking parameter obtaining unit, configured to obtain the image quality score of the image data to be marked based on the image quality score of the closest marked image data, The feature index library is a scene feature index library established in a binary tree manner, and the retrieval unit is configured to: use the scene features corresponding to the image data to be annotated to search in the established scene feature index library to obtain a plurality of similar annotated image data, The feature set is a multi-dimensional scene feature set of global pooling of image data obtained through a convolutional neural network.

9. The device according to claim 8, characterized in that The retrieval unit is configured to select a plurality of similar annotated image data according to the Euclidean distance between the scene features of the image data to be annotated.

10. The device according to claim 8, characterized in that The data comparison unit comprises: a sorting unit, configured to sort the plurality of similar annotated image data according to image quality scores of the plurality of similar annotated image data; The search unit is configured to determine the annotated image data to be compared with the image data to be annotated from the sorted multiple annotated image data through binary search, and determine the annotated image data with the image quality score closest to the image data to be annotated from the multiple annotated image data according to the comparison result of the annotator.

11. The device according to claim 10, characterized in that The search unit is configured as follows: providing the annotated image data with an intermediate image quality score among the similar plurality of annotated image data as anchor image data to an annotator for comparison together with the image data to be annotated; In response to a comparison result obtained from an annotator indicating that the image quality score of the image data to be annotated is higher or lower than the anchor image data, annotated image data with an intermediate image quality score is selected from the remaining annotated image data having a higher or lower image quality score than the anchor image data among the multiple similar annotated image data as anchor image data to be provided to the annotator for comparison until the annotated image data with the image quality score closest to the image data to be annotated is determined according to the comparison result.

12. The device according to claim 11, characterized in that The annotation parameter acquisition unit is configured as follows: In response to determining that the image quality score of the image data to be labeled is between the image quality scores of two labeled image data, an average value of the image quality scores of the two labeled image data is determined as the image quality score of the image data to be labeled.

13. The device according to claim 11, characterized in that The annotation parameter acquisition unit is configured as follows: In response to determining that the image quality score of the image data to be labeled is higher or lower than all data in the multiple similar labeled image data, the image quality score of the image data to be labeled is obtained based on the highest image quality score or the lowest image quality score in the multiple similar labeled image data.

14. The device according to claim 8, characterized in that The annotation parameter acquisition unit is configured to use an average value of image quality scores obtained after multiple annotators annotate the image data to be annotated as a final image quality score of the image data to be annotated.

15. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, When the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the image data labeling method according to any one of claims 1 to 7. 16 . A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by at least one processor, enables the at least one processor to execute the image data labeling method according to any one of claims 1 to 7.

17. A computer program product, characterized in that The instructions in the computer program product are executed by at least one processor to perform the image data annotation method according to any one of claims 1 to 7.