Electronic scale, weight detection method and device for target object and storage medium

文档序号:114145 发布日期:2021-10-19 浏览:54次 中文

阅读说明:本技术 电子称、目标物的重量检测方法、装置及存储介质 (Electronic scale, weight detection method and device for target object and storage medium ) 是由 李茗萱 郑云丹 涂一娜 仲思惠 李学鹏 张野 樊洋峰 于 2021-06-30 设计创作,主要内容包括:本公开提供了一种电子称、目标物的重量检测方法、装置及存储介质,属于互联网技术领域。所述方法包括:获取目标订单的订单标识和目标订单内各个目标物的实际总重量;根据订单标识,获取目标订单的预设重量范围,预设重量范围为目标订单内各个目标物的实际总重量允许波动的重量范围,预设重量范围根据目标订单内各个目标物的理论重量和相应的预设置信度区间确定;当实际总重量不在预设重量范围内,对目标订单进行错误提示。本公开实施例在目标订单内各个目标物的实际总重量不在预设重量范围内时,判定目标订单可能存在漏餐或错餐的情况,进而通过提示商户对目标订单进行核对,大大降低了漏餐或错餐的发生概率。(The disclosure provides a method and a device for detecting the weight of an electronic scale and a target object and a storage medium, and belongs to the technical field of internet. The method comprises the following steps: acquiring an order mark of a target order and the actual total weight of each target object in the target order; acquiring a preset weight range of the target order according to the order identification, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval; and when the actual total weight is not within the preset weight range, carrying out error prompt on the target order. According to the embodiment of the invention, when the actual total weight of each target object in the target order is not within the preset weight range, the condition that the target order is missed or mistaken is judged, and then the target order is checked by prompting a merchant, so that the probability of occurrence of missed or mistaken is greatly reduced.)

1. An electronic scale, characterized in that the electronic scale comprises: the system comprises a weighing module, an information acquisition module and a processing module, wherein the weighing module and the information acquisition module are connected with the processing module;

the information acquisition module is used for acquiring the order identification of the target order;

the weighing module is used for weighing the actual total weight of each target object in the target order;

the processing module is configured to obtain a preset weight range of the target object according to the order identifier, and perform error prompt on the target order when the actual total weight is not within the preset weight range, where the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to a theoretical weight of each target object in the target order and a corresponding preset confidence interval.

2. The electronic scale according to claim 1, wherein the information acquisition module comprises a scanning sub-module and/or an input sub-module;

the scanning sub-module is used for scanning the identification code on the target order to obtain the order identification;

the input sub-module is used for inputting order numbers to obtain the order identification.

3. The electronic scale of claim 2, wherein the input sub-module is further configured to generate an order confirmation message in response to a confirmation operation of a merchant when the target order is incorrect;

the processing module is further configured to modify the preset weight range in response to the order confirmation message.

4. The electronic scale of claim 1, further comprising: the prompting module is connected with the processing module;

and the prompting module is used for responding to the target order error and prompting the merchant to check the target order.

5. The electronic scale of claim 4, wherein the prompt module comprises at least one of a voice prompt sub-module, a vibration sub-module, and a display sub-module.

6. The electronic scale of any one of claims 1-5, further comprising: the battery module is connected with the weighing module, the information acquisition module, the processing module and the prompt module;

the battery module is used for providing electric energy for the electronic scale.

7. A method for detecting the weight of a target, the method comprising:

acquiring an order mark of a target order and the actual total weight of each target object in the target order;

acquiring a preset weight range of the target order according to the order identification, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and when the actual total weight is not within the preset weight range, carrying out error prompt on the target order.

8. The method of claim 7, wherein said obtaining the order identification of the target order and the actual total weight of each object in the target order comprises:

and receiving the order identification and the actual total weight sent by the electronic scale, wherein the order identification is obtained by an information acquisition module of the electronic scale, and the actual total weight is weighed by a weighing module of the electronic scale.

9. The method of claim 7, wherein after obtaining the order identification of the target order and the actual total weight of each target object in the target order, further comprising:

and changing the state of the target order into a manufacturing completion state.

10. The method according to claim 7, wherein the obtaining a preset weight range of the target order according to the order identifier comprises:

according to the order mark, acquiring the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object;

adding the theoretical weight of each target object and the end point values at the two ends of the corresponding weight difference range to obtain the weight range of each target object;

and adding the end point values of the same end in the weight range of each target object to obtain the preset weight range.

11. The method according to claim 7, wherein the obtaining a preset weight range of the target order according to the order identifier comprises:

according to the order mark, acquiring the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

adding the theoretical weight of each target object in the target order to obtain the initial total weight of each target object in the target order;

determining a total confidence degree interval of the target order according to a preset confidence degree interval of each target object in the target order;

multiplying the initial total weight by the interval endpoint value of the total confidence interval to obtain a total mass difference range;

and adding the initial total weight and the end point values at the two ends of the total difference range to obtain the preset weight range.

