Intelligent picture labeling method based on image representation vector calculation

By inputting images into the pre-trained unsupervised learning visual model to obtain feature vectors and annotating similar images in the vector database, the problem of inefficiency of manual annotation is solved, efficient and accurate image annotation is achieved, errors are reduced and the level of automation is improved. .

CN118710979APending Publication Date: 2024-09-27北京宏瓴科技发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Artificial intelligence image annotation in the existing technology is inefficient and prone to errors. A new image annotation scheme is needed to improve efficiency and reduce errors.

Method used

Feature vectors are obtained by inputting images into a pre-trained unsupervised learning visual model and stored in a vector database. These feature vectors are used to quickly retrieve and annotate visually similar images, using prioritization and similarity matching. Technology obtains similar images and reduces manual operation errors.

Benefits of technology

It significantly improves the efficiency and consistency of image annotation, reduces manual errors, and enhances the usability and automation level of annotated data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710979A
    Figure CN118710979A
Patent Text Reader

Abstract

The invention relates to an intelligent picture labeling method based on image representation vector calculation, and the method comprises the steps: inputting an image into an unsupervised learning visual model which is at least pre-trained, obtaining a feature vector, and inputting the feature vector into a vector database; a first image uploaded by a user is acquired, N images are acquired from the vector database at least based on the first image, and N is a positive integer; and labeling the N images based on a preset label. According to the technology, the efficiency and consistency of image annotation are remarkably improved, errors caused by manual operation are reduced, and the availability of annotation data and the automation level of the annotation process are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image annotation, and specifically provides an intelligent picture annotation method based on image representation vector calculation. Background Art

[0002] Currently, in the field of artificial intelligence image annotation, almost all annotations have to be done manually. The traditional artificial intelligent image annotation method based on image representation vector calculation requires a lot of manpower input, is inefficient and prone to subjective errors.

[0003] Accordingly, the art needs a new image annotation solution to solve the above problems. Summary of the invention

[0004] In order to overcome the above-mentioned defects, the present invention is proposed to provide a solution or at least partially solve the technical problem that manual labeling in the prior art is inefficient and may have errors.

[0005] In a first aspect, the present invention provides an intelligent picture labeling method based on image representation vector calculation, the method comprising: inputting an image into at least a pre-trained unsupervised learning visual model to obtain a feature vector, and inputting the feature vector into a vector database; obtaining a first image uploaded by a user, and obtaining N images from the vector database at least based on the first image, where N is a positive integer; and labeling the N images based on preset tags.

[0006] As an alternative or supplement to the above scheme, in a method according to an embodiment of the present invention, obtaining N images from the vector database at least based on the first image includes: inputting the first image into the unsupervised learning visual model to obtain a first feature vector; obtaining N images from the vector database at least based on the first feature vector.

[0007] As an alternative or supplement to the above scheme, in a method according to an embodiment of the present invention, obtaining N images from the vector database at least based on the first feature vector includes: performing similarity matching between the first feature vector and the feature vector in the vector database to obtain the similarity between the feature vector in the vector database and the first feature vector; and obtaining the top N images with the highest similarity from the vector database using a priority sorting method to obtain N images.

[0008] As an alternative or supplement to the above solution, in the method according to an embodiment of the present invention, the obtaining of N images from the vector database based at least on the first image includes: performing a similarity match between the first feature vector and the feature vectors in the vector database to obtain K images, where K is a positive integer and K < N; obtaining N images from the vector database based at least on the K images.

[0009] As an alternative or supplement to the above solution, in the method according to an embodiment of the present invention, the obtaining of N images from the vector database based at least on the K images includes: sending the K images to the user; in response to a user's selection and confirmation operation, obtaining Y images confirmed by the user through the selection and confirmation operation, where the selection and confirmation operation includes the user selecting Y images from the K images, where Y is a natural number and Y ≤ K; obtaining Y second feature vectors corresponding to the Y images; obtaining N images from the vector database based on the Y second feature vectors and the first feature vector.

[0010] As an alternative or supplement to the above solution, in the method according to an embodiment of the present invention, the obtaining of N images from the vector database based on the Y second feature vectors and the first feature vector includes: obtaining a third feature vector based on the Y second feature vectors and the first feature vector; at least performing a similarity match between the third feature vector and the feature vectors in the vector database to obtain the similarity between the feature vectors in the vector database and the third feature vector; using a priority sorting method to obtain the top N images with higher similarity from the vector database to obtain N images.

[0011] As an alternative or supplement to the above solution, in the method according to an embodiment of the present invention, the obtaining of N images from the vector database based on the second feature vector and the first feature vector includes: obtaining an average similarity based on the second feature vector and the first feature vector; in response to the average similarity being less than or equal to a first similarity threshold, obtaining at least two average feature vectors based on the second feature vector and the first feature vector; respectively performing a similarity match between the average feature vectors and the feature vectors in the vector database for at least N images.

[0012] As an alternative or supplement to the above solution, in the method according to an embodiment of the present invention, the performing a similarity match between the first feature vector and the feature vectors in the vector database to obtain K images includes: performing a similarity match between the first feature vector and the feature vectors in the vector database to obtain an image set with a similarity greater than a second similarity threshold; obtaining K images from the image set in different similarity intervals.

[0013] In a second aspect, a control device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple computer programs, and the computer programs are suitable for being loaded and run by the processor to execute the intelligent image labeling method based on image representation vector calculation described in any one of the technical solutions of the above-mentioned intelligent image labeling method based on image representation vector calculation.

[0014] In a third aspect, a computer-readable storage medium is provided, which stores a plurality of computer programs, wherein the computer programs are suitable for being loaded and run by a processor to execute the intelligent image labeling method based on image representation vector calculation described in any one of the technical solutions of the intelligent image labeling method based on image representation vector calculation.

[0015] The above one or more technical solutions of the present invention have at least one or more of the following Beneficial effects:

[0016] In the technical solution of the present invention, the technology achieves efficient image retrieval by inputting images into at least a pre-trained unsupervised learning visual model to obtain feature vectors, and storing the feature vectors in a vector database. Using these feature vectors, the system can quickly retrieve N visually similar images based on the first image uploaded by the user, and these images can then be accurately annotated based on preset tags. This technology significantly improves the efficiency and consistency of image annotation, while reducing errors introduced by manual operations, and enhancing the availability of annotated data and the automation level of the annotation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:

[0018] Figure 1 It is a schematic flow chart of the main steps of an intelligent picture annotation method based on image representation vector calculation according to an embodiment of the present invention;

[0019] Figure 2 It is a flowchart of the secondary steps of the intelligent picture annotation method based on image representation vector calculation according to Embodiment 2 of the present invention;

[0020] Figure 3 is a flowchart of the secondary steps of the intelligent picture annotation method based on image representation vector calculation according to Embodiment 3 of the present invention;

[0021] Figure 4 1 is a flowchart of the sequence steps of the intelligent picture tagging method based on image representation vector calculation according to Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0022] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0023] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as computer programs, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store computer programs, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.

[0024] Embodiment 1:

[0025] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of an intelligent picture annotation method based on image representation vector calculation according to an embodiment of the present invention. Figure 1 and Figure 4 As shown, the intelligent picture labeling method based on image representation vector calculation in the embodiment of the present invention mainly includes the following steps A to C.

[0026] Step A: Input the image into at least a pre-trained unsupervised learning visual model to obtain a feature vector, and input the feature vector into a vector database.

[0027] In one embodiment, first, an image is input into an unsupervised learning visual model that has been at least pre-trained. The unsupervised learning visual model here refers to a deep learning model trained with unlabeled data, which can automatically extract high-level feature representations from the input image. Unlike traditional supervised learning models, unsupervised learning models do not rely on manually labeled data sets, but learn features from a large number of unlabeled images through self-supervision or contrastive learning, which can greatly reduce the cost and time of manual labeling.

[0028] In one embodiment, the unsupervised learning visual model is the DINO-V2 model. The DINO-V2 model uses a self-supervised learning mechanism to learn the deep feature representation of the image by predicting the correlation between different views of the image during the training process. In this way, DINO-V2 is able to capture the complex patterns and structures in the image and generate a high-dimensional feature vector, which can also be called an image representation vector. This feature vector is a numerical representation that contains the key visual information of the image and can be used for subsequent similarity calculations and search tasks.

