Recipe nutrition calculation platform based on nutritional ingredients of food materials
By providing a recipe nutritional calculation platform based on nutritional ingredients in the field of nutritional calculation, the problem of poor user experience of traditional methods is solved, and the convenience and efficiency of food information query and nutritional calculation are achieved.
Patent Information
- Application Number
- CN202411923353.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-16
AI Technical Summary
Traditional nutrition calculation methods rely on paper data query or simple spreadsheets, resulting in poor user experience and inconvenient use.
Provide a recipe nutrition calculation platform based on nutritional ingredients, including a food list module, a food search module and a nutrition calculation module, to realize the functions of food list display, food search and nutrition calculation.
It improves user experience, realizes convenient food information query and nutrition calculation, and improves users' healthy diet decision-making ability.
Smart Images

Figure SMS_1 
Figure SMS_2 
Figure SMS_3
Abstract
Description
Technical Field
[0001] The present application relates to the interdisciplinary technical field of nutrition and information technology, and more specifically, to a recipe nutrition calculation platform based on the nutritional components of food ingredients. Background Art
[0002] As people pay more and more attention to healthy eating, the demand for understanding the nutritional content of ingredients and calculating the nutritional value of recipes is growing.
[0003] However, traditional nutrition calculation methods often rely on paper data queries or simple spreadsheets, which have problems such as poor user experience and inconvenience in use. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a recipe nutrition calculation platform based on the nutritional components of ingredients, which can realize functions such as food list display, food search and nutrition calculation, so as to facilitate user use and enhance the user experience.
[0005] In the first aspect, the present application proposes a recipe nutrition calculation platform based on the nutritional components of ingredients, including: a food list module, used to generate multiple food data based on a food database, and display them on a first display unit of the recipe nutrition calculation platform; a food search module, used to determine at least one first target food according to the food code to be searched or the food name to be searched, and display it on a second display unit of the recipe nutrition calculation platform; a nutrition calculation module, used to determine the total nutritional value of at least one target ingredient selected by the user based on the nutritional value of at least one target ingredient selected by the user and the weight of at least one target ingredient selected by the user.
[0006] Optionally, the recipe nutrition calculation platform based on the nutritional components of ingredients also includes a data export module, which is used to calculate the total nutritional value of each target ingredient according to the nutritional value of the target ingredient and the weight of the target ingredient, and to form an entry corresponding to the target ingredient based on the total nutritional value of each target ingredient.
[0007] Optionally, the food list module includes a common food list module and a commonly used food list module, the platform food list module is used to display a variety of selectable common ingredient entries on the third display unit of the recipe nutrition calculation platform; the common food list module is used to display a variety of selectable common ingredient entries on the fourth display unit of the recipe nutrition calculation platform.
[0008] Optionally, the food list module is also used to display multiple food items on the fourth display unit, each food item is sorted according to multiple fields such as number, name or nutritional value, and the basic information and main nutrients of the food are displayed in a table.
[0009] Optionally, the food list module is further used to determine at least one second target food according to the nutritional value screening condition input by the user, and display at least one food item corresponding to the at least one second target food on the fifth display unit.
[0010] Optionally, the food list module is also used to determine whether the user has background revision authority. If the user has background revision authority, new food entries are added, existing food information is edited, or food entries are deleted according to the user's revision operation.
[0011] In a second aspect, the present application also provides a method for calculating nutrition of a recipe based on the nutritional components of food ingredients, the method comprising:
[0012] Controlling the food list module to generate a plurality of food data based on the food database and displaying the data on the first display unit of the recipe nutrition calculation platform;
[0013] Controlling the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and displaying the first target food on the second display unit of the recipe nutrition calculation platform;
[0014] The control nutrition calculation module determines the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
[0015] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the above-mentioned recipe nutrition calculation method based on the nutritional components of ingredients when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when a processor executes the computer program, the steps of a method for calculating nutrition of a recipe based on the nutritional components of ingredients are implemented.
[0017] In a fifth aspect, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of a method for calculating nutrition of a recipe based on the nutritional components of ingredients.
[0018] The recipe nutrition calculation platform based on the nutritional components of food ingredients provided in the embodiment of the present application can realize functions such as food list display, food search and nutrition calculation, so as to facilitate user use and enhance the user experience.
[0019] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of a recipe nutrition calculation platform based on the nutritional components of food ingredients provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a recipe nutrition calculation method based on the nutritional components of ingredients provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0025] First, the application scenarios to which this application is applicable are introduced. This application can be applied to the cross-technical field of nutrition and information technology.
[0026] Research has found that as people pay more and more attention to healthy eating, the demand for understanding the nutritional content of ingredients and calculating the nutritional value of recipes is growing.
[0027] However, traditional nutrition calculation methods often rely on paper data queries or simple spreadsheets, which have problems such as poor user experience and inconvenience in use.
[0028] Based on this, the embodiment of the present application provides a recipe nutrition calculation platform based on the nutritional components of ingredients, which can realize functions such as food list display, food search and nutrition calculation, so as to facilitate user use and enhance the user experience.
[0029] See also Figure 1 , Figure 1 This is a schematic diagram of a recipe nutrition calculation platform based on food nutrition components provided in an embodiment of the present application. Figure 1 As shown in , the recipe nutrition calculation platform based on the nutritional components of food ingredients provided in the embodiment of the present application includes: a food list module 100, a food search module 200, and a nutrition calculation module 300.
[0030] Specifically, the food list module is used to generate multiple food data based on the food database, and display them on the first display unit of the recipe nutrition calculation platform; the food search module is used to determine at least one first target food according to the food code to be searched or the food name to be searched, and display them on the second display unit of the recipe nutrition calculation platform; the nutrition calculation module is used to determine the total nutritional value of at least one target ingredient selected by the user based on the nutritional value of at least one target ingredient selected by the user and the weight of at least one target ingredient selected by the user.
[0031] Among them, the function of the nutrition calculation module can be realized through the following code:
[0032]
[0033] Specifically, the first display unit of the recipe nutrition calculation platform may display a plurality of food data codes as follows:
[0034]
[0035] Specifically, the code for application screening can be:
[0036]
[0037] Specifically, the code for sorting applications can be:
[0038]
[0039] Optionally, the recipe nutrition calculation platform based on the nutritional components of ingredients also includes a data export module.
[0040] Among them, the data export module is used to calculate the total nutritional value of each target ingredient according to the nutritional value of the target ingredient and the weight of the target ingredient, and to form an entry corresponding to the target ingredient according to the total nutritional value of each target ingredient.
[0041] Optionally, the recipe nutrition calculation platform based on the nutritional components of ingredients also includes a data import module.
[0042] Specifically, data can be imported and exported through the following code:
[0043]
[0044] Optionally, the food list module includes a general food list module and a commonly used food list module.
[0045] Among them, the platform food list module is used to display a variety of selectable common ingredient entries on the third display unit of the recipe nutrition calculation platform; the common food list module is used to display a variety of selectable common ingredient entries on the fourth display unit of the recipe nutrition calculation platform.
[0046] Specifically, the food items can be listed using the following code:
[0047] --Common food table structure
[0048]
[0049] Optionally, the food list module is also used to display multiple food items on the fourth display unit, each food item is sorted according to multiple fields such as number, name or nutritional value, and the basic information and main nutrients of the food are displayed in a table.
[0050] Optionally, the food list module is further used to determine at least one second target food according to the nutritional value screening condition input by the user, and display at least one food item corresponding to the at least one second target food on the fifth display unit.
[0051] Specifically, you can use the following code to search for food:
[0052]
[0053]
[0054] Optionally, you can further filter the food using the following code:
[0055]
[0056]
[0057] Among them, the food list module is also used to determine whether the user has the background revision permission. If the user has the background revision permission, new food entries are added, existing food information is edited, or food entries are deleted according to the user's revision operation.
[0058] Optionally, the recipe nutrition calculation platform based on the nutritional composition of ingredients also supports Excel batch import, and its code is as follows:
[0059]
[0060]
[0061] Based on the same inventive concept, the embodiment of the present application also provides a recipe nutrition calculation method based on food nutrition components corresponding to the recipe nutrition calculation platform based on food nutrition components. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above platform, so the specific limitations in one or more recipe nutrition calculation method embodiments based on food nutrition components provided below can refer to the limitations of the recipe nutrition calculation platform based on food nutrition components above, and will not be repeated here.
[0062] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0063] Please refer to Figure 2 In an exemplary embodiment, a method for calculating nutrition of a recipe based on the nutritional components of ingredients is provided, comprising:
[0064] S101. Control the food list module to generate a plurality of food data based on a food database, and display the data on the first display unit of the recipe nutrition calculation platform.
[0065] S102: Control the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and display the first target food on the second display unit of the recipe nutrition calculation platform.
[0066] S103: Control the nutrition calculation module to determine the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
[0067] In an exemplary embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a recipe nutrition calculation method based on the nutritional components of food ingredients is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0068] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0070] Controlling the food list module to generate a plurality of food data based on the food database and displaying the data on the first display unit of the recipe nutrition calculation platform;
[0071] Controlling the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and displaying the first target food on the second display unit of the recipe nutrition calculation platform;
[0072] The control nutrition calculation module determines the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
[0073] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0074] Controlling the food list module to generate a plurality of food data based on the food database and displaying the data on the first display unit of the recipe nutrition calculation platform;
[0075] Controlling the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and displaying the first target food on the second display unit of the recipe nutrition calculation platform;
[0076] The control nutrition calculation module determines the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
[0077] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0078] Controlling the food list module to generate a plurality of food data based on the food database and displaying the data on the first display unit of the recipe nutrition calculation platform;
[0079] Controlling the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and displaying the first target food on the second display unit of the recipe nutrition calculation platform;
[0080] The control nutrition calculation module determines the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
[0081] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0082] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0083] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A recipe nutrition calculation platform based on food nutritional components, characterized in that: include: A food list module, used to generate a plurality of food data based on a food database, and display the data on a first display unit of the recipe nutrition calculation platform; A food search module, used to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and display it on the second display unit of the recipe nutrition calculation platform; The nutrition calculation module is used to determine the total nutrition value of at least one target food selected by the user according to the nutrition value of at least one target food selected by the user and the weight of at least one target food selected by the user.
2. The platform according to claim 1, characterized in that Also includes data export module, The data export module is used to calculate the total nutritional value of each target ingredient according to the nutritional value of the target ingredient and the weight of the target ingredient, and to form an entry corresponding to the target ingredient according to the total nutritional value of each target ingredient.
3. The platform according to claim 2, characterized in that: The food list module includes a common food list module and a common food list module. The platform food list module is used to display a plurality of selectable common food items on the third display unit of the recipe nutrition calculation platform; The commonly used food list module is used to display a variety of selectable commonly used food ingredients entries on the fourth display unit of the recipe nutrition calculation platform.
4. The platform according to claim 3, characterized in that: The food list module is also used to display multiple food items on the fourth display unit, each food item is sorted according to multiple fields such as number, name or nutritional value, and the basic information and main nutritional components of the food are displayed in a table.
5. The platform according to claim 4, characterized in that The food list module is also used to determine at least one second target food according to the nutritional value screening condition input by the user, and display at least one food item corresponding to the at least one second target food on the fifth display unit.
6. The platform according to claim 5, characterized in that The food list module is also used to determine whether the user has background revision permissions. If the user has background revision permissions, new food entries are added, existing food information is edited, or food entries are deleted based on the user's revision operations.
7. A method for calculating nutrition of a recipe based on the nutritional components of food ingredients, the method comprising: Controlling the food list module to generate a plurality of food data based on the food database and displaying the data on the first display unit of the recipe nutrition calculation platform; Controlling the food search module to determine at least one first target food according to the code of the food to be searched or the name of the food to be searched, and displaying the first target food on the second display unit of the recipe nutrition calculation platform; The control nutrition calculation module determines the total nutrition value of the at least one target food selected by the user according to the nutrition value of the at least one target food selected by the user and the weight of the at least one target food selected by the user.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 7 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.