12. The method of claim 11, wherein determining the total confidence interval for the target order based on the pre-set confidence intervals for each target in the target order comprises:

and acquiring a preset confidence interval with the maximum confidence value from the preset confidence intervals of the target objects as the total confidence interval.

13. The method of claim 11, wherein determining the total confidence interval for the target order based on the pre-set confidence intervals for each target in the target order comprises:

multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object;

and adding the end point values of the same end in the weight difference range of each target object, and dividing the end point values by the initial total weight to obtain the total confidence interval.

14. The method of claim 7, wherein after said error prompting said target order, further comprising:

and responding to an order confirmation message, correcting the preset weight value range according to the actual total weight, wherein the order confirmation message is generated in response to the confirmation operation of the merchant.

15. The method of claim 14, further comprising:

and if the actual total weight is within the preset weight range or the order confirmation message is received, changing the state of the target order into a state waiting for delivery.

16. A weight detecting device for an object, the device comprising:

the acquisition module is used for acquiring the order identification of the target order and the actual total weight of each target object in the target order;

the obtaining module is further configured to obtain a preset weight range of the target order according to the order identifier, where the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to a theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and the prompting module is used for carrying out error prompting on the target order when the actual total weight is not within the preset weight range.

17. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the method for weight detection of an object according to any one of claims 7 to 15.

18. A computer-readable storage medium, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the method for detecting the weight of an object according to any one of claims 7 to 15.

Technical Field

The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for detecting a weight of an electronic scale and a target object, and a storage medium.

Background

In recent years, with the rapid development of the take-out industry, the take-out delivery volume has a tendency to increase at a high rate. In the peak period, the order quantity of the merchant is concentrated, and a plurality of takeout orders need to be packaged quickly under the condition of hand strain. At present, when a merchant takes a meal, the merchant needs to manually prepare corresponding dishes corresponding to printed order information, mistakes are easily made during packaging, and the problem of missing or wrong meals often occurs. Missed and wrong dining not only affects the dining experience of the user, but also can cause economic loss for merchants.

Therefore, in order to reduce the probability of missed or mistaken meals, improve the user meal experience of the user, and reduce unnecessary economic loss of the merchant, measures need to be taken urgently for processing.

Disclosure of Invention

The embodiment of the disclosure provides a weight detection method and device for an electronic scale and a target object and a storage medium, which can reduce the probability of missed meals and mistaken meals. The technical scheme is as follows:

in a first aspect, an electronic scale is provided, which includes: the system comprises a weighing module, an information acquisition module and a processing module, wherein the weighing module and the information acquisition module are connected with the processing module;

the information acquisition module is used for acquiring the order identification of the target order;

the weighing module is used for weighing the actual total weight of each target object in the target order;

the processing module is configured to obtain a preset weight range of the target object according to the order identifier, and perform error prompt on the target order when the actual total weight is not within the preset weight range, where the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to a theoretical weight of each target object in the target order and a corresponding preset confidence interval.

In another embodiment of the present disclosure, the information acquisition module includes a scanning sub-module and/or an input sub-module;

the scanning sub-module is used for scanning the identification code on the target order to obtain the order identification;

the input sub-module is used for inputting order numbers to obtain the order identification.

In another embodiment of the present disclosure, the input sub-module is further configured to generate an order confirmation message in response to a confirmation operation of a merchant when the target order is incorrect;

the processing module is further configured to modify the preset weight range in response to the order confirmation message.

In another embodiment of the present disclosure, the electronic scale further includes: the prompting module is connected with the processing module;

and the prompting module is used for responding to the target order error and prompting the merchant to check the target order.

In another embodiment of the present disclosure, the prompt module includes at least one of a voice prompt sub-module, a vibration sub-module, and a display sub-module.

In another embodiment of the present disclosure, the electronic scale further includes: the battery module is connected with the information acquisition module, the processing module and the prompt module;

the battery module is used for providing electric energy for the electronic scale.

In a second aspect, a method for detecting the weight of a target object is provided, the method comprising:

acquiring an order mark of a target order and the actual total weight of each target object in the target order;

acquiring a preset weight range of the target order according to the order identification, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and when the actual total weight is not within the preset weight range, carrying out error prompt on the target order.

In another embodiment of the present disclosure, an order identification of a target order and an actual total weight of each target object in the target order are obtained;

acquiring a preset weight range of the target order according to the order identification, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and when the actual total weight is not within the preset weight range, carrying out error prompt on the target order.

In another embodiment of the present disclosure, after obtaining the order identifier of the target order and the actual total weight of each target object in the target order, the method further includes:

and changing the state of the target order into a manufacturing completion state.

The obtaining of the preset weight range of the target order according to the order identifier includes:

according to the order mark, acquiring the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object;

adding the theoretical weight of each target object and the end point values at the two ends of the corresponding weight difference range to obtain the weight range of each target object;

and adding the end point values of the same end in the weight range of each target object to obtain the preset weight range.

In another embodiment of the present disclosure, the obtaining a preset weight range of the target order according to the order identifier includes:

according to the order mark, acquiring the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

adding the theoretical weight of each target object in the target order to obtain the initial total weight of each target object in the target order;

determining a total confidence degree interval of the target order according to a preset confidence degree interval of each target object in the target order;

multiplying the initial total weight by the interval endpoint value of the total confidence interval to obtain a total mass difference range;

and adding the initial total weight and the end point values at the two ends of the total difference range to obtain the preset weight range.

In another embodiment of the present disclosure, the determining a total confidence interval of the target order according to a preset confidence interval of each target object in the target order includes:

and acquiring a preset confidence interval with the maximum confidence value from the preset confidence intervals of the target objects as the total confidence interval.

In another embodiment of the present disclosure, the determining a total confidence interval of the target order according to a preset confidence interval of each target object in the target order includes:

multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object;

and adding the end point values of the same end in the weight difference range of each target object, and dividing the end point values by the initial total weight to obtain the total confidence interval.

In another embodiment of the present disclosure, after the error prompting the target order, the method further includes:

and responding to an order confirmation message, correcting the preset weight value range according to the actual total weight, wherein the order confirmation message is generated in response to the confirmation operation of the merchant.

In another embodiment of the present disclosure, the method further comprises:

and if the actual total weight is within the preset weight range or the order confirmation message is received, changing the state of the target order into a state waiting for delivery.

In a third aspect, there is provided a weight detecting apparatus for an object, the apparatus comprising:

the acquisition module is used for acquiring the order identification of the target order and the actual total weight of each target object in the target order;

the obtaining module is further configured to obtain a preset weight range of the target order according to the order identifier, where the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to a theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and the prompting module is used for carrying out error prompting on the target order when the actual total weight is not within the preset weight range.

In another embodiment of the present disclosure, the obtaining module is configured to receive the order identifier and the actual total weight sent by the electronic scale, where the order identifier is obtained by an information obtaining module of the electronic scale, and the actual total weight is weighed by a weighing module of the electronic scale.

In another embodiment of the present disclosure, the apparatus further comprises:

and the changing module is used for changing the state of the target order into a manufacturing completion state.

In another embodiment of the present disclosure, the obtaining module is configured to obtain, according to the order identifier, a theoretical weight and a corresponding preset confidence interval of each target object in the target order; multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object; adding the theoretical weight of each target object and the end point values at the two ends of the corresponding weight difference range to obtain the weight range of each target object; and adding the end point values of the same end in the weight range of each target object to obtain the preset weight range.

In another embodiment of the present disclosure, the obtaining module is configured to obtain, according to the order identifier, a theoretical weight and a corresponding preset confidence interval of each target object in the target order; adding the theoretical weight of each target object in the target order to obtain the initial total weight of each target object in the target order; determining a total confidence degree interval of the target order according to a preset confidence degree interval of each target object in the target order; multiplying the initial total weight by the interval endpoint value of the total confidence interval to obtain a total mass difference range; and adding the initial total weight and the end point values at the two ends of the total difference range to obtain the preset weight range.

In another embodiment of the present disclosure, the obtaining module is configured to obtain a preset confidence interval with a maximum confidence value from the preset confidence intervals of the respective target objects as the total confidence interval.

In another embodiment of the present disclosure, the obtaining module is configured to multiply a theoretical weight of each target by an interval endpoint value of a corresponding preset confidence interval to obtain a weight difference range of each target; and adding the end point values of the same end in the weight difference range of each target object, and dividing the end point values by the initial total weight to obtain the total confidence interval.

In another embodiment of the present disclosure, the apparatus further comprises:

and the correcting module is used for responding to an order confirmation message, correcting the preset weight value range according to the actual total weight, wherein the order confirmation message is generated in response to the confirmation operation of the merchant.

In another embodiment of the present disclosure, the apparatus further comprises:

and the changing module is used for changing the state of the target order into the state of waiting for delivery if the actual total weight is within the preset weight range or the order confirmation message is received.

In a fourth aspect, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the method for detecting the weight of the object according to the second aspect.

In a fifth aspect, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the method for detecting the weight of the object according to the second aspect.

The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:

the method comprises the steps that a preset weight range of a target order is determined based on theoretical weight of each target object in the target order and a corresponding preset confidence interval, the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, then the actual total weight corresponding to the target order is compared with the preset weight range, the target order is checked in a total amount dimension, and when the actual total weight corresponding to the target order is not within the preset weight range, a merchant is prompted to check the target order, so that the probability of missed or mistaken meals is greatly reduced.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.

Fig. 1(a) is an implementation environment related to a method for detecting a weight of a target object according to an embodiment of the present disclosure;

fig. 1(B) is an implementation environment related to another method for detecting a weight of an object according to an embodiment of the present disclosure;

fig. 2 is a schematic structural diagram of an electronic scale provided in an embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of another electronic scale provided in the embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of another electronic scale provided in the embodiment of the present disclosure;

FIG. 5 is a flowchart of a method for detecting a weight of an object according to an embodiment of the present disclosure;

FIG. 6 is a flow chart of another method for detecting the weight of an object according to an embodiment of the present disclosure;

fig. 7 is a schematic structural diagram of a weight detecting device for an object according to an embodiment of the present disclosure;

fig. 8 shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.

Detailed Description

To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

It is to be understood that the terms "each," "a plurality," and "any" and the like, as used in the embodiments of the present disclosure, are intended to encompass two or more, each referring to each of the corresponding plurality, and any referring to any one of the corresponding plurality. For example, the plurality of words includes 10 words, and each word refers to each of the 10 words, and any word refers to any one of the 10 words.

Referring to fig. 1(a), an implementation environment related to a method for detecting a target object according to an embodiment of the present disclosure is shown, where the implementation environment includes: an electronic scale 101. The electronic scale 101 is an intelligent electronic scale and has various functions. Specifically, the electronic scale has an information acquisition function and can acquire an order mark of a target order; the electronic scale 101 also has a weighing function, and can weigh the actual total weight of each target object in the target order; the electronic scale 101 also has a storage capacity, and can store a preset weight range and the like of a target order; the electronic scale 101 also has strong calculation capacity, can determine a preset weight range, and judges whether the actual total weight of each target object in the target order is within the preset weight range or not; the electronic scale 101 further has a prompt function, and can prompt missed meals or wrong meals of merchants when the actual total weight of each target object in the target order is not within a preset weight range.

Please refer to fig. 1(B), which illustrates an implementation environment related to another target detection method provided by the embodiment of the present disclosure, the implementation environment includes: electronic scale 101 and server 102.

The electronic scale 101 has an information acquisition function, a weighing function, and a prompting function of the electronic scale in fig. 1(a), and also has a communication capability, and can communicate with the server 102 to send the acquired order identifier, the actual total weight of each target object in the target order, and the like to the server, and receive an order error prompting message sent by the server 102 to prompt the merchant to miss or miss a meal.

The server 102 may be an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, and the product type of the server 102 is not specifically limited in the embodiments of the present disclosure. The server 102 can receive an order identifier of a target order sent by the electronic scale, the actual total weight of each target object in the target order and the like, and send order error prompt information to the electronic scale 101 when the actual total weight is not within a preset weight range, so that the electronic scale 101 can prompt a merchant to check the target order.

The electronic scale 101 and the server 102 may be connected through a wired network or a wireless network, which is not specifically limited by the embodiment of the present disclosure.

Based on the implementation environment shown in fig. 1(a), the embodiment of the present disclosure provides an electronic scale, and referring to fig. 2, the electronic scale 200 includes a weighing module 201, an information obtaining module 202, a processing module 203, and the like. The weighing module 201, the information acquisition module 202 and the processing module 203 are connected.

The weighing module 201 is used to weigh the actual total weight of each object in the object order, which may be a drink, a fast food, a medicine, etc. ordered by the user on the takeaway platform. The actual total weight is the sum of the actual weights of the objects in the object order. For example, if the target object corresponding to the target order includes dish 1, dish 2, dish 3, and rice, the actual total weight is the sum of the weights of dish 1, dish 2, dish 3, and rice.

The information obtaining module 202 is configured to obtain an order identifier of the target order, where the order identifier of the target order is a unique identifier of the target order, and is used to distinguish different orders, so that the target order can be quickly determined and found.

The Processing module 203 may be a Central Processing Unit (CPU) in the electronic scale 200, and the Processing module 203 can obtain a preset weight range of the target object according to the order identifier, and perform an error prompt on the target order when the actual total weight is not within the preset weight range. The preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and is determined according to the theoretical weight of each target object in the target order and the corresponding preset confidence degree interval. The preset confidence intervals of the respective objects may be the same or different.

In another embodiment of the present disclosure, the information acquisition module includes a scanning submodule and/or an input submodule. When the merchant configures the target order, the scanning sub-module can scan the identification code on the target order to obtain the order identification. The information input sub-module can be in a key form, can be a physical key or a virtual key and the like, consists of numbers of 0-9, 26 letters of A-Z and a punctuation mark, can input order numbers to obtain order identifications, and can input theoretical weight and preset confidence level intervals of all target objects in a target order.

In another embodiment of the disclosure, when the target order is wrong, the input sub-module is further configured to generate an order confirmation message when it is detected that the merchant performs a confirmation operation, and send the order confirmation message to the processing module, so that the processing module corrects the preset weight range in response to the order confirmation message when receiving the order confirmation message.

Referring to fig. 3, in another embodiment of the present disclosure, the electronic scale 200 further includes a prompt module 204. The prompting module 204 is connected to the processing module 203, and when the processing module 203 determines that the target order is wrong, the prompting module 204 prompts the merchant to check the target object in response to the target order being wrong.

