CN113934488A - Food calorie determination method, device, equipment and storage medium - Google Patents

Food calorie determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN113934488A
CN113934488A CN202111114833.7A CN202111114833A CN113934488A CN 113934488 A CN113934488 A CN 113934488A CN 202111114833 A CN202111114833 A CN 202111114833A CN 113934488 A CN113934488 A CN 113934488A
Authority
CN
China
Prior art keywords
food
calorie
target
calories
selection interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111114833.7A
Other languages
Chinese (zh)
Inventor
徐维纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202111114833.7A priority Critical patent/CN113934488A/en
Publication of CN113934488A publication Critical patent/CN113934488A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The application discloses a method, a device, equipment and a storage medium for determining food heat, and belongs to the technical field of software. The method comprises the following steps: displaying a food selection interface of the application program, wherein the food selection interface comprises at least one adding control corresponding to at least one food; receiving an adding operation on an adding control of the target food, wherein the adding operation is used for adding the target food to the shopping cart; in response to the adding operation, a total calorie of the added food in the shopping cart is displayed on the food selection interface, the added food including the target food. The method can display the total calorie of the purchased food and provide a reference for ordering for the user.

Description

Food calorie determination method, device, equipment and storage medium
Technical Field
The present application relates to the field of software technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining food calories.
Background
There is a group of users who need to have strict control over the caloric intake of each meal.
In the take-out software, the weight of a part of the goods (i.e. food) is displayed; for example, each item offered by a fruit shop may be weight-marked.
If the user needs to know the heat quantity provided by one commodity, the heat quantity is converted based on the unit heat quantity of the commodity and the weight of the commodity; wherein, the unit calorie is the calorie provided by the food of unit weight.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for determining food calories, wherein the method can show the total calories of purchased food and provide a reference for ordering for a user. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method of determining food calories, the method including:
displaying a food selection interface of the application program, wherein the food selection interface comprises at least one adding control corresponding to at least one food;
receiving an adding operation on an adding control of the target food, wherein the adding operation is used for adding the target food to the shopping cart;
in response to the adding operation, a total calorie of the added food in the shopping cart is displayed on the food selection interface, the added food including the target food.
According to another aspect of the present application, there is provided a food calorie determination apparatus including:
the display module is used for displaying a food selection interface of the application program, and the food selection interface comprises at least one adding control corresponding to at least one type of food;
the receiving module is used for receiving an adding operation on the adding control of the target food, and the adding operation is used for adding the target food to the shopping cart;
the display module is used for responding to the adding operation and displaying the total heat of the added food in the shopping cart on the food selection interface, wherein the added food comprises the target food.
According to another aspect of the present application, there is provided a computer apparatus, including: a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method of determining the caloric content of a food as described above.
According to another aspect of the present application, there is provided a computer readable storage medium having stored therein a computer program which is loaded and executed by a processor to implement the method for determining the calorie of food as described above.
According to another aspect of the present application, a computer program product is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the method for determining the food calorie as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps that a calculation program of food calories is set in an application program, a food selection interface of the application program is displayed on a terminal, the terminal receives an adding operation of target food, responds to the adding operation, adds the target food into a shopping cart, meanwhile, calculates the total calories of the added food in the shopping cart, displays the total calories of the added food on the food selection interface, and provides a reference for a user to order, so that the user can determine a purchase order based on the total calories of the added food, and the intake calories of each meal can be strictly controlled; secondly, the user does not need to calculate the food calorie by oneself any more, and the efficiency of ordering can also be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an interface for displaying food calories provided by an exemplary embodiment of the present application;
FIG. 2 illustrates a block diagram of a computer system provided in an exemplary embodiment of the present application;
FIG. 3 illustrates a flow chart of a method for determining food calories provided by an exemplary embodiment of the present application;
FIG. 4 illustrates a schematic diagram of an interface for displaying food calories provided by another exemplary embodiment of the present application;
FIG. 5 illustrates a flow chart of a method of determining food calories provided by another exemplary embodiment of the present application;
FIG. 6 illustrates a schematic diagram of an interface for displaying food calories provided by another exemplary embodiment of the present application;
FIG. 7 illustrates a flow chart of a method of determining food calories provided by another exemplary embodiment of the present application;
FIG. 8 illustrates a schematic diagram of an interface for displaying food calories provided by another exemplary embodiment of the present application;
FIG. 9 illustrates a schematic view of an interface for displaying food calories provided by another exemplary embodiment of the present application;
FIG. 10 shows a block diagram of a food calorie determination apparatus provided by an exemplary embodiment of the present application;
fig. 11 shows a schematic structural diagram of a computer device provided in an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For the user who needs to strictly control the daily calorie intake, when the user orders through the take-out software, the user can calculate the total calorie of the food to be purchased, and the ordering efficiency is greatly reduced. In order to solve the technical problem, an embodiment of the present application provides a method for determining a calorie of food, which displays a total calorie of purchased food on a food selection interface to provide a reference for a user to order. For example, as shown in fig. 1, the terminal displays a food selection interface 101 of an application program, where the food selection interface 101 includes an addition control corresponding to food, and the addition control is used for adding the food into a shopping cart; the terminal receives the adding operation of an adding control 102 of a target food of red-heart dragon fruit, a shopping cart control 104 is displayed on a food selecting interface 101 in response to the adding operation, and the total heat 103 of the added food in the shopping cart is displayed on the shopping cart control 104: "33 kcal", in this case, only one 60g (g) of "red-heart dragon fruit" is added to the shopping cart in fig. 1, so that the total calorie of the food added to the shopping cart is the calorie of the "red-heart dragon fruit". For a detailed description of the steps in the method for determining the calorie of food, reference is made to the following examples.
The method for determining the food calorie provided by the application can be applied to a computer system. Referring to FIG. 2, a block diagram of a computer system provided by an exemplary embodiment of the present application is shown, including a terminal 220, a communication network 240, and a server 260.
The terminal 220 has an operating system and at least one application program installed therein. The operating system may be an Android (Android) system, or an apple (iOS) system, or a hong meng (HermaryOS) system, or a microsoft (windows) system. An application program is installed and operated in the terminal 220, and the application program has a food ordering function, and/or the application program supports the operation of an applet, and a type of applet has a food ordering function. And/or the system program in the terminal 220 supports fast applications, and a class of fast applications with ordering function exists. Illustratively, the application may be take-away software. Alternatively, the application supports the running of take-away applets and order applets. Alternatively, the operating system supports the running of a take-out quick application and an order quick application.
Illustratively, the terminal 220 may include at least one of a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a laptop portable computer, a desktop computer, and a notebook computer.
Illustratively, when the steps in the method for determining the food calorie are executed, the terminal 220 displays a food selection interface of the application program, where the food selection interface includes at least one adding control corresponding to at least one food; receiving an adding operation on an adding control of the target food; in response to the adding operation, displaying the total calorie of the added food in the shopping cart on the food selection interface, wherein the added food comprises the target food.
A communication network 240 exists between the terminal 220 and the server 260, and the communication network 240 may be a wired network or a wireless network. Illustratively, the wired network may be a metropolitan area network, a local area network, a fiber optic network, or the like; the Wireless network may be a mobile communication network, a Wireless Fidelity (WiFi) network, or the like.
The server 260 provides a background service for the running of at least one of an application, an applet and a fast application in the terminal 220. The server 260 may include at least one of a server 260, a plurality of servers 260, a cloud computing platform, and a virtualization center.
Illustratively, when the steps in the method for determining the food calorie are executed, the terminal 220 displays a food selection interface of the application program, where the food selection interface includes at least one adding control corresponding to at least one food; the terminal 220 receives an adding operation on the adding control of the target food; the terminal 220 also transmits an acquisition request to the server 260 through the communication network 240 in response to the above-described addition operation; the server 260 determines the total calorie of the purchased food and feeds back the total calorie of the purchased food to the terminal 220; the terminal 220 calculates the sum of the total calories from food purchased and the total calories from food added to the shopping cart, and displays the sum on the food selection interface.
Those skilled in the art will appreciate that the number of terminals 220 in the computer system described above can be greater or fewer. For example, the number of the terminals 220 in the computer system may be only one, or several tens or hundreds, or more, and the number and the device type of the terminals 220 in the computer system are not limited in the embodiment of the present application.
Referring to fig. 3, a flowchart of a method for determining food calories according to an exemplary embodiment of the present application is shown. The method is applied to the terminal in the computer system. The method comprises the following steps:
step 301, displaying a food selection interface of the application program, where the food selection interface includes at least one adding control corresponding to at least one food.
An application program is installed and operated on the terminal; the terminal displays a food selection interface of the application. Alternatively, the application supports the running of an applet, and a food selection interface of the applet is displayed in the application. Alternatively, the terminal displays a fast-applying food selection interface.
The shopping cart comprises a shopping cart body, a food selection interface, a control device and a control module, wherein at least one food is displayed on the food selection interface, an adding control corresponds to each food, and the adding control is used for adding the food to the shopping cart. The adding control is used for adding food corresponding to the adding control to the shopping cart every time the adding operation is received. Illustratively, as shown in fig. 1, the addition control 102 is an addition control of "red heart dragon fruit".
Illustratively, a deletion control is displayed on the food selection interface for deleting added food in the shopping cart. The deleting control is used for deleting the food corresponding to the deleting control from the shopping cart every time the deleting operation is received. For example, a pruning control 105 is displayed on the food selection interface 101 in FIG. 1.
For example, the food selection control can display the food price, the food name, the number of the added foods in the shopping cart, and the number of each kind of foods in the added foods in the shopping cart.
Optionally, the terminal further displays the unit calories of each of the at least one food on the food selection interface. Illustratively, as shown in fig. 1, the terminal displays a unit heat 106 of each food on the food selection interface 101, for example, the unit heat of the "kapok bean curd" is 84 big calories/100 g, that is, 100g of the "kapok bean curd" contains 100 big calories.
The terminal displays a weight of each food item corresponding to each of the at least two food items on the food selection interface. Illustratively, the terminal displays a weight 107 per serving of food on the food selection interface 101, e.g., about 70g per serving "roasted" and about 80g per serving "fried chicken leg".
The terminal also displays the number of each food in the shopping cart to which the food has been added on the food selection interface, such as the number display control 108 in fig. 1, and the number display control 108 is used for displaying the number of the food, for example, the number of the 'fried chicken leg' added to the shopping cart is 0. In the case where the unit calorie of each food, the weight of each food, and the number of servings of the food are simultaneously displayed on the terminal, the user can estimate the calorie added by adding one food based on the above data, and a reference is provided for the user to select the food.
Step 302, an adding operation on the adding control of the target food is received, and the adding operation is used for adding the target food to the shopping cart.
Illustratively, each add operation on a target food corresponds to adding a serving of the target food to the shopping cart. The adding operation may be triggered by a user through an input device on the terminal, where the input device includes, but is not limited to, at least one of a touch screen, a physical button, a mouse, and a keyboard.
Step 303, in response to the adding operation, displaying the total calorie of the added food in the shopping cart on the food selection interface, wherein the added food comprises the target food.
Under the condition that food is added into the shopping cart for the first time, the terminal responds to the adding operation on the adding control of the target food, and obtains the weight and the unit heat of the target food; the terminal calculates the calorie of the target food based on the weight and the unit calorie of the target food; and determining the calorie of the target food as the total calorie of the added food in the shopping cart, and displaying the total calorie of the added food in the shopping cart on a food selection interface, as shown in fig. 1.
Under the condition that food is added into the shopping cart at the kth time, the terminal responds to the adding operation on the adding control of the target food to obtain the weight and the unit calorie of the target food and obtain the original total calorie, wherein the original total calorie refers to the total calorie of the added food in the shopping cart before the adding operation (namely the kth adding operation) triggers, namely the original total calorie refers to the total calorie of the added food which does not contain the target food in the shopping cart; updating the total calories of the added food in the shopping cart on the food selection interface based on the sum of the calories of the target food and the original total calories; wherein k is a positive integer greater than 1.
Illustratively, as shown in fig. 4, the terminal displays a food selection interface 401, three foods have been selected in the food selection interface 401, and therefore, the total calories 405 of the three foods in the shopping cart are displayed in the food selection interface; the terminal responds to the adding operation on the adding control 402 of the kapok bean curd, and calculates the heat quantity of the kapok bean curd to be 50.4 kilocalories on the basis of the weight of 60g of the kapok bean curd and the unit heat quantity of 84 kilocalories/100 g; and calculating the sum of the total heat quantity ' 86 kcal ' of the three foods added into the shopping cart and the heat quantity ' 50.4 kcal ' of the kapok bean curd ' to obtain the total heat quantity ' 136.4 kcal ' 406 of the foods added into the shopping cart, and updating the total heat quantity ' 136.4 kcal ' of the foods added displayed on the shopping cart control. The terminal also updates the number of target foods displayed on the number display control 403 in response to the above-described addition operation.
Wherein the weight of the food is calculated based on the amount and unit weight of the food. The unit weight includes the weight of each serving; the weight of each food is set in the terminal, and the terminal responds to the adding operation of the target food and determines the number of the added target food; acquiring the unit weight of the target food; multiplying the number of the target food by the unit weight to obtain the weight of the target food.
Optionally, the terminal further displays the heat provided by the target food on the food selection interface in response to an adding operation on the adding control of the target food. Illustratively, as shown in FIG. 4, a "50.4 kcal" of heat 404 is displayed on the food selection interface after adding a slice of "kapok bean curd".
In some embodiments, the terminal further calculates the calorie of the target food in response to a pruning operation on the pruning control of the target food; and subtracting the calorie of the target food from the total calorie before the deletion of the food added into the shopping cart to obtain the total calorie after the deletion of the food added into the shopping cart, and updating the total calorie of the food added into the shopping cart on the food selection interface.
Illustratively, the terminal displays a shopping cart control on the food selection control; the terminal can display the total calories of food added to the shopping cart on the shopping cart display control.
To sum up, in the method for determining food calories provided in the embodiment of the present application, a calculation program for food calories is set in an application program, a food selection interface of the application program is displayed on a terminal, the terminal receives an adding operation of a target food, adds the target food to a shopping cart in response to the adding operation, and also calculates a total calories of the added food in the shopping cart, displays the total calories of the added food on the food selection interface, and provides a reference for a user to order, so that the user can determine a purchase order based on the total calories of the added food, and can strictly control the intake calories of each meal; secondly, the user does not need to calculate the food calorie by oneself any more, and the efficiency of ordering can also be improved.
In some embodiments, the unit calories per food are set in the application; the food is made of at least one food material, for example, leek egg dumplings are a food made of leek, eggs and flour. The food may include food made of one food material, and also food made of at least two food materials.
In other embodiments, the unit heat of each food material is set in the application program; if the target food comprises one food material, the terminal can directly calculate the calorie of the target food based on the unit calorie and the weight of the food material. If the target food comprises at least two food materials; for the calorie calculation of the target food, the terminal calculates the calorie of each food material based on the weight and the unit calorie corresponding to each food material in at least two food materials to obtain at least two calories; and calculating the sum of at least two calories to obtain the calorie of the target food.
For example, the target food comprises three food materials, and the terminal acquires the weight and the unit calorie of each food material in the target food to obtain the unit calories 1 of the food materials 1 and 1, the unit calories 2 of the food materials 2 and 2, and the unit calories 3 of the food materials 3 and 3; the terminal calculates to obtain a first heat based on the food material 1 and the unit heat 1, calculates to obtain a second heat based on the food material 2 and the unit heat 2, and calculates to obtain a third heat based on the food material 3 and the unit heat 3; and calculating the sum of the first heat, the second heat and the third heat to obtain the heat of the target food material.
There is a case where the terminal can directly obtain the weight and unit weight of each food material in the target food;
there is also a case where the terminal cannot directly obtain the weight of each food material in the target food, but can obtain the preparation ratio between at least two food materials in the target food, and the weight of the target food (i.e., the total weight of at least two food materials). In this case, before calculating the calorie of each food material based on the weight and the unit calorie corresponding to each food material of the at least two food materials, the terminal acquires the preparation ratio between the at least two food materials in the target food and acquires the weight of the target food; the weight of each food material is determined based on the formulation ratio and the weight of the target food.
For example, the target food includes food 4 and food 5; the terminal is provided with a preparation ratio of target food and a weight of the target food, wherein the preparation ratio of the food material 4 to the food material 5 is 4:1, and the weight of the target food is 200 g; the target food comprises 160g of food materials 4 and 40g of food materials 5 calculated by the terminal according to the preparation ratio.
Some foods have seasoned food materials, the weight of the partially seasoned food materials can be ignored, but the weight of the partially seasoned food materials cannot be ignored, so that the seasoned food materials in the food materials of the target food need to be rejected, and the weight of the seasoned food materials in the weight of the target food needs to be rejected before the food calories are calculated based on each food material in the target food. Exemplarily, the target food comprises at least two candidate food materials; the terminal identifies a seasoned food material of at least two candidate food materials; under the condition that seasoning food materials exist in at least two candidate food materials, the seasoning food materials are removed, and at least two food materials used for calculating the calorie of the target food are obtained; and then, acquiring the unit heat and the weight of each food material in the at least two food materials, and calculating the heat of the target food.
Exemplarily, if the terminal obtains the preparation ratio between at least two candidate food materials in the target food and the weight of the target food; the terminal determines the weight of each candidate food material based on the configuration proportion and the weight of the target food; then, the terminal identifies a seasoned food material in the at least two candidate food materials; under the condition that seasoning food materials exist in at least two candidate food materials, the seasoning food materials are removed, and at least two food materials used for calculating the calorie of the target food are obtained; then, the unit heat and the weight of each food material in the at least two food materials are obtained, and the heat of the target food is calculated.
The method provided by the embodiment can quickly and accurately calculate the calorie of the target food, and provides an accurate food calorie reference for a user.
In some embodiments, the terminal also displays the total calories of the added food on the shopping cart interface to facilitate the user in adjusting the shopping list (i.e., the food list) in the shopping cart based on the calories of the food. Fig. 5 is a flowchart illustrating a method for determining food calorie according to an exemplary embodiment of the present application. The method is applied to the terminal in the computer system. The method comprises the following steps:
step 501, displaying a food selection interface of an application program, wherein the food selection interface comprises a shopping cart control.
The terminal displays a food selection interface of the application program, and displays the total heat of the added food in the shopping cart in the food selection interface of the application program.
Step 502, receiving a deployment operation triggered on a shopping cart control.
In step 503, in response to the unfolding operation on the shopping cart control, a list of food items in the shopping cart with food items added is displayed, and the total calorie of the food items in the shopping cart is displayed.
The terminal responds to the expansion operation on the shopping cart control piece, displays a food list of the added food in the shopping cart, the food list comprises a list item corresponding to each added food, and the list item displays the heat corresponding to each added food.
Illustratively, as shown in fig. 6, the terminal displays a food selection interface 601, and a shopping cart control 602 is displayed on the food selection interface 601; the terminal responds to the expansion operation on the shopping cart control 602, displays a shopping cart interface 603 of an application program, and displays a food list 604 of the added food in the shopping cart on the shopping cart interface 603; the food added in the food list 604 is displayed in the form of a list item 605, the unit calorie of each food and the weight (namely the unit weight) of each food are displayed on the list item of each food, for example, the unit calorie of "14 big calorie/100 g" and the unit weight of "about 70 g" are displayed on the list item of "baked and baked melon"; the calorie of each food is also displayed on the list item of the food, for example, the calorie of 9.8 kcal added with a food is displayed on the list item of the baked jiua.
In summary, according to the method for determining food calories provided by this embodiment, the total calories of the added food and the calories of each kind of food in the added food are displayed on the shopping cart interface, so as to provide a food calorie reference for the user in the case of adjusting the shopping list on the shopping cart interface.
In some embodiments, the terminal further displays the purchased food within the shopping date and the total calories of the food added to the shopping cart on the food selection interface and the shopping cart interface so that the user can know the calorie intake situation throughout the day on the shopping date. Fig. 7 is a flowchart illustrating a method for determining food calorie according to an exemplary embodiment of the present application. The method is applied to the terminal of the computer system. The method may add step 701 in fig. 3, the method comprising:
in step 701, the terminal responds to the adding operation on the adding control of the target food and also displays the total heat of the food expected to be consumed within the purchase date on the food selection interface.
Wherein the total calories for the food expected to be consumed include the total calories for the food purchased on the purchase date and the total calories for the food added to the shopping cart.
The terminal responds to the adding operation on the target food adding control and sends an acquisition request to the server, wherein the acquisition request is used for acquiring the ingested calorie from the server, and the ingested calorie is the total calorie of the purchased food in the purchase date; the terminal receives the ingested heat fed back by the server; the terminal calculates the sum of the intake calories and the total calories of the food added to the shopping cart to obtain the total calories of the food expected to be consumed. Thereafter, the terminal displays the total calories 802 expected to consume food on the food selection interface 801, as shown in fig. 8, and the total calories 802 expected to consume food may be displayed on the shopping cart control 803, for example; alternatively, the total calories 902 expected to consume food are displayed on the shopping cart interface 901, as shown in FIG. 9.
It should be noted that, at the server side, the server receives an acquisition request, where the acquisition request includes a user account; the server searches for a paid order corresponding to the user account in the shopping date; and under the condition that the ingested heat corresponding to each paid order is stored in the server, the server feeds back the ingested heat corresponding to the paid order to the terminal. Or the server does not have the ingested calories corresponding to the paid orders, calculates the total calories of the foods purchased in the paid orders to obtain the ingested calories corresponding to the paid orders, and feeds back the ingested calories corresponding to the paid orders to the terminal.
A heat threshold value is also set in the application program, and the heat threshold value can be preset or set by a user; the terminal displays a prompt message on the food selection interface in response to the total calories expected to consume the food being greater than the caloric threshold. The prompt message is used to prompt that the total calories of the food expected to be consumed within the purchase date exceed the calories ingested by the user. Illustratively, the prompt message may be edited by the user, or may be preset in the application.
In summary, the method for determining the calorie of food provided by the embodiment of the application further provides the predicted calorie intake in one day for the user, so that the user can more reasonably plan the calorie intake of one meal.
Fig. 10 shows a block diagram of a device for determining food calorie, which may be implemented as part or all of a terminal by software, hardware, or a combination of both, according to an exemplary embodiment of the present application. The device includes:
the display module 1001 is configured to display a food selection interface of an application, where the food selection interface includes at least one addition control corresponding to at least one type of food;
a receiving module 1002, configured to receive an adding operation on an adding control of a target food, where the adding operation is used to add the target food to a shopping cart;
a display module 1001 for displaying, on the food selection interface, a total calorie of the added food in the shopping cart in response to the adding operation, the added food including the target food.
In some embodiments, the display module 1001 is configured to:
in response to the adding operation, acquiring the weight and the unit calorie of the target food, and acquiring the original total calorie, wherein the original total calorie is the total calorie of the added food in the shopping cart before the adding operation is triggered;
calculating the calorie of the target food based on the weight and the unit calorie;
the total calories of the added food in the shopping cart on the food selection interface are updated based on the sum of the calories of the target food and the original total calories.
In some embodiments, the target food comprises at least two food materials; a display module 1001 for:
calculating the heat of each food material based on the weight and the unit heat corresponding to each food material in the at least two food materials to obtain at least two heats;
and calculating the sum of at least two calories to obtain the calorie of the target food.
In some embodiments, the apparatus further comprises an obtaining module 1003 and a determining module 1004;
an obtaining module 1003, configured to obtain a preparation ratio between at least two food materials in a target food;
a determining module 1004 for determining a weight of each food material based on the formulation ratio and the weight of the target food.
In some embodiments, the target food comprises at least two candidate food materials; the apparatus also includes a determining module 1004:
a determining module 1004, configured to, in a case that there is a seasoned food material in the at least two candidate food materials, reject the seasoned food material to obtain at least two food materials for calculating the calorie of the target food.
In some embodiments, the display module 1001 is configured to display the unit calories of each of the at least two foods on the food selection interface.
In some embodiments, the display module 1001 is configured to display the heat provided by the target food on the food selection interface in response to the adding operation.
In some embodiments, a shopping cart control is included on the food selection interface;
the display module 1001 is configured to display a food list of the added food in the shopping cart in response to an expansion operation on the shopping cart control, where the food list includes a list item corresponding to each type of the added food, and a calorie corresponding to each type of the added food is displayed on the list item.
In some embodiments of the present invention, the,
a display module 1001 for displaying the total calories of the food expected to be consumed within the purchase date on the food selection interface, the total calories of the food expected to be consumed including the total calories of the purchased food and the total calories of the food added to the shopping cart.
In some embodiments of the present invention, the,
a display module 1001, configured to display a prompt message on the food selection interface in response to the total calorie of the food expected to be consumed being greater than the calorie threshold, the prompt message being used to prompt that the total calorie of the food expected to be consumed within the purchase date exceeds the calorie intake required by the user.
To sum up, the device for determining food calories provided in the embodiment of the present application sets a program for calculating food calories in an application program, displays a food selection interface of the application program on the device, and the terminal receives an adding operation of a target food, adds the target food to a shopping cart in response to the adding operation, and also calculates a total calorie of the added food in the shopping cart, displays the total calorie of the added food on the food selection interface, and provides a reference for a user to order, so that the user can determine a purchase order based on the total calorie of the added food, and can strictly control the intake calorie of each meal; secondly, the user does not need to calculate the food calorie by oneself any more, and the efficiency of ordering can also be improved.
Fig. 11 shows a schematic structural diagram of a computer device provided in an exemplary embodiment of the present application. The computer device may be a device that performs the method of determining food calories as provided herein. Specifically, the method comprises the following steps:
the computer apparatus 1100 includes a Central Processing Unit (CPU) 1101, a system Memory 1104 including a Random Access Memory (RAM) 1102 and a Read Only Memory (ROM) 1103, and a system bus 1105 connecting the system Memory 1104 and the Central Processing Unit 1101. The computer device 1100 also includes a basic Input/Output System (I/O) 1106, which facilitates information transfer between various devices within the computer, and a mass storage device 1107 for storing an operating System 1113, application programs 1114, and other program modules 1115.
The basic input/output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse, keyboard, etc. for user input of information. Wherein the display 1108 and the input device 1109 are connected to the central processing unit 1101 through an input output controller 1110 connected to the system bus 1105. The basic input/output system 1106 may also include an input/output controller 1110 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1110 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) that is connected to the system bus 1105. The mass storage device 1107 and its associated computer-readable media provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include a computer-readable medium (not shown) such as a hard disk or Compact disk Read Only Memory (CD-ROM) drive.
Computer-readable media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Solid State Memory technology, CD-ROM, Digital Versatile Disks (DVD), or Solid State Drives (SSD), other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 1104 and mass storage device 1107 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 1100 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 1100 may connect to the network 1112 through the network interface unit 1111 that is connected to the system bus 1105, or may connect to other types of networks or remote computer systems (not shown) using the network interface unit 1111.
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
In an alternative embodiment, a computer device is provided, the computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the at least one instruction, the at least one program, set of codes, or set of instructions being loaded and executed by the processor to implement the method of determining the caloric content of a food as described above.
In an alternative embodiment, a computer readable storage medium is provided having at least one instruction, at least one program, code set, or set of instructions stored therein, which is loaded and executed by a processor to implement the method for determining food caloric as described above.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
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 present application further provides a computer-readable storage medium having at least one instruction, at least one program, code set, or set of instructions stored therein, which is loaded and executed by a processor to implement the method for determining food calories provided by the above-described method embodiments.
The present application also provides a computer program product comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the method for determining the food calorie as described above.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
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 only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A method for determining the calorie of a food, the method comprising:
displaying a food selection interface of an application program, wherein the food selection interface comprises at least one adding control corresponding to at least one food;
receiving an adding operation on an adding control of a target food, wherein the adding operation is used for adding the target food to a shopping cart;
in response to the adding operation, displaying a total calories of added food in the shopping cart on the food selection interface, the added food including the target food.
2. The method of claim 1, wherein said displaying in said food selection interface a total calories from food that have been added to said shopping cart in response to said adding operation comprises:
responding to the adding operation, acquiring the weight and the unit calorie of the target food, and acquiring the original total calorie, wherein the original total calorie refers to the total calorie of the added food in the shopping cart before the adding operation is triggered;
calculating a calorie of the target food based on the weight and the unit calorie;
updating the total calories of the added food in the shopping cart on the food selection interface based on the sum of the calories of the target food and the original total calories.
3. The method of claim 2, wherein the target food comprises at least two food materials;
the calculating the calorie of the target food based on the weight and the unit calorie includes:
calculating the heat of each food material based on the weight and the unit heat corresponding to each food material in the at least two food materials to obtain at least two heats;
and calculating the sum of the at least two calories to obtain the calorie of the target food.
4. The method of claim 3, wherein calculating the calories of each of the at least two food materials based on the weight and the unit calories for each food material comprises, before obtaining at least two calories:
obtaining a preparation ratio between the at least two food materials in the target food;
determining a weight of each food material based on the formula ratio and the weight of the target food.
5. The method according to claim 3 or 4, wherein the target food comprises at least two candidate food materials;
before calculating the calorie of each food material based on the weight and the unit calorie corresponding to each food material of the at least two food materials to obtain at least two calories, the method comprises the following steps:
and under the condition that seasoning food materials exist in the at least two candidate food materials, rejecting the seasoning food materials to obtain the at least two food materials used for calculating the calorie of the target food.
6. The method of any of claims 1 to 4, wherein displaying the application's food selection interface comprises:
displaying a unit calorie of each of the at least two foods on the food selection interface.
7. The method of any of claims 1 to 4, further comprising:
in response to the adding operation, displaying the heat provided by the target food on the food selection interface.
8. The method of any of claims 1 to 4, wherein a shopping cart control is included on the food selection interface;
the method further comprises the following steps:
and responding to an expansion operation on the shopping cart control, displaying a food list of the added food in the shopping cart, wherein the food list comprises a list item corresponding to each kind of the added food, and the list item is displayed with heat corresponding to each kind of the added food.
9. The method of any of claims 1 to 4, further comprising:
displaying a total calories of food expected to be consumed within a purchase date on the food selection interface, the total calories of food expected to be consumed including a total calories of purchased food and a total calories of the added food in the shopping cart.
10. The method of claim 9, further comprising:
in response to the total calories of the food consumption being greater than the caloric threshold, displaying a prompt on the food selection interface for prompting that the total calories of the food consumption estimated within the purchase date exceed the user's desired calories for intake.
11. An apparatus for determining the caloric content of a food, the apparatus comprising:
the display module is used for displaying a food selection interface of an application program, and the food selection interface comprises at least one adding control corresponding to at least one type of food;
the receiving module is used for receiving an adding operation on an adding control of target food, and the adding operation is used for adding the target food to a shopping cart;
the display module is used for responding to the adding operation and displaying the total heat of the added food in the shopping cart on the food selection interface, wherein the added food comprises the target food.
12. A computer device, characterized in that the computer device comprises: a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method of determining food calories according to any one of claims 1 to 10.
13. A computer-readable storage medium, in which a computer program is stored, which is loaded and executed by a processor to implement the method for determining the calorie of a food according to any one of claims 1 to 10.
CN202111114833.7A 2021-09-23 2021-09-23 Food calorie determination method, device, equipment and storage medium Pending CN113934488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111114833.7A CN113934488A (en) 2021-09-23 2021-09-23 Food calorie determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111114833.7A CN113934488A (en) 2021-09-23 2021-09-23 Food calorie determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113934488A true CN113934488A (en) 2022-01-14