[0029] In this embodiment, after acquiring the feature vectors, these vectors need to be stored in a vector database. A vector database is a database system specially designed for storing, managing and retrieving high-dimensional vectors, such as the Milvus database. The vector database can efficiently process vector data and support fast similarity search and approximate nearest neighbor search. This is very helpful for the management and retrieval of large-scale image data, and can significantly improve the response speed and search efficiency of the system.

[0030] Furthermore, in one embodiment, the unsupervised learning visual model is fine-tuned for images of a specific category to enhance its ability to recognize specific objects. Typically, unsupervised learning visual models capture common visual features by autonomously learning from a large number of unlabeled images, a step called pre-training. However, pre-training is still not enough to accurately identify or extract details and structured information in certain specific categories of images, such as bills and medicine boxes. As for bills and medicine boxes, the inventors found that the pre-processed DINO-V2 model was still not effective in feature recognition of bills and medicine boxes during the use of the DINO-V2 model. Therefore, in one embodiment, the image is input into an unsupervised learning visual model that has been at least pre-trained to obtain a feature vector, wherein the unsupervised learning visual model is fine-tuned and trained with bill and / or medicine box samples.

[0031] In this embodiment, by fine-tuning the unsupervised learning model, the feature extraction accuracy and recognition ability of the unsupervised learning model for these categories of images can be significantly improved.

[0032] Furthermore, in one embodiment, in the process of inputting an image into an unsupervised learning visual model for feature extraction and vector storage, the image is first preprocessed, wherein the image preprocessing includes image standardization, resizing, and data enhancement. Standardization helps eliminate image lighting and color differences, while resizing ensures that all input images have the same resolution and scale, facilitating unified processing of the model. Data enhancement technology generates more training samples by performing random cropping, rotation, flipping, and other operations on the image, thereby improving the robustness and generalization ability of the model.

[0033] Secondly, Milvus database supports multiple index types (such as IVF, HNSW, etc.), and different index types have different performance characteristics and applicable scenarios. According to the data scale and query requirements, choosing the appropriate index type and parameter settings can significantly improve the efficiency and accuracy of vector retrieval. In addition, the storage format and compression technology of vector data will also affect the storage efficiency and retrieval speed of the database. Reasonable design of storage structure and use of efficient compression algorithm can further optimize the overall performance of the system.

[0034] Through the above steps, the image is input into the pre-trained unsupervised learning visual model, and the generated feature vector is stored in the vector database, which can provide efficient and accurate basic data support for the subsequent image similarity search and annotation process.

[0035] Step B: Obtain a first image uploaded by a user, and obtain N images from a vector database based on at least the first image, where N is a positive integer.

[0036] In one implementation, the first image is an image uploaded by a user for query, and the image is the basis for searching similar images.

[0037] After the user uploads the first image, the system first uses the same unsupervised learning visual model to extract the feature vector of the first image, namely the first feature vector. The first feature vector contains the key visual information of the first image, so that it can serve as the basis for subsequent searches. Subsequently, the first feature vector is used as a query tool to ultimately query N images from the vector database. In one embodiment, the number N can be set according to specific needs.

[0038] The reason for setting this step is to provide a fast and accurate image retrieval method so that users can quickly find other images similar to the uploaded image from a large-scale image collection and mark them by simply uploading the first image.

[0039] Furthermore, step B also includes steps B1-B2, which are as follows:

[0040] Step B1: Input the first image into an unsupervised learning visual model to obtain a first feature vector.

[0041] In one implementation, a first image uploaded by a user is input into an unsupervised learning visual model to extract a first feature vector of the first image.

[0042] The unsupervised learning visual model can capture the general features of the image, such as texture, shape, and color distribution. In step B1, the first image data is fed into the unsupervised learning visual model, which processes the image through a feedforward neural network and outputs a high-dimensional feature vector, namely the first feature vector. The first feature vector is a mathematical representation of the image content and contains sufficient information for subsequent similarity comparison and retrieval tasks.