In another embodiment of the present disclosure, the prompt module 204 includes at least one of a voice prompt sub-module, a vibration sub-module, a display sub-module, and the like, according to different prompt modes. The voice prompt sub-module is used for prompting the merchant in a voice mode, for example, "the order weight is overweight or insufficient, you check the order, etc"; the vibration submodule is used for controlling the vibration motor to vibrate at a first preset frequency so as to prompt the merchant, and the first preset frequency can be 30 times, 60 times and the like of vibration per minute; the display sub-module is used for controlling the flash lamp to flash at a second preset frequency to prompt the merchant, and the second preset frequency can be 20 times per minute, 40 times per minute and the like.

Referring to fig. 4, in another embodiment of the present disclosure, the electronic scale 200 further includes: the battery module 205 is connected with the weighing module 201, the information acquiring module 202, the processing module 203 and the prompting module 04, and the battery module 205 is used for providing electric energy for the electronic scale 200 so that the electronic scale 200 can function normally.

In another embodiment of the present disclosure, the electronic scale 200 may further have a communication module, where the communication module is configured to establish a connection with a server, and be capable of sending an order identifier of the target order, an actual total weight of each target object in the target order, and the like to the server, so that the server can obtain a preset weight range of the target order based on the order identifier of the target order, generate order error prompt information when the actual total weight of each target object in the target order is not within the preset weight range, and send the order error prompt information to the electronic scale 200, so that the electronic scale 200 can prompt a merchant. The Communication module includes at least one of a bluetooth sub-module, an infrared sub-module, a Near Field Communication (NFC) sub-module, a Wireless Fidelity (WiFi) sub-module, and the like.

Based on the implementation environment shown in fig. 1(a), the embodiment of the present disclosure provides a method for detecting the weight of a target object, taking an electronic scale to execute the embodiment of the present disclosure as an example, and referring to fig. 5, the method provided by the embodiment of the present disclosure includes:

501. the electronic scale obtains an order mark of the target order and the actual total weight of each target object in the target order.

The target order is an order to be subjected to weight detection at present. The order mark of the target order is the only mark of the target order, is used for distinguishing different orders, can quickly determine and find the target order, and can be in the form of an identification code or a digital form. When the electronic scale obtains the order mark of the target order, the electronic scale can scan the identification code on the target order based on the scanning sub-module, so as to obtain the order mark of the target order; the electronic scale can also detect the input operation of the merchant on the input sub-module, and obtain the order number input by the merchant, so as to obtain the order identification of the target order.

For example, if the objects in the target order include dishes, packages, and tableware, the actual total weight is the sum of the weights of the dishes, packages, and tableware. When the target order is prepared, the merchant can place the target object corresponding to the target order on the electronic scale, and the weighing module of the electronic scale weighs each target object in the target order to obtain the actual total weight.

502. And the electronic scale acquires a preset weight range of the target order according to the order mark.

The preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and can be determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval.

In an embodiment of the present disclosure, when the electronic scale obtains the preset weight range of the target order according to the order identifier, the following method may be adopted:

50211. and the electronic scale acquires the theoretical weight of each target object in the target order and a corresponding preset confidence interval according to the order identification.

In the embodiment of the present disclosure, a merchant may input in advance an order identifier of a target order, a theoretical weight of each target object in the target order, and a preset confidence level interval of each target object, where the theoretical weight of each target object in the target order may be the same or different, and may specifically be determined according to an actual order condition, and similarly, the preset confidence level interval of each target object in the target order may be the same or different, and may specifically be determined according to an actual order condition. Based on the input operation of a merchant, the electronic scale stores the order identification of the target order, the theoretical weight of each target object in the target order and a corresponding preset confidence interval. When the order identification of the target order is obtained, the electronic scale can determine each target object in the target order according to the order identification, and further obtain the theoretical weight and the corresponding preset confidence interval of each target object in the target order.

50212. And the electronic scale multiplies the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence coefficient interval to obtain the weight difference range of each target object.

The weight difference range of the target object is the difference range allowed by the difference between the theoretical weight and the actual weight of the target object. For example, the theoretical weight of the object is 1000g, the preset confidence interval of the object is [ -10%, 10% ], and the weight difference of the object is [ -100g, 100g ].

50213. The electronic scale adds the theoretical weight of each target object to the end point values at the two ends of the corresponding weight difference range to obtain the weight range of each target object.

Wherein the weight range of the target object is the allowable weight range of the target object. For example, the theoretical weight of an object is 1000g, the difference in weight of objects is in the range of [ -100g, 100g ], and the weight of the object is in the range of [900g, 1100g ].

50214. And adding the endpoint values of the same end in the weight range of each target object by the electronic scale to obtain a preset weight range.

Adding the endpoint values of the left end in the weight range of each target object in the target order by the electronic scale to obtain the minimum value of the actual total weight of each target object in the target order; and adding end point values at the right end in the weight range of each target object in the target order by the electronic scale to obtain the maximum value of the actual total weight of each target object in the target order. Then, a preset weight range is determined based on the minimum value of the actual total weight of each object in the object order and the maximum value of the actual total weight of each object in the object order. For example, the object order includes object 1, object 2, and object 3, object 1 has a weight range of [900g, 1100g ], object 2 has a weight range of [800g, 1200g ], object 1 has a weight range of [700g, 1300g ], and the predetermined weight range of the object order is [2400g, 3600g ].

