A method and device for automatically identifying commodities in image collection

Through pre-trained target detection models and deep neural networks, feature vector matching and clustering technology are used to solve the problem of heavy workload of commodity detection in the existing technology, realize automatic identification and classification, and adapt to the efficiency of new commodities and packaging changes. Identify.

CN113065447BActive Publication Date: 2024-09-10NANJING ZHANGKONG NETWORK SCI & TECH
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202110332450.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-09-10
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

In the existing technology, product detection requires collecting images and updating training models according to specified product types, which results in a heavy workload and makes it difficult to identify new products or products with changed packaging in a timely manner.

Method used

It uses pre-trained target detection models and deep neural networks to automatically identify products from images through feature vector matching and clustering technology, establish and update feature vector libraries, and realize automatic identification and classification of products.

Benefits of technology

It improves the accuracy and efficiency of product identification, reduces the workload, and can automatically identify new products and continuously update the feature vector library to adapt to changes in product types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113065447B
    Figure CN113065447B
Patent Text Reader

Abstract

The present invention discloses a method and device for automatically identifying commodities in an image set, the method comprising: obtaining an image of a commodity to be identified; intercepting a commodity single image of the commodity to be identified in the image of the commodity to be identified by a pre-trained target detection model; extracting a feature vector of the commodity single image by a pre-trained deep neural network; matching the feature vector of the extracted commodity single image with a commodity feature vector in a recognized commodity feature vector library, and determining the commodity type of the commodity to be identified according to the matching result; wherein the recognized commodity feature vector library stores a mapping relationship between commodity feature vectors and commodity types. The present invention can automatically extract features of commodities appearing in an image and automatically identify commodities quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and a device for automatically identifying commodities in image collection, belonging to the technical field of computer vision. Background Art

[0002] SFA (Sales Force Automation) is an important business component of the CRM customer relationship management system. SFA regulates and guides sales personnel's behavior outside through a series of functions such as visit target setting, route planning, setting execution specifications, task execution, and execution result analysis, helping sales personnel to complete the prescribed steps of the visit correctly and efficiently.

[0003] With the development of artificial intelligence, product detection in images has become an important function in SFA. It is used to automatically identify products in photos of shelves, refrigerators, etc., and help companies do further display detection, distribution rate statistics, etc. Currently, product detection is mainly done by specifying product types, collecting corresponding images, and annotating training models for detection. However, there are many types of products, new products are constantly appearing, and existing products will also be repackaged and put on the market. This requires timely collection of product types and images, maintenance of a product library, and continuous updating of training models, which brings a lot of workload. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method and device for automatically identifying commodities in an image set, which can automatically identify commodities from an image set, thereby simplifying commodity identification and reducing workload.

[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0006] In a first aspect, the present invention provides a method for automatically identifying commodities in an image set, comprising the following steps:

[0007] Obtain an image of the product to be identified;

[0008] Using a pre-trained object detection model to intercept a single image of the commodity to be identified from the image of the commodity to be identified;

[0009] Extracting a feature vector of the single product image through a pre-trained deep neural network;

[0010] Matching the feature vector of the extracted product single image with the product feature vector in the identified product feature vector library, and determining the product type of the product to be identified based on the matching result;

[0011] The identified commodity feature vector library stores a mapping relationship between commodity feature vectors and commodity types.

[0012] Furthermore, the feature vector of the extracted single product image is matched with the product feature vector in the identified product feature vector library, and the method for determining the product type of the product to be identified based on the matching result includes: calculating the distance between the feature vector of the extracted single product image and each product feature vector in the identified product feature vector library; if the calculated distance is less than a threshold value, determining the product type of the product to be identified as the product type mapped by the corresponding product feature vector.

[0013] Furthermore, the method for determining the commodity type of the commodity to be identified according to the matching result also includes:

[0014] For feature vectors of the single image of the commodity to be identified whose distance calculation results are all greater than or equal to the threshold, the feature vectors of the single image of the commodity to be identified are stored in an unidentified feature vector library;

[0015] Clustering the feature vectors of multiple product single images in the unidentified feature vector library;

[0016] Get the type labeling information of the newly added product types in the clustering results;

[0017] The feature vectors of the newly added product type and its corresponding product single image are stored in the feature vector library of identified products.

[0018] Furthermore, the target detection model adopts the FasterRCNN target detection algorithm, and the training process of the target detection model includes:

[0019] Obtain images of products in various scenarios as an image collection;

[0020] Various commodities appearing in the image set are labeled and each commodity is labeled with a unique label. The labeled image set is used as a training set, and the training set is used to train the target detection model to obtain a trained target detection model.

[0021] Furthermore, the method for constructing the identified commodity feature vector library includes:

[0022] Obtain the product image and product type label of the identified product, extract the feature vector of the identified product image through the deep neural network, and mark the corresponding product type label for the feature vector of the identified product image; store the image and product type label of the identified product in the identified product feature vector library. Repeat this process continuously, and the known library will contain more and more products, achieving the purpose of automatically detecting products from pictures.

[0023] Furthermore, the method for constructing the identified commodity feature vector library further includes:

[0024] Obtain an image of an unrecognized product, extract a single image of the unrecognized product through an object detection model, and use a deep neural network to extract a feature vector of the image corresponding to the single image of the product;

[0025] Storing the feature vector of the image of the unrecognized commodity in an unrecognized commodity feature vector library;

[0026] Performing cluster search on the unidentified commodity feature vector library according to the distance between feature vectors, obtaining all feature vector combinations in the unidentified commodity feature vector library whose distance is less than a distance threshold, and defining the feature vectors in each feature vector combination as a class;

[0027] Obtaining manual determination information of unrecognized commodity images corresponding to various feature vectors, wherein the manual determination information corresponding to newly added commodity types includes commodity type labeling information of the newly added commodity types;

[0028] According to the manual judgment information, for the newly added types of goods, the feature vectors of the corresponding goods and the corresponding product types are stored in the identified product feature vector library;

[0029] If the unidentified product is manually determined to be an identified product, the feature vector of the unidentified product is marked as the corresponding product type label and transferred to the identified product feature vector library. Transferring the feature vector of the unidentified product can increase the reference vectors in the vector library and improve the accuracy of the next prediction.

[0030] Furthermore, the method of clustering the unidentified product feature vector library based on the distance between feature vectors includes: selecting any feature vector, searching for all feature vectors whose distance to this feature vector is less than a distance threshold, and recursively searching the searched feature vectors to obtain all feature vectors whose distance is less than the distance threshold.

[0031] Furthermore, the method for constructing the identified commodity feature vector library also includes: before storing the feature vector of the image of the unidentified commodity into the unidentified commodity feature vector library, searching the feature vector of the image of the unidentified commodity in the identified commodity feature vector library, and directly discarding it if the distance is less than a preset value. This can save computing resources, increase the speed of constructing the identified commodity feature vector library, and reduce the generation of redundant vectors in the vector library.

[0032] In a second aspect, the present invention provides a device for automatically identifying commodities in an image collection, the device comprising:

[0033] Image acquisition module: used to acquire images of commodities to be identified;

[0034] Detection model module: used for capturing a single image of the commodity to be identified from the image of the commodity to be identified;

[0035] Neural network module: used to extract the feature vector of the single product image;

[0036] Result output module: used to perform clustering search on the feature vectors of the single product image in the identified product feature vector library, and output the product type of the product to be identified based on the clustering results.

[0037] In a third aspect, the present invention provides a device for automatically identifying commodities in an image set, including a processor and a storage medium;

[0038] The storage medium is used to store instructions;

[0039] The processor is used to operate according to the instructions to execute the steps according to the above method.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. The present invention can accurately and quickly determine the type of goods to be identified based on the image of the goods to be identified through the target detection model, neural network and feature vector library, and has a high recognition accuracy rate.

[0042] 2. The present invention can automatically identify commodities by establishing a feature vector library and matching the feature vector of the extracted commodity single image with the commodity feature vector in the identified commodity feature vector library, thereby simplifying commodity identification and reducing workload.

[0043] 3. The present invention stores the feature vectors of the single image of the commodity to be identified in the unidentified feature vector library and performs clustering, and continuously updates and adds the feature vectors of the commodity during operation, thereby improving the accuracy and practicality of automatic identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0046] Embodiment 1:

[0047] This embodiment discloses a method for automatically identifying commodities in an image collection, such as Figure 1 As shown, the method includes:

[0048] Obtain an image of the product to be identified;

[0049] Using a pre-trained object detection model to intercept a single image of the commodity to be identified from the image of the commodity to be identified;

[0050] Extracting a feature vector of the single product image through a pre-trained deep neural network;

[0051] Matching the feature vector of the extracted product single image with the product feature vector in the identified product feature vector library, and determining the product type of the product to be identified based on the matching result;

[0052] The identified commodity feature vector library stores a mapping relationship between commodity feature vectors and commodity types.

[0053] The method of this embodiment can quickly give a product type label of the product to be identified based on the image of the product to be identified through the target detection model, neural network and feature vector library, thereby accurately and quickly determining the product type of the product to be identified, and has a high recognition accuracy rate.

[0054] There are two feature vector libraries, one is the feature vector library of recognized products that have been recognized; the other is the feature vector library of unknown products to be recognized. The target detection model extracts a single product image, and then uses a deep neural network to extract feature vectors from this single product image. The extracted feature vectors are first matched in the feature vector library of recognized products, and the distance between the feature vector of the extracted single product image and the feature vectors of each product in the feature vector library of recognized products is calculated;

[0055] If the calculated distance is less than the threshold, the commodity type of the commodity to be identified is determined as the commodity type mapped by the corresponding commodity feature vector. For the feature vectors of the single image of the commodity to be identified whose distance calculation results are greater than or equal to the threshold, the feature vectors of the single image of the commodity to be identified are stored in the unidentified feature vector library; the feature vectors of multiple commodity single images in the unidentified feature vector library are clustered; the type labeling information of the newly added commodity type in the clustering result is obtained; and the feature vectors of the newly added commodity type and its corresponding commodity single image are stored in the identified commodity feature vector library.

[0056] The feature vector of the extracted single product image is matched with the product feature vector in the identified product feature vector library, and the method for determining the product type of the product to be identified according to the matching result includes: calculating the distance between the feature vector of the extracted single product image and each product feature vector in the identified product feature vector library; if the calculated distance is less than a threshold value, determining the product type of the product to be identified as the product type mapped by the corresponding product feature vector.

[0057] The target detection model is only used to detect targets in images and extract a single image of the product in the image, i.e., a small image. Then, a deep neural network is used to extract feature vectors from the small image of the product. The target detection model is trained by collecting product photos and marking the products as a unique category. The training process of the target detection model includes:

[0058] Obtain images of products in various scenes as an image collection;

[0059] All commodities appearing in the image set are labeled and each commodity is labeled with a unique label. The labeled image set is used as a training set, and the training set is used to train the target detection model to obtain a trained target detection model.

[0060] The method for constructing the identified commodity feature vector library includes:

[0061] Obtain an image of an unrecognized product, extract a single image of the unrecognized product through an object detection model, and use a deep neural network to extract a feature vector of the image corresponding to the single image of the product;

[0062] Storing the feature vector of the image of the unrecognized commodity in an unrecognized commodity feature vector library;

[0063] Performing cluster search on the unidentified commodity feature vector library according to the distance between feature vectors, obtaining all feature vector combinations in the unidentified commodity feature vector library whose distance is less than a distance threshold, and defining the feature vectors in each feature vector combination as a class;

[0064] Obtaining manual determination information of unrecognized commodity images corresponding to various feature vectors, wherein the manual determination information corresponding to newly added commodity types includes commodity type labeling information of the newly added commodity types;

[0065] According to the manual judgment information, for the newly added types of goods, the feature vectors of the corresponding goods and the corresponding product types are stored in the identified product feature vector library;

[0066] If the unidentified commodity is manually determined to be an identified commodity, the feature vector of the unidentified commodity is marked as the corresponding commodity type label and transferred to the identified commodity feature vector library.

[0067] The target detection model can be trained by target detection algorithms such as FasterRCNN, and feature vector extraction can be performed using deep neural networks such as VGG and ResNet.

[0068] Before storing the feature vector of the unrecognized commodity image in the unrecognized commodity feature vector library, the feature vector of the unrecognized commodity image is searched in the recognized commodity feature vector library. If the distance is less than a preset value, it is directly discarded. The preset value is 0.4 to 0.3, preferably 0.4.