[0043] In this embodiment, the setting of step B1 is intended to utilize the capability of the unsupervised learning model to abstract the image data, thereby converting it into a form that is easy to calculate and compare. Since the feature vector generated by the unsupervised learning model contains deep feature information of the image, it is only necessary to compare the feature information to obtain an image similar to the first image, thereby obtaining a class of images.

[0044] Step B2: Obtain N images from a vector database based at least on the first feature vector.

[0045] In one embodiment, similar images are retrieved from a vector database based on the first feature vector obtained in step B1. In step B2, the first feature vector is firstly similar to other feature vectors stored in the database, and cosine similarity or Euclidean distance is usually used as a similarity metric. In this way, the system can quickly filter out image feature vectors that are similar to the first image feature, and return the most relevant N images according to a set threshold.

[0046] Further, step B2 includes steps B2-1 to B2-2, which are specifically as follows:

[0047] Step B2-1: Perform similarity matching between the first feature vector and the feature vector in the vector database to obtain the similarity between the feature vector in the vector database and the first feature vector.

[0048] In one implementation, a first feature vector of the image uploaded by the user is matched with feature vectors stored in a vector database for similarity.

[0049] The reason for selecting similarity matching is that since the feature vectors in the vector database are also obtained by the unsupervised learning visual model, images with high similarity are closer to the query image in terms of visual features.

[0050] Step B2-2: Use the priority sorting method to obtain the top N images with the highest similarity from the vector database to obtain N images.

[0051] In one embodiment, the main purpose of using the priority sorting method is to select the N images with the highest similarity from the matching results. These images are similar to the first image in deep features, and more importantly, they belong to the same category as the first image due to the similar deep features.

[0052] Step C: Label N images based on preset labels.

[0053] In one implementation, the same label is assigned to the N returned images, and the labeling is completed.

[0054] Embodiment 2:

[0055] Most of the techniques in this embodiment are the same as those in Embodiment 1, except that step B in this embodiment does not directly use the first feature vector of the first image to perform similarity comparison from the vector database. Other than that, the remaining techniques are the same as those in Embodiment 1 and are not described in detail here.

[0056] In this embodiment, it is believed that although the technical problem of time-consuming and laborious manual annotation is solved in Embodiment 1, at the same time, there are still areas for improvement in certain scenarios. For example, generally speaking, the most intuitive image of an object should be a stereoscopic image or a front view. However, due to objective reasons, there are still some images in the vector database that are images of the object that are biased towards the side view direction. If the first image input by the user is a front view of the object, then because the similarity between the two is not very high, when using priority sorting, this image with a different shooting direction from the first image is not likely to appear in the first N images. Therefore, this phenomenon may affect the diversity of images obtained from the vector database, thereby causing the labeled samples to lack diversity.

[0057] Taking the alarm clock as an example, both the standard stereoscopic image and the front view can easily reflect the characteristics of the alarm clock. However, if a strict front view is used as the first image, although the depth features of the alarm clock image in the close side view direction and the first image are relatively similar. However, due to the priority sorting method in Example 1, the acquired image may not contain this type of image. Therefore, in order to deal with this problem, steps B3-B4 are proposed.

[0058] In this embodiment, step B includes steps B3-B4, such as Figure 2 As shown, the details are as follows:

[0059] Step B3: Perform similarity matching between the first feature vector and the feature vectors in the vector database to obtain K images, where K is a positive integer and K <N。

[0060] In one implementation, K images are obtained through steps B3-1 to B3-2, as follows:

[0061] Step B3-1: Perform similarity matching on the first feature vector and the feature vector in the vector database to obtain an image set with a similarity greater than a second similarity threshold.

[0062] In one embodiment, the second similarity threshold is a preset value used to determine which images have feature vectors similar enough to the first feature vector to be considered similar. This threshold is lower than the standard usually used for final image selection, and its purpose is to expand the range of potential selected images to ensure that those images with slightly different perspectives or forms of expression are included but are still related to the first image. By setting a moderate second similarity threshold, overly strict screening criteria can be avoided, thereby enriching the image set ultimately used for annotation. In one embodiment, the second similarity is 0.7.

