Intelligent shopping cart commodity identification method, medium and computer

Through camera shooting and feature extraction network model to identify items in the shopping cart, combined with the weight sensing module, the accuracy and anti-theft issues of product identification in smart shopping carts are solved, and efficient product identification without manual scanning is achieved.

CN118608757AInactive Publication Date: 2024-09-06DUOLIGOU TECH (GUANGZHOU) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410639699.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing smart shopping carts identify the products in the shopping cart, users are required to manually scan the QR code, which affects the accuracy. It is also difficult to determine whether the products placed in the shopping cart are consistent with the scanned products, which poses an anti-theft problem.

Method used

A camera is used to capture the items in the shopping cart. Through subject recognition and cropping of the photos, the feature extraction network model is input for processing, matching the features in the product database, and combined with the weight sensing module to determine the identity of the items.

Benefits of technology

There is no need for users to manually scan codes, which improves the accuracy and speed of identification, reduces the computing power of feature extraction, and solves the problem of commodity theft prevention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608757A
    Figure CN118608757A
Patent Text Reader

Abstract

The invention provides an intelligent shopping cart commodity identification method, a medium and a computer, objects in a shopping cart basket are shot, main body identification is carried out, the newly added objects in the shopping cart basket can be positioned and cut, the cut commodities are input into a feature extraction model to extract features, and the features of the commodities are extracted. According to the technical scheme, the influence of other articles in the basket on feature extraction can be avoided, the computing power required by feature extraction can be reduced, the feature extraction speed can be increased, and the extracted article features are compared with the commodity features pre-stored in the database to determine the commodity data corresponding to the articles, so that the accuracy of feature extraction is improved. By the adoption of the method, a shopping cart user does not need to manually scan codes of commodities, the commodities in the cart basket can be directly classified and judged through the shopping cart, and the anti-theft problem of the commodities is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of commodity recommendation, and more specifically, to a smart shopping cart commodity identification method, medium and computer. Background Art

[0002] Smart shopping carts are already a common device in supermarkets. In addition to providing the basic function of placing goods in traditional shopping carts, they can also provide users with related functions such as path navigation, product recommendations, and event introductions. In addition, some smart shopping carts can provide customers with the function of not having to queue up to pay. Just put the goods in the shopping cart, and the shopping cart can automatically identify and price the goods in the shopping cart. Users do not need to queue up to pay, which improves the shopping experience of shoppers. However, there are still the following defects in actual use: the identification of goods in the shopping cart mainly uses the barcode scanner installed on the smart shopping cart. After the user selects the required product, the barcode of the product is placed under the barcode scanner to complete the scanning of the product through the barcode scanner, and then the product is placed in the shopping cart and waits for the final settlement. With this settlement method, on the one hand, users need to scan the code manually, which affects the accuracy of shopping. On the other hand, it is difficult to determine whether the goods placed in the shopping cart by the user are consistent with the scanned goods, and it is difficult to solve the anti-theft problem. Summary of the invention