[0069] Specifically, the method of clustering the unidentified product feature vector library based on the distance between feature vectors includes: randomly selecting a feature vector, searching for all feature vectors whose distance to the feature vector is less than a distance threshold, and recursively searching the searched feature vectors to obtain all feature vectors whose distance is less than the distance threshold; the distance threshold is 0 to 0.5, preferably 0.4.

[0070] This embodiment can automatically identify products from a picture set, thereby simplifying product identification and reducing workload, and can quickly and efficiently extract features and cluster products appearing in the picture, automatically discover new products based on the clustering results, and thus automatically identify products.

[0071] Embodiment 2:

[0072] The present embodiment provides a method for automatically identifying commodities in an image set, including: collecting commodity images and inputting them into a pre-trained target detection model, intercepting corresponding commodity thumbnails according to the detection results of the target detection model and using a neural network to extract image features to obtain feature vectors, and obtaining the commodity type label of the product by comparing it in a feature vector library.

[0073] At present, when detecting products from pictures of shelves or refrigerators, it is necessary to label and train the target detection model according to the known product categories for identification. In order to track new products or new packaging in a timely manner, a lot of manpower is needed to maintain the product list and train it. This algorithm can automatically detect new products or new packaging. The specific method is to train a model to detect the borders of all products. This target detection model only detects the borders of the products but not the types. Therefore, it has strong adaptability and can detect new products and new packaging without retraining. The detected product images are subjected to feature extraction. Deep neural networks such as Resnet can be used to extract the extracted feature vectors. The extracted feature vectors are stored in the unidentified feature vector library. After all feature vectors are stored, the feature vector library is cleaned, that is, the feature vectors are automatically clustered. The clustering distance can use Euclidean distance or Mahalanobis distance, etc. The generated clusters are manually judged. If it is a new product, a new label is added and the corresponding feature vector is moved to the known product vector library. This process is repeated continuously, and the known library contains more and more products, achieving the purpose of automatically detecting products from pictures.

[0074] The method for constructing a feature vector library includes: taking screenshots according to the detection results of the target detection model and extracting feature vectors and storing them in the unidentified product feature vector library, clustering the stored feature vectors according to the distance threshold, and the images of feature vectors with similar distances are classified into one category, and after manual judgment, if it is a new product, a label is added and the feature vector is stored in the identified product feature vector library.

[0075] The training process of the target detection model includes: collecting commodity images and labeling the collected images; using the labeled images as training sets, and using the training sets to train the target detection model to obtain a trained target detection model.

[0076] The extracted feature vectors are stored in a feature vector library of unidentified products, and cluster search is performed on the vector library based on the distance between feature vectors.

[0077] The clustering process of the unidentified product feature vector library includes: selecting a feature vector, searching for all feature vectors whose distance to the feature vector is less than a threshold, and recursively searching the searched feature vectors to obtain all feature vectors whose distance is less than the threshold.

[0078] The images corresponding to the feature vectors whose distances are less than the distance threshold are manually judged to be new products. If they are new products, they are labeled as new products. If they are recognized products, they are labeled as known products and the corresponding feature vectors are deleted from the unrecognized product feature vector library and added to the recognized product feature vector library. The distance threshold value is 0 to 0.5, preferably 0.4.

[0079] When there are already a large number of identified feature vectors in the identified commodity feature vector library, the newly extracted feature vector can be searched in the feature vector library first, and if the distance is less than the threshold, it is directly discarded. The distance threshold is 0.4 to 0.3, preferably 0.4.

[0080] Embodiment three:

[0081] This embodiment provides a device for automatically identifying commodities in an image collection, the device comprising:

[0082] Image acquisition module: used to acquire images of commodities to be identified;

[0083] Detection model module: used for capturing a single image of the commodity to be identified from the image of the commodity to be identified;

[0084] Neural network module: used to extract the feature vector of the single product image;

[0085] Result output module: used to perform clustering search on the feature vectors of the single product image in the identified product feature vector library, and output the product type of the product to be identified based on the clustering results.

[0086] Embodiment 4:

[0087] This embodiment provides a device for automatically identifying commodities in an image collection, the device comprising a processor and a storage medium;

[0088] The storage medium is used to store instructions;

[0089] The processor is used to operate according to the instructions to perform the steps of the following method:

[0090] Obtain an image of the product to be identified;

[0091] Using the target detection model to intercept a single image of the commodity to be identified from the image of the commodity to be identified;

[0092] Extracting a feature vector of the single product image through a deep neural network;

[0093] Perform cluster search on the feature vectors of the product single image in the identified product feature vector library, and output the product type of the product to be identified based on the clustering result.

[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0095] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0096] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0097] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0098] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for automatically identifying commodities in an image collection, characterized in that: The following steps are involved: Obtain an image of the product to be identified; Using a pre-trained object detection model to intercept a single image of the commodity to be identified from the image of the commodity to be identified; Extracting a feature vector of the single product image through a pre-trained deep neural network; Matching the feature vector of the extracted product single image with the product feature vector in the identified product feature vector library, and determining the product type of the product to be identified based on the matching result; The identified commodity feature vector library stores a mapping relationship between commodity feature vectors and commodity types; The method of matching the feature vector of the extracted commodity single image with the commodity feature vector in the identified commodity feature vector library and determining the commodity type of the commodity to be identified according to the matching result includes: Calculate the distance between the feature vector of the extracted product image and the feature vectors of each product in the identified product feature vector library; If the calculated distance is less than the threshold, the commodity type of the commodity to be identified is determined to be the commodity type mapped by the corresponding commodity feature vector; The method for determining the commodity type of the commodity to be identified according to the matching result also includes: For feature vectors of the single image of the commodity to be identified whose distance calculation results are all greater than or equal to the threshold, the feature vectors of the single image of the commodity to be identified are stored in an unidentified feature vector library; Clustering the feature vectors of multiple product single images in the unidentified feature vector library; Get the type labeling information of the newly added product types in the clustering results; The feature vectors of the newly added product type and its corresponding product single image are stored in the feature vector library of the identified products; The target detection model adopts the Faster RCNN target detection algorithm, and the training process of the target detection model includes: Obtain images of products in various scenarios as an image collection; Label the various commodities appearing in the image set and label each commodity with a unique label, use the labeled image set as a training set, and use the training set to train the object detection model to obtain a trained object detection model; The method for constructing the identified commodity feature vector library includes: Obtain a product image and a product type label of the identified product, extract a feature vector of the product image of the identified product through a deep neural network, and mark the feature vector of the product image of the identified product with a corresponding product type label; The images and product type labels of the identified products are stored in the identified product feature vector library; The method for constructing the identified commodity feature vector library further includes: Obtain an image of an unrecognized product, extract a single image of the unrecognized product through an object detection model, and use a deep neural network to extract a feature vector of the image corresponding to the single image of the product; Storing the feature vector of the image of the unrecognized commodity in an unrecognized commodity feature vector library; Performing cluster search on the unidentified commodity feature vector library according to the distance between feature vectors, obtaining all feature vector combinations in the unidentified commodity feature vector library whose distance is less than a distance threshold, and defining the feature vectors in each feature vector combination as a class; Obtaining manual determination information of unrecognized commodity images corresponding to various feature vectors, wherein the manual determination information corresponding to newly added commodity types includes commodity type labeling information of the newly added commodity types; According to the manual judgment information, for the newly added types of goods, the feature vectors of the corresponding goods and the corresponding product types are stored in the identified product feature vector library; If the unidentified commodity is manually determined to be an identified commodity, the feature vector of the unidentified commodity is marked as the corresponding commodity type label and transferred to the identified commodity feature vector library; The method for clustering the unidentified commodity feature vector library according to the distance between feature vectors includes: selecting a feature vector, searching for all feature vectors whose distance to the feature vector is less than a distance threshold, and recursively searching the searched feature vectors to obtain all feature vectors whose distance is less than the distance threshold; The method for constructing the identified commodity feature vector library further includes: Before storing the feature vector of the unrecognized commodity image in the unrecognized commodity feature vector library, the feature vector of the unrecognized commodity image is searched in the recognized commodity feature vector library, and if the distance is less than a preset value, it is directly discarded.

2. A device for automatically identifying commodities in an image collection, characterized in that: The device comprises: Image acquisition module: used to acquire images of commodities to be identified; Detection model module: used for capturing a single image of the commodity to be identified from the image of the commodity to be identified by using a pre-trained target detection model; Neural network module: used to extract the feature vector of the single product image; Result output module: used to match the feature vector of the extracted commodity single image with the commodity feature vector in the identified commodity feature vector library, and determine the commodity type of the commodity to be identified according to the matching result; wherein the identified commodity feature vector library stores the mapping relationship between the commodity feature vector and the commodity type; The method of matching the feature vector of the extracted commodity single image with the commodity feature vector in the identified commodity feature vector library and determining the commodity type of the commodity to be identified according to the matching result includes: Calculate the distance between the feature vector of the extracted product image and the feature vectors of each product in the identified product feature vector library; If the calculated distance is less than the threshold, the commodity type of the commodity to be identified is determined to be the commodity type mapped by the corresponding commodity feature vector; The method for determining the commodity type of the commodity to be identified according to the matching result also includes: For feature vectors of the single image of the commodity to be identified whose distance calculation results are all greater than or equal to the threshold, the feature vectors of the single image of the commodity to be identified are stored in an unidentified feature vector library; Clustering the feature vectors of multiple product single images in the unidentified feature vector library; Get the type labeling information of the newly added product types in the clustering results; The feature vectors of the newly added product type and its corresponding product single image are stored in the feature vector library of the identified products; The target detection model adopts the Faster RCNN target detection algorithm, and the training process of the target detection model includes: Obtain images of products in various scenarios as an image collection; Label the various commodities appearing in the image set and label each commodity with a unique label, use the labeled image set as a training set, and use the training set to train the object detection model to obtain a trained object detection model; The method for constructing the identified commodity feature vector library includes: Obtain a product image and a product type label of the identified product, extract a feature vector of the product image of the identified product through a deep neural network, and mark the feature vector of the product image of the identified product with a corresponding product type label; The images and product type labels of the identified products are stored in the identified product feature vector library; The method for constructing the identified commodity feature vector library further includes: Obtain an image of an unrecognized product, extract a single image of the unrecognized product through an object detection model, and use a deep neural network to extract a feature vector of the image corresponding to the single image of the product; Storing the feature vector of the image of the unrecognized commodity in an unrecognized commodity feature vector library; Performing cluster search on the unidentified commodity feature vector library according to the distance between feature vectors, obtaining all feature vector combinations in the unidentified commodity feature vector library whose distance is less than a distance threshold, and defining the feature vectors in each feature vector combination as a class; Obtaining manual determination information of unrecognized commodity images corresponding to various feature vectors, wherein the manual determination information corresponding to newly added commodity types includes commodity type labeling information of the newly added commodity types; According to the manual judgment information, for the newly added types of goods, the feature vectors of the corresponding goods and the corresponding product types are stored in the identified product feature vector library; If the unidentified commodity is manually determined to be an identified commodity, the feature vector of the unidentified commodity is marked as the corresponding commodity type label and transferred to the identified commodity feature vector library; The method for clustering the unidentified commodity feature vector library according to the distance between feature vectors includes: selecting a feature vector, searching for all feature vectors whose distance to the feature vector is less than a distance threshold, and recursively searching the searched feature vectors to obtain all feature vectors whose distance is less than the distance threshold; The method for constructing the identified commodity feature vector library further includes: Before storing the feature vector of the unrecognized commodity image in the unrecognized commodity feature vector library, the feature vector of the unrecognized commodity image is searched in the recognized commodity feature vector library, and if the distance is less than a preset value, it is directly discarded.

3. A device for automatically identifying commodities in an image collection, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to claim 1 .

Citation Information

Patent Citations

  • Object identity managing method and device and electronic device

    CN106295313A

  • Interactive method and device based on face recognition sample library facing intelligent robot

    CN106778653A

  • Electronic device, face image cluster search method, and computer readable storage medium

    CN107766822A

  • Transfer learning-based multi-view commodity image retrieval and identification method

    CN107908685A

  • Image classification method, server and storage medium

    CN108280190A