[0063] In one embodiment, in order to improve the processing efficiency, a fast similarity calculation method, such as the approximate nearest neighbor (ANN) technology, is used to significantly improve the search speed at the expense of a certain degree of accuracy.

[0064] In this implementation, relying only on results that are highly similar to the uploaded image may result in ignoring relevant images with slightly different angles or styles, thereby affecting the comprehensiveness of the annotation and the effect of the final application. By first obtaining a set of images with looser similarity and then allowing users or automatic systems to select more representative or diverse images from them, the richness and practicality of the annotation data can be significantly increased.

[0065] Step B3-2: Obtain images in different similarity intervals from the image set to obtain K images.

[0066] In one embodiment, different similarity intervals are first defined. These similarity intervals are usually set based on the similarity distribution obtained from step B3-1, with the purpose of covering different ranges from the highest similarity to the lower similarity, where the edge in the lowest interval is the second similarity threshold. For example, three intervals can be set: a high similarity interval (such as a similarity of more than 90%), a medium similarity interval (80%-90% similarity) and a low similarity interval (70%-80% similarity). Through this division, it can be ensured that the selected images are not only concentrated on samples that are extremely similar to the first image, but cover a wider range of perspectives and forms of expression, thereby increasing the diversity of samples.

[0067] In this embodiment, the method of selecting images from different similarity intervals is to select images in each similarity interval randomly or strategically. This can be achieved by setting the ratio of the number of images to be selected in each interval to ensure that representative images are selected in each interval. For example, if K is set to 10, 3 images can be selected from the high similarity interval, 3 images can be selected from the medium similarity interval, and 4 images can be selected from the low similarity interval to ensure diversity and comprehensiveness.

[0068] In this embodiment, by selecting images from different similarity intervals through the above scheme, different expressions of the target category can be captured more comprehensively, providing richer data support for the subsequent extraction of labeled samples, while enhancing the generalization ability of the labeled data set.

[0069] Step B4: Obtain N images from the vector database based on at least K images.

[0070] In one implementation, through steps B4-1 to B4-4, N images are obtained, as follows:

[0071] Step B4-1: Send K images to the user.

[0072] In one implementation, a visual selection interface may be provided to the user, by displaying a series of K images obtained through preliminary screening, so that the user can make intuitive comparisons and selections.

[0073] In one embodiment, by directly displaying the images to the user, the user can select the most appropriate image to be annotated according to his / her own judgment and needs, which can increase the accuracy and reliability of the annotations more than the system automatically selecting the images. In addition, this method also improves the accuracy in finding a class of images.

[0074] Step B4-2: In response to the user's selection confirmation operation, Y images confirmed by the user through the selection confirmation operation are acquired.

[0075] In this embodiment, the selection confirmation operation includes the user selecting Y images from K images, where Y is a natural number, Y≦K.

[0076] In one embodiment, the selection confirmation operation is that after the user browses the K images provided by step B4-1, he selects a certain number of images for subsequent use according to his needs and judgment. Here, Y is the number of images finally selected by the user, and this value is a natural number and must be less than or equal to K. This selection action of the user is usually completed on the same interface, by clicking or marking the image. After completing the selection, the user will confirm his selection through a button or command on the interface, and the system will then record the selected image.

[0077] The main reason for setting this step is to optimize the final selection of images by using the user's subjective judgment to ensure that the selected images best meet the purpose and requirements of annotation. This method overcomes the possible limitations of the first image to some extent, such as the particularity and singleness of the angle of the first image.

[0078] By allowing users to select images from a pre-screened set, the quality and relevance of the annotated dataset can be greatly improved. This not only helps improve the effectiveness of machine learning model training, but also ensures the usefulness and accuracy of the annotated information.

[0079] Step B4-3: Obtain Y second feature vectors corresponding to Y images.

[0080] In one implementation, the corresponding Y images are input into an unsupervised learning visual model to obtain a second feature vector.

[0081] Step B4-4: Obtain N images from the vector database based on the Y second eigenvectors and the first eigenvector.

