WO2020134099A1 - Article identification method, device and system - Google Patents

Article identification method, device and system Download PDF

Info

Publication number
WO2020134099A1
WO2020134099A1 PCT/CN2019/099757 CN2019099757W WO2020134099A1 WO 2020134099 A1 WO2020134099 A1 WO 2020134099A1 CN 2019099757 W CN2019099757 W CN 2019099757W WO 2020134099 A1 WO2020134099 A1 WO 2020134099A1
Authority
WO
WIPO (PCT)
Prior art keywords
item
feature
image
identified
information
Prior art date
Application number
PCT/CN2019/099757
Other languages
French (fr)
Chinese (zh)
Inventor
刘朋樟
张屹峰
刘巍
陈宇
Original Assignee
北京沃东天骏信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京沃东天骏信息技术有限公司 filed Critical 北京沃东天骏信息技术有限公司
Publication of WO2020134099A1 publication Critical patent/WO2020134099A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus
    • G07F9/02Devices for alarm or indication, e.g. when empty; Advertising arrangements in coin-freed apparatus

Definitions

  • the present disclosure relates to the field of computers, and in particular, to an item identification method, device, and system.
  • a related-art vending machine collects images of items taken away, processes the collected images using a neural network model, and outputs the probability that the items taken away belong to each saleable item. If there are 1,000 types of items for sale, each time the neural network model is recognized, a 1000-dimensional vector will be output. Each dimension of the vector corresponds to the probability of a type of item for sale. Items taken away are usually identified as the most probable items for sale. article.
  • Some embodiments of the present disclosure provide an item identification method, including:
  • the type of the item to be identified is determined according to the similarity comparison result.
  • the first feature database is received data sent by the cloud device and stored locally; the data of the first feature database corresponds to a local set of items to be identified.
  • the first feature database is updated accordingly.
  • the first feature database is a subset of the second feature database located in the cloud device
  • the method for establishing the second feature database includes:
  • the feature information of the image of each item is sent to the cloud device and added to the second feature database; or,
  • the image of each item is sent to the cloud device, and the cloud device calculates the feature information of the image of each item and adds it to the second feature database.
  • generating feature information of the item to be identified includes:
  • the feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training.
  • the classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
  • the first feature database is a subset of the second feature database located in the cloud device
  • the method for establishing the second feature database includes:
  • the feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training.
  • the classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
  • the classification model is a neural network model
  • the feature extraction model includes a convolutional layer, a pooling layer, and a fully connected layer.
  • the feature extraction model is used to generate feature information of the image of the newly added item without retraining, and is added to the second feature database.
  • the feature extraction model is retrained if the preset conditions are met.
  • the preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
  • the method is performed by a vending machine or cloud device.
  • Some embodiments of the present disclosure provide an item identification method, including:
  • the classification model includes a classification layer, and the classification layer is used to classify images according to image feature information;
  • the feature extraction model processes the input image of each item and outputs feature information of the image of the corresponding item
  • the feature information of the image of each item is added to the second feature database, and the feature extraction model and the second feature database are used for item identification.
  • the feature extraction model is used to generate feature information of images of newly added items without retraining.
  • the image of the newly added item comes from a vending machine.
  • the feature extraction model is retrained if the preset conditions are met.
  • the preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
  • the method further includes: the feature extraction model and the subset of the second feature database are delivered to each vending machine for item identification by the vending machine, and the data of the subset of the second feature database corresponds to the sales The set of items to be identified on the freighter.
  • it also includes:
  • the type of the item to be identified is determined according to the similarity comparison result.
  • Some embodiments of the present disclosure provide a cloud device, including:
  • a processor coupled to the memory, the processor configured to perform the method performed by the cloud device in any of the foregoing embodiments based on instructions stored in the memory.
  • Some embodiments of the present disclosure propose a vending machine, including:
  • a processor coupled to the memory, the processor configured to perform the method performed by the vending machine in any of the foregoing embodiments based on instructions stored in the memory.
  • Some embodiments of the present disclosure propose an item identification system, including:
  • Some embodiments of the present disclosure propose a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method in any of the foregoing embodiments.
  • FIG. 1 is a schematic diagram of an item identification system according to some embodiments of the present disclosure.
  • FIG. 2a is a schematic flowchart of item identification by a vending machine 12 according to some embodiments of the present disclosure.
  • FIG. 2b is a schematic flowchart of item identification performed by the cloud device 11 according to some embodiments of the present disclosure.
  • FIG. 3 shows a schematic diagram of establishing a second feature database according to some embodiments of the present disclosure.
  • FIG. 4 shows a schematic diagram of the cloud device of some embodiments of the present disclosure delivering feature information of images of some items to each vending machine.
  • FIG. 5 shows a schematic diagram of updating the second feature database for newly added items in some embodiments of the present disclosure.
  • FIG. 6 is a schematic diagram of a cloud device according to some embodiments of the present disclosure.
  • FIG. 7 is a schematic diagram of a vending machine according to some embodiments of the present disclosure.
  • the present disclosure proposes an item identification solution to solve at least one of the foregoing problems and improve the operability of the vending machine.
  • the present disclosure recognizes items based on image feature comparison and implements a new type of item recognition scheme; on the other hand, the model of building a feature database can generate the characteristics of untrained items, making the untrained Items can also be identified; on the one hand, the model for building a feature database does not need to be retrained for each new item; on the other hand, item identification can be performed in a smaller range, which is helpful to reduce the probability of item misidentification.
  • FIG. 1 is a schematic diagram of an item identification system according to some embodiments of the present disclosure.
  • the article identification system 10 of this embodiment includes a cloud device 11 and a number of vending machines 12. These vending machines 12 can be located in different locations, for example, and can realize automatic vending. Information exchange between the cloud device 11 and each vending machine 12 is possible.
  • the cloud device 11 may establish a feature database based on the feature extraction model.
  • the vending machine 12 therein can collect images of items to be identified, for example.
  • the cloud device 11 or the vending machine 12 can perform item identification based on the feature database and the image of the item to be identified. The two article identification methods are described below in conjunction with FIGS. 2a and 2b.
  • the feature database located in the vending machine 12 is set as the first feature database
  • the feature database located in the cloud device 11 is set as the second feature database.
  • the second feature database usually includes feature information of images of all items.
  • the first feature database is a subset of the second feature database, and the data of the first feature database corresponds to the set of items to be identified locally by the vending machine (ie, items sold by the vending machine).
  • the first feature database is updated accordingly.
  • the computing resources of the vending machine are sufficient, or, regardless of the recognition efficiency, the first feature database may also be the complete set of the second feature database.
  • the cloud device 11 may send the feature extraction model and each first feature database (that is, feature information of an image of some items in the second feature database) to Each vending machine 12, and then, the vending machine 12 uses the feature extraction model issued by the cloud device 11 to obtain the feature information of the image of the item to be identified, and through the feature information of the image of the item to be identified and the first feature database issued by the cloud device 11
  • Article identification is carried out in a manner of comparing feature information of images of each article in. This embodiment is described below with reference to FIG. 2a.
  • FIG. 2a is a schematic flowchart of item identification by a vending machine 12 according to some embodiments of the present disclosure.
  • this embodiment includes steps S21-S26.
  • step S21 the cloud device 11 builds a second feature database based on the feature extraction model (refer to the schematic diagram of establishing a second feature database shown in FIG. 3, and id represents an item identifier).
  • the feature extraction model can be obtained through steps S211 to 212, for example:
  • the training data is used to train a feature-based classification model.
  • the classification model includes a classification layer, which is used to classify images based on image feature information.
  • the training data includes, for example, the image of the item and the type of the item annotating the image, that is, which item is annotated in the image.
  • step S212 the classification layer of the feature-based classification model after training is deleted to obtain a feature extraction model.
  • the feature-based classification model is, for example, a neural network model.
  • the neural network model includes, for example, a convolutional layer, a pooling layer, a fully connected layer, and a classification layer, and the corresponding feature extraction model includes a convolutional layer, a pooling layer, and a fully connected layer. .
  • the classification layer is, for example, a softmax layer. If there are 1000 saleable items, define a softmax layer with a dimension of 1000.
  • the softmax layer will output a 1000-dimensional vector, and each dimension of the vector corresponds to the probability of a saleable item.
  • each image can be characterized as a D-dimensional feature vector, such as 256 dimensions, through the feature extraction model.
  • the number of types of items is N.
  • Each item uses K images to extract features, and N ⁇ K D-dimensional feature vectors can be obtained through the feature extraction model.
  • K feature vectors of each item are clustered, and m feature vectors are selected according to the clustering result to characterize the item.
  • the clustering algorithm may use the K-means algorithm.
  • the final feature database includes feature information of N items, and the feature information of each item is m D-dimensional feature vectors.
  • the establishment of the second feature database may be implemented through steps S213 to 214, for example:
  • step S213 the feature extraction model processes the input image of each item and outputs feature information of the image of the corresponding item.
  • step S214 the feature information of the image of each item is added to the second feature database.
  • step S22 the cloud device 11 extracts the corresponding subset of the second feature database as the first feature database of the vending machine 12 according to the set of items to be identified of the vending machine 12, and delivers the feature extraction model and the first feature database to the corresponding Each of the vending machines 12 is used to identify items by the vending machine.
  • the second feature database has feature information of 1,000 items, and a certain vending machine 1 sells 20 items
  • the feature information of these 20 items is sent to the vending machine as the first feature database of the vending machine 1 1.
  • the vending machine 1 can perform item identification within the range of 20 items, without the need to perform item identification within the range of 1000 items, and the item identification within a smaller range is conducive to reducing the probability of incorrect identification of items and improving identification effectiveness.
  • each vending machine has the ability to recognize all items, so each vending machine can pull feature information of any item from the second feature database as needed.
  • FIG. 4 shows a schematic diagram of the cloud device delivering the feature information of the image of some items to each vending machine.
  • the characteristic information of the item with the item ID of 1/3/4 sold by the vending machine 1 is sent to the vending machine 1
  • the item ID of the item sold by the vending machine 2 is 2/4/7
  • the characteristic information of the item of the item is sent to the vending machine 2
  • the characteristic information of the item with the item id of 9/11/12 sold by the vending machine n is sent to the vending machine n.
  • the feature information of different items is relatively similar, the feature information of similar items can be separately delivered to different vending machines, so that the difference in feature information of different items in the same vending machine is relatively large, which is conducive to improving item recognition Accuracy.
  • the cloud device 11 can also send the feature information of the images of all the items in the feature database to each vending machine, and the items can also be realized Identify.
  • step S23 a certain vending machine 12 collects an image of the item to be identified.
  • the vending machine 12 may use a camera to collect an image of the item to be identified.
  • the camera may be disposed in the vending machine 12 adjacent to the cabinet door, so as to collect images of the items.
  • step S24 the vending machine 12 uses the feature extraction model to generate feature information of the image of the item to be recognized.
  • step S25 the vending machine 12 compares the generated feature information of the image of the item to be recognized with the feature information of the image of each item in the first feature database stored in the machine.
  • the Euclidean distance between the feature information of the image of the item to be recognized and the feature information of the image of each item in the feature database is calculated.
  • step S26 the vending machine 12 determines the type of the item to be identified based on the similarity comparison result.
  • the item to be identified can be determined as the item in the first feature database that is most similar to the item to be identified.
  • each vending machine recognizes items based on the image feature comparison, and implements a new item identification scheme.
  • each vending machine has the ability to identify all items, but it can perform item identification in the limited item types it sells. It is not necessary to perform item identification in all item types in the feature database, which is helpful to reduce the probability of item misidentification.
  • the vending machine 12 collects the image of the item to be identified and uploads it to the cloud device 11, and then the cloud device 11 uses the feature extraction model to obtain the image of the item to be identified Feature information, determine the subset of the second feature database (that is, the first feature database) according to the set of items to be recognized of the vending machine 12 through the feature information of the image of the item to be recognized and the feature information of the image of each item in the first feature database
  • the article identification is performed in a comparison manner, and the article identification result is returned to the vending machine 12. The embodiment will be described below with reference to FIG. 2b.
  • FIG. 2b is a schematic flowchart of item identification performed by the cloud device 11 according to some embodiments of the present disclosure.
  • this embodiment includes the following steps: steps S31 to S36.
  • step S31 as in step S21, the cloud device 11 builds a second feature database based on the feature extraction model.
  • the cloud device 11 may save the feature extraction model and the second feature database.
  • step S32 a certain vending machine 12 collects the image of the item to be identified and uploads it to the cloud device 11.
  • step S33 the cloud device 11 uses the feature extraction model to acquire feature information of the image of the item to be identified.
  • step S34 the cloud device 11 determines a subset of the second feature database (ie, the first feature database) according to the set of items to be identified of the vending machine 12, and compares the generated feature information of the image of the item to be identified with the first feature database The feature information of the images of each item is compared for similarity.
  • the second feature database ie, the first feature database
  • the cloud device 11 may also compare the feature information of the image of the item to be recognized with the feature information of the images of all the items in the second feature database Similarity comparison can also realize item identification.
  • step S35 the cloud device 11 determines the type of the item to be identified according to the similarity comparison result.
  • the item to be identified can be determined as the item in the first feature database that is most similar to the item to be identified.
  • step S36 the cloud device 11 returns the item identification result to the vending machine 12, and the vending machine 12 obtains the item identification result.
  • the above-mentioned embodiment recognizes items based on the image feature comparison, and implements a new item identification scheme.
  • complex operations such as feature extraction and similarity comparison are implemented by cloud devices with powerful computing capabilities, which can improve recognition efficiency and greatly reduce the performance requirements of vending machines.
  • FIG. 5 for a schematic diagram of updating the second feature database for newly added items.
  • the feature extraction model may not be retrained, and the current feature extraction model is used to directly generate feature information of the images of several newly added items.
  • the feature information of the newly added item can be directly added to the second feature database as incremental information and delivered to the vending machine that sells the newly added item.
  • the model for constructing the feature database does not need to be retrained for each new item, the number of model trainings is reduced, and the model for constructing the feature database can generate features of items that have not been trained, so that no training has been done Items can also be identified.
  • the feature extraction model is retrained if it meets the preset conditions, where the preset conditions include: the newly added items reach a preset ratio or number, satisfying the preset time interval (such as the number Month), or, the accuracy of item identification is lower than the preset value.
  • the feature extraction model can be retrained based on the image of the original item and the image of the newly added item. Then, a new feature extraction model is used to extract the feature information of the images of all items, thereby generating a new feature database.
  • the image of the newly added item may come from a vending machine that actually sells the item, and is not limited to having to come from a test vending machine. Vending machines that actually sell items may belong to different operators.
  • the image of the newly added item may come from a certain operator.
  • the items sold by various operators may be different, but the images of these items can eventually participate in the training of the feature extraction model. Even if there are few item images uploaded by a certain operator, using all the item images uploaded by all operators can still train a feature extraction model with high accuracy. Relative to each operator independently maintaining a feature database, it is conducive to reducing costs. The capability of this feature extraction model will continue to be optimized as the number of uploaded item images increases.
  • FIG. 6 is a schematic diagram of a cloud device according to some embodiments of the present disclosure.
  • the cloud device 11 of this embodiment includes:
  • a processor 112 coupled to the memory is configured to execute the method performed by the cloud device 11 in any of the foregoing embodiments based on instructions stored in the memory.
  • FIG. 7 is a schematic diagram of a vending machine according to some embodiments of the present disclosure.
  • the vending machine 12 of this embodiment includes:
  • a processor 122 coupled to the memory, the processor configured to perform the method performed by the vending machine 12 in any of the foregoing embodiments based on instructions stored in the memory.
  • the memories 111, 121 may include, for example, a system memory, a fixed non-volatile storage medium, and the like.
  • the system memory stores, for example, an operating system, application programs, a boot loader (Boot Loader), and other programs.
  • Some embodiments of the present disclosure propose a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the item identification method in any of the foregoing embodiments.
  • the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code .
  • a computer usable non-transitory storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Abstract