[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a smart shopping cart product identification method, medium and computer to overcome the shortcoming of the prior art that it is impossible to identify whether the product scanned by the user and the product placed in the shopping cart are the same product.

[0004] The above technical objectives of the present invention are achieved through the following technical solutions: A method for identifying goods in an intelligent shopping cart, comprising:

[0005] S1. Take a photo of the shopping cart to obtain an initial photo of the shopping cart basket;

[0006] S2, performing subject recognition on the initial photo, and cropping the initial photo according to the recognition result to obtain a cropped photo;

[0007] S3, processing the cropped photos, and inputting the processed cropped photos into a feature extraction network model for processing to obtain object features;

[0008] S4. Match the item features with the item features in the item database to obtain item data corresponding to the items in the shopping cart basket.

[0009] Optionally, photographing the shopping cart to obtain an initial photograph of the shopping cart basket includes:

[0010] At predetermined intervals, photograph the shopping cart basket to obtain a number of basket photos;

[0011] The last basket photo is compared with the previous basket photo to determine whether there are new items; if so, the last basket photo is recorded as the initial photo.

[0012] Optionally, the subject recognition of the initial photo includes:

[0013] The initial photo is preprocessed to obtain the first enhanced photo with a size of 640*640

[0014] The first enhanced photo is input into a pre-trained object detection neural network for recognition, and at least one bounding box enclosing the product and bounding box data [x, y, w, h, c] corresponding to the bounding box are obtained; wherein x represents the horizontal coordinate of the upper left corner vertex of the bounding box in the original photo, y represents the vertical coordinate of the upper left corner vertex of the bounding box in the original photo, w represents the width of the bounding box, h represents the height of the bounding box, and c represents the confidence that the item enclosed by the bounding box is a newly added item.

[0015] Optionally, cropping the initial photo according to the recognition result to obtain a cropped photo includes:

[0016] According to the confidence corresponding to the bounding box data, a reliable bounding box having a confidence greater than a preset confidence threshold is screened out;

[0017] The initial photo is cropped according to the bounding box data corresponding to the reliable bounding box to obtain a cropped photo that corresponds one-to-one to the reliable bounding box.

[0018] Optionally, the cropped photo is processed and input into a feature extraction network model for processing to obtain object features, including:

[0019] The cropped photo is resized to obtain a second enhanced photo with a size of 224*224;

[0020] The second enhanced photo is input into the pre-trained ResNet50 feature extraction network model for feature extraction, and P item feature vectors N = [a1, a2, ..., a 2048 ].

[0021] Optionally, matching the item features with the item features in a product database to obtain product data corresponding to the items in the shopping cart basket includes:

[0022] Compare the P item feature vectors N with the Q product feature vectors M stored in the product database one by one to obtain corresponding P*Q comparison results;

[0023] Sort all the comparison results from high to low to obtain a comparison result sequence;

[0024] It is determined whether the first five comparison results in the comparison result sequence correspond to the same commodity. If so, the commodity data corresponding to the commodity is used as the item matching result.

[0025] Optionally, the P item feature vectors N are respectively compared one by one with the Q product feature vectors M stored in the product database to obtain corresponding P*Q comparison results, including:

[0026] Calculate the feature vector of each item N = [a1, a2, ..., a 2048 ] and each product feature vector M = [b1, b2, ..., b 2048 ], including:

[0027]

[0028] Optionally, the determining whether the first five comparison results in the comparison result sequence correspond to the same product further includes:

[0029] If not, the weight of the item is obtained through a weight sensing module on the smart shopping cart;

[0030] Obtain five commodity weights corresponding to the first five comparison results in the comparison result sequence from the database;

[0031] The weight of the item is compared with the weights of the five commodities one by one, and it is determined whether there is a commodity weight equal to the weight of the item. If so, the commodity data corresponding to the commodity weight is used as the matching result of the item. If not, an alarm message is returned.

[0032] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0033] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0034] In summary, the present invention has the following beneficial effects:

[0035] The present application provides a method for identifying goods in a shopping cart basket. By photographing the goods in the shopping cart basket and performing subject recognition, the newly added goods in the shopping cart basket can be located and cut, and the cut goods are input into a feature extraction model to extract features, which can avoid the influence of other goods in the basket on the feature extraction, and can also reduce the computing power required for feature extraction, improve the speed of feature extraction, and compare the extracted item features with the product features pre-stored in a database to determine the product data corresponding to the item. The method of the present application does not require the shopping cart user to manually scan the code of the product, and can also use the shopping cart to directly classify and judge the products in the basket, thereby solving the problem of product theft prevention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a flow chart of a smart shopping cart commodity identification method of the present invention;

[0037] Figure 2 1 is a diagram showing the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.

[0039] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0040] In the present invention, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may include the first and second features being in direct contact, or may include the first and second features being in contact not directly but through another feature between them. Moreover, the first feature being "above", "above" and "above" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature includes the first feature being directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature. The terms "vertical", "horizontal", "left", "right", "above", "below" and similar expressions are for illustrative purposes only, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0041] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.

[0042] The present invention provides a method for identifying goods in an intelligent shopping cart, such as Figure 1 As shown, including:

[0043] S1. Take a photo of the shopping cart to obtain an initial photo of the shopping cart basket;

[0044] S2, performing subject recognition on the initial photo, and cropping the initial photo according to the recognition result to obtain a cropped photo;

[0045] S3, processing the cropped photos, and inputting the processed cropped photos into a feature extraction network model for processing to obtain object features;