In another embodiment of the present disclosure, when the electronic scale obtains the preset weight range of the target order according to the order identifier, the following method may be adopted:

50221. and the electronic scale acquires the theoretical weight of each target object in the target order and a corresponding preset confidence interval according to the order identification.

The step is the same as the step 50211 in the specific implementation, and refer to the step 50211 in the specific implementation, which is not described herein again.

50222. The electronic scale adds the theoretical weight of each object in the target order to obtain the initial total weight of each object in the target order.

50223. And the electronic scale determines the total confidence degree interval of the target order according to the preset confidence degree interval of each target object in the target order.

In a possible implementation manner, the electronic scale may obtain a preset confidence interval with a maximum confidence value from the preset confidence intervals of the respective targets, and then use the preset confidence interval with the maximum confidence value as a total confidence interval. For example, the target object in the target order is dish 1, dish 2, and dish 3, the preset confidence interval of dish 1 is [ -1%, 1% ], the preset confidence interval of dish 2 is [ -2%, 2% ], and the preset confidence interval of dish 3 is [ -1%, 1% ], then the electronic scale obtains the preset confidence interval [ -2%, 2% ] with the largest confidence value from the preset confidence intervals of dish 1, dish 2, and dish 3, and then takes the preset confidence interval [ -2%, 2% ] with the largest confidence value as the total confidence interval of the target order.

In another possible implementation manner, the electronic scale may multiply the theoretical weight of each target by the interval endpoint value of the corresponding preset confidence interval to obtain the weight difference range of each target, and further add the endpoint values of the same end in the weight difference range of each target and divide the added endpoint values by the initial total weight to obtain the total confidence interval. For example, the target object in the target order is dish 1, dish 2, and dish 3, the theoretical weight of dish 1 is 1000g, the preset confidence interval is [ -10%, 10% ], the theoretical weight of dish 2 is 1000g, the preset confidence interval is [ -20%, 20% ], the theoretical weight of dish 3 is 1000g, and the preset confidence interval is [ -10%, 10% ], the electronic scale multiplies the theoretical weight of dish 1 by the interval endpoint value of the corresponding preset confidence interval to obtain the weight difference range of dish 1 [ -100g, 100g ], the electronic scale multiplies the theoretical weight of dish 2 by the interval endpoint value of the corresponding preset confidence interval to obtain the weight difference range of dish 2 [ -200g, 200g ], the electronic scale multiplies the theoretical weight of dish 3 by the interval endpoint value of the corresponding preset confidence interval, obtaining the weight difference range of the dish 3 of [ -100g, 100g ], then adding the end values of the same end in the weight difference ranges of the three targets by the electronic scale to obtain the total weight difference range of [ -400g, 400g ], further dividing the total weight difference range by the initial total weight of 3000g to obtain the total confidence degree interval of [ -13.3%, 13.3% ].

50224. And the electronic scale multiplies the initial total weight by the interval endpoint value of the total confidence interval to obtain the total mass difference range.

For example, an initial total weight of the target order of 3000g, and a total confidence interval of [ -10%, 10% ], a total mass difference range of [ -300g, 300g ] may be obtained.

50225. And adding the initial total weight and the end point values at the two ends of the total difference range by the electronic scale to obtain a preset weight range.

For example, if the initial total weight of the target order is 3000g, the total mass difference is in the range of [ -300g, 300g ], then the predetermined weight range for the target order is 2700g, 3300 g.

503. And when the actual total weight is not within the preset weight range, the electronic scale carries out error prompt on the target order.

And the electronic scale compares the actual total weight of each target object in the target order with a preset weight range, and if the actual total weight of each target object in the target order is not in the preset weight range, the electronic scale predicts that missed meals or wrong meals may exist in the target order. In order to avoid the phenomena of missed meal or wrong meal, the dining experience of the user is improved, unnecessary economic loss caused to the commercial tenant is avoided, and the electronic scale carries out error prompt on the target order so as to remind the commercial tenant of checking the target order. The method for the electronic scale to prompt the target order for the error includes, but is not limited to, at least one of the following methods:

first, a voice prompt sub-module of the electronic device prompts the merchant in a voice manner, for example, "the order weight is overweight or the order weight is insufficient, please check the order, etc.

And secondly, controlling a vibration motor to vibrate at a first preset frequency by a vibrator module of the electronic equipment so as to prompt the merchant.

And thirdly, the display sub-module of the electronic equipment controls the flash lamp to flash at a second preset frequency so as to prompt the merchant.

Of course, besides using the electronic scale to prompt the merchant, the electronic scale may also generate error prompt information, send the generated error prompt information to the terminal of the merchant (for example, the mobile phone of the merchant, the device such as a dining treasure, etc.), and then prompt the merchant by the terminal of the merchant.