[0082] In one implementation, N images are obtained through steps B4-4-1 to B4-4-3.

[0083] Step B4-4-1: Based on the Y second eigenvectors and the first eigenvector, obtain the third eigenvector.

[0084] In one embodiment, the second feature vectors of the Y images selected by the user from the K images and the first feature vector of the first image initially uploaded are combined to generate a new comprehensive feature vector, i.e., the third feature vector. The key to this step is to merge or fuse multiple feature vectors to create a feature vector that represents a comprehensive view of the user's selection and the initial query input.

[0085] In this embodiment, the method of generating the third feature vector includes but is not limited to vector averaging and weighted combination. In this way, the third feature vector not only retains the information of the first feature vector, but also adds the features of the image selected by the user, thereby more comprehensively reflecting the category that the user wants to mark.

[0086] In this embodiment, after the user identifies images of particular relevance or interest through the selection confirmation operation, the second feature vectors of these images are combined with the first feature vectors of the original images, and the generated third feature vector will be more representative and can more accurately capture the type of image the user is looking for. In this way, it can be ensured that the images retrieved from the database are not only visually similar to the originally uploaded images, but also meet the specific needs of the user.

[0087] Furthermore, the creation of this comprehensive feature vector also helps increase the diversity of the set of images retrieved from the database, as it combines multiple dimensions of visual features, which helps overcome the limitations that may be imposed by single image features. For example, if the user prefers certain perspectives or details in the selected Y images, these preferences will be reflected by the third feature vector, allowing subsequent retrieval to capture a wider range of similar but potentially subtly different images.

[0088] Step B4-4-2: Perform similarity matching on at least the third feature vector and the feature vector in the vector database to obtain the similarity between the feature vector in the vector database and the third feature vector.

[0089] In one implementation, this step is similar to step B2-1, except that the search component is the third feature vector, so it will not be described again here.

[0090] Step B4-4-3: Use the priority sorting method to obtain the top N images with the highest similarity from the vector database to obtain N images.

[0091] In one implementation, this step is similar to step B2-2 and will not be described in detail here.

[0092] Embodiment 3:

[0093] Most of the techniques in this embodiment are the same as those in Embodiment 2, except that step B4-4 in this embodiment does not use the third feature vector, but uses the average vector after classification, and multiple average vectors are matched for similarity. Other than that, the remaining techniques are the same as those in Embodiment 1, and are not described in detail here.

[0094] In one embodiment, step B4-4 includes steps B4-4-4 to B4-4-6, such as Figure 3 As shown, the details are as follows:

[0095] Step B4-4-4: Based on the second eigenvector and the first eigenvector, obtain the average similarity.

[0096] In one embodiment, the key of this step is to evaluate the overall similarity between the selected images so as to determine the subsequent processing strategy. The average similarity is obtained by averaging the similarity scores between the feature vectors of all selected images and the first feature vector.

[0097] In this embodiment, the main purpose of calculating the average similarity is to determine whether the images selected by the user have a high degree of consistency. If the average similarity between these images is high, that is, close to or equal to a specific first similarity threshold, this indicates that the images selected by the user are relatively consistent in visual features, and the feature vectors of these images can be directly used to synthesize a single third feature vector by weighted average or simple average method. This third feature vector will be used in the subsequent similarity matching step to find other images that are highly similar to this group of images.

[0098] However, if the average similarity obtained is low, below the first similarity threshold, this indicates that the images selected by the user have large differences in visual features, and thus a different processing strategy needs to be adopted. In this case, step B4-4-5 will be initiated, that is, the feature vectors of these images will be clustered to identify different subgroups. Each subgroup will be used to generate an independent average feature vector reflecting the common features of the group of images.

[0099] The application of this method allows the system to handle image retrieval tasks more flexibly and accurately when faced with diverse image inputs provided by users. By identifying the intrinsic structure in the image set, the system is able to conduct specialized similarity searches for each subgroup, ensuring that the returned images not only meet the user's individual selections but also maintain a high degree of relevance and accuracy. This layered processing strategy not only optimizes the quality of search results, but also improves the ability to handle complex or diverse image data.