[0046] S4. Match the item features with the item features in the item database to obtain item data corresponding to the items in the shopping cart basket.

[0047] In practical applications, in order to enable users of smart shopping carts to avoid having to manually scan and register products during shopping, the present application proposes a shopping cart product identification method. First, a camera pre-installed on the shopping cart is used to continuously photograph the basket of the shopping cart to determine whether there are new items in the basket of the shopping cart. If so, the items in the basket of the shopping cart are located. After the positioning is completed, the photo is cropped according to the positioning data so that the cropped photo contains only the items to be identified as much as possible. The feature information in the photo is reduced by cropping to reduce the need for computing resources in the feature extraction network during the calculation process. Then, feature extraction is performed on the cropped photo to obtain item features. Since customers usually put non-commodity items, such as handbags, in the basket, it is necessary to compare with the product features in the product database to determine whether the items in the basket are products sold in the supermarket. In the case where the items are products, the product data corresponding to the products is determined to facilitate shoppers to view relevant information. In summary, the method of the present application eliminates the need for shopping cart users to manually scan product codes, and the shopping cart can be used to directly classify and judge the products in the cart basket, thereby solving the problem of product theft prevention.

[0048] Furthermore, photographing the shopping cart to obtain an initial photograph of the shopping cart basket includes:

[0049] At predetermined intervals, photograph the shopping cart basket to obtain a number of basket photos;

[0050] The last basket photo is compared with the previous basket photo to determine whether there are new items; if so, the last basket photo is recorded as the initial photo.

[0051] In actual applications, since the shopping cart is used continuously, it is necessary to continuously take photos of the basket of the shopping cart, and continuously compare the photos to determine whether there are items put into the basket. During the continuous shooting process, it is only necessary to compare the last photo with the previous photo to determine whether there are new items in the basket of the shopping cart.

[0052] Furthermore, the subject recognition of the initial photo includes:

[0053] The initial photo is preprocessed to obtain the first enhanced photo with a size of 640*640

[0054] The first enhanced photo is input into a pre-trained object detection neural network for recognition, and at least one bounding box enclosing the product and bounding box data [x, y, w, h, c] corresponding to the bounding box are obtained; wherein x represents the horizontal coordinate of the upper left corner vertex of the bounding box in the original photo, y represents the vertical coordinate of the upper left corner vertex of the bounding box in the original photo, w represents the width of the bounding box, h represents the height of the bounding box, and c represents the confidence that the item enclosed by the bounding box is a newly added item.

[0055] In practical applications, preprocessing the processed photos can reduce the demand for resources in the target detection process and enable the target detection model to better perceive the newly added items in the picture. Specifically, in this embodiment, the target detection neural network model uses the YOLO V5 model to detect the items in the photo. After detecting the relevant items, the YOLO V5 model will use the bounding box to select the items, and in the output result, the bounding box data is output synchronously, and the bounding box data includes [x, y, w, h, c]; because in this application, the purpose of target detection is to detect the newly added items in the basket, so the meaning of the confidence level is: the probability that the item selected by the bounding box is the newly added item in the basket.

[0056] Furthermore, the step of cropping the initial photo according to the recognition result to obtain a cropped photo includes:

[0057] According to the confidence corresponding to the bounding box data, a reliable bounding box having a confidence greater than a preset confidence threshold is screened out;

[0058] The initial photo is cropped according to the bounding box data corresponding to the reliable bounding box to obtain a cropped photo that corresponds one-to-one to the reliable bounding box.

[0059] In actual applications, since the detection of items is ongoing, it is only necessary to judge the newly added items and continuously count the items in the cart basket. Specifically, by comparing the confidence level with the confidence threshold, the newly added items can be determined; then, according to the bounding box data, the original photo is cropped to obtain the corresponding cropped photo with the newly added items as the main content. In actual use, there may be multiple items placed in the shopping cart at the same time. Therefore, it is necessary to mark and select all the items according to the actual number of newly added items to avoid missing the newly added items. That is to say, in the result of target detection, the number of bounding boxes obtained is not only one, but there can be multiple bounding boxes. Therefore, it is also necessary to judge according to the confidence level of the bounding box, and select all the bounding boxes with a confidence level greater than the confidence threshold to avoid missing the newly added items.