Under the normal condition that missed or wrong meal does not appear, the actual total weight of target order form generally can be in predetermineeing the weight range, if when missed or wrong meal appears, the actual total weight of target order form can have great deviation and not in predetermineeing the weight range, in view of this disclosed embodiment detects through the actual total weight to each target object in the target order form, can be when the actual total weight of each target object is not in predetermineeing the weight range in the target order form, in time indicate the merchant, thereby avoid the condition that missed or wrong meal appears in the target order form, user's dining experience has been improved, avoid the merchant to receive the loss.

In another embodiment of the disclosure, if the merchant checks the target order, if the target order is found to have no missed or wrong meal, the user may perform a confirmation operation on the electronic scale, and after the confirmation operation of the merchant is detected, the electronic scale generates an order confirmation message, and in response to the order confirmation message, the electronic scale stops performing error prompt on the target order.

In another embodiment of the present disclosure, in response to the order confirmation message, it indicates that the merchant has checked that the target order does not have missed or wrong meals, the actual total weight of each target object in the target order is reasonable, and for convenience of subsequent applications, the electronic scale corrects the preset weight range of the target order according to the actual total weight, so as to reduce the false alarm rate.

In another embodiment of the present disclosure, the objects included in different orders may be mostly the same, but some objects are different, and the electronic scale may obtain the actual weight of some objects by subtracting the actual total weight of different orders, so as to obtain a rich sample. For example, if the first order includes dishes A, B and C and the second order includes dishes A, B, C and D, the actual weight of dish D can be obtained by subtracting the actual total weight of each dish in the second order from the actual total weight of each dish in the first order.

Along with the increase of the service time of a merchant, the number of samples acquired by the electronic scale is more and more abundant, and the confidence interval of dishes of the merchant calculated by the electronic scale is more and more accurate through continuous learning and correction, so that the accuracy of the detection result of the electronic scale can be continuously improved, and the problem of missing or missing meals is avoided to a great extent.

The method provided by the embodiment of the disclosure has the following application scenarios:

the electronic scale is arranged in the meal outlet cabinet on the side of the merchant in the first scene, and when the merchant takes meals, the weight of meals can be weighed through the electronic scale, so that the condition that the meals are mistakenly taken or lost is avoided.

The second scene, set up the electronic scale in customer's the cupboard of getting, when customer got meal, the quality of meal article was weighed to the accessible electronic scale to avoid missing the meal or losing the condition of meal and take place.

The method provided by the embodiment of the disclosure determines the preset weight range of the target order based on the theoretical weight of each target object in the target order and the corresponding preset confidence interval, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and then checks the target order in the total dimension by comparing the actual total weight corresponding to the target order with the preset weight range, and when the actual total weight corresponding to the target order is not within the preset weight range, the target order is checked by prompting a merchant, so that the occurrence probability of missed or wrong meals is greatly reduced.

The embodiment of the present disclosure provides a method for detecting a weight of a target object, taking an electronic scale and a server to execute the embodiment of the present disclosure as an example, referring to fig. 6, the method provided by the embodiment of the present disclosure includes:

601. and the server receives the order identification of the target order sent by the electronic scale and the actual total weight of each target object in the target order.

After the target order configuration is completed, the electronic scale can scan the identification code on the target order based on the scanning sub-module to obtain the order identification of the target order, or obtain the order identification of the target order by detecting the order number input by the merchant on the input sub-module.

After the target order is prepared, the merchant places the target object corresponding to the target order on the electronic scale, and the weighing module of the electronic scale weighs each target object in the target order to obtain the actual total weight of each target object in the target order.

Based on the obtained order identification of the target order and the actual total weight of each target object in the target order, the electronic equipment sends the order identification of the target order and the actual total weight of each target object in the target order to the server.

In another embodiment of the present disclosure, in order to facilitate monitoring of the order configuration state of the merchant, after the order identifier of the target order and the actual total weight of each target object in the target order are obtained, the server further changes the state of the target order into a production completion state.

602. And the server acquires a preset weight range of the target order according to the order identification.

The step is the same as the step 502 when implemented specifically, and refer to the step 502 specifically, which is not described herein again.

603. And when the actual total weight is not within the preset weight range, the server sends an order error prompt message to the electronic scale.

And the server compares the actual total weight of each target object in the target order with a preset weight range, and if the actual total weight of each target object in the target order is not in the preset weight range, the server predicts that missed meals or wrong meals may exist in the target order. In order to avoid the phenomena of missed dining or wrong dining, the dining experience of the user is improved, unnecessary economic loss caused to the commercial tenant is avoided, the server generates order error prompt information and sends the order error prompt information to the electronic scale.

In another embodiment of the present disclosure, the server changes the status of the target order to a waiting for delivery status if the actual total weight of each object in the target order is within a preset weight range.

604. And when the order error prompt message is received, the electronic scale carries out error prompt on the target order.

When the order error prompt message is received, the electronic scale prompts the merchant by the prompt module, so that the merchant can check the target order in time, the phenomena of missing or wrong dining are avoided, the dining experience of the user is improved, and unnecessary economic loss caused to the merchant is avoided. For the prompting manner of the electronic scale, refer to step 503 above specifically, and are not described here again.

