Menu retrieval method and device, equipment, medium and program product
By obtaining the staple and side ingredients selected by the user, combining the recipe plans and searching the recipes, the problem of lack of ingredients in the recipes is solved, and efficient utilization and waste of ingredients is achieved.
Patent Information
- Application Number
- CN202411991703.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, when searching recipes, the required ingredients may not be in the refrigerator, resulting in a lack of ingredients. Users need to constantly browse to find a suitable recipe plan.
By obtaining the staple and side ingredients selected by the user, arranging and combining them to form multiple side dishes plans, and searching the corresponding recipes based on these plans and displaying them to the user. At the same time, a food card is generated to display the types, storage methods and storage duration of the ingredients in the refrigerator, and help users make reasonable use of the ingredients.
It has achieved the rapid combination of recipes using existing ingredients to improve user experience, improve ingredient utilization, and reduce ingredient waste.
Smart Images

Figure CN119903095A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of smart home, and in particular to a recipe retrieval method, device, equipment, medium and program product. Background Art
[0002] As the pace of society becomes faster, many young people will store some ingredients in the refrigerator. However, when there is too much food, they will forget it and cannot use the existing ingredients to quickly combine them to form one or more recipes. Most of the existing technical solutions are to search for recipes based on the names of the ingredients. However, the ingredients required in the recipes may not be the ingredients already in the refrigerator, resulting in a shortage of ingredients. Therefore, users need to browse continuously to find a recipe solution that suits them. Summary of the invention
[0003] The purpose of the present invention is to at least provide a recipe retrieval method, device, equipment, medium and program product, which can at least solve the problem in the prior art that the ingredients required in the recipe may not be the ingredients already available in the refrigerator, resulting in a shortage of ingredients, so the user needs to constantly browse to find a recipe solution that suits him or her. It can achieve the ability to use the existing ingredients to combine and match them more quickly to form one or more recipes, thereby improving the user experience, increasing the utilization rate of the ingredients stockpiled in the refrigerator, and greatly avoiding the problem of food waste.
[0004] To solve the above technical problems, this application proposes five aspects.
[0005] In a first aspect, the present application provides a recipe retrieval method, comprising: obtaining a plurality of main ingredients and side ingredients selected by a user; arranging and combining the main ingredients and the side ingredients to form a plurality of side dish plans, each of the side dish plans comprising at least one main ingredient; retrieving corresponding recipes according to each of the side dish plans, and displaying each retrieved recipe to the user.
[0006] In some embodiments, the method further includes: obtaining a target recipe selected by the user from the retrieved recipes; determining, among the remaining recipes, a side dish scheme that has an ingredient conflict with a target side dish scheme of the target recipe as a conflicting scheme; determining a recipe corresponding to the conflicting scheme as a conflicting recipe; and marking the conflicting recipe in the remaining recipes so that the user can continue to select the target recipe from the remaining recipes.
[0007] In some embodiments, determining a dish scheme having an ingredient conflict with a target dish scheme of the target recipe as a conflicting scheme includes: determining a dish scheme having at least one ingredient in common with the target dish scheme as the conflicting scheme.
[0008] In some embodiments, the method further includes: obtaining the types, storage methods and storage duration of the ingredients already in the refrigerator; generating ingredient pattern cards for each ingredient based on the types of the existing ingredients; determining the border color of each ingredient pattern card based on the storage methods of each type of ingredient; determining the color depth of the border color based on the storage duration of each type of ingredient; and generating each ingredient card to be selected by the user based on the ingredient pattern cards, the border color and the color depth of each type of ingredient.
[0009] In some embodiments, obtaining the main ingredient and the secondary ingredient selected by the user includes: obtaining a first ingredient card selected by the user as the main ingredient; determining the main ingredient based on the first ingredient card; obtaining a second ingredient card selected by the user as the secondary ingredient; and determining the secondary ingredient based on the second ingredient card.
[0010] In some embodiments, the method further includes: counting the number of types of food already in the refrigerator; and displaying the number of types on a device card of the refrigerator in the smart home device management interface.
[0011] In the second aspect, the present application proposes a recipe retrieval device, comprising: a first acquisition module, used to obtain a plurality of main ingredients and side ingredients selected by a user; a first execution module, used to arrange and combine the main ingredients and the side ingredients to form a plurality of side dish plans, each of the side dish plans containing at least one main ingredient; a first retrieval module, used to retrieve corresponding recipes according to each of the side dish plans, and display each retrieved recipe to the user.
[0012] In a third aspect, the present application proposes a computer electronic production device, characterized in that it includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.
[0013] In a fourth aspect, the present application proposes 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 any one of the methods described in the first aspect are implemented.
[0014] In a fifth aspect, the present application proposes a computer program product, comprising a computer program, which implements the steps of any one of the methods described in the first aspect when executed by a processor.
[0015] The present application solves the problem in the prior art that the ingredients required in a recipe may not be available in the refrigerator, resulting in a shortage of ingredients, so the user needs to constantly browse to find a recipe solution that suits him or her. The application realizes that the existing ingredients can be used to combine and match them more quickly to form one or more recipes, thereby improving the user experience, increasing the utilization rate of the ingredients stockpiled in the refrigerator, and greatly avoiding the problem of food waste. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0017] Figure 1 A main flow chart of a recipe retrieval method provided in an embodiment of the present application;
[0018] Figure 2 This is a main structural block diagram of a recipe retrieval device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0020] As the pace of society becomes faster, many young people will store some ingredients in the refrigerator. However, when there is too much food, they will forget it and cannot use the existing ingredients to quickly combine them to form one or more recipes. Most of the existing technical solutions are to search for recipes based on the names of the ingredients. However, the ingredients required in the recipes may not be the ingredients already in the refrigerator, resulting in a shortage of ingredients. Therefore, users need to browse continuously to find a recipe solution that suits them.
[0021] In order to solve the above technical problems, the present invention proposes a recipe retrieval method. The implementation details of the method for determining the bandwidth of this embodiment are specifically described below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.
[0022] Embodiment 1:
[0023] like Figure 1As shown, the present application provides a recipe retrieval method, the method system is applied to electronic production equipment, and the electronic production equipment can be a server, a mobile terminal, a computer, a cloud platform, etc. The function implemented by the production equipment data processing provided in the embodiment of the present application can be implemented by calling the program code by the processor of the electronic production equipment, wherein the program code can be stored in a computer storage medium. The recipe retrieval method includes:
[0024] Step S1: Obtain multiple main ingredients and side ingredients selected by the user.
[0025] Since there are many ingredients in the refrigerator, but there are only a few simple recipes commonly used in general households, and users are not professional chefs, it is easy for users to face the problem of how to match the ingredients in the refrigerator to form a suitable recipe. The conventional method is generally that users choose the main ingredients they want to eat, and then search for the corresponding recipes, and then find that many ingredients in the recipes are not in the refrigerator, and then need to buy ingredients again. However, the purchased ingredients cannot be used up in time, and then there will be more and more ingredients piled up in the refrigerator. There will also be many ingredients that are placed in the refrigerator for a long time, and even not used until they are spoiled.
[0026] In order to solve the above problems, the method of the present application can match the recipe according to the ingredients selected by the user from the existing ingredients in the refrigerator, so that the ingredients stored in the refrigerator can be reasonably used, and it also greatly improves the convenience and avoids waste. However, before determining the recipe and the user selecting the ingredients, it is necessary to first clarify what ingredients are currently in the refrigerator.
[0027] In some embodiments, before step S1, the method further includes:
[0028] Step S01: Obtain the types, storage methods and storage duration of the ingredients in the refrigerator.
[0029] Step S02: Generate an ingredient pattern card for each ingredient according to the ingredient types of the existing ingredients.
[0030] Step S03: determining the border color of each food pattern card according to the storage method of each food.
[0031] Step S04: determining the color depth of the border color according to the storage duration of each type of food.
[0032] Step S05: Generate various ingredient cards to be selected by the user according to the ingredient pattern cards, the border colors and the color depths of various ingredients.
[0033] In order to let users understand the ingredients in the refrigerator, as well as the storage method and storage time of each ingredient in the refrigerator, the present application generates ingredient cards for various ingredients in the refrigerator. The ingredient pattern cards can accurately express the types of ingredients. Since different types of ingredients are stored in different ways, their deterioration periods are also different. For example, meat is generally stored in a frozen manner, so meat has a longer shelf life, and since vegetables can only be stored in a refrigerated manner, vegetables have a shorter shelf life. The border color and color depth of the ingredient card can let users understand the storage method and storage time of various ingredients, so that users can choose according to their own habits when selecting ingredients. For example, some people only care about the freshness of the ingredients and do not care whether the ingredients are wasted, so they will give priority to ingredients with lighter border colors, while some people do not like to waste and will choose to give priority to ingredients with darker border colors. Similarly, the depth of the border color can also allow users to pay attention to the ingredients that are about to deteriorate in the refrigerator in a timely manner, and deal with the unfresh ingredients earlier to avoid the problem of fresh ingredients being affected by spoiled ingredients and causing accelerated deterioration.
[0034] For example, the ingredients in the refrigerator include beef and pork that have been stored for a week, and beans that have been stored for three days. Beef and pork are stored in the freezer, so the border color of the ingredient card corresponding to pork and beef is blue, and one week is relatively fresh compared to frozen storage, so the depth of the border color is light blue. The beans are actually stored in the refrigerator and have been stored for three days. For beans, they are not fresh anymore, so the border color of the ingredient card of beans is dark red, where red represents refrigerated storage.
[0035] Of course, the process of obtaining the ingredients in the refrigerator can be determined by using the built-in camera in the refrigerator to shoot the time when various ingredients are put into the refrigerator and the use of the ingredients in the refrigerator to determine the types of ingredients in the refrigerator, storage methods, storage duration, etc. Of course, you can also take photos of the purchased ingredients with your mobile phone every time you buy groceries, and determine the type of ingredients put into the refrigerator by recognizing the image. The photo-taking time has been used as the time when the ingredients are stored in the refrigerator. The user has been selecting recipes through the method of the present application, and the use of ingredients in the refrigerator is recorded through the recipes selected by the user, so as to achieve the monitoring effect of the ingredients in the refrigerator, and then clarify the types of ingredients in the refrigerator, as well as the storage duration and storage method of each type of ingredients.
[0036] In some embodiments, step S1 of “obtaining a plurality of main ingredients and side ingredients selected by a user” includes:
[0037] Step S11: Acquire the first ingredient card selected by the user as the main ingredient.
[0038] Step S12: determining the main ingredient according to the first ingredient card.
[0039] Step S13: Acquire the second ingredient card selected by the user as the secondary ingredient.
[0040] Step S14: determining the auxiliary ingredient according to the second ingredient card.
[0041] Since step S01-step S05 has generated the ingredient cards of the ingredients in the refrigerator, you only need to select the dishes you want to eat from the numerous ingredient cards to generate a recipe. Due to the different storage capacity of different ingredients, some cannot be used as main ingredients due to their own small usage or small remaining amount after use, and can only be used as secondary ingredients. For some ingredients with large storage capacity, they can be used as both main ingredients and secondary ingredients. Of course, the most important thing is the user's choice. The user can select multiple ingredients as main ingredients in the ingredient card, or select multiple ingredients as secondary ingredients in the ingredient card. In this application, the main ingredients and secondary ingredients selected by the user are obtained based on the first ingredient card and the second ingredient card selected by the user.
[0042] Step S2: Arrange and combine the main ingredients and the side ingredients to form a plurality of side dish plans, each of which contains at least one main ingredient.
[0043] Of course, the main ingredients and side ingredients selected by the user may be based on the need to store the ingredients for a long time and to eat them as soon as possible. Therefore, the user himself is not clear about how to cook such a choice, so the main ingredients and side ingredients need to be arranged and combined to generate different side dish plans. Considering that the storage of side ingredients is small and they cannot form a dish alone, the side dish plan must contain at least one main ingredient.
[0044] Step S3: Retrieve corresponding recipes according to each of the dish matching plans, and display each retrieved recipe to the user.
[0045] Since the side dish schemes in this application are the result of permutations and combinations, some side dish schemes do not conform to the actual situation. Such combinations may not produce delicious dishes, or the ingredients are not compatible in cooking. Therefore, not all side dish schemes can retrieve corresponding recipes, so only the retrieved recipes are displayed to the user. Since the purpose of this application is to retrieve recipes that are perfectly suitable for the ingredients selected by the user, all the types of ingredients in the side dish schemes need to be retrieved together during the search process of this application, and the screening process also needs to filter out recipes that use ingredients other than the side dish schemes.
[0046] The present application solves the problem in the prior art that the ingredients required in the recipe may not be available in the refrigerator, resulting in a shortage of ingredients, and the user needs to keep browsing to find a recipe solution that suits him or her. The present application realizes that the existing ingredients can be used to combine and match them more quickly to form one or more recipes, thereby improving the user experience, increasing the utilization rate of the ingredients stored in the refrigerator, and greatly avoiding the problem of food waste.
[0047] Since the recipes in the present application are determined based on the existing ingredients in the refrigerator, and since the recipes are obtained after being arranged and combined based on the user's selection, some ingredients will inevitably be shared by multiple recipes. However, since the storage capacity of various ingredients in the refrigerator is limited, after a recipe is selected, there will be other recipes with ingredients that conflict with the recipe, but the user cannot distinguish them. Therefore, when the user wants to make at least two dishes, it is necessary to exclude the conflicting recipes according to the user's selection to avoid the problem of missing ingredients. Therefore, in some embodiments, after step S3, the method further includes:
[0048] Step S4: Obtain the target recipe selected by the user from the retrieved recipes.
[0049] Step S5: Among the remaining recipes, the dish matching schemes that have ingredient conflicts with the target dish matching scheme of the target recipe are determined as conflicting schemes.
[0050] In some embodiments, step S5 of “determining a dish solution that has ingredients that conflict with the target dish solution of the target recipe as a conflicting solution” includes:
[0051] Step S51: Determine a dish solution that has at least one ingredient in common with the target dish solution as the conflicting solution.
[0052] Step S6: Determine the recipe corresponding to the conflicting solution as the conflicting recipe.
[0053] Step S7: marking the conflicting recipes in the remaining recipes, so that the user can continue to select the target recipe from the remaining recipes.
[0054] Through the process of step S4 to step S7, conflicting recipes are eliminated according to the recipes selected by the user, which avoids the situation where the user does not have enough ingredients when cooking, and saves the user's time and energy. In addition, the marking of conflicting recipes in steps S5-S7 can let the user know that there is at least one ingredient conflict between these recipes and the selected target recipe, but it will not interfere with the user's choice. After knowing that there is a conflict of a certain ingredient between two recipes, the user can still select these two recipes as his or her target recipes for cooking. The user may just need to buy the ingredients that are missing due to the conflict, which increases the freedom of recipe selection and improves the user experience.
[0055] The method of the present application can be used in the management of smart homes. The existing smart home control interface will show the status and interaction capabilities of each device. However, for a refrigerator, a user cannot know what ingredients are in the refrigerator when he is outside, so that the user cannot make reasonable plans based on the ingredients in the refrigerator, nor can he know whether the existing ingredients in the refrigerator are sufficient. Therefore, in some embodiments, the method further includes:
[0056] Step S8: Count the number of types of food in the refrigerator.
[0057] Step S9: Display the number of types on the device card of the refrigerator in the smart home device management interface.
[0058] The user can know the storage situation of the food in the refrigerator through the number of types on the equipment card of the refrigerator in the smart home device management interface, and can see the food card such as step S01-step S05 by clicking on the equipment card of the refrigerator. The user can select the first food card and the second food card in the food card to obtain various recipes, which greatly improves the user experience. Of course, the first food card and the second food card can be selected by dragging. For example, after clicking on the equipment card, the user will enter the operation interface for completing the process of step S01-step S7. In this interface, there are food areas, main food areas, auxiliary food areas and recipe areas. The food cards of the food in the refrigerator will be displayed to the user in the food area. The user can drag the food card in the food area to the main food area or the auxiliary food area. When there are food cards in the main food area or the auxiliary food area, steps S1-step S3 are automatically executed, and the recipes obtained according to the food cards in the main food area and the auxiliary food area are directly displayed in the recipe area. When a user selects a recipe in the recipe area, recipes that have ingredient conflicts with this recipe will be marked. The marking may be grayed out, or it may be displayed as text or icon color changes. Of course, when a recipe is selected, the corresponding production details of the recipe will also be displayed to help users use the recipe for cooking.
[0059] Therefore, the present application solves the problem in the prior art that the ingredients required in the recipe may not be the ingredients already in the refrigerator, resulting in a shortage of ingredients, so the user needs to keep browsing to find a recipe solution that suits him or her. It realizes the ability to use the existing ingredients to combine and match them more quickly to form one or more recipes, thereby improving the user experience, increasing the utilization rate of the ingredients stockpiled in the refrigerator, and greatly avoiding the problem of food waste.
[0060] Embodiment 2:
[0061] Based on the foregoing embodiments, an embodiment of the present application provides a recipe retrieval device, and the modules included in the device and the units included in each module can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0062] like Figure 2 As shown, a recipe retrieval device includes: a first acquisition module 1, a first execution module 2 and a first retrieval module 3.
[0063] The first acquisition module 1 is used to obtain a plurality of main ingredients and side ingredients selected by the user. The first execution module 2 is used to arrange and combine the main ingredients and side ingredients to form a plurality of side dish plans, each of which contains at least one main ingredient. The first retrieval module 3 is used to retrieve corresponding recipes according to each side dish plan, and display each retrieved recipe to the user.
[0064] Each module in the above-mentioned recipe retrieval device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the device in the form of hardware, or can be stored in the memory in the processing device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0065] Embodiment 3:
[0066] In a third aspect, the present application provides a computer electronic production device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.
[0067] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0068] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0069] Embodiment 4:
[0070] In a fourth aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0071] Embodiment 5:
[0072] In a fifth aspect, the present application proposes a computer program product, comprising a computer program / instructions, characterized in that when the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0073] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0074] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A recipe retrieval method, characterized in that: include: Obtain multiple main ingredients and side ingredients selected by the user; Arrange and combine the main ingredients and the side ingredients to form a plurality of side dish solutions, each of the side dish solutions comprising at least one main ingredient; The corresponding recipes are retrieved according to each of the dish matching schemes, and each retrieved recipe is displayed to the user.
2. The method according to claim 1, characterized in that: The method further comprises: Obtaining a target recipe selected by the user from the retrieved recipes; Among the remaining recipes, the side dish solutions that have ingredient conflicts with the target side dish solution of the target recipe are determined as conflicting solutions; Determine the recipe corresponding to the conflicting solution as the conflicting recipe; The conflicting recipe is marked in the remaining recipes, so that the user can continue to select the target recipe from the remaining recipes.
3. The method according to claim 2, characterized in that The step of determining a dish matching scheme having ingredients conflicting with the target dish matching scheme of the target recipe as a conflicting scheme includes: A dish combination scheme having at least one common ingredient with the target dish combination scheme is determined as the conflicting scheme.
4. The method according to claim 1, characterized in that: The method further comprises: Get the types, storage methods and storage duration of the ingredients in the refrigerator; Generate an ingredient pattern card for each ingredient according to the ingredient types of the existing ingredients; Determine the border color of each food sample card according to the storage method of each food sample; Determining the color depth of the border color according to the storage duration of each type of food; The ingredient cards to be selected by the user are generated according to the ingredient pattern cards, the frame colors and the color depths of the various ingredients.
5. The method according to claim 4, characterized in that The obtaining of the plurality of main ingredients and side ingredients selected by the user includes: Get the first ingredient card selected by the user as the main ingredient; Determining the main ingredient according to the first ingredient card; Obtaining a second ingredient card selected by the user as a secondary ingredient; The auxiliary ingredient is determined according to the second ingredient card.
6. The method according to claim 4, characterized in that The method further comprises: Count the number of types of food already in the refrigerator; The number of categories is displayed on the device card of the refrigerator in the smart home device management interface.
7. A recipe retrieval device, characterized in that: include: A first acquisition module is used to acquire a plurality of main ingredients and side ingredients selected by a user; A first execution module, configured to arrange and combine the main ingredients and the secondary ingredients to form a plurality of side dish plans, each of which includes at least one main ingredient; The first retrieval module is used to retrieve corresponding recipes according to each of the dish matching schemes, and display each retrieved recipe to the user.
8. A computer electronic production equipment, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 6 when being executed by a processor.