[0060] Furthermore, the cropped photos are processed and input into a feature extraction network model for processing to obtain object features, including:

[0061] The cropped photo is resized to obtain a second enhanced photo with a size of 224*224;

[0062] The second enhanced photo is input into the pre-trained ResNet50 feature extraction network model for feature extraction, and P item feature vectors N = [a1, a2, ..., a 2048 ].

[0063] In practical applications, the purpose of resizing photos is to keep the dimensions of the input photos consistent when they are converted into feature vectors, so as to avoid inconsistent feature dimensions and difficulty in mutual comparison. The data is input into the pre-trained ResNet50 feature extraction network model for feature extraction, and the item feature vector with a dimension of 2048 output by the ResNet50 feature extraction network model can be obtained. i Represents the feature vector of the item in the i-th dimension. The ResNet50 feature extraction network model removes the last fully connected layer, so the output feature is 1*1*2048.

[0064] Furthermore, matching the item features with the item features in the item database to obtain the item data corresponding to the item in the shopping cart basket includes:

[0065] Compare the P item feature vectors N with the Q product feature vectors M stored in the product database one by one to obtain corresponding P*Q comparison results;

[0066] Sort all the comparison results from high to low to obtain a comparison result sequence;

[0067] It is determined whether the first five comparison results in the comparison result sequence correspond to the same commodity. If so, the commodity data corresponding to the commodity is used as the item matching result.

[0068] In practical applications, in order to reduce the probability of misidentification, in this application, multiple different convolution methods are provided, and finally multiple item feature vectors with a dimension of 2048 are output. These item positive vectors are matched with the product feature vectors in the database respectively to obtain products that match the items.

[0069] For example, there are 200 product feature vectors in the product database; in this application, the number of 1*1*2048 item feature vectors output by the ResNet50 neural network is 8, so these 8 item feature vectors are used to match the 200 product feature vectors respectively, and 8 groups of result sets are obtained. Each result set contains 200 comparison results, and a total of 8*200=1600 comparison results. Finally, in the process of product judgment, these 1600 comparison results are put together and sorted from high to low, and the top 5 comparison results are obtained for the next step of judgment. First, determine whether the product feature vectors in these five comparison results correspond to the same product. If so, then this product can be directly used as the matching result corresponding to the product. If not, you need to execute the subsequent steps. Subsequent steps include: if not, obtaining the weight of the item through the weight sensing module on the smart shopping cart; obtaining the five commodity weights corresponding to the first five comparison results in the comparison result sequence from the database; comparing the item weight with the five commodity weights one by one, and determining whether there is a commodity weight equal to the item weight, if so, using the commodity data corresponding to the commodity weight as the matching result of the item, if not, returning an alarm message. In actual applications, although the matching results are inconsistent, after matching and sorting, the several groups of data with the closest Euclidean distance can still be regarded as the commodities closest to the item. Therefore, the weight of the newly added item is determined by the weight sensing device on the shopping cart, and compared with the weight data stored in the database, the corresponding item details can be obtained. When the corresponding commodity cannot be matched, it means that the item does not belong to the commodity, or there is a matching error. The user can be prompted to re-operate or pay attention to the item by returning a warning message to avoid missing items.

[0070] The ResNet50 neural network includes: the first stage, the second stage, the third stage, the fourth stage and the fifth stage;

[0071] The first stage includes a convolution layer, a BN layer, and a pooling layer; the number of image channels input to the first stage is: (3,224,224); the number of image channels output from the first stage is: (64,56,56);

[0072] The second stage includes: one first bottleneck layer and two second bottleneck layers; the number of image channels output by the second stage is: (256, 56, 56);

[0073] The third stage includes: one first bottleneck layer and three second bottleneck layers; the number of image channels output by the third stage is: (512, 28, 28);

[0074] The fourth stage includes: one first bottleneck layer and five second bottleneck layers; the number of image channels output by the fourth stage is: (1024, 14, 14);

[0075] The fifth stage includes: one first bottleneck layer and two second bottleneck layers; the number of image channels output by the fifth stage is: (2048, 1, 1);

[0076] The first bottleneck layer includes four convolutional layers and one activation function layer; the number of input and output channels of the first bottleneck layer is different; the activation function of the first bottleneck layer is RELU;

[0077] The second bottleneck layer includes: three convolutional layers and an activation function layer; the number of input and output channels of the second bottleneck layer is the same, and the activation function of the second bottleneck layer is RELU.

[0078] Furthermore, the P item feature vectors N are respectively compared one by one with the Q product feature vectors M stored in the product database to obtain corresponding P*Q comparison results, including:

[0079] Calculate the feature vector of each item N = [a1, a2, ..., a 2048 ] and each product feature vector M = [b1, b2, ..., b 2048 ], including:

[0080]

[0081] In practical applications, Euclidean distance is a calculation method based on the Euclidean distance formula, which can be used to measure the straight-line distance between two points. In product recognition, we can regard the product image as a point in the vector space. Therefore, calculating the Euclidean distance between two product images can be used to measure the similarity of the two product images.

[0082] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 2 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a smart shopping cart product recognition method is implemented.

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

[0084] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0085] S1. Take a photo of the shopping cart to obtain an initial photo of the shopping cart basket;

[0086] S2, performing subject recognition on the initial photo, and cropping the initial photo according to the recognition result to obtain a cropped photo;

[0087] S3, processing the cropped photos, and inputting the processed cropped photos into a feature extraction network model for processing to obtain object features;

[0088] S4. Match the item features with the item features in the item database to obtain item data corresponding to the items in the shopping cart basket.

[0089] In one embodiment, photographing the shopping cart to obtain an initial photograph of the shopping cart basket includes:

[0090] At predetermined intervals, photograph the shopping cart basket to obtain a number of basket photos;

[0091] The last basket photo is compared with the previous basket photo to determine whether there are new items; if so, the last basket photo is recorded as the initial photo.

[0092] In one embodiment, the subject recognition of the initial photo includes:

[0093] The initial photo is preprocessed to obtain the first enhanced photo with a size of 640*640

[0094] The first enhanced photo is input into a pre-trained object detection neural network for recognition, and at least one bounding box enclosing the product and bounding box data [x, y, w, h, c] corresponding to the bounding box are obtained; wherein x represents the horizontal coordinate of the upper left corner vertex of the bounding box in the original photo, y represents the vertical coordinate of the upper left corner vertex of the bounding box in the original photo, w represents the width of the bounding box, h represents the height of the bounding box, and c represents the confidence that the item enclosed by the bounding box is a newly added item.

[0095] In one embodiment, the step of cropping the initial photo according to the recognition result to obtain a cropped photo includes:

[0096] According to the confidence corresponding to the bounding box data, a reliable bounding box having a confidence greater than a preset confidence threshold is screened out;

[0097] The initial photo is cropped according to the bounding box data corresponding to the reliable bounding box to obtain a cropped photo that corresponds one-to-one to the reliable bounding box.

[0098] In one embodiment, the cropped photo is processed and input into a feature extraction network model for processing to obtain object features, including:

[0099] The cropped photo is resized to obtain a second enhanced photo with a size of 224*224;

[0100] The second enhanced photo is input into the pre-trained ResNet50 feature extraction network model for feature extraction, and P item feature vectors N = [a1, a2, ..., a 2048 ].

[0101] In one embodiment, matching the item features with the item features in a product database to obtain product data corresponding to the items in the shopping cart basket includes:

[0102] Compare the P item feature vectors N with the Q product feature vectors M stored in the product database one by one to obtain corresponding P*Q comparison results;

[0103] Sort all the comparison results from high to low to obtain a comparison result sequence;

[0104] It is determined whether the first five comparison results in the comparison result sequence correspond to the same commodity. If so, the commodity data corresponding to the commodity is used as the item matching result.

[0105] In one embodiment, the P item feature vectors N are respectively compared one by one with the Q product feature vectors M stored in the product database to obtain corresponding P*Q comparison results, including:

[0106] Calculate the feature vector of each item N = [a1, a2, ..., a 2048 ] and each product feature vector M = [b1, b2, ..., b 2048 ], including:

[0107]

[0108] In one embodiment, determining whether the first five comparison results in the comparison result sequence correspond to the same product further includes:

[0109] If not, the weight of the item is obtained through a weight sensing module on the smart shopping cart;