The method provided by the embodiment of the disclosure determines the preset weight range of the target order based on the theoretical weight of each target object in the target order and the corresponding preset confidence interval, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and then checks the target order in the total dimension by comparing the actual total weight corresponding to the target order with the preset weight range, and when the actual total weight corresponding to the target order is not within the preset weight range, the target order is checked by prompting a merchant, so that the occurrence probability of missed or wrong meals is greatly reduced.

Referring to fig. 7, an embodiment of the present disclosure provides a weight detecting device for an object, including:

an obtaining module 701, configured to obtain an order identifier of a target order and an actual total weight of each target object in the target order;

the obtaining module 701 is further configured to obtain a preset weight range of the target order according to the order identifier, where the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and the preset weight range is determined according to the theoretical weight of each target object in the target order and a corresponding preset confidence interval;

and the prompting module 702 is configured to perform error prompting on the target order when the actual total weight is not within the preset weight range.

In another embodiment of the present disclosure, the obtaining module 701 is configured to receive an order identifier and an actual total weight sent by the electronic scale, where the order identifier is obtained by an information obtaining module of the electronic scale, and the actual total weight is weighed by a weighing module of the electronic scale.

In another embodiment of the present disclosure, the apparatus further comprises:

and the changing module is used for changing the state of the target order into a manufacturing completion state.

In another embodiment of the present disclosure, the obtaining module 701 is configured to obtain, according to an order identifier, a theoretical weight and a corresponding preset confidence interval of each target object in a target order; multiplying the theoretical weight of each target object by the corresponding interval endpoint value of the preset confidence interval to obtain the weight difference range of each target object; adding the theoretical weight of each target object and the end point values at the two ends of the corresponding weight difference range to obtain the weight range of each target object; and adding the end point values of the same end in the weight range of each target object to obtain a preset weight range.

In another embodiment of the present disclosure, the obtaining module 701 is configured to obtain, according to an order identifier, a theoretical weight and a corresponding preset confidence interval of each target object in a target order; adding the theoretical weight of each target object in the target order to obtain the initial total weight of each target object in the target order; determining a total confidence interval of the target order according to the preset confidence interval of each target object in the target order; multiplying the initial total weight by the interval endpoint value of the total confidence interval to obtain a total mass difference range; and adding the initial total weight and the end point values at the two ends of the total difference range to obtain a preset weight range.

In another embodiment of the present disclosure, the obtaining module 701 is configured to obtain a preset confidence interval with a maximum confidence value from the preset confidence intervals of the respective target objects as a total confidence interval.

In another embodiment of the present disclosure, the obtaining module 701 is configured to multiply the theoretical weight of each target by an interval endpoint value of a corresponding preset confidence interval, so as to obtain a weight difference range of each target; and adding the end point values of the same end in the weight difference range of each target object, and dividing the end point values by the initial total weight to obtain a total confidence interval.

In another embodiment of the present disclosure, the apparatus further comprises:

and the correcting module is used for responding to the order confirmation message, correcting the preset weight value range according to the actual total weight, and the order confirmation message is generated in response to the confirmation operation of the merchant.

In another embodiment of the present disclosure, the apparatus further comprises:

and the changing module is used for changing the state of the target order into the state of waiting for delivery if the actual total weight is within the preset weight range or an order confirmation message is received.

The device provided by the embodiment of the disclosure determines the preset weight range of the target order based on the theoretical weight of each target object in the target order and the corresponding preset confidence interval, wherein the preset weight range is a weight range within which the actual total weight of each target object in the target order is allowed to fluctuate, and then the target order is checked on the total dimension by comparing the actual total weight corresponding to the target order with the preset weight range, and when the actual total weight corresponding to the target order is not within the preset weight range, the target order is checked by prompting a merchant, so that the occurrence probability of missed or wrong meals is greatly reduced.

Fig. 8 shows a block diagram of an electronic device 800 according to an exemplary embodiment of the present disclosure. In general, the apparatus 800 includes: a processor 801 and a memory 802.

The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.

Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for execution by processor 801 to implement the method for weight detection of an object provided by method embodiments in the present disclosure.

In some embodiments, the electronic device 800 may further optionally include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: a power supply 804.

The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.

The power supply 804 is used to power the various components in the electronic device 800. The power source 804 may be alternating current, direct current, disposable or rechargeable. When the power source 804 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.

Those skilled in the art will appreciate that the configuration shown in fig. 8 does not constitute a limitation of electronic device 800, and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.

The embodiment of the disclosure provides a computer-readable storage medium, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to realize the weight detection method of the target object. The computer readable storage medium may be non-transitory. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

The above description is intended to be exemplary only and not to limit the present disclosure, and any modification, equivalent replacement, or improvement made without departing from the spirit and scope of the present disclosure is to be considered as the same as the present disclosure.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于收集固态食品的方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类