The present invention relates to the field of computers, and provides an article recognition method, device and system. According to the present invention, an article is identified on the basis of an image feature comparison mode, and a novel article identification solution is implemented; on the other hand, a model for constructing a feature database can generate features of untrained articles, so that the untrained articles can also be identified; on the other hand, the model for constructing the feature database does not need to be retrained for each new article; and on the other hand, article identification can be performed in a smaller range, so that the probability of article error identification is reduced.

Description

物品识别方法、设备和系统Article identification method, equipment and system
交叉引用cross reference
本申请是以CN申请号为201811628625.7,申请日为2018年12月29日的申请为基础,并主张其优先权,该CN申请的公开内容在此作为整体引入本申请中。This application is based on the application with the CN application number 201811628625.7 and the application date is December 29, 2018, and claims its priority. The disclosure content of the CN application is hereby incorporated into this application as a whole.
技术领域Technical field
本公开涉及计算机领域,特别涉及一种物品识别方法、设备和系统。The present disclosure relates to the field of computers, and in particular, to an item identification method, device, and system.
背景技术Background technique
一种相关技术的售货机,其采集被拿走物品的图像,利用神经网络模型对采集的图像进行处理,输出被拿走物品分别属于各个可售物品的概率。假如有1000种可售物品,则每次识别神经网络模型会输出一个1000维的向量,向量的每个维度对应一种可售物品的概率,被拿走物品通常被识别为概率最大的可售物品。A related-art vending machine collects images of items taken away, processes the collected images using a neural network model, and outputs the probability that the items taken away belong to each saleable item. If there are 1,000 types of items for sale, each time the neural network model is recognized, a 1000-dimensional vector will be output. Each dimension of the vector corresponds to the probability of a type of item for sale. Items taken away are usually identified as the most probable items for sale. article.
发明内容Summary of the invention
本公开的一些实施例提出一种物品识别方法,包括:Some embodiments of the present disclosure provide an item identification method, including:
基于采集的待识别物品的图像信息,生成所述待识别物品的特征信息;Generating feature information of the item to be identified based on the collected image information of the item to be identified;
将生成的所述待识别物品的特征信息与第一特征数据库中的各物品的图像的特征信息进行相似性比较;Comparing the generated feature information of the item to be identified with the feature information of the image of each item in the first feature database;
根据相似性比较结果确定所述待识别物品的种类。The type of the item to be identified is determined according to the similarity comparison result.
在一些实施例中,所述第一特征数据库是接收的云端设备发送的数据,并被保存在本地;所述第一特征数据库的数据对应于本地待识别物品集。In some embodiments, the first feature database is received data sent by the cloud device and stored locally; the data of the first feature database corresponds to a local set of items to be identified.
在一些实施例中,当本地待识别物品集发生变化时,所述第一特征数据库相应进行更新。In some embodiments, when the local set of items to be identified changes, the first feature database is updated accordingly.
在一些实施例中,所述第一特征数据库是位于云端设备的第二特征数据库的子集,In some embodiments, the first feature database is a subset of the second feature database located in the cloud device,
所述第二特征数据库的建立方法包括:The method for establishing the second feature database includes:
各物品的图像的特征信息被发送至云端设备,并添加到所述第二特征数据库;或者,The feature information of the image of each item is sent to the cloud device and added to the second feature database; or,
各物品的图像被发送至云端设备,云端设备计算各物品的图像的特征信息,并添加到所述第二特征数据库。The image of each item is sent to the cloud device, and the cloud device calculates the feature information of the image of each item and adds it to the second feature database.
在一些实施例中,生成所述待识别物品的特征信息包括:In some embodiments, generating feature information of the item to be identified includes:
利用特征提取模型处理输入的待识别物品的图像信息,输出所述待识别物品的特征信息,Use the feature extraction model to process the input image information of the item to be identified, and output the characteristic information of the item to be identified,
其中,特征提取模型是通过训练基于特征的分类模型,并删除训练完成的所述分类模型的分类层得到的,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类。The feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training. The classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
在一些实施例中,所述第一特征数据库是位于云端设备的第二特征数据库的子集,In some embodiments, the first feature database is a subset of the second feature database located in the cloud device,
所述第二特征数据库的建立方法包括:The method for establishing the second feature database includes:
利用特征提取模型处理输入的各物品的图像信息,输出相应物品的特征信息,并添加到所述第二特征数据库,Use the feature extraction model to process the input image information of each item, output the feature information of the corresponding item, and add it to the second feature database,
其中,特征提取模型是通过训练基于特征的分类模型,并删除训练完成的所述分类模型的分类层得到的,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类。The feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training. The classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
在一些实施例中,所述分类模型为神经网络模型,所述特征提取模型包括卷积层、池化层和全连接层。In some embodiments, the classification model is a neural network model, and the feature extraction model includes a convolutional layer, a pooling layer, and a fully connected layer.
在一些实施例中,所述特征提取模型在不重新训练的情况下,被用于生成新增加物品的图像的特征信息,并添加到所述第二特征数据库。In some embodiments, the feature extraction model is used to generate feature information of the image of the newly added item without retraining, and is added to the second feature database.
在一些实施例中,所述特征提取模型在符合预设条件的情况下被重新训练,In some embodiments, the feature extraction model is retrained if the preset conditions are met,
其中的预设条件包括:新增加的物品达到预设的比例或数量,满足预设的时间间隔,或者,物品识别的准确率低于预设值。The preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
在一些实施例中,所述方法由售货机或云端设备执行。In some embodiments, the method is performed by a vending machine or cloud device.
本公开的一些实施例提出一种物品识别方法,包括:Some embodiments of the present disclosure provide an item identification method, including:
训练基于特征的分类模型,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类;Training a feature-based classification model, the classification model includes a classification layer, and the classification layer is used to classify images according to image feature information;
删除训练完成的所述分类模型的分类层得到特征提取模型;Delete the classification layer of the classification model after training to obtain a feature extraction model;
所述特征提取模型处理输入的各物品的图像,输出相应物品的图像的特征信息;The feature extraction model processes the input image of each item and outputs feature information of the image of the corresponding item;
各物品的图像的特征信息被添加到第二特征数据库,所述特征提取模型和所述第 二特征数据库用于进行物品识别。The feature information of the image of each item is added to the second feature database, and the feature extraction model and the second feature database are used for item identification.
在一些实施例中,所述特征提取模型在不重新训练的情况下,被用于生成新增加物品的图像的特征信息。In some embodiments, the feature extraction model is used to generate feature information of images of newly added items without retraining.
在一些实施例中,新增加的物品的图像来自售货机。In some embodiments, the image of the newly added item comes from a vending machine.
在一些实施例中,所述特征提取模型在符合预设条件的情况下被重新训练,In some embodiments, the feature extraction model is retrained if the preset conditions are met,
其中的预设条件包括:新增加的物品达到预设的比例或数量,满足预设的时间间隔,或者,物品识别的准确率低于预设值。The preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
在一些实施例中,还包括:所述特征提取模型和第二特征数据库的子集被下发到各个售货机,用于售货机进行物品识别,第二特征数据库的子集的数据对应于售货机的待识别物品集。In some embodiments, the method further includes: the feature extraction model and the subset of the second feature database are delivered to each vending machine for item identification by the vending machine, and the data of the subset of the second feature database corresponds to the sales The set of items to be identified on the freighter.
在一些实施例中,还包括:In some embodiments, it also includes:
接收售货机上传的待识别物品的图像信息;Receive the image information of the items to be identified uploaded by the vending machine;
基于所述特征提取模型提取所述待识别物品的特征信息;Extract feature information of the item to be identified based on the feature extraction model;
根据所述售货机的待识别物品集确定第二特征数据库的子集;Determining a subset of the second feature database according to the set of items to be identified of the vending machine;
将所述待识别物品的特征信息与第二特征数据库的子集中的各物品的图像的特征信息进行相似性比较;Comparing the feature information of the item to be identified with the feature information of the image of each item in the subset of the second feature database;
根据相似性比较结果确定所述待识别物品的种类。The type of the item to be identified is determined according to the similarity comparison result.
本公开的一些实施例提出一种云端设备,包括:Some embodiments of the present disclosure provide a cloud device, including:
存储器;以及Storage; and
耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行前述任意一个实施例中由云端设备执行的方法。A processor coupled to the memory, the processor configured to perform the method performed by the cloud device in any of the foregoing embodiments based on instructions stored in the memory.
本公开的一些实施例提出一种售货机,包括:Some embodiments of the present disclosure propose a vending machine, including:
存储器;以及Storage; and
耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行前述任意一个实施例中由售货机执行的方法。A processor coupled to the memory, the processor configured to perform the method performed by the vending machine in any of the foregoing embodiments based on instructions stored in the memory.
本公开的一些实施例提出一种物品识别系统,包括:Some embodiments of the present disclosure propose an item identification system, including:
前述的云端设备;以及The aforementioned cloud device; and
前述的若干售货机。Several of the aforementioned vending machines.
本公开的一些实施例提出一种非瞬时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述任意一个实施例中的方法。Some embodiments of the present disclosure propose a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method in any of the foregoing embodiments.
附图说明BRIEF DESCRIPTION
下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍。根据下面参照附图的详细描述,可以更加清楚地理解本公开,The drawings needed to be used in the embodiments or related technical descriptions will be briefly introduced below. The present disclosure can be more clearly understood from the following detailed description with reference to the drawings,
显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, without paying any creative labor, other drawings can also be obtained based on these drawings.
图1为本公开一些实施例的物品识别系统的示意图。FIG. 1 is a schematic diagram of an item identification system according to some embodiments of the present disclosure.
图2a为本公开一些实施例的由售货机12进行物品识别的流程示意图。FIG. 2a is a schematic flowchart of item identification by a vending machine 12 according to some embodiments of the present disclosure.
图2b为本公开一些实施例的由云端设备11进行物品识别的流程示意图。FIG. 2b is a schematic flowchart of item identification performed by the cloud device 11 according to some embodiments of the present disclosure.
图3示出了本公开一些实施例的第二特征数据库的建立示意图。FIG. 3 shows a schematic diagram of establishing a second feature database according to some embodiments of the present disclosure.
图4示出了本公开一些实施例的云端设备将部分物品的图像的特征信息下发到各个售货机的示意图。FIG. 4 shows a schematic diagram of the cloud device of some embodiments of the present disclosure delivering feature information of images of some items to each vending machine.
图5示出了本公开一些实施例的第二特征数据库针对新增加物品的更新示意图。FIG. 5 shows a schematic diagram of updating the second feature database for newly added items in some embodiments of the present disclosure.
图6为本公开一些实施例的云端设备的示意图。6 is a schematic diagram of a cloud device according to some embodiments of the present disclosure.
图7为本公开一些实施例的售货机的示意图。7 is a schematic diagram of a vending machine according to some embodiments of the present disclosure.
具体实施方式detailed description
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the drawings in the embodiments of the present disclosure.
发明人发现,相关技术的神经网络模型无法识别没有训练过的物品,如果有新的物品,神经网络模型需要被重新训练,此外,需要在全部可售物品范围进行物品识别,这些问题造成售货机的可运营性比较差。The inventor found that the neural network model of the related art cannot identify items that have not been trained. If there are new items, the neural network model needs to be retrained. In addition, item recognition needs to be performed on the range of all available items. These problems cause vending machines. The operability is relatively poor.
鉴于此,本公开提出一种物品识别方案,以解决前述的至少一个问题,提高售货机的可运营性。In view of this, the present disclosure proposes an item identification solution to solve at least one of the foregoing problems and improve the operability of the vending machine.
一方面,本公开基于图像特征比对的方式来识别物品,实现了一种新型的物品识别方案;再一方面,构建特征数据库的模型可以生成没有训练过的物品的特征,使得没有训练过的物品也能被识别;再一方面,构建特征数据库的模型不需要针对每种新物品重新进行训练;再一方面,可以在更小范围内进行物品识别,有利于降低物品错误识别的概率。On the one hand, the present disclosure recognizes items based on image feature comparison and implements a new type of item recognition scheme; on the other hand, the model of building a feature database can generate the characteristics of untrained items, making the untrained Items can also be identified; on the one hand, the model for building a feature database does not need to be retrained for each new item; on the other hand, item identification can be performed in a smaller range, which is helpful to reduce the probability of item misidentification.
图1为本公开一些实施例的物品识别系统的示意图。FIG. 1 is a schematic diagram of an item identification system according to some embodiments of the present disclosure.
如图1所示,该实施例的物品识别系统10包括:云端设备11以及若干售货机12。 这些售货机12例如可以位于不同的地点,能够实现自动售货。云端设备11与各个售货机12之间可以进行信息交互。As shown in FIG. 1, the article identification system 10 of this embodiment includes a cloud device 11 and a number of vending machines 12. These vending machines 12 can be located in different locations, for example, and can realize automatic vending. Information exchange between the cloud device 11 and each vending machine 12 is possible.
其中的云端设备11例如可以基于特征提取模型建立特征数据库。其中的售货机12例如可以采集待识别物品的图像。云端设备11或售货机12可以根据特征数据库和待识别物品的图像进行物品识别。下面结合图2a和图2b分别描述这两种物品识别方法。For example, the cloud device 11 may establish a feature database based on the feature extraction model. The vending machine 12 therein can collect images of items to be identified, for example. The cloud device 11 or the vending machine 12 can perform item identification based on the feature database and the image of the item to be identified. The two article identification methods are described below in conjunction with FIGS. 2a and 2b.
为了方便描述,位于售货机12的特征数据库设为第一特征数据库,位于云端设备11的特征数据库设为第二特征数据库。第二特征数据库通常包括全部物品的图像的特征信息。在一些实施例中,第一特征数据库是第二特征数据库的子集,第一特征数据库的数据对应于售货机本地待识别物品集(即该售货机售卖的物品)。当售货机本地待识别物品集发生变化时,第一特征数据库相应进行更新。当然,如果售货机的计算资源足够,或者,不考虑识别效率的情况下,第一特征数据库也可以是第二特征数据库的全集。For convenience of description, the feature database located in the vending machine 12 is set as the first feature database, and the feature database located in the cloud device 11 is set as the second feature database. The second feature database usually includes feature information of images of all items. In some embodiments, the first feature database is a subset of the second feature database, and the data of the first feature database corresponds to the set of items to be identified locally by the vending machine (ie, items sold by the vending machine). When the local to-be-recognized item set of the vending machine changes, the first feature database is updated accordingly. Of course, if the computing resources of the vending machine are sufficient, or, regardless of the recognition efficiency, the first feature database may also be the complete set of the second feature database.
在一些实施例中,如果由售货机12进行物品识别,则云端设备11可以将特征提取模型和各个第一特征数据库(即第二特征数据库中的部分物品的图像的特征信息)被下发到各个售货机12,然后,售货机12利用云端设备11下发的特征提取模型获取待识别物品的图像的特征信息,通过待识别物品的图像的特征信息与云端设备11下发的第一特征数据库中的各物品的图像的特征信息比对的方式进行物品识别。下面结合图2a描述该实施例。In some embodiments, if the item identification is performed by the vending machine 12, the cloud device 11 may send the feature extraction model and each first feature database (that is, feature information of an image of some items in the second feature database) to Each vending machine 12, and then, the vending machine 12 uses the feature extraction model issued by the cloud device 11 to obtain the feature information of the image of the item to be identified, and through the feature information of the image of the item to be identified and the first feature database issued by the cloud device 11 Article identification is carried out in a manner of comparing feature information of images of each article in. This embodiment is described below with reference to FIG. 2a.
图2a为本公开一些实施例的由售货机12进行物品识别的流程示意图。FIG. 2a is a schematic flowchart of item identification by a vending machine 12 according to some embodiments of the present disclosure.
如图2a所示,该实施例包括:步骤S21~S26。As shown in FIG. 2a, this embodiment includes steps S21-S26.
在步骤S21,云端设备11基于特征提取模型建立第二特征数据库(参考图3示出的第二特征数据库的建立示意图,id表示物品标识)。In step S21, the cloud device 11 builds a second feature database based on the feature extraction model (refer to the schematic diagram of establishing a second feature database shown in FIG. 3, and id represents an item identifier).
其中的特征提取模型例如可以通过步骤S211~212来获得:The feature extraction model can be obtained through steps S211 to 212, for example:
在步骤S211,利用训练数据训练基于特征的分类模型。分类模型包括分类层,分类层用于根据图像特征信息对图像进行分类。In step S211, the training data is used to train a feature-based classification model. The classification model includes a classification layer, which is used to classify images based on image feature information.
其中的训练数据例如包括物品的图像和对图像进行标注的物品种类,即标注图像中的是哪种物品。The training data includes, for example, the image of the item and the type of the item annotating the image, that is, which item is annotated in the image.
在步骤S212,删除训练完成的基于特征的分类模型的分类层得到特征提取模型。In step S212, the classification layer of the feature-based classification model after training is deleted to obtain a feature extraction model.
其中的基于特征的分类模型例如为神经网络模型,神经网络模型例如包括卷积 层、池化层、全连接层和分类层,相应的特征提取模型包括卷积层、池化层和全连接层。The feature-based classification model is, for example, a neural network model. The neural network model includes, for example, a convolutional layer, a pooling layer, a fully connected layer, and a classification layer, and the corresponding feature extraction model includes a convolutional layer, a pooling layer, and a fully connected layer. .
其中的分类层例如为softmax层。假如有1000种可售物品,则定义一个维度为1000的softmax层,softmax层会输出一个1000维的向量,向量的每个维度对应一种可售物品的概率。The classification layer is, for example, a softmax layer. If there are 1000 saleable items, define a softmax layer with a dimension of 1000. The softmax layer will output a 1000-dimensional vector, and each dimension of the vector corresponds to the probability of a saleable item.
假设每张图像经特征提取模型可以表征为一个D维度的特征向量,如256维。物品的种类数为N,每种物品利用K张图像提取特征,经特征提取模型可以得到N×K个D维的特征向量。可选的,对每种物品的K个特征向量进行聚类,根据聚类结果选取其中的m个特征向量来表征该种物品。其中的聚类算法例如可以选用K-means算法。最终特征数据库中包括N种物品的特征信息,每种物品的特征信息为m个D维的特征向量。It is assumed that each image can be characterized as a D-dimensional feature vector, such as 256 dimensions, through the feature extraction model. The number of types of items is N. Each item uses K images to extract features, and N×K D-dimensional feature vectors can be obtained through the feature extraction model. Optionally, K feature vectors of each item are clustered, and m feature vectors are selected according to the clustering result to characterize the item. For example, the clustering algorithm may use the K-means algorithm. The final feature database includes feature information of N items, and the feature information of each item is m D-dimensional feature vectors.
其中的建立第二特征数据库例如可以通过步骤S213~214来实现:The establishment of the second feature database may be implemented through steps S213 to 214, for example:
在步骤S213,特征提取模型处理输入的各物品的图像,输出相应物品的图像的特征信息。In step S213, the feature extraction model processes the input image of each item and outputs feature information of the image of the corresponding item.
在步骤S214,各物品的图像的特征信息被添加到第二特征数据库。In step S214, the feature information of the image of each item is added to the second feature database.
在步骤S22,云端设备11根据售货机12的待识别物品集提取第二特征数据库相应的子集作为该售货机12的第一特征数据库,将特征提取模型和第一特征数据库分别下发到相应的各个售货机12用于售货机进行物品识别。In step S22, the cloud device 11 extracts the corresponding subset of the second feature database as the first feature database of the vending machine 12 according to the set of items to be identified of the vending machine 12, and delivers the feature extraction model and the first feature database to the corresponding Each of the vending machines 12 is used to identify items by the vending machine.
例如,第二特征数据库中有1000种物品的特征信息,某个售货机1售卖其中的20种物品,则这20种物品的特征信息作为售货机1的第一特征数据库被下发到售货机1,使得售货机1可以在20种物品范围内进行物品识别,而不需要在1000种物品范围内进行物品识别,在更小范围内进行物品识别,有利于降低物品错误识别的概率和提高识别效率。但是,每台售货机具备全部物品的识别能力,因此,每台售货机可以根据需要从第二特征数据库中拉取任意物品的特征信息。For example, if the second feature database has feature information of 1,000 items, and a certain vending machine 1 sells 20 items, the feature information of these 20 items is sent to the vending machine as the first feature database of the vending machine 1 1. The vending machine 1 can perform item identification within the range of 20 items, without the need to perform item identification within the range of 1000 items, and the item identification within a smaller range is conducive to reducing the probability of incorrect identification of items and improving identification effectiveness. However, each vending machine has the ability to recognize all items, so each vending machine can pull feature information of any item from the second feature database as needed.
图4示出了云端设备将部分物品的图像的特征信息下发到各个售货机的示意图。例如,根据各个售货机售卖的物品的情况,售货机1售卖的物品id为1/3/4的物品的特征信息下发到售货机1,售货机2售卖的物品id为2/4/7的物品的特征信息下发到售货机2,售货机n售卖的物品id为9/11/12的物品的特征信息下发到售货机n。此外,如果不同物品的特征信息比较相似,则可以将相似的物品的特征信息分别下发到不同的售货机,使得同一台售货机中的不同物品的特征信息差异比较大,有利于提 高物品识别的准确性。FIG. 4 shows a schematic diagram of the cloud device delivering the feature information of the image of some items to each vending machine. For example, according to the situation of the items sold by each vending machine, the characteristic information of the item with the item ID of 1/3/4 sold by the vending machine 1 is sent to the vending machine 1, and the item ID of the item sold by the vending machine 2 is 2/4/7 The characteristic information of the item of the item is sent to the vending machine 2, and the characteristic information of the item with the item id of 9/11/12 sold by the vending machine n is sent to the vending machine n. In addition, if the feature information of different items is relatively similar, the feature information of similar items can be separately delivered to different vending machines, so that the difference in feature information of different items in the same vending machine is relatively large, which is conducive to improving item recognition Accuracy.
本领域技术人员可以理解,如果不考虑降低物品错误识别概率和提高识别效率的问题,云端设备11也可以将特征数据库中的全部物品的图像的特征信息下发到各个售货机,同样可以实现物品识别。Those skilled in the art can understand that if the problems of reducing the probability of incorrect identification of items and improving the efficiency of identification are not considered, the cloud device 11 can also send the feature information of the images of all the items in the feature database to each vending machine, and the items can also be realized Identify.
在步骤S23,某个售货机12采集待识别物品的图像。In step S23, a certain vending machine 12 collects an image of the item to be identified.
其中,售货机12例如可以利用摄像头采集待识别物品的图像。摄像头例如可以设置在售货机12中邻近柜门的位置,便于采集物品的图像。Among them, the vending machine 12 may use a camera to collect an image of the item to be identified. For example, the camera may be disposed in the vending machine 12 adjacent to the cabinet door, so as to collect images of the items.
在步骤S24,售货机12利用特征提取模型生成待识别物品的图像的特征信息。In step S24, the vending machine 12 uses the feature extraction model to generate feature information of the image of the item to be recognized.
在步骤S25,售货机12将生成的待识别物品的图像的特征信息与本机存储的第一特征数据库中的各物品的图像的特征信息进行相似性比较。In step S25, the vending machine 12 compares the generated feature information of the image of the item to be recognized with the feature information of the image of each item in the first feature database stored in the machine.
例如,计算待识别物品的图像的特征信息与特征数据库中的各物品的图像的特征信息之间的欧氏距离,欧式距离越小,说明越相似。For example, the Euclidean distance between the feature information of the image of the item to be recognized and the feature information of the image of each item in the feature database is calculated. The smaller the Euclidean distance, the more similar the description.
在步骤S26,售货机12根据相似性比较结果确定待识别物品的种类。In step S26, the vending machine 12 determines the type of the item to be identified based on the similarity comparison result.
通常情况下,待识别物品可以被确定为第一特征数据库中与待识别物品最相似的物品。Generally, the item to be identified can be determined as the item in the first feature database that is most similar to the item to be identified.
上述实施例基于图像特征比对的方式来识别物品,实现了一种新型的物品识别方案。此外,每台售货机具备全部物品的识别能力,但可以在其售卖的有限物品种类中进行物品识别,不需要在特征数据库的全部物品种类中进行物品识别,有利于降低物品错误识别的概率。The above-mentioned embodiment recognizes items based on the image feature comparison, and implements a new item identification scheme. In addition, each vending machine has the ability to identify all items, but it can perform item identification in the limited item types it sells. It is not necessary to perform item identification in all item types in the feature database, which is helpful to reduce the probability of item misidentification.
在另一些实施例中,如果由云端设备11进行物品识别,则售货机12采集待识别物品的图像,并上传到云端设备11,然后,云端设备11利用特征提取模型获取待识别物品的图像的特征信息,根据售货机12的待识别物品集确定第二特征数据库的子集(即第一特征数据库)通过待识别物品的图像的特征信息与第一特征数据库中的各个物品的图像的特征信息比对的方式进行物品识别,并将物品识别结果返回售货机12。下面结合图2b描述该实施例。In other embodiments, if the cloud device 11 performs item recognition, the vending machine 12 collects the image of the item to be identified and uploads it to the cloud device 11, and then the cloud device 11 uses the feature extraction model to obtain the image of the item to be identified Feature information, determine the subset of the second feature database (that is, the first feature database) according to the set of items to be recognized of the vending machine 12 through the feature information of the image of the item to be recognized and the feature information of the image of each item in the first feature database The article identification is performed in a comparison manner, and the article identification result is returned to the vending machine 12. The embodiment will be described below with reference to FIG. 2b.
图2b为本公开一些实施例的由云端设备11进行物品识别的流程示意图。FIG. 2b is a schematic flowchart of item identification performed by the cloud device 11 according to some embodiments of the present disclosure.
如图2b所示,该实施例包括:包括:步骤S31~S36。As shown in FIG. 2b, this embodiment includes the following steps: steps S31 to S36.
在步骤S31,与步骤S21相同,云端设备11基于特征提取模型建立第二特征数据库。云端设备11可以保存特征提取模型以及第二特征数据库。In step S31, as in step S21, the cloud device 11 builds a second feature database based on the feature extraction model. The cloud device 11 may save the feature extraction model and the second feature database.
在步骤S32,某个售货机12采集待识别物品的图像,并上传到云端设备11。In step S32, a certain vending machine 12 collects the image of the item to be identified and uploads it to the cloud device 11.
在步骤S33,云端设备11利用特征提取模型获取待识别物品的图像的特征信息。In step S33, the cloud device 11 uses the feature extraction model to acquire feature information of the image of the item to be identified.
在步骤S34,云端设备11根据该售货机12的待识别物品集确定第二特征数据库的子集(即第一特征数据库),将生成的待识别物品的图像的特征信息与第一特征数据库中的各个物品的图像的特征信息进行相似性比较。In step S34, the cloud device 11 determines a subset of the second feature database (ie, the first feature database) according to the set of items to be identified of the vending machine 12, and compares the generated feature information of the image of the item to be identified with the first feature database The feature information of the images of each item is compared for similarity.
本领域技术人员可以理解,如果不考虑降低物品错误识别概率和提高识别效率的问题,云端设备11也可以将待识别物品的图像的特征信息与第二特征数据库中的全部物品的图像的特征信息进行相似性比较,同样可以实现物品识别。Those skilled in the art can understand that if the problems of reducing the probability of incorrect recognition of items and improving the efficiency of recognition are not considered, the cloud device 11 may also compare the feature information of the image of the item to be recognized with the feature information of the images of all the items in the second feature database Similarity comparison can also realize item identification.
相似性比较方法参考前述,这里不再赘述。For the method of similarity comparison, please refer to the foregoing, which will not be repeated here.
在步骤S35,云端设备11根据相似性比较结果确定待识别物品的种类。In step S35, the cloud device 11 determines the type of the item to be identified according to the similarity comparison result.
通常情况下,待识别物品可以被确定为第一特征数据库中与待识别物品最相似的物品。Generally, the item to be identified can be determined as the item in the first feature database that is most similar to the item to be identified.
在步骤S36,云端设备11将物品识别结果返回该售货机12,该售货机12得到物品识别结果。In step S36, the cloud device 11 returns the item identification result to the vending machine 12, and the vending machine 12 obtains the item identification result.
上述实施例基于图像特征比对的方式来识别物品,实现了一种新型的物品识别方案。此外,特征提取和相似性比较等复杂运算由运算能力强大的云端设备实现,可以提高识别效率,售货机的性能要求大大降低。The above-mentioned embodiment recognizes items based on the image feature comparison, and implements a new item identification scheme. In addition, complex operations such as feature extraction and similarity comparison are implemented by cloud devices with powerful computing capabilities, which can improve recognition efficiency and greatly reduce the performance requirements of vending machines.
上述的物品识别方案对特征提取模型的应用有很多优点。下面具体说明。The above item recognition scheme has many advantages for the application of the feature extraction model. The following is a detailed description.
参考图5示出的第二特征数据库针对新增加物品的更新示意图。假设特征提取模型针对已有物品已经完成训练和特征提取,如果有新增加的物品,特征提取模型可以不重新训练,利用当前的特征提取模型,直接生成新增加的若干物品的图像的特征信息,新增加的物品的特征信息可以作为增量信息直接添加到第二特征数据库,并下发到售卖该新增加的物品的售货机。Refer to FIG. 5 for a schematic diagram of updating the second feature database for newly added items. Assuming that the feature extraction model has completed training and feature extraction for existing items, if there are newly added items, the feature extraction model may not be retrained, and the current feature extraction model is used to directly generate feature information of the images of several newly added items. The feature information of the newly added item can be directly added to the second feature database as incremental information and delivered to the vending machine that sells the newly added item.
由此可见,在本公开中,构建特征数据库的模型不需要针对每种新物品重新进行训练,模型训练的次数减少,构建特征数据库的模型可以生成没有训练过的物品的特征,使得没有训练过的物品也能被识别。这些特点使得本公开的方案具有良好的可运营性,极大地提升了新物品的上线速度。It can be seen that in this disclosure, the model for constructing the feature database does not need to be retrained for each new item, the number of model trainings is reduced, and the model for constructing the feature database can generate features of items that have not been trained, so that no training has been done Items can also be identified. These characteristics make the solution of the present disclosure have good operability, which greatly improves the online speed of new items.
在一些实施例中,特征提取模型在符合预设条件的情况下再被重新训练,其中的预设条件包括:新增加的物品达到预设的比例或数量,满足预设的时间间隔(如数月),或者,物品识别的准确率低于预设值。In some embodiments, the feature extraction model is retrained if it meets the preset conditions, where the preset conditions include: the newly added items reach a preset ratio or number, satisfying the preset time interval (such as the number Month), or, the accuracy of item identification is lower than the preset value.
特征提取模型可以基于原有物品的图像和新增加物品的图像进行重新训练。然 后,利用新的特征提取模型提取所有物品的图像的特征信息,从而生成新的特征数据库。The feature extraction model can be retrained based on the image of the original item and the image of the newly added item. Then, a new feature extraction model is used to extract the feature information of the images of all items, thereby generating a new feature database.
在一些实施例中,新增加的物品的图像可以来自实际售卖物品的售货机,而不受限于必须来自测试用售货机。实际售卖物品的售货机可能属于不同的运营商。In some embodiments, the image of the newly added item may come from a vending machine that actually sells the item, and is not limited to having to come from a test vending machine. Vending machines that actually sell items may belong to different operators.
在一些实施例中,新增加的物品的图像可以来自某个运营商。In some embodiments, the image of the newly added item may come from a certain operator.
各个运营商售卖的物品可能不同,但是这些物品的图像最终都可以参与特征提取模型的训练。即使某个运营商上传的物品图像较少,但利用全部运营商上传的物品图像,仍然可以训练得到高准确率的特征提取模型。相对于每个运营商独立的维护一个特征数据库来说,有利于降低成本。该特征提取模型的能力会随着上传物品图像的增多持续得到优化。The items sold by various operators may be different, but the images of these items can eventually participate in the training of the feature extraction model. Even if there are few item images uploaded by a certain operator, using all the item images uploaded by all operators can still train a feature extraction model with high accuracy. Relative to each operator independently maintaining a feature database, it is conducive to reducing costs. The capability of this feature extraction model will continue to be optimized as the number of uploaded item images increases.
图6为本公开一些实施例的云端设备的示意图。6 is a schematic diagram of a cloud device according to some embodiments of the present disclosure.
如图6所示,该实施例的云端设备11包括:As shown in FIG. 6, the cloud device 11 of this embodiment includes:
存储器111;以及Memory 111; and
耦接至所述存储器的处理器112,所述处理器被配置为基于存储在所述存储器中的指令,执行前述任意一个实施例中由云端设备11执行的方法。A processor 112 coupled to the memory is configured to execute the method performed by the cloud device 11 in any of the foregoing embodiments based on instructions stored in the memory.
图7为本公开一些实施例的售货机的示意图。7 is a schematic diagram of a vending machine according to some embodiments of the present disclosure.
如图7所示,该实施例的售货机12包括:As shown in FIG. 7, the vending machine 12 of this embodiment includes:
存储器121;以及Memory 121; and
耦接至所述存储器的处理器122,所述处理器被配置为基于存储在所述存储器中的指令,执行前述任意一个实施例中由售货机12执行的方法。A processor 122 coupled to the memory, the processor configured to perform the method performed by the vending machine 12 in any of the foregoing embodiments based on instructions stored in the memory.
其中,存储器111,121例如可以包括系统存储器、固定非易失性存储介质等。系统存储器例如存储有操作系统、应用程序、引导装载程序(Boot Loader)以及其他程序等。Among them, the memories 111, 121 may include, for example, a system memory, a fixed non-volatile storage medium, and the like. The system memory stores, for example, an operating system, application programs, a boot loader (Boot Loader), and other programs.
本公开的一些实施例提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述任意一个实施例中的物品识别方法。Some embodiments of the present disclosure propose a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the item identification method in any of the foregoing embodiments.
本领域内的技术人员应当明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用非瞬时性存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code .
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present disclosure shall be included in the protection of the present disclosure Within range.

Claims (20)

  1. 一种物品识别方法,包括:An item identification method, including:
    基于采集的待识别物品的图像信息,生成所述待识别物品的特征信息;Generating feature information of the item to be identified based on the collected image information of the item to be identified;
    将生成的所述待识别物品的特征信息与第一特征数据库中的各物品的图像的特征信息进行相似性比较;Comparing the generated feature information of the item to be identified with the feature information of the image of each item in the first feature database;
    根据相似性比较结果确定所述待识别物品的种类。The type of the item to be identified is determined according to the similarity comparison result.
  2. 如权利要求1所述的方法,其中,The method of claim 1, wherein
    所述第一特征数据库是接收的云端设备发送的数据,并被保存在本地;The first feature database is received data sent by the cloud device and is stored locally;
    所述第一特征数据库的数据对应于本地待识别物品集。The data of the first feature database corresponds to the local set of items to be identified.
  3. 如权利要求2所述的方法,其中,当本地待识别物品集发生变化时,所述第一特征数据库相应进行更新。The method of claim 2, wherein when the local set of items to be identified changes, the first feature database is updated accordingly.
  4. 如权利要求1所述的方法,其中,The method of claim 1, wherein
    所述第一特征数据库是位于云端设备的第二特征数据库的子集,The first feature database is a subset of the second feature database located in the cloud device,
    所述第二特征数据库的建立方法包括:The method for establishing the second feature database includes:
    各物品的图像的特征信息被发送至云端设备,并添加到所述第二特征数据库;The feature information of the image of each item is sent to the cloud device and added to the second feature database;
    或者,or,
    各物品的图像被发送至云端设备,云端设备计算各物品的图像的特征信息,并添加到所述第二特征数据库。The image of each item is sent to the cloud device, and the cloud device calculates the feature information of the image of each item and adds it to the second feature database.
  5. 如权利要求1所述的方法,其中,生成所述待识别物品的特征信息包括:The method of claim 1, wherein generating feature information of the item to be identified includes:
    利用特征提取模型处理输入的待识别物品的图像信息,输出所述待识别物品的特征信息,Use the feature extraction model to process the input image information of the item to be identified, and output the characteristic information of the item to be identified,
    其中,特征提取模型是通过训练基于特征的分类模型,并删除训练完成的所述分类模型的分类层得到的,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类。The feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training. The classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
  6. 如权利要求1所述的方法,其中,The method of claim 1, wherein
    所述第一特征数据库是位于云端设备的第二特征数据库的子集,The first feature database is a subset of the second feature database located in the cloud device,
    所述第二特征数据库的建立方法包括:The method for establishing the second feature database includes:
    利用特征提取模型处理输入的各物品的图像信息,输出相应物品的特征信息,并添加到所述第二特征数据库,Use the feature extraction model to process the input image information of each item, output the feature information of the corresponding item, and add it to the second feature database,
    其中,特征提取模型是通过训练基于特征的分类模型,并删除训练完成的所述分类模型的分类层得到的,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类。The feature extraction model is obtained by training a feature-based classification model and deleting the classification layer of the classification model after training. The classification model includes a classification layer, and the classification layer is used to perform image processing based on image feature information. classification.
  7. 如权利要求5或6所述的方法,其中,所述分类模型为神经网络模型,所述特征提取模型包括卷积层、池化层和全连接层。The method according to claim 5 or 6, wherein the classification model is a neural network model, and the feature extraction model includes a convolutional layer, a pooling layer, and a fully connected layer.
  8. 如权利要求6所述的方法,其中,The method of claim 6, wherein:
    所述特征提取模型在不重新训练的情况下,被用于生成新增加物品的图像的特征信息,并添加到所述第二特征数据库。Without retraining, the feature extraction model is used to generate feature information of the image of newly added items and add it to the second feature database.
  9. 如权利要求5、6或8所述的方法,其中,所述特征提取模型在符合预设条件的情况下被重新训练,The method according to claim 5, 6 or 8, wherein the feature extraction model is retrained if the preset conditions are met,
    其中的预设条件包括:新增加的物品达到预设的比例或数量,满足预设的时间间隔,或者,物品识别的准确率低于预设值。The preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
  10. 如权利要求1所述的方法,所述方法由售货机或云端设备执行。The method of claim 1, which is performed by a vending machine or a cloud device.
  11. 一种物品识别方法,包括:An item identification method, including:
    训练基于特征的分类模型,所述分类模型包括分类层,所述分类层用于根据图像特征信息对图像进行分类;Training a feature-based classification model, the classification model includes a classification layer, and the classification layer is used to classify images according to image feature information;
    删除训练完成的所述分类模型的分类层得到特征提取模型;Delete the classification layer of the classification model after training to obtain a feature extraction model;
    所述特征提取模型处理输入的各物品的图像,输出相应物品的图像的特征信息;The feature extraction model processes the input image of each item and outputs feature information of the image of the corresponding item;
    各物品的图像的特征信息被添加到第二特征数据库,所述特征提取模型和所述第二特征数据库用于进行物品识别。The feature information of the image of each item is added to the second feature database, and the feature extraction model and the second feature database are used for item identification.
  12. 如权利要求11所述的方法,其中,The method of claim 11, wherein
    所述特征提取模型在不重新训练的情况下,被用于生成新增加物品的图像的特征信息。The feature extraction model is used to generate feature information of images of newly added items without retraining.
  13. 如权利要求12所述的方法,其中,新增加的物品的图像来自售货机。The method of claim 12, wherein the newly added image of the item is from a vending machine.
  14. 如权利要求11所述的方法,其中,所述特征提取模型在符合预设条件的情况下被重新训练,The method of claim 11, wherein the feature extraction model is retrained if the preset conditions are met,
    其中的预设条件包括:新增加的物品达到预设的比例或数量,满足预设的时间间隔,或者,物品识别的准确率低于预设值。The preset conditions include: the newly added item reaches a preset ratio or quantity, meets a preset time interval, or the accuracy of item identification is lower than a preset value.
  15. 如权利要求11所述的方法,还包括:The method of claim 11, further comprising:
    所述特征提取模型和第二特征数据库的子集被下发到各个售货机,用于售货机进行物品识别,第二特征数据库的子集的数据对应于售货机的待识别物品集。The feature extraction model and the subset of the second feature database are distributed to each vending machine for item identification by the vending machine, and the data of the subset of the second feature database corresponds to the item set to be identified of the vending machine.
  16. 如权利要求11所述的方法,还包括:The method of claim 11, further comprising:
    接收售货机上传的待识别物品的图像信息;Receive the image information of the items to be identified uploaded by the vending machine;
    基于所述特征提取模型提取所述待识别物品的特征信息;Extract feature information of the item to be identified based on the feature extraction model;
    根据所述售货机的待识别物品集确定第二特征数据库的子集;Determining a subset of the second feature database according to the set of items to be identified of the vending machine;
    将所述待识别物品的特征信息与第二特征数据库的子集中的各物品的图像的特征信息进行相似性比较;Comparing the feature information of the item to be identified with the feature information of the image of each item in the subset of the second feature database;
    根据相似性比较结果确定所述待识别物品的种类。The type of the item to be identified is determined according to the similarity comparison result.
  17. 一种云端设备,包括:A cloud device, including:
    存储器;以及Storage; and
    耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行权利要求1、5-9、11-16中任一项所述的方法。A processor coupled to the memory, the processor configured to perform the method of any one of claims 1, 5-9, 11-16 based on instructions stored in the memory.
  18. 一种售货机,包括:A vending machine, including:
    存储器;以及Storage; and
    耦接至所述存储器的处理器,所述处理器被配置为基于存储在所述存储器中的指令,执行权利要求1-5任一项所述的方法。A processor coupled to the memory, the processor configured to perform the method of any one of claims 1-5 based on instructions stored in the memory.
  19. 一种物品识别系统,包括:An item identification system, including:
    权利要求17所述的云端设备;以及The cloud device of claim 17; and
    权利要求18所述的若干售货机。A number of vending machines as claimed in claim 18.
  20. 一种非瞬时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求1-16中任一项所述的方法。A non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method of any one of claims 1-16.
PCT/CN2019/099757 2018-12-29 2019-08-08 Article identification method, device and system WO2020134099A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811628625.7 2018-12-29
CN201811628625.7A CN109711473A (en) 2018-12-29 2018-12-29 Item identification method, equipment and system

Publications (1)

Publication Number Publication Date
WO2020134099A1 true WO2020134099A1 (en) 2020-07-02

Family

ID=66258009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099757 WO2020134099A1 (en) 2018-12-29 2019-08-08 Article identification method, device and system

Country Status (2)

Country Link
CN (1) CN109711473A (en)
WO (1) WO2020134099A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179382A1 (en) * 2021-02-25 2022-09-01 山东英信计算机技术有限公司 Object recognition method and apparatus, and device and medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7085370B2 (en) * 2017-03-16 2022-06-16 株式会社リコー Diagnostic equipment, diagnostic systems, diagnostic methods and programs
CN109711473A (en) * 2018-12-29 2019-05-03 北京沃东天骏信息技术有限公司 Item identification method, equipment and system
CN110674844A (en) * 2019-08-27 2020-01-10 广州伊思高科技有限公司 Intelligent container increment learning training method
CN110826481A (en) * 2019-11-01 2020-02-21 北京云迹科技有限公司 Data processing method, commodity identification method, server and storage medium
CN113465251B (en) * 2020-05-28 2022-10-18 海信集团有限公司 Intelligent refrigerator and food material identification method
CN113808116A (en) * 2021-09-24 2021-12-17 无锡精质视觉科技有限公司 Intelligent detection method and system based on image recognition and product detection system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170309113A1 (en) * 2014-10-21 2017-10-26 Nec Corporation Vending machine recognition apparatus, vending machine recognition method, and recording medium
CN107833363A (en) * 2017-09-28 2018-03-23 中南大学 Self-help vending machine automated stock control system and method based on image recognition
CN108492258A (en) * 2018-01-17 2018-09-04 天津大学 A kind of radar image denoising method based on generation confrontation network
CN109711473A (en) * 2018-12-29 2019-05-03 北京沃东天骏信息技术有限公司 Item identification method, equipment and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170302641A1 (en) * 2014-03-28 2017-10-19 Confia Systems, Inc. Secure and Anonymized Authentication
CN105224066A (en) * 2014-06-03 2016-01-06 北京创思博德科技有限公司 A kind of gesture identification method based on high in the clouds process
CN107316023A (en) * 2017-06-27 2017-11-03 昝立民 A kind of face identification system for being used to share equipment
CN108269369A (en) * 2017-09-27 2018-07-10 中山市宾哥网络科技有限公司 Settle accounts case and its settlement method
CN107730168B (en) * 2017-09-28 2021-10-01 中南大学 Automatic vending machine inventory management system and method based on image recognition
CN108960119B (en) * 2018-06-28 2021-06-08 武汉市哈哈便利科技有限公司 Commodity recognition algorithm for multi-angle video fusion of unmanned sales counter
CN108647671B (en) * 2018-06-28 2023-12-22 武汉市哈哈便利科技有限公司 Optical identification visual identification method and unmanned sales counter based on same
CN108932321B (en) * 2018-06-29 2020-10-23 金蝶软件(中国)有限公司 Face image retrieval method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170309113A1 (en) * 2014-10-21 2017-10-26 Nec Corporation Vending machine recognition apparatus, vending machine recognition method, and recording medium
CN107833363A (en) * 2017-09-28 2018-03-23 中南大学 Self-help vending machine automated stock control system and method based on image recognition
CN108492258A (en) * 2018-01-17 2018-09-04 天津大学 A kind of radar image denoising method based on generation confrontation network
CN109711473A (en) * 2018-12-29 2019-05-03 北京沃东天骏信息技术有限公司 Item identification method, equipment and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179382A1 (en) * 2021-02-25 2022-09-01 山东英信计算机技术有限公司 Object recognition method and apparatus, and device and medium

Also Published As

Publication number Publication date
CN109711473A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
WO2020134099A1 (en) Article identification method, device and system
Shen et al. Deep asymmetric pairwise hashing
WO2019233421A1 (en) Image processing method and device, electronic apparatus, and storage medium
Wang et al. Deep semantic mapping for cross-modal retrieval
CN111324774B (en) Video duplicate removal method and device
US11954572B2 (en) Optimizing training data for image classification
Jing et al. Cross-modal center loss for 3D cross-modal retrieval
CN109858505B (en) Classification identification method, device and equipment
US20110249899A1 (en) Recognition device, recognition method, and program
CN110232373A (en) Face cluster method, apparatus, equipment and storage medium
Paoletti et al. Subspace clustering for action recognition with covariance representations and temporal pruning
WO2019045802A1 (en) Distance metric learning using proxies
Simon et al. The whole is more than its parts? From explicit to implicit pose normalization
Lee et al. Learnable dynamic temporal pooling for time series classification
WO2021030899A1 (en) Automated image retrieval with graph neural network
CN110598065A (en) Data mining method and device and computer readable storage medium
Zhao et al. Metric learning driven multi-task structured output optimization for robust keypoint tracking
Huang et al. Coarse-to-fine face alignment with multi-scale local patch regression
Delussu et al. Online domain adaptation for person re-identification with a human in the loop
Shao et al. Learning deep representation from coarse to fine for face alignment
Zhu et al. Self-supervised universal domain adaptation with adaptive memory separation
Hu et al. Multi-task image clustering through correlation propagation
JP2013025398A (en) Discriminator generation device, method and program, and class recognition unit, method and program
WO2020135054A1 (en) Method, device and apparatus for video recommendation and storage medium
Wanyan et al. Active exploration of multimodal complementarity for few-shot action recognition

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19903296

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19903296

Country of ref document: EP

Kind code of ref document: A1