[0110] Obtain five commodity weights corresponding to the first five comparison results in the comparison result sequence from the database;

[0111] The weight of the item is compared with the weights of the five commodities one by one, and it is determined whether there is a commodity weight equal to the weight of the item. If so, the commodity data corresponding to the commodity weight is used as the matching result of the item. If not, an alarm message is returned.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

[0114] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for identifying goods in an intelligent shopping cart, characterized in that: include: S1. Take a photo of the shopping cart to obtain an initial photo of the shopping cart basket; S2, performing subject recognition on the initial photo, and cropping the initial photo according to the recognition result to obtain a cropped photo; S3, processing the cropped photos, and inputting the processed cropped photos into a feature extraction network model for processing to obtain object features; S4. Match the item features with the item features in the item database to obtain item data corresponding to the items in the shopping cart basket.

2. The method for identifying goods in an intelligent shopping cart according to claim 1, characterized in that: The step of photographing the shopping cart to obtain an initial photograph of the shopping cart basket includes: At predetermined intervals, photograph the shopping cart basket to obtain a number of basket photos; The last basket photo is compared with the previous basket photo to determine whether there are new items; if so, the last basket photo is recorded as the initial photo.

3. The method for identifying goods in an intelligent shopping cart according to claim 1, characterized in that: The subject recognition of the initial photo includes: The initial photo is preprocessed to obtain a first enhanced photo with a size of 640*640. The first enhanced photo is input into a pre-trained object detection neural network for recognition to obtain at least one bounding box surrounding the product and bounding box data [x, y, w, h, c] corresponding to the bounding box; wherein x represents the horizontal coordinate of the upper left corner vertex of the bounding box in the original photo, y represents the vertical coordinate of the upper left corner vertex of the bounding box in the original photo, w represents the width of the bounding box, h represents the height of the bounding box, and c represents the confidence that the item enclosed by the bounding box is a newly added item.

4. The method for identifying goods in an intelligent shopping cart according to claim 3, characterized in that: The step of cropping the initial photo according to the recognition result to obtain a cropped photo includes: According to the confidence corresponding to the bounding box data, a reliable bounding box having a confidence greater than a preset confidence threshold is screened out; The initial photo is cropped according to the bounding box data corresponding to the reliable bounding box to obtain a cropped photo that corresponds one-to-one to the reliable bounding box.

5. The method for identifying goods in an intelligent shopping cart according to claim 1, characterized in that: The cropped photos are processed and input into the feature extraction network model for processing to obtain the object features, including: The cropped photo is resized to obtain a second enhanced photo with a size of 224*224; The second enhanced photo is input into the pre-trained ResNet50 feature extraction network model for feature extraction, and P item feature vectors N = [a1, a2, ..., a 2048 ].

6. A method for identifying goods in an intelligent shopping cart according to claim 5, characterized in that: The matching of the item features with the item features in the item database to obtain the item data corresponding to the item in the shopping cart basket includes: Compare the P item feature vectors N with the Q product feature vectors M stored in the product database one by one to obtain corresponding P*Q comparison results; Sort all the comparison results from high to low to obtain a comparison result sequence; It is determined whether the first five comparison results in the comparison result sequence correspond to the same commodity. If so, the commodity data corresponding to the commodity is used as the item matching result.

7. The method for identifying goods in an intelligent shopping cart according to claim 6, characterized in that: The P item feature vectors N are respectively compared one by one with the Q product feature vectors M stored in the product database to obtain corresponding P*Q comparison results, including: Calculate the feature vector of each item N = [a1, a2, ..., a 2048 ] and each product feature vector M = [b1, b2, ..., b 2048 ], including:

8. The method for identifying goods in an intelligent shopping cart according to claim 6, characterized in that: The determining whether the first five comparison results in the comparison result sequence correspond to the same product further includes: If not, the weight of the item is obtained through a weight sensing module on the smart shopping cart; Obtain five commodity weights corresponding to the first five comparison results in the comparison result sequence from the database; The weight of the item is compared with the weights of the five commodities one by one, and it is determined whether there is a commodity weight equal to the weight of the item. If so, the commodity data corresponding to the commodity weight is used as the matching result of the item. If not, an alarm message is returned.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • New commodity data acquisition method and device based on shopping cart

    CN119273429A