[0100] In summary, the design of step B4-4-4 and its subsequent steps significantly enhances the adaptability and efficiency of the image annotation system, enabling it to adopt the most appropriate processing strategy based on the nature of the actual image data and user needs. This flexible processing method ensures that the images retrieved from the vector database not only have a high degree of visual similarity, but also meet the user's demand for diversity, thereby improving the effect of the entire image annotation process and user satisfaction.

[0101] Step B4-4-5: In response to the average similarity being less than or equal to the first similarity threshold, at least two average feature vectors are obtained based on the second feature vector and the first feature vector.

[0102] In one embodiment, when it is determined that the average similarity between the images selected by the user is lower than the first similarity threshold, a strategy is used to generate multiple average feature vectors. The strategy mainly includes using a clustering technique to analyze the second feature vector and the first feature vector so as to divide the images into a plurality of groups, each of which has a high similarity.

[0103] In this embodiment, if the average similarity of the selected images is low, it means that the images selected by the user are significantly different in visual features, and a feature vector based only on a single or simple weight may not effectively reflect the diversity of these images, because the N images are ultimately determined by priority sorting. Therefore, using a clustering algorithm such as k-means or hierarchical clustering to group these images can better capture the characteristics of each subset. Each cluster generates an average feature vector, which represents a class of similar images, thereby ensuring the accuracy of processing and the effectiveness of subsequent retrieval.

[0104] In the process of generating multiple average feature vectors, the similarity between each image feature vector and all other image feature vectors is first calculated, and then the clustering algorithm is applied based on these similarity data. As a result of clustering, the images are divided into several different groups, and the images within each group are relatively closer in visual features. For each group, the arithmetic mean of all feature vectors in the group is calculated to obtain the average feature vector representing the group. The number of clusters is Y+1.

[0105] In this embodiment, firstly, the system is allowed to capture more dimensional information from the diverse image inputs provided by the user, ensuring that the images retrieved by the system can cover a wider range of visual features. Secondly, the average feature vector of each group is calculated based on a group of visually similar images, which ensures that each type of image retrieved from the vector database can accurately reflect certain visual characteristics. Finally, this method reduces the overall computational workload to a certain extent, because after preliminary clustering, only the average feature vector of each group needs to be processed, rather than the feature vector of each image individually.

[0106] In summary, step B4-4-5 not only increases the flexibility and accuracy of the system in processing images, but also greatly improves the diversity and practicality of the retrieval results by intelligently grouping and generating representative average feature vectors.

[0107] Step B4-4-6: Perform similarity matching on the average feature vector and the feature vectors in the vector database respectively, for at least N images.

[0108] In one implementation, each average feature vector is compared with feature vectors stored in a vector database to evaluate the similarity between them.

[0109] In this embodiment, by performing independent similarity matching on each average feature vector, the system can capture the unique visual attributes of the images in each subgroup and reflect these attributes in the retrieval results. This processing method makes the final selected images not limited to a single perspective or style, but covers a wider visual range, thereby improving the quality and applicability of the labeled data.

[0110] When performing similarity matching, a priority sorting method can be used to process the results of each average feature vector. This means that the system will sort all matching images from high to low according to the similarity score, and then select the image with the highest similarity from each sorted list until the total number reaches at least N images. This method ensures that each subgroup feature is fully considered, so that the final image collection meets the quantity requirements while also showing sufficient diversity and coverage.

[0111] Another advantage of using multiple average feature vectors for similarity matching is the improvement of computational efficiency. By clustering the selected images in advance and calculating the average feature vector, the need to match a single image feature vector in the entire database is reduced, thereby reducing the amount of computation. In addition, the implementation of this method makes the retrieval results more detailed and accurate because it is optimized and adjusted based on the specific features of the image samples actually confirmed by the user.

[0112] In summary, step B4-4-6 effectively improves the accuracy and diversity of image retrieval through refined feature vector processing and intelligent similarity matching strategy, ensuring that the image annotation task can obtain high-quality and highly relevant image resources. The implementation of this method not only improves the practical value of the annotated dataset, but also optimizes the user's operating experience and the overall performance of the system.