Family

ID=79276451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111114833.7A Pending CN113934488A (en) 2021-09-23 2021-09-23 Food calorie determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113934488A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120310758A1 (en) * 2011-06-01 2012-12-06 International Business Machines Corporation Guideline-Based Food Purchase Management
CN107833614A (en) * 2017-10-26 2018-03-23 咪咕互动娱乐有限公司 A kind of energy monitoring method, device and storage medium
CN108985882A (en) * 2018-06-25 2018-12-11 刘欣 Recipe application method, terminal, system and medium based on electric business platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120310758A1 (en) * 2011-06-01 2012-12-06 International Business Machines Corporation Guideline-Based Food Purchase Management
CN107833614A (en) * 2017-10-26 2018-03-23 咪咕互动娱乐有限公司 A kind of energy monitoring method, device and storage medium
CN108985882A (en) * 2018-06-25 2018-12-11 刘欣 Recipe application method, terminal, system and medium based on electric business platform

Similar Documents

Publication Publication Date Title
US10441112B1 (en) Food preparation system and method using a scale that allows and stores modifications to recipes based on a measured change to one of its ingredients
CN111177563B (en) Information recommendation method and device, electronic equipment and storage medium
US20140089321A1 (en) Method and system to recommend recipes
CN107092647B (en) Method and device for providing resource combination
US20130262995A1 (en) Systems and Methods for Menu and Shopping List Creation
JP6903523B2 (en) Information processing equipment, information processing methods, and programs
JP7107222B2 (en) Product demand forecast system, product demand forecast method and product demand forecast program
US20160357941A1 (en) Systems and methods for providing meal plans
US20190164116A1 (en) System for capturing verified consumption profiles for food items
CN110750697B (en) Merchant classification method, device, equipment and storage medium
US10496798B2 (en) Systems and methods for providing meal plans
US20170193433A1 (en) System for estimating geographical demand and method therefor
CN111091403B (en) Method, system, equipment and storage medium for processing article information and data
KR20220079244A (en) Agricultural products direct transaction service device
CN113934488A (en) Food calorie determination method, device, equipment and storage medium
CN109829790B (en) Method and equipment for generating purchase information
CN113934776B (en) Food material pushing method, device, medium and equipment
JP6664604B1 (en) Information processing apparatus, information processing method, and information processing program
JP2018128870A (en) Providing device, providing method, and providing program
JP7095267B2 (en) Information processing equipment, information processing methods and programs
CN109727053B (en) Object delivery determination method and device and computer-readable storage medium
JP6996778B2 (en) Order management system, order management device, control method, and program
JP6748029B2 (en) Calculation device, calculation method, and calculation program
US20190108473A1 (en) Method and System for Purchase Inventory
JP2001256346A (en) System and method for menu management and recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination