Cashier data processing method based on weighing image combination and AI cashier scale
By combining weighing and image recognition technology on the checkout scale to analyze user behavior and object information, the problem of insufficient calculation accuracy of payment information in the existing technology is solved, a smarter and more convenient shopping experience is achieved, and the time required for checkout processing is reduced. mistake.
Patent Information
- Application Number
- CN202410429144.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-10
AI Technical Summary
Existing cashier scales have insufficient accuracy in calculating payment information when processing complex shopping behaviors, and the user experience is not smart enough and prone to errors.
Using a method based on weighing image combination, the object and user images are obtained through the camera module of the AI cash register scale, and the user behavior recognition algorithm and image recognition algorithm are combined to determine the payment objects and rules, calculate the payment information, and display it on the display.
It improves the calculation accuracy of payment information, provides a smarter and more convenient shopping experience, and reduces the error rate in cashier processing.
Smart Images

Figure CN118196971B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a cash register data processing method based on weighing image combination and an AI cash register scale. Background Art
[0002] Traditional cashier scales generally only consider the commodity type or billing rules manually entered by the user, and then calculate the payment information based on the weighing results of the weighing module. This technical solution can no longer effectively adapt to the business environment where consumers' shopping behaviors are more diverse and more focused on cashier efficiency and cashier experience, and even seems outdated. Some existing technologies have proposed to combine intelligent algorithms such as image recognition algorithms into cashier scenarios, but most of them are still limited to object recognition, and do not effectively recognize and consider user behavior. Therefore, the realized cashier judgment or payment calculation functions are still not smart enough and prone to errors. It can be seen that the existing technology has defects that need to be solved urgently. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a cashier data processing method and an AI cashier scale based on the combination of weighing images, which can improve the calculation accuracy of payment information, provide users with a smarter and more convenient shopping experience, and reduce cashier processing errors.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a cashier data processing method based on weighing image combination, the method comprising:
[0005] Obtain the current object image and the paying user image respectively obtained by the camera module of the AI cash register scale and the weight information obtained by the weighing module;
[0006] Determine the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale;
[0007] Analyzing the user behavior corresponding to the payment user image according to the user behavior recognition algorithm;
[0008] The payment information is calculated based on the user behavior and the weight information, as well as the payment objects and payment rules; the payment information is used to be displayed on the display screen of the AI cashier scale.
[0009] As an optional implementation, in the first aspect of the present invention, analyzing the user behavior corresponding to the payment user image according to the user behavior recognition algorithm includes:
[0010] The payment user image is input into a trained user action recognition neural network to obtain the user behavior corresponding to the payment user image; the user behavior is the user's no-operation behavior, the user's object placement behavior, the user's object removal behavior or the user's leaving the settlement location behavior; the user action recognition neural network is an RNN neural network trained by a training data set including multiple training user action images and corresponding action type annotations.
[0011] As an optional implementation, in the first aspect of the present invention, determining the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale includes:
[0012] Obtaining a sales rule corresponding to the current area of the AI cash register scale, and determining all sales object types corresponding to the sales rule;
[0013] Determining a target algorithm model from a plurality of candidate algorithm models according to the sales object type;
[0014] Inputting the current object image into the target algorithm model to obtain images of paid objects and non-paid objects corresponding to the current object image;
[0015] Determining the predicted weight of the object corresponding to the non-payable object image;
[0016] The weight-fee correspondence of the payment object and the weight removal rule corresponding to the predicted weight of the object are determined as the payment rule corresponding to the current object image.
[0017] As an optional implementation, in the first aspect of the present invention, determining a target algorithm model from a plurality of candidate algorithm models according to the sales object type includes:
[0018] Determine a set of object types in a training data set corresponding to each candidate algorithm model; the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations;
[0019] Calculating type similarity between all the sales object types and any of the object type sets;
[0020] Sort all the candidate algorithm models according to the type similarity from large to small to obtain a model sequence;
[0021] All the candidate algorithm models that are the first number in the model sequence and whose type similarity is greater than a similarity threshold are determined as target algorithm models.
[0022] As an optional implementation, in the first aspect of the present invention, the step of inputting the current object image into the target algorithm model to obtain the paid object and non-paid object images corresponding to the current object image includes:
[0023] Inputting the current object image into each of the target algorithm models to obtain a plurality of image recognition results corresponding to the current object image; the image recognition results include an object type and an object border;
[0024] Calculate the majority of the object types in all the image recognition results to determine the payment object corresponding to the current object image;
[0025] Calculating an average frame of the object frames in all the image recognition results to obtain an object range corresponding to the current object image;
[0026] Determine the foreground range corresponding to the current object image according to an image segmentation algorithm;
[0027] Calculating the area difference between the foreground range and the object range;
[0028] It is determined whether the area difference is greater than a preset area threshold, and if so, the image in the foreground range except the object range is determined as a non-payment object image corresponding to the current object image.
[0029] As an optional implementation, in the first aspect of the present invention, determining the predicted weight of the object corresponding to the non-payable object image includes:
[0030] Inputting the non-payable object image into a trained object image recognition neural network to obtain the non-payable object type corresponding to the non-payable object image; the non-payable object type is a shopping bag, a parcel net, a paper box, a foam object or a binding rope; the object image recognition neural network is trained by a training data set including a plurality of training non-payable object images and corresponding type annotations;
[0031] Determine the area weight calculation rule corresponding to the non-payable object type according to the preset correspondence between the type and the weight rule;
[0032] The predicted weight of the object corresponding to the non-payable object image is calculated according to the area weight calculation rule and the image area of the non-payable object image.
[0033] As an optional implementation, in the first aspect of the present invention, the payment information is calculated according to the user behavior and the weight information, as well as the payment object and the payment rule, including:
[0034] Calculating the difference between the weight information and the predicted weight of the object to obtain the actual weight information;
[0035] Calculating current fee information according to the weight-fee correspondence and the actual weight information;
[0036] According to the user behavior of the current user in the historical time period and the currently identified user behavior, determining that the current user is in a waiting for settlement state or an object sorting state;
[0037] When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
[0038] As an optional implementation, in the first aspect of the present invention, judging that the current user is in a waiting for settlement state or an item sorting state according to the user behavior of the current user in a historical time period and the currently identified user behavior includes:
[0039] Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result;
[0040] If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result;
[0041] If the second judgment result is yes, determining that the current user is in a state of waiting for settlement;
[0042] If the first judgment result or the second judgment result is no, it is determined that the current user is in an object sorting state, and the change of the weight information is continuously monitored and the current fee information is repeatedly updated and calculated.
[0043] A second aspect of an embodiment of the present invention discloses an AI cashier scale, the AI cashier scale comprising:
[0044] An acquisition module, used to acquire the current object image and the paying user image respectively acquired by the camera module of the AI cashier scale and the weight information acquired by the weighing module;
[0045] A determination module, used to determine the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale;
[0046] An analysis module, used to analyze the user behavior corresponding to the payment user image according to a user behavior recognition algorithm;
[0047] A calculation module is used to calculate payment information based on the user behavior and the weight information, as well as the payment objects and payment rules; the payment information is used to be displayed on the display screen of the AI cashier scale.
[0048] As an optional implementation, in the second aspect of the present invention, the analysis module analyzes the specific manner of the user behavior corresponding to the payment user image according to the user behavior recognition algorithm, including:
[0049] The payment user image is input into a trained user action recognition neural network to obtain the user behavior corresponding to the payment user image; the user behavior is the user's no-operation behavior, the user's object placement behavior, the user's object removal behavior or the user's leaving the settlement location behavior; the user action recognition neural network is an RNN neural network trained by a training data set including multiple training user action images and corresponding action type annotations.
[0050] As an optional implementation, in the second aspect of the present invention, the determination module determines the specific manner of the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale, including:
[0051] Obtaining a sales rule corresponding to the current area of the AI cash register scale, and determining all sales object types corresponding to the sales rule;
[0052] Determining a target algorithm model from a plurality of candidate algorithm models according to the sales object type;
[0053] Inputting the current object image into the target algorithm model to obtain images of paid objects and non-paid objects corresponding to the current object image;
[0054] Determining the predicted weight of the object corresponding to the non-payable object image;
[0055] The weight-fee correspondence of the payment object and the weight removal rule corresponding to the predicted weight of the object are determined as the payment rule corresponding to the current object image.
[0056] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the target algorithm model from a plurality of candidate algorithm models according to the sales object type includes:
[0057] Determine a set of object types in a training data set corresponding to each candidate algorithm model; the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations;
[0058] Calculating type similarity between all the sales object types and any of the object type sets;
[0059] Sort all the candidate algorithm models according to the type similarity from large to small to obtain a model sequence;
[0060] All the candidate algorithm models that are the first number in the model sequence and whose type similarity is greater than a similarity threshold are determined as target algorithm models.
[0061] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module inputs the current object image into the target algorithm model to obtain the payment object and non-payment object images corresponding to the current object image includes:
[0062] Inputting the current object image into each of the target algorithm models to obtain a plurality of image recognition results corresponding to the current object image; the image recognition results include an object type and an object border;
[0063] Calculate the majority of the object types in all the image recognition results to determine the payment object corresponding to the current object image;
[0064] Calculating an average frame of the object frames in all the image recognition results to obtain an object range corresponding to the current object image;
[0065] Determine the foreground range corresponding to the current object image according to an image segmentation algorithm;
[0066] Calculating the area difference between the foreground range and the object range;
[0067] It is determined whether the area difference is greater than a preset area threshold, and if so, the image in the foreground range except the object range is determined as a non-payment object image corresponding to the current object image.
[0068] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the predicted weight of the object corresponding to the non-payable object image includes:
[0069] Inputting the non-payable object image into a trained object image recognition neural network to obtain the non-payable object type corresponding to the non-payable object image; the non-payable object type is a shopping bag, a parcel net, a paper box, a foam object or a binding rope; the object image recognition neural network is trained by a training data set including a plurality of training non-payable object images and corresponding type annotations;
[0070] Determine the area weight calculation rule corresponding to the non-payable object type according to the preset correspondence between the type and the weight rule;
[0071] The predicted weight of the object corresponding to the non-payable object image is calculated according to the area weight calculation rule and the image area of the non-payable object image.
[0072] As an optional implementation, in the second aspect of the present invention, the specific manner in which the calculation module calculates the payment information according to the user behavior and the weight information, as well as the payment object and the payment rule includes:
[0073] Calculating the difference between the weight information and the predicted weight of the object to obtain the actual weight information;
[0074] Calculating current fee information according to the weight-fee correspondence and the actual weight information;
[0075] According to the user behavior of the current user in the historical time period and the currently identified user behavior, determining that the current user is in a waiting for settlement state or an object sorting state;
[0076] When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
[0077] As an optional implementation, in the second aspect of the present invention, the specific manner in which the calculation module determines whether the current user is in a waiting for settlement state or an object arrangement state according to the user behavior of the current user in a historical time period and the currently identified user behavior includes:
[0078] Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result;
[0079] If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result;
[0080] If the second judgment result is yes, determining that the current user is in a state of waiting for settlement;
[0081] If the first judgment result or the second judgment result is no, it is determined that the current user is in an object sorting state, and the change of the weight information is continuously monitored and the current fee information is repeatedly updated and calculated.
[0082] The third aspect of the present invention discloses another AI cashier scale, the AI cashier scale comprising:
[0083] Camera module, weighing module and display screen;
[0084] A memory storing executable program code;
[0085] A processor coupled to the memory, the camera module, the weighing module and the display screen respectively;
[0086] The processor calls the executable program code stored in the memory to execute part or all of the steps in the cashier data processing method based on weighing image combination disclosed in the first aspect of the present invention.
[0087] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps in the cashier data processing method based on weighing image combination disclosed in the first aspect of the present invention.
[0088] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0089] The present invention can fully combine the object image and the user image to identify the object information and the user behavior, and then use them together to calculate the payment information, thereby improving the calculation accuracy of the payment information, giving the user a smarter and more convenient shopping experience, and reducing errors in checkout processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0091] Figure 1 It is a flow chart of a cash register data processing method based on weighing image combination disclosed in an embodiment of the present invention.
[0092] Figure 2 It is a structural schematic diagram of an AI cash register scale disclosed in an embodiment of the present invention.
[0093] Figure 3 It is a structural schematic diagram of another AI cash register scale disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0094] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0095] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0096] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0097] The present invention discloses a cash register data processing method based on weighing image combination and an AI cash register scale, which can fully combine object images and user images to identify object information and user behavior, and then use them together to calculate payment information, thereby improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing cash register processing errors. The following are detailed descriptions.
[0098] Embodiment 1
[0099] See also Figure 1 , Figure 1 This is a flow chart of a cash register data processing method based on weighing image combination disclosed in an embodiment of the present invention. Figure 1 The cashier data processing method based on weighing image combination described can be applied to a data processing system / data processing device / data processing server (wherein the server includes a local processing server or a cloud processing server). Figure 1 As shown, the cashier data processing method based on weighing image combination may include the following operations:
[0100] 101. Obtain the current object image and the paying user image respectively obtained by the camera module of the AI cash register scale and the weight information obtained by the weighing module.
[0101] 102. According to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale, determine the payment object and payment rules corresponding to the current object image.
[0102] 103. Analyze the user behavior corresponding to the paying user image according to the user behavior recognition algorithm.
[0103] 104. Calculate payment information based on user behavior and weight information, as well as payment items and payment rules.
[0104] Optionally, the payment information is used to be displayed on the display screen of the AI cash register scale.
[0105] It can be seen that the above-mentioned embodiments of the invention can fully combine object images and user images to identify object information and user behavior, and then use them together to calculate payment information, thereby improving the calculation accuracy of payment information, giving users a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0106] As an optional embodiment, in the above steps, analyzing the user behavior corresponding to the payment user image according to the user behavior recognition algorithm includes:
[0107] The paying user image is input into the trained user action recognition neural network to obtain the user behavior corresponding to the paying user image; optionally, the user behavior is the user's no-operation behavior, the user's object placement behavior, the user's object removal behavior, or the user's leaving the settlement location behavior; the user action recognition neural network is an RNN neural network trained by a training data set including multiple training user action images and corresponding action type annotations.
[0108] It can be seen that through the above-mentioned optional embodiments, the action recognition of the payment user image can be performed through a neural network, which helps to more accurately identify user behavior, thereby assisting in improving the calculation accuracy of the payment information, giving users a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0109] As an optional embodiment, in the above steps, determining the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale includes:
[0110] Obtain the sales rules corresponding to the current area of the AI cash register scale, and determine all sales item types corresponding to the sales rules;
[0111] According to the type of sales object, a target algorithm model is determined from multiple candidate algorithm models;
[0112] Input the current object image into the target algorithm model to obtain the paid object and non-paid object images corresponding to the current object image;
[0113] Determine the predicted weight of the object corresponding to the non-payable object image;
[0114] The weight-cost correspondence corresponding to the payment object and the weight removal rule corresponding to the predicted weight of the object are determined as the payment rule corresponding to the current object image.
[0115] It can be seen that through the above-mentioned optional embodiments, a more accurate algorithm model can be determined by the type of sales object for image recognition, and the predicted weight corresponding to the non-payable object can be determined, so as to predict more accurate payment objects and payment rules, thereby helping to improve the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0116] As an optional embodiment, in the above step, determining a target algorithm model from a plurality of candidate algorithm models according to the sales object type includes:
[0117] Determine a set of object types in a training data set corresponding to each candidate algorithm model; optionally, the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations;
[0118] Calculate the type similarity between all sales object types and any set of object types;
[0119] Sort all candidate algorithm models from large to small according to type similarity to obtain a model sequence;
[0120] All candidate algorithm models that are the first number in the model sequence and whose type similarity is greater than the similarity threshold are determined as target algorithm models.
[0121] It can be seen that through the above-mentioned optional embodiments, it is possible to determine a more accurate algorithm model for image recognition by calculating the similarity between the object types in the training data sets of different candidate algorithm models and the sales object types in the current area, thereby assisting in improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0122] As an optional embodiment, in the above step, inputting the current object image into the target algorithm model to obtain the paid object and non-paid object images corresponding to the current object image includes:
[0123] Inputting the current object image into each target algorithm model to obtain multiple image recognition results corresponding to the current object image; optionally, the image recognition results include the object type and the object border;
[0124] Calculate the majority of object types in all image recognition results to determine the payment object corresponding to the current object image;
[0125] Calculate the average bounding box of the object in all image recognition results to obtain the object range corresponding to the current object image;
[0126] According to the image segmentation algorithm, determine the foreground range corresponding to the current object image;
[0127] Calculate the area difference between the foreground range and the object range;
[0128] It is determined whether the area difference is greater than a preset area threshold. If so, the image in the foreground range except the object range is determined as a non-payment object image corresponding to the current object image.
[0129] It can be seen that through the above-mentioned optional embodiments, the payment object and object range corresponding to the current object image can be determined through the prediction results of multiple target algorithm models, and then the image corresponding to the non-payment object can be further determined through the foreground segmentation algorithm to perform more accurate object image recognition, thereby assisting in improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0130] As an optional embodiment, in the above step, determining the predicted weight of the object corresponding to the non-payable object image includes:
[0131] Inputting the non-payable object image into the trained object image recognition neural network to obtain the non-payable object type corresponding to the non-payable object image; optionally, the non-payable object type is a shopping bag, a parcel net, a paper box, a foam object or a binding rope; the object image recognition neural network is trained by a training data set including a plurality of training non-payable object images and corresponding type annotations;
[0132] Determine the area weight calculation rules corresponding to the non-payable object type based on the preset correspondence between the type and weight rules;
[0133] According to the area weight calculation rule and the image area of the non-payable object image, the object predicted weight corresponding to the non-payable object image is calculated.
[0134] It can be seen that through the above-mentioned optional embodiments, the object type of the non-payment object image can be determined through the object image recognition neural network, and the predicted weight of the object corresponding to the non-payment object image can be more accurately determined according to the corresponding weight calculation rules and image area, thereby assisting in improving the calculation accuracy of the payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0135] As an optional embodiment, in the above steps, calculating the payment information according to the user behavior and weight information, as well as the payment object and the payment rules, includes:
[0136] Calculate the difference between the weight information and the predicted weight of the object to obtain the actual weight information;
[0137] Calculate the current fee information based on the weight-fee correspondence and the actual weight information;
[0138] According to the user behavior of the current user in the historical time period and the currently identified user behavior, it is determined that the current user is in a waiting for settlement state or an item sorting state;
[0139] When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
[0140] It can be seen that through the above-mentioned optional embodiments, the actual weight can be determined by the difference between the weight information and the predicted weight of the object, and then the current fee can be determined according to the fee relationship. The payment information is displayed only when it is judged based on the behavior that the user is in a state of placing the item and waiting for settlement. This improves the calculation accuracy of the payment information, provides users with a smarter and more convenient shopping experience, and reduces errors in checkout processing.
[0141] As an optional embodiment, in the above steps, judging that the current user is in a waiting for settlement state or an item sorting state according to the user behavior of the current user in the historical time period and the currently identified user behavior includes:
[0142] Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result;
[0143] If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result;
[0144] If the second judgment result is yes, it is determined that the current user is in a state of waiting for settlement;
[0145] If the first judgment result or the second judgment result is no, it is determined that the current user is in an object sorting state, and the change of the weight information is continuously monitored and the current fee information is repeatedly updated and calculated.
[0146] It can be seen that through the above optional embodiments, it is possible to determine through behavioral rules whether the current user is in a waiting state for settlement or an object sorting state, thereby improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0147] Embodiment 2
[0148] See also Figure 2 , Figure 2 It is a functional structure diagram of an AI cash register scale disclosed in an embodiment of the present invention.
[0149] like Figure 2 As shown, the AI cashier scale may include:
[0150] The acquisition module 201 is used to obtain the current object image and the paying user image respectively obtained by the camera module of the AI cashier scale and the weight information obtained by the weighing module.
[0151] The determination module 202 is used to determine the payment object and payment rules corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale.
[0152] The analysis module 203 is used to analyze the user behavior corresponding to the payment user image according to the user behavior recognition algorithm.
[0153] The calculation module 204 is used to calculate the payment information according to the user behavior and weight information, as well as the payment objects and payment rules.
[0154] Optionally, the payment information is used to be displayed on the display screen of the AI cash register scale.
[0155] It can be seen that the above-mentioned embodiments of the invention can fully combine object images and user images to identify object information and user behavior, and then use them together to calculate payment information, thereby improving the calculation accuracy of payment information, giving users a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0156] As an optional embodiment, the analysis module analyzes the specific manner of the user behavior corresponding to the payment user image according to the user behavior recognition algorithm, including:
[0157] The paying user image is input into the trained user action recognition neural network to obtain the user behavior corresponding to the paying user image; optionally, the user behavior is the user's no-operation behavior, the user's object placement behavior, the user's object removal behavior, or the user's leaving the settlement location behavior; the user action recognition neural network is an RNN neural network trained by a training data set including multiple training user action images and corresponding action type annotations.
[0158] It can be seen that through the above-mentioned optional embodiments, the action recognition of the payment user image can be performed through a neural network, which helps to more accurately identify user behavior, thereby assisting in improving the calculation accuracy of the payment information, giving users a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0159] As an optional embodiment, the determination module determines the specific manner of the payment object and payment rule corresponding to the current object image according to the sales rules corresponding to the current area of the AI cash register scale and the image recognition algorithm, including:
[0160] Obtain the sales rules corresponding to the current area of the AI cash register scale, and determine all sales item types corresponding to the sales rules;
[0161] According to the type of sales object, a target algorithm model is determined from multiple candidate algorithm models;
[0162] Input the current object image into the target algorithm model to obtain the paid object and non-paid object images corresponding to the current object image;
[0163] Determine the predicted weight of the object corresponding to the non-payable object image;
[0164] The weight-cost correspondence corresponding to the payment object and the weight removal rule corresponding to the predicted weight of the object are determined as the payment rule corresponding to the current object image.
[0165] It can be seen that through the above-mentioned optional embodiments, a more accurate algorithm model can be determined by the type of sales object for image recognition, and the predicted weight corresponding to the non-payable object can be determined, so as to predict more accurate payment objects and payment rules, thereby helping to improve the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0166] As an optional embodiment, the specific manner in which the determination module determines the target algorithm model from a plurality of candidate algorithm models according to the sales object type includes:
[0167] Determine a set of object types in a training data set corresponding to each candidate algorithm model; optionally, the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations;
[0168] Calculate the type similarity between all sales object types and any set of object types;
[0169] Sort all candidate algorithm models from large to small according to type similarity to obtain a model sequence;
[0170] All candidate algorithm models that are the first number in the model sequence and whose type similarity is greater than the similarity threshold are determined as target algorithm models.
[0171] It can be seen that through the above-mentioned optional embodiments, it is possible to determine a more accurate algorithm model for image recognition by calculating the similarity between the object types in the training data sets of different candidate algorithm models and the sales object types in the current area, thereby assisting in improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0172] As an optional embodiment, the specific manner in which the determination module inputs the current object image into the target algorithm model to obtain the paid object and non-paid object images corresponding to the current object image includes:
[0173] Inputting the current object image into each target algorithm model to obtain multiple image recognition results corresponding to the current object image; optionally, the image recognition results include the object type and the object border;
[0174] Calculate the majority of object types in all image recognition results to determine the payment object corresponding to the current object image;
[0175] Calculate the average bounding box of the object in all image recognition results to obtain the object range corresponding to the current object image;
[0176] According to the image segmentation algorithm, determine the foreground range corresponding to the current object image;
[0177] Calculate the area difference between the foreground range and the object range;
[0178] It is determined whether the area difference is greater than a preset area threshold. If so, the image in the foreground range except the object range is determined as a non-payment object image corresponding to the current object image.
[0179] It can be seen that through the above-mentioned optional embodiments, the payment object and object range corresponding to the current object image can be determined through the prediction results of multiple target algorithm models, and then the image corresponding to the non-payment object can be further determined through the foreground segmentation algorithm to perform more accurate object image recognition, thereby assisting in improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0180] As an optional embodiment, the specific manner in which the determination module determines the predicted weight of the object corresponding to the non-payable object image includes:
[0181] Inputting the non-payable object image into the trained object image recognition neural network to obtain the non-payable object type corresponding to the non-payable object image; optionally, the non-payable object type is a shopping bag, a parcel net, a paper box, a foam object or a binding rope; the object image recognition neural network is trained by a training data set including a plurality of training non-payable object images and corresponding type annotations;
[0182] Determine the area weight calculation rules corresponding to the non-payable object type based on the preset correspondence between the type and weight rules;
[0183] According to the area weight calculation rule and the image area of the non-payable object image, the object predicted weight corresponding to the non-payable object image is calculated.
[0184] It can be seen that through the above-mentioned optional embodiments, the object type of the non-payment object image can be determined through the object image recognition neural network, and the predicted weight of the object corresponding to the non-payment object image can be more accurately determined according to the corresponding weight calculation rules and image area, thereby assisting in improving the calculation accuracy of the payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0185] As an optional embodiment, the specific method of calculating the payment information by the calculation module according to the user behavior and weight information, as well as the payment object and the payment rules includes:
[0186] Calculate the difference between the weight information and the predicted weight of the object to obtain the actual weight information;
[0187] Calculate the current fee information based on the weight-fee correspondence and the actual weight information;
[0188] According to the user behavior of the current user in the historical time period and the currently identified user behavior, it is determined that the current user is in a waiting for settlement state or an item sorting state;
[0189] When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
[0190] It can be seen that through the above-mentioned optional embodiments, the actual weight can be determined by the difference between the weight information and the predicted weight of the object, and then the current fee can be determined according to the fee relationship. The payment information is displayed only when it is judged based on the behavior that the user is in a state of placing the item and waiting for settlement. This improves the calculation accuracy of the payment information, provides users with a smarter and more convenient shopping experience, and reduces errors in checkout processing.
[0191] As an optional embodiment, the specific manner in which the calculation module determines whether the current user is in a waiting for settlement state or an item sorting state according to the user behavior of the current user in the historical time period and the currently identified user behavior includes:
[0192] Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result;
[0193] If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result;
[0194] If the second judgment result is yes, it is determined that the current user is in a state of waiting for settlement;
[0195] If the first judgment result or the second judgment result is no, it is determined that the current user is in an object sorting state, and the change of the weight information is continuously monitored and the current fee information is repeatedly updated and calculated.
[0196] It can be seen that through the above optional embodiments, it is possible to determine through behavioral rules whether the current user is in a waiting state for settlement or an object sorting state, thereby improving the calculation accuracy of payment information, providing users with a smarter and more convenient shopping experience, and reducing errors in checkout processing.
[0197] Embodiment 3
[0198] See also Figure 3 , Figure 3 It is another AI cashier scale disclosed in the embodiment of the present invention. Figure 3 As shown, the AI cashier scale includes a camera module, a weighing module, a display screen and a controller, wherein the controller is built into a circuit board at the bottom, including:
[0199] A memory storing executable program code;
[0200] and a processor coupled to the memory, the camera module, the weighing module and the display screen respectively;
[0201] The processor calls the executable program code stored in the memory to execute the steps of the cashier data processing method based on weighing image combination described in the first embodiment.
[0202] Embodiment 4
[0203] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the cashier data processing method based on weighing image combination described in the first embodiment.
[0204] Embodiment 5
[0205] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the cashier data processing method based on weighing image combination described in the first embodiment.
[0206] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0207] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0208] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0209] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0210] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0211] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0212] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0213] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0214] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0215] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0216] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0217] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0218] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0219] Finally, it should be noted that the cashier data processing method based on the combination of weighing images and the AI cashier scale disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A cash register data processing method based on weighing image combination, It is characterized in that The method comprises: Obtain the current object image and the paying user image respectively obtained by the camera module of the AI cash register scale and the weight information obtained by the weighing module; According to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale, the payment object and payment rules corresponding to the current object image are determined, including: Obtaining a sales rule corresponding to the current area of the AI cash register scale, and determining all sales object types corresponding to the sales rule; According to the sales object type, a target algorithm model is determined from a plurality of candidate algorithm models, including: Determine a set of object types in a training data set corresponding to each candidate algorithm model; the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations; Calculating type similarity between all the sales object types and any of the object type sets; Sort all the candidate algorithm models according to the type similarity from large to small to obtain a model sequence; Determine all the candidate algorithm models that are in the first first number of the model sequence and whose type similarity is greater than a similarity threshold as the target algorithm model; Inputting the current object image into the target algorithm model to obtain images of paid objects and non-paid objects corresponding to the current object image, including: Inputting the current object image into each of the target algorithm models to obtain a plurality of image recognition results corresponding to the current object image; the image recognition results include an object type and an object border; Calculate the majority of the object types in all the image recognition results to determine the payment object corresponding to the current object image; Calculating an average frame of the object frames in all the image recognition results to obtain an object range corresponding to the current object image; Determine the foreground range corresponding to the current object image according to an image segmentation algorithm; Calculating the area difference between the foreground range and the object range; Determine whether the area difference is greater than a preset area threshold, and if so, determine the image in the foreground range except the object range as a non-payment object image corresponding to the current object image; Determining the predicted weight of the object corresponding to the non-payable object image; Determine the weight-cost correspondence of the payment object and the weight removal rule corresponding to the predicted weight of the object as the payment rule corresponding to the current object image; Analyzing the user behavior corresponding to the payment user image according to the user behavior recognition algorithm; Calculating payment information according to the user behavior and the weight information, as well as the payment object and the payment rule; the payment information is used to be displayed on the display screen of the AI cash register scale; calculating payment information according to the user behavior and the weight information, as well as the payment object and the payment rule, includes: Calculating the difference between the weight information and the predicted weight of the object to obtain the actual weight information; Calculating current fee information according to the weight-fee correspondence and the actual weight information; Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result; If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result; If the second judgment result is yes, determining that the current user is in a state of waiting for settlement; If the first judgment result or the second judgment result is no, determining that the current user is in an object sorting state, and continuously monitoring the change of the weight information and repeatedly updating and calculating the current fee information; When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
2. The cashier data processing method based on weighing image combination according to claim 1, It is characterized in that The analyzing the user behavior corresponding to the payment user image according to the user behavior recognition algorithm includes: The payment user image is input into a trained user action recognition neural network to obtain the user behavior corresponding to the payment user image; the user behavior is the user's no-operation behavior, the user's object placement behavior, the user's object removal behavior or the user's leaving the settlement location behavior; the user action recognition neural network is an RNN neural network trained by a training data set including multiple training user action images and corresponding action type annotations.
3. The cashier data processing method based on weighing image combination according to claim 1, It is characterized in that The determining of the predicted weight of the object corresponding to the non-payable object image includes: Inputting the non-payable object image into a trained object image recognition neural network to obtain the non-payable object type corresponding to the non-payable object image; the non-payable object type is a shopping bag, a parcel net, a paper box, a foam object or a binding rope; the object image recognition neural network is trained by a training data set including a plurality of training non-payable object images and corresponding type annotations; Determine the area weight calculation rule corresponding to the non-payable object type according to the preset correspondence between the type and the weight rule; The predicted weight of the object corresponding to the non-payable object image is calculated according to the area weight calculation rule and the image area of the non-payable object image.
4. An AI cash register scale, It is characterized in that The AI cash register scale includes: An acquisition module, used to acquire the current object image and the paying user image respectively acquired by the camera module of the AI cashier scale and the weight information acquired by the weighing module; The determination module is used to determine the payment object and payment rule corresponding to the current object image according to the sales rules and image recognition algorithm corresponding to the current area of the AI cash register scale, including: Obtaining a sales rule corresponding to the current area of the AI cash register scale, and determining all sales object types corresponding to the sales rule; According to the sales object type, a target algorithm model is determined from a plurality of candidate algorithm models, including: Determine a set of object types in a training data set corresponding to each candidate algorithm model; the candidate algorithm model is trained by a training data set including a plurality of training object images corresponding to object types and corresponding object type annotations and object position annotations; Calculating type similarity between all the sales object types and any of the object type sets; Sort all the candidate algorithm models according to the type similarity from large to small to obtain a model sequence; Determine all the candidate algorithm models that are in the first first number of the model sequence and whose type similarity is greater than a similarity threshold as the target algorithm model; Inputting the current object image into the target algorithm model to obtain images of paid objects and non-paid objects corresponding to the current object image, including: Inputting the current object image into each of the target algorithm models to obtain a plurality of image recognition results corresponding to the current object image; the image recognition results include an object type and an object border; Calculate the majority of the object types in all the image recognition results to determine the payment object corresponding to the current object image; Calculating an average frame of the object frames in all the image recognition results to obtain an object range corresponding to the current object image; Determine the foreground range corresponding to the current object image according to an image segmentation algorithm; Calculating the area difference between the foreground range and the object range; Determine whether the area difference is greater than a preset area threshold, and if so, determine the image in the foreground range except the object range as a non-payment object image corresponding to the current object image; Determining the predicted weight of the object corresponding to the non-payable object image; Determine the weight-cost correspondence of the payment object and the weight removal rule corresponding to the predicted weight of the object as the payment rule corresponding to the current object image; An analysis module, used to analyze the user behavior corresponding to the payment user image according to a user behavior recognition algorithm; A calculation module is used to calculate the payment information according to the user behavior and the weight information, as well as the payment object and the payment rule; the payment information is used to be displayed on the display screen of the AI cashier scale; the calculation module calculates the payment information according to the user behavior and the weight information, as well as the payment object and the payment rule, including: Calculating the difference between the weight information and the predicted weight of the object to obtain the actual weight information; Calculating current fee information according to the weight-fee correspondence and the actual weight information; Determine whether the currently identified user behavior is a user non-operation behavior, and obtain a first determination result; If the first judgment result is yes, determine whether there is at least one user placing an object behavior in the user behavior of the current user in the historical time period, and obtain a second judgment result; If the second judgment result is yes, determining that the current user is in a state of waiting for settlement; If the first judgment result or the second judgment result is no, determining that the current user is in an object sorting state, and continuously monitoring the change of the weight information and repeatedly updating and calculating the current fee information; When it is determined that the current user is in a state of waiting for settlement, the current fee information is determined as payment information.
5. An AI cash register scale, It is characterized in that The AI cash register scale includes: Camera module, weighing module and display screen; A memory storing executable program code; A processor coupled to the memory, the camera module, the weighing module and the display screen respectively; The processor calls the executable program code stored in the memory to execute the cashier data processing method based on weighing image combination as described in any one of claims 1-3.