[0113] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0114] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above method embodiments when executed by the processor. Among them, the computer program includes a computer program, and the computer program can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0115] Furthermore, the present invention also provides a control device. In an embodiment of a control device according to the present invention, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the intelligent picture labeling method based on image representation vector calculation of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the intelligent picture labeling method based on image representation vector calculation of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.

[0116] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the intelligent picture labeling method based on image representation vector calculation of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned intelligent picture labeling method based on image representation vector calculation. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.

[0117] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0118] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

[0119] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. An intelligent image annotation method based on image representation vector calculation, characterized in that: include: Inputting the image into at least a pre-trained unsupervised learning visual model to obtain a feature vector, and inputting the feature vector into a vector database; Acquire a first image uploaded by a user, and acquire N images from the vector database at least based on the first image, where N is a positive integer; The N images are labeled based on preset labels.

2. The intelligent image annotation method based on image representation vector calculation according to claim 1 is characterized in that: The acquiring N images from the vector database at least based on the first image comprises: Inputting the first image into the unsupervised learning visual model to obtain a first feature vector; Obtain N images from the vector database based at least on the first feature vector.

3. The intelligent picture annotation method based on image representation vector calculation according to claim 2 is characterized in that: The acquiring N images from the vector database based at least on the first feature vector comprises: Performing similarity matching between the first feature vector and the feature vector in the vector database to obtain the similarity between the feature vector in the vector database and the first feature vector; The top N images with the highest similarity are obtained from the vector database using a priority sorting method to obtain the N images.

4. The intelligent picture annotation method based on image representation vector calculation according to claim 2 is characterized in that: The acquiring N images from the vector database based at least on the first feature vector comprises: The first feature vector is matched with the feature vector in the vector database for similarity, to obtain K images, where K is a positive integer and K <N; At least N of the images are obtained from the vector database based on the K of the images.

5. The intelligent picture annotation method based on image representation vector calculation according to claim 4 is characterized in that: The obtaining N images from the vector database based on at least K images includes: Sending the K images to the user; In response to a selection confirmation operation of the user, acquiring Y images confirmed by the user through the selection confirmation operation, wherein the selection confirmation operation includes the user selecting Y images from K images, wherein Y is a natural number, Y≦K; Obtaining Y second feature vectors corresponding to the Y images; Obtain N of the images from the vector database based on the Y second feature vectors and the first feature vector.

6. The intelligent picture annotation method based on image representation vector calculation according to claim 5, characterized in that: The acquiring N images from the vector database based on the Y second feature vectors and the first feature vector comprises: Obtain a third eigenvector based on the Y second eigenvectors and the first eigenvector; At least performing similarity matching between the third feature vector and a feature vector in a vector database to obtain a similarity between the feature vector in the vector database and the third feature vector; The top N images with the highest similarity are obtained from the vector database using a priority sorting method to obtain the N images.

7. The intelligent picture annotation method based on image representation vector calculation according to claim 5, characterized in that: The acquiring N images from the vector database based on the Y second feature vectors and the first feature vector comprises: Based on the second feature vector and the first feature vector, obtaining an average similarity; In response to the average similarity being less than or equal to a first similarity threshold, obtaining at least two average feature vectors based on the second feature vector and the first feature vector; The average feature vector and feature vectors in the vector database are respectively matched for similarity, for at least N images.

8. The intelligent image tagging method based on image representation vector calculation according to any one of claims 4 to 7, characterized in that: The similarity matching of the first feature vector with the feature vector in the vector database to obtain K images includes: Performing similarity matching between the first feature vector and feature vectors in a vector database to obtain an image set having a similarity greater than a second similarity threshold; Images are acquired from the image set in different similarity intervals to obtain K images.

9. A control device, comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of computer programs, characterized in that: The computer program is suitable for being loaded and run by the processor to execute the intelligent picture tagging method based on image representation vector calculation according to any one of claims 1 to 8.

10. A computer-readable storage medium storing a plurality of computer programs, characterized in that: The computer program is suitable for being loaded and run by a processor to execute the intelligent picture tagging method based on image representation vector calculation according to any one of claims 1 to 8.