WO2023165227A1 - 食材存储设备及食材库和菜谱的排序方法 - Google Patents
食材存储设备及食材库和菜谱的排序方法 Download PDFInfo
- Publication number
- WO2023165227A1 WO2023165227A1 PCT/CN2022/140688 CN2022140688W WO2023165227A1 WO 2023165227 A1 WO2023165227 A1 WO 2023165227A1 CN 2022140688 W CN2022140688 W CN 2022140688W WO 2023165227 A1 WO2023165227 A1 WO 2023165227A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- ingredient
- ingredients
- information
- location information
- storage device
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06311—Scheduling, planning or task assignment for a person or group
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06316—Sequencing of tasks or work
Definitions
- the present application relates to the technical field of food storage equipment, and in particular to a food storage equipment, a food storage and a method for sorting recipes.
- Foodstuff storage equipment can provide users with intelligent recommendation, intelligent management, and intelligent storage of ingredients, and can recommend recipes and multi-functional cooking for users.
- the ingredient storage device can push the ingredient library to the user, and display the ingredients in the ingredient library on the display screen of the ingredient storage device.
- the ideal situation is to dynamically adjust the display and popularity of ingredients in the ingredient library according to the location information of the ingredient storage device selected by the user and the user's language usage information. Recommended recipes.
- An embodiment of the present application provides a material storage device, including: a display, for displaying a user interface; a communicator, for communicating with a server; a controller, connected to the display and the communicator, and the controller is controlled by It is configured to: acquire the current location information and/or language usage information of the ingredient storage device, wherein the location information and the language usage information characterize the eating habits of the user; based on the location information and/or the language usage information information, displaying the sorting of the ingredients according to the preset sorting rules; when the location information and/or the language usage information changes, the ingredient ranking is updated according to the changed location information and/or the language usage information.
- An embodiment of the present application provides a method for sorting the ingredient library and recipes of the ingredient storage device, including: acquiring the current location information and/or language usage information of the ingredient storage device, wherein the location information and the language Use the information to characterize the eating habits of the user; based on the location information and/or the language usage information, display the ranking of ingredients according to the preset sorting rules; when the location information and/or the language usage information change, according to The changed location information and/or language usage information updates the ranking of ingredients.
- Fig. 1A is a perspective view of a food storage device according to an exemplary embodiment of the present application
- Fig. 1B is a schematic diagram of the appearance of a food storage device according to an exemplary embodiment of the present application
- Fig. 2 is a schematic diagram of hardware configuration of a food storage device according to an exemplary embodiment of the present application
- Fig. 3 is a schematic diagram of food storage equipment provided by the embodiment of the present application.
- Fig. 4 is a schematic diagram showing the display code of the food material provided by the embodiment of the present application.
- Fig. 5 is a schematic diagram of the food display judgment process provided by the embodiment of the present application.
- Fig. 6 is a schematic diagram of the display effect of ingredients provided by the embodiment of the present application.
- FIG. 7 is a schematic diagram of an interactive process for obtaining a heat list of ingredients provided by an embodiment of the present application.
- Fig. 8 is a schematic flow chart of the calorific value calculation method provided by the embodiment of the present application.
- FIG. 9 is a schematic diagram of the heat value calculation rules provided by the embodiment of the present application.
- Fig. 10 is a schematic diagram of the effect of sorting the heat values of ingredients according to the first sorting rule provided by the embodiment of the present application;
- Fig. 11 is a schematic diagram of the effect of sorting the heat values of ingredients according to the second sorting rule provided by the embodiment of the present application.
- Fig. 12 is a logical schematic diagram of food item display when the user changes the location information and language usage information of the food material storage device provided by the embodiment of the present application;
- FIG. 13 is a schematic diagram of an interaction process for obtaining recommended recipes according to the country code and language usage information provided by the embodiment of the present application.
- Fig. 1A is a perspective view of an ingredient storage device according to an exemplary embodiment of the present application.
- the shape of the ingredient storage device 100 provided by the embodiment of the application is approximately a cuboid.
- the ingredient storage device 100 is defined by a storage room 101 providing a limited storage space and a box door 200 provided at an opening of the storage room.
- the storage room 101 is a box with an opening.
- the storage room 101 includes a freezing room 101A located below and a refrigerating room 101B located above.
- the drawer-type compartments and the like of the refrigerator compartment 101B include a plurality of storage compartments, and the top lighting is located inside the storage compartments.
- a plurality of drawer compartments are covered by a drawer door 200A.
- the refrigerating compartment 101B is divided into left and right sides, and the left and right sides are respectively covered by a box door 200B pivotably installed on the box body.
- FIG. 1A is an example of an embodiment of the present application, and the food storage device shown therein does not constitute a limitation to the food storage device provided in the present application.
- the food storage equipment box is divided into left and right sides, the left box is defined as a freezer, and the right box is defined as a refrigerator. Both the freezer and the refrigerator are The lid can be closed by a door pivotally mounted on the box body.
- the storage room includes a refrigerating room, a freezing room, and a temperature-changing room.
- the food storage device can have a display function by arranging a display outside the box body of the food storage device.
- Fig. 1B is a schematic diagram of the appearance of a food storage device according to an exemplary embodiment of the present application.
- a display is provided on the door of the refrigerator, and the display is embedded in the door.
- a tag reading area is provided at the position below the display on the refrigerator door, and an antenna for reading radio frequency identification (Radio Frequency Identification, RFID) tags is built in the tag reading area to identify short-range RFID tags.
- RFID Radio Frequency Identification
- the plane where the display screen of the display is located is flush with the outer surface of the box door.
- the food storage device 200 may include a display 210, a controller 220, multiple antennas 230 for detecting RFID tags, a detector 240, Memory 250, communicator 260 and several user input interfaces.
- the display 210, the antenna 230, the detector 240, and the memory 250 are coupled with the controller 220 through a communication interface.
- the display 210 is used to receive the image signal output by the controller 220, to display video content and images and components of the menu control interface, and to display a user control man-machine interface (User Interface, UI) for controlling the food storage device 200.
- UI User Interface
- the controller 220 may include one or more processing units, such as a system chip (system on a chip, SoC), a central processing unit (central processing unit, CPU), a microcontroller (microcontroller, MCU), a storage controller, and the like. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- SoC system on a chip
- CPU central processing unit
- MCU microcontroller
- storage controller and the like.
- different processing units may be independent devices, or may be integrated in one or more processors.
- the controller 220 communicates with the antenna 230 through a serial port.
- the controller 220 includes an RFID module, the RFID module, the antenna 230 and the RFID tag form an RFID reading and writing system, the antenna 230 is used to transmit radio frequency signals between the RFID module and the RFID tag, and the RFID module completes the pairing by the antenna 230 Read and write operations of RFID tags.
- the RFID module communicates with the antenna through a serial port.
- Memory 250 may include one or more storage units, for example, may include volatile memory (volatile memory), such as: dynamic random access memory (dynamic random access memory, DRAM), static random access memory (static random access memory) , SRAM), etc.; can also include non-volatile memory (non-volatile memory, NVM), such as: read-only memory (read-only memory, ROM), flash memory (flash memory), etc.
- volatile memory dynamic random access memory
- DRAM dynamic random access memory
- static random access memory static random access memory
- SRAM static random access memory
- NVM non-volatile memory
- different storage units may be independent devices, or may be integrated or encapsulated in one or more processors or communication interfaces, and become a part of the processors or communication interfaces.
- Program instructions and application programs are stored in the memory 250 .
- the controller 220 can call the program instructions in the memory 250 or run the application program, so that the food storage device executes related methods, such as the method for scanning food labels provided in the embodiment of the present application.
- the detector 240 at least includes a sound collector, such as a microphone, which can be used to receive the user's voice. Exemplarily, it includes a voice signal of a control instruction for the user to control the ingredient storage device 200 .
- the detector 240 can also include a door switch state sensor, such as detecting a magnetic sensitive switch and a mechanical switch, for detecting the switch signal of each door, and when recording the switch state of the door according to the detected switch signal, a switch is sent. status information to the controller 220.
- the user input interface includes at least one of other input interfaces such as a microphone, a touch panel, a sensor, and a button.
- the communicator 260 is configured to communicate with a server or a terminal device in a local area network.
- the powers of the antennas installed in different storage rooms may be different.
- the power of the antennas in each storage room can ensure that the antennas can identify the ingredients contained in their own compartments, so as to avoid increasing the false recognition rate when the power is too high, and if the power is too low, the ingredients in the own compartments will not be recognized.
- the antenna disposed under the tag reading area is referred to as the first antenna
- the antenna disposed in the storage room is referred to as the second antenna.
- RFID tags can be used to identify the ingredients in the storage room, and there is a correspondence between the tag information (such as the tag identification) of the RFID tag and the ingredient information of the identified ingredients, thereby realizing RFID Virtual association between label and ingredient information.
- the ingredients with RFID tags are stored in the ingredient storage device, and the RFID tags in the storage room are detected by the second antenna to obtain the tag information, and the label identified by the tag is determined according to the relationship between the tag information and the ingredient information. Ingredients.
- the tag information includes a tag code
- a specific code segment in the tag code is a tag identifier.
- the controller 220 implements the food management function by running the food management application, and the application interface provided by the food management application includes: a food management interface that can be used as the main interface of the application, and an interface for establishing the association relationship between RFID tags and food information. Label editing interface, recipe display interface for displaying recommended recipe information, etc.
- the controller 220 starts the food management application in response to power-on or a user input command to start the food management application. After the ingredient management application is started, the user can input a tag editing instruction in the ingredient management application.
- the ingredient information includes one or more of ingredient identification (Identity document, ID), ingredient name, storage location identifier, ingredient quantity, ingredient shelf life, starting time, and the like.
- ingredient identification Identity document, ID
- the ingredient information corresponding to the existing ingredients in the storage room is stored in the local ingredient information set.
- the existing ingredients refer to ingredients currently stored in the ingredient storage device.
- the ingredient information of the existing ingredients is read from the local ingredient information collection, for example, the ingredient information whose storage status is the put state is read.
- the ingredient management interface is displayed according to the ingredient information of the existing ingredients, and the ingredient management interface includes ingredient icons drawn according to the ingredient information, so that all the existing ingredients in the ingredient storage device are displayed in the form of icons, pictures and texts.
- various functional controls can also be displayed on the ingredient management interface, such as RFID tag editing controls, ingredients adding controls, recipe recommendation controls, etc., for users to operate to trigger the controller 220 to implement corresponding functions.
- Food storage equipment is the type of food storage equipment that can intelligently control food storage equipment and intelligently manage food.
- the food storage device can automatically switch the mode of the food storage device, and always keep the food in the best storage state. It allows users to know the quantity of food in the food storage device, freshness and quality information anytime, anywhere through mobile phones or computers, and can provide users with healthy recipes and nutritional taboos, and remind users to supplement food regularly.
- Foodstuff storage equipment can provide users with intelligent recommendation, intelligent management, intelligent storage of ingredients, and can recommend recipes and multi-functional cooking for users.
- the ingredient storage device can push the ingredient library to the user, and display the ingredients in the ingredient library on the display screen of the ingredient storage device.
- the ideal situation is to dynamically adjust the display and popularity of ingredients in the ingredient library according to the location information of the ingredient storage device selected by the user and the user's language usage information. Recommended recipes.
- pork cannot be displayed on the display screen of food storage equipment in some countries; another example, if the location information of the food storage equipment is India, popular ingredients such as curry, onions, potatoes, etc. can be displayed on the food For another example, if the location information of the food storage device is Germany, but the language information selected by the user is Thai, it means that the user is likely to be a Thai living in Germany, and some popular Thai ingredients and recipes are recommended to users to improve user satisfaction with recommended ingredients and recipes.
- the current ingredient storage device it is still impossible to dynamically adjust the ingredient library and popular recipes according to the location information of the ingredient storage device used by the user and the user's language usage information.
- some food storage devices only have a food search function, but no food library; for another example, although some food storage devices have a food library, the food display results do not change when the food library is switched, that is, the food cannot be switched.
- the amount of data in the ingredient library is relatively large.
- the existing ingredient library supports hundreds of ingredients.
- the location information of the food storage device and the user's language usage information dynamically adjust the difficulty of the food library and popular recipes. How to automatically switch between different ingredient libraries according to the location information of the ingredient storage device and the user's language usage information, and how to recommend popular recipes that are more in line with the local food culture to the user are the technical problems solved in this paper.
- the embodiment of the present application provides an ingredient storage device, an ingredient library and a method for sorting recipes, which can dynamically switch the data display of the ingredient library and recommended recipes according to the location information of the current ingredient storage device and the user's language usage information.
- Fig. 3 is a schematic diagram of a food storage device provided by an embodiment of the present application.
- the ingredient storage device may include a display, a communicator and a controller.
- the display is used to display the user interface;
- the communicator is used to communicate with the server;
- the controller is connected to the display and the communicator, and the controller is configured to perform the following steps:
- Obtain the current location information and/or language usage information of the ingredient storage device where the location information and language usage information characterize the user's eating habits; based on the location information and/or language usage information, display the ingredient sorting according to the preset sorting rules ; When the location information and/or language usage information changes, update the ranking of ingredients according to the changed location information and/or language usage information.
- the current location information and/or language usage information of the food storage device there are many ways to obtain the current location information and/or language usage information of the food storage device, for example, it can be obtained from the server, it can also be set in the menu, and it can also be identified Acquisition, etc., are not limited in this application.
- the preset sorting rules may be pre-established according to the actual needs of the user, for example, may include ingredients sorting rules, recipe sorting rules, ingredient display rules, and the like.
- the current location information of the food storage device may be the country corresponding to the usage area where the food storage device is located, and each country may correspond to a unique country code, which is a unique identifier of the location information.
- a country mask can also be established for each country, and the country mask corresponds to the unique country code one-to-one, that is, the country mask is also unique of.
- the country mask can establish a unique correspondence with the country code; on the other hand, the country mask can be used to indicate the display of ingredients in a certain country, and the display of the ingredients is related to the user's diet. related to habit.
- the ingredient information may be a code that can represent the ingredient display, for example, for the convenience of example and description, the ingredient information in this application may include an ingredient display code.
- the location information in this application is not limited to a certain country, that is to say, it does not only include the country code, country mask, etc., and the ingredient information is not limited to the ingredient display code, which is only for illustrative purposes. .
- location information and/or language usage information can be used alone in actual use, such as using only location information, or only language usage information, or It is a combination of the two methods, which is not limited in this application.
- location information and/or language use information it is possible to list only one of them, but the application is not limited to one of them, it is only for a clearer description of the solution to facilitate the program for further understanding.
- the display and hiding of ingredients in the ingredient library may be implemented in the following manner.
- the current country area of the location information of the ingredient storage device will be set.
- the food storage device can be set with default location information.
- the default location information can be Australia. If the user's location information is not Australia, the user can select the location information of the food storage device by clicking to select.
- the country code of the country where the location information is located will be generated, and the country code will be saved in the food storage device system, and the country code is unique.
- the expression form of the country code can be, using the abbreviation of the English name of each country to represent the country code of each country, for example, the country code of Australia can be AUS, the country code of Malaysia can be MYS, and the country code of the United Kingdom can be GBR wait.
- the ingredients can be displayed and sorted according to the sorting rules through the following steps: obtaining ingredient information according to location information and/or language usage information; performing an AND operation on location information and ingredient information to obtain an operation result; according to the operation result Add ingredients that meet the sorting rules to the ingredient library and display the ingredients.
- obtaining ingredient information according to location information and/or language usage information may include the following steps: obtaining a pre-established mapping table for storing associated information associated with location information and/or language usage information; according to the associated information and The information of the ingredients is set in the display of the location information of the ingredients.
- the country mask corresponding to the country code can be obtained according to the pre-established mapping table.
- the embodiment of the present application obtains the country mask corresponding to the country code according to the pre-established mapping table, and the mapping table is used to store the mapping relationship between the country code and the country mask.
- this embodiment of the present application uses binary to express the meaning represented by the country code.
- food storage equipment plans to support 35 countries and regions.
- 35 binary digits can be used to represent, and each binary digit represents a country and region.
- this binary number can be called the country mask of the country.
- the present application is not limited to expressing the country mask by using binary numbers, and may also use hexadecimal or other methods.
- the mapping table is used to store the mapping relationship between country codes and country masks.
- a one-to-one mapping relationship between country codes and country masks can be established in the mapping table according to the generated country codes.
- the country mask can be expressed by adding a suffix after the unique country code. For example, the country code of Australia is AUS, and the country mask of the country can be expressed as AUS_MASK through the mapping table.
- the mapping table also stores country codes, country masks (such as hexadecimal, binary, etc.), meanings represented by country code values, etc., as shown in Table 1.
- country masks such as hexadecimal, binary, etc.
- the country mask for Australia has a hexadecimal value of 0X01 and a binary form of ...00001 (here and below, the omitted value of ... is 0).
- the ingredient display code can be set for the ingredient according to the display status of the ingredient in the location information.
- the ingredient display code can be set in advance to set the rules.
- both the country mask and the ingredient display code are in binary code, and the country mask and the ingredient display code have the same number of digits.
- the ingredient display code can also be represented by a 35-bit binary number, each bit is represented by 0 or 1, 1 represents display, and 0 represents not display. If a certain ingredient needs to be displayed in a certain country, it only needs to be set to 1 in the binary bit of the country.
- Fig. 4 is a schematic diagram of display codes of ingredients provided by the embodiment of the present application. As shown in Fig. 4, for example, if a certain ingredient is only displayed in Malaysia and the United Kingdom, its display code is set as: ... 00110 (the omitted value is 0).
- the AND operation can be performed on the country mask and the ingredient display code to obtain the operation result; according to the operation result, the ingredients that meet the preset rules are added to the ingredient library, and the preset rules are used to determine whether the location information is displayed Ingredients.
- determining the ingredients that can be displayed on the display screen of the ingredient storage device according to the country mask and the ingredient display code can be achieved through the following steps: perform an AND operation on the country mask and the ingredient display code to obtain the operation result; according to the operation result Add ingredients that meet the preset rules to the ingredient library, and the preset rules are used to determine whether to display the ingredients in the location information; if the ingredients meet the preset rules, the ingredients will be displayed on the display screen of the ingredient storage device; if the ingredients do not meet the preset According to the rules, the ingredients are hidden in the display of the ingredient storage device.
- the country mask and ingredient display code After the country mask and ingredient display code are determined, use the country mask and ingredient display code to perform an AND operation (&) to obtain the operation result, and according to the operation result, add ingredients that meet the preset rules (hereinafter also referred to as ingredients) to the ingredients library.
- the preset rules can be formulated in advance, and the calculation results are judged according to the preset rules; if the calculation results meet the preset rules, the ingredients are displayed in the location information; if the calculation results do not meet the preset rules, the ingredients are not displayed in the location information.
- FIG. 5 is a schematic diagram of a flow chart for determining the display of ingredients provided by the embodiment of the present application.
- the preset rule may be that, after the AND operation is performed on the country mask and the ingredient display code, it is first judged whether the operation result is 0.
- the food material display judgment process provided by the embodiment of the present application is as follows:
- Step 500 Perform an AND operation on the country mask and the ingredient display code to obtain an operation result.
- Step 501 Determine whether the operation result is 0, if yes, execute step 502; if not, execute step 503.
- Step 502 Do not add the ingredient.
- step 502 is executed and no addition is made to the ingredient.
- Step 503 Add the ingredient to the ingredient library list.
- step 503 is executed to add the ingredient to the ingredient library list, and refresh the display to the ingredient storage device on the display.
- Fig. 6 is a schematic diagram of the display effect of the ingredients provided by the embodiment of the present application. As shown in Figure 6, according to the above preset rules, combined with the AND operation results of the country mask and the ingredient display code, it is possible to calculate which ingredient is displayed on the display screen of the ingredient storage device and which one is not displayed, and the display result is displayed in the display of the food storage device.
- the food storage device When the user changes the location information of the food storage device, such as changing the country code, the food storage device and background services such as the server will also monitor the change of the country code. If the country of the location information of the ingredient storage device is updated, the country mask corresponding to the changed country code will be obtained, and the ingredient library will be updated according to the country mask.
- the background when the user acquires the ingredients display, the background will log into the ingredients database and obtain the updated country mask, thereby updating the display list of the ingredients library, and refreshing the ingredients display on the display 210 of the ingredients storage device.
- the display function of automatically switching the ingredients in the ingredient library according to the location information of the ingredient storage device is realized.
- the display function of automatically switching the ingredients in the ingredient library according to the location information of the ingredient storage device is realized.
- displaying the sorting of the ingredients according to the preset sorting rules can be achieved through the following steps: Obtain the ingredient heat list in the ingredient library, and the ingredient heat list includes the ingredient id value and heat value field; according to the location information and/or language usage information, calculate the heat value corresponding to each ingredient according to the preset heat value calculation rule, and the heat value calculation rule is used to formulate the calculation method of the heat value of the ingredient; according to the sorting rule and the heat value of each ingredient Sort the ingredients.
- the ingredient heat list includes the ingredient id value and the ingredient heat value; the ingredient id value is unique; The ingredient heat value is used to reflect the heat of the ingredient in the ingredient library.
- the ingredient library before obtaining the popularity list of ingredients in the ingredient library according to the country code and the user's language usage information, it also includes: identifying the user's language usage information, and uploading the country code and language to the server where the ingredient library is located.
- Step 701 The ingredient storage device uploads the location information and the user's language usage information to the server.
- step 701 is performed to upload the location information and the user's language usage information to the server.
- Step 702 The server sends a popularity list of ingredients in the ingredient database according to the country code and language usage information of the location information.
- the ingredient heat list may include an ingredient id value and an ingredient heat value.
- the id value of the ingredient is unique, which is the unique identification of the ingredient; the heat value of the ingredient is used to reflect the heat of the ingredient in the ingredient library.
- a heat value field may be added to the ingredients in the ingredient heat list.
- Table 2 is the structure table of the ingredients in the ingredient heat list. As shown in Table 2, the id value of the ingredient can be the unique identifier id of the ingredient, such as 001, 002, etc., and the name of the ingredient, the heat value of the ingredient, etc. are also included in the structure table.
- the heat value of the ingredients can be divided into several gears according to the prior agreement. For example, it is divided into 3 gears. The values of the three gears are: 0, 1, and 2. The larger the heat value of the food, it means that the food is on the food storage device display. China and Vietnam are displayed first.
- the heat value calculation rules are used to formulate the calculation method for the heat value of the ingredients.
- the heat value of the ingredients defaults to the first value
- the controller is further configured to: filter out the corresponding first batch of popular ingredients according to the location information, and add the first predetermined amount to the heat value of the first batch of popular ingredients;
- the language use information screens out the corresponding second batch of popular ingredients, and the heat value of the second batch of popular ingredients is added to the second predetermined amount; the heat values of the first batch of popular ingredients and the second batch of popular ingredients are added to generate the corresponding heat of each ingredient value.
- the food heat value is determined based on the location information reported by the user and the user's language usage information.
- the food heat value can be 0 by default (that is, the first value is 0); the first predetermined number can be the same as the first value.
- the two predetermined quantities are the same, for example, both can be 1.
- Fig. 8 is a schematic flow chart of the calorific value calculation method provided by the embodiment of the present application. As shown in Figure 8, the corresponding heat value can be calculated for each ingredient according to the country code, language usage information and preset heat value calculation rules in the following manner:
- Step 800 Filter out the corresponding first batch of popular ingredients according to the country code, and add 1 to the heat value of the first batch of popular ingredients; wherein, the first batch of popular ingredients are ingredients that meet the screening conditions based on the country code.
- Step 801 Screen out the corresponding second batch of popular ingredients according to the user's language usage information, and add 1 to the heat value of the second batch of popular ingredients; wherein, the second batch of popular ingredients are screened out according to the filtering conditions of the user's language usage information Ingredients.
- Step 802 Accumulate the heat values of the first batch of popular ingredients and the second batch of popular ingredients to generate heat values corresponding to each ingredient.
- FIG. 9 is a schematic diagram of the heat value calculation rule provided by the embodiment of the present application.
- the first batch of popular ingredients will be selected according to the country code of Germany, that is, all popular ingredients in Germany will be filtered out, and the heat value of the corresponding ingredients will be increased by 1.
- the first batch of popular ingredients includes ingredient 1, ingredient 2, ingredient 3..., the default heat value of the initial ingredients is 0, after the first batch of screening, the heat value of these ingredients is increased by 1, such as ingredient 1, ingredient 2 , and the heat value of ingredient 3 become 1.
- the corresponding second batch of popular ingredients is screened out according to the user's language usage information, that is, if the user speaks Thai, the popular Thai ingredients are screened out, and the heat value of the corresponding ingredients is increased by 1.
- the second batch of popular ingredients includes ingredient 1, ingredient 4, ingredient 5...
- the heat value of repeated ingredients will become 2, such as ingredient 1 is screened in the first batch and appear in the second batch of screening, the heat value of ingredient 1 becomes 2.
- the heat value of selected non-repeated ingredients is 1. If ingredients 2, 3, 4, and 5 all appear once, they do not appear repeatedly, and the heat value is 1.
- the heat value of other ingredients that have not been filtered out is still the default value of 0.
- the sorting rules may include a first sorting rule and a second sorting rule
- the controller may be configured to perform the following steps: sort the ingredients according to the first sorting rule and the second sorting rule in turn, and display Sorting results; the first sorting rule is to sort the ingredients according to the heat value from high to low; the second sorting rule is to sort the ingredients with the same heat value in alphabetical order.
- the heat value can be assigned to the corresponding ingredient in the ingredient heat list; the ingredients are sorted according to the first sorting rule and the second sorting rule, and the sorting results of the ingredients are displayed in the ingredient storage Device display screen; the first sorting rule is to sort the ingredients according to the heat value from high to low; the second sorting rule is to sort the ingredients with the same heat value in alphabetical order.
- the heat value of the ingredient After obtaining the heat value of the ingredient, traverse all the ingredients in the ingredient heat list according to the ingredient heat list, and assign the heat value to the corresponding ingredient in the ingredient heat list according to the ingredient id value. That is, according to the id value of the ingredient, the acquired heat value of the ingredient is assigned to the ingredient with the same id value in the ingredient heat list.
- a sorting manner may be: firstly sort the ingredients according to their heat values according to a first sorting rule, and the first sorting rule is to sort the ingredients according to their heat values from high to low.
- FIG. 10 is a schematic diagram of the effect of sorting the heat values of ingredients according to the first sorting rule provided by the embodiment of the present application.
- the heat values of the three ingredients are: the heat value of ingredient 1 is 0, the heat value of ingredient 2 is 2, and the heat value of ingredient 3 is 1.
- the heat value is displayed in front of the display screen of the ingredient storage device, for example, ingredient 2 is displayed in front of ingredient 3. In this way, the user can intuitively see the popular local ingredients, which saves the user from the process of screening and saves the user's time.
- the first sorting rule is to sort the ingredients according to the heat value from high to low. It is easy to understand that ingredients with high calorific value are ranked at the front, and conversely, ingredients with low calorific value are ranked at the back. For example, there are currently three ingredients, which are apples, bananas, and cantaloupe. Among them, the heat value of apple is 1, the heat value of banana is 0, and the heat value of cantaloupe is 2. It is easy to see that the heat value of cantaloupe is the highest, so it is sorted according to the heat value from high to low. The display order of the three ingredients is respectively : Hami melon, apple, banana.
- this application also sorts the ingredients with the same heat value in alphabetical order again, that is, according to the second sorting rule, the ingredients with the same heat value are sorted in English alphabetical order.
- FIG. 11 is a schematic diagram of the effect of sorting the heat values of ingredients according to the second sorting rule provided by the embodiment of the present application. As shown in FIG. 11 , after the heat value of the ingredients is calculated, the heat values of the ingredients 2 and 4 are the same, and the heat values are both 2. The heat value of ingredient 3 and ingredient 5 is the same, both being 1, and different ingredients have the same heat value.
- this application uses the second sorting rule to sort ingredients with the same heat value in alphabetical order.
- the heat values of ingredient 2 and ingredient 4 are both 2, but ingredient 2 is apple and ingredient 4 is banana, then the initial letter of ingredient 2 is a, and the initial letter of ingredient 4 is 4.
- a comes first. If b is at the back, when the display screen of the food storage device displays food 2, food 2 is displayed in front of food 4, as shown in Figure 11, and finally the display result is displayed on the display of the food storage device.
- the first sorting rule and the second sorting rule may be used in combination.
- the ingredients can be sorted sequentially according to the first sorting rule and the second sorting rule, and the sorting result of the ingredients can be displayed on the display screen of the ingredient storage device.
- the sorting of ingredients can be updated according to the changed location information and/or language usage information, which may include the following steps: monitoring the location information and/or language usage information , if the location information and/or language usage information changes, update the ranking of ingredients according to the changed location information and/or language usage information.
- updating the sorting of ingredients according to the changed location information and/or language usage information includes: recalculating the heat value corresponding to each ingredient according to the changed location information and/or language usage information; sorting the calculated heat values, Update the sorting of ingredients according to the sorting results of heat value.
- Fig. 12 is a schematic diagram of food item display when the user changes the location information and language usage information of the food item storage device provided by the embodiment of the present application. As shown in Figure 12, the food storage device and background services such as the server perform the following steps:
- Step 1200 Monitor changes in country code and language usage information.
- Step 1201 Determine whether there is a change, if yes, go to step 1203; if not, go to step 1202.
- Step 1202 Maintain the current ingredient heat list and ingredient display results.
- Step 1203 reacquire the heat list of ingredients.
- Step 1204 Recalculate the heat value corresponding to the ingredients according to the changed country code and language usage information, and re-sort the heat values of the ingredients, and display the sorting results on the display screen of the ingredient storage device.
- the background when the user obtains the display of ingredients, the background will log into the ingredient database and obtain the updated country mask or the user's language usage information, thereby updating the display list and ingredient sorting of the ingredient library, and refreshing the information on the display of the ingredient storage device. Ingredients display the results.
- the embodiment of the present application can calculate the heat value of the food in the food store, and adjust the temperature of the food in the food store and the display of the food storage device according to the result of the heat value. display order.
- the controller is further configured to display recipes sorted according to a preset sorting rule according to the location information and/or language usage information.
- the recipes can be sorted according to the location information and/or language usage information according to the preset sorting rules through the following steps, including: adding the location information and/or language usage information to the original screening dimension of the recipes, Generate a new filtering dimension; the filtering dimension is the condition for filtering the recipes; sort the recipes according to the new filtering dimension, and display the sorting results of the recipes.
- FIG. 13 is a schematic flow diagram of obtaining recommended recipes according to the country code and language usage information provided by the embodiment of the present application. As shown in Figure 13, the recipes to be recommended can be obtained according to the country code and language usage information in the following ways.
- the interaction process between the ingredient storage device and the server is as follows:
- Step 1300 The ingredient storage device uploads the country code and language usage information to the server where the recipe is located.
- Step 1301 The server adds the country code and language usage information to the original screening dimension of the recipe to generate a new screening dimension.
- the above-mentioned filtering dimension is a condition for filtering recipes.
- Step 1302 the server sorts the recipes according to the new screening dimension, and generates recipes to be recommended according to the sorting results of the recipes.
- Step 1303 the server sends the recipe to the ingredient storage device.
- Step 1304 the ingredient storage device displays the recipe on the display screen of the ingredient storage device.
- the recommendation dimension is mainly based on the ingredients stored in the ingredients management and their freshness. For example, if some ingredients are relatively fresh, they will be recommended first; if some ingredients are relatively low in freshness or have expired, they will not be recommended or corresponding reminders will be given.
- the embodiment of the present application can also obtain recipes to be recommended according to the country code and language usage information.
- the location information of the food storage device is Germany. If the language selected by the user is Thai, it means that the user is probably a Thai living in Germany. This application can also recommend some popular Thai dishes to the user. Improve user satisfaction with recommended recipes.
- the server for the popular recommended recipe data of the current ingredient storage device when requesting the server for the popular recommended recipe data of the current ingredient storage device, upload the country code and language usage information to the recipe location server, that is, to upload region information and language information to the server.
- the server When the server captures recipe information, it first screens out the location information of the language according to the user’s language usage information, and adds the location information of the food storage device and the user’s language usage information to the original screening dimension (such as the freshness of ingredients). That is to add the country code and language usage information to the original filter dimension of the recipe to generate a new filter dimension.
- the recipes are sorted in the server according to the new filtering dimension, and the recipes to be recommended are generated according to the sorting results of the recipes.
- the filtering dimension is the condition for filtering the recipes.
- the location information Germany and the language usage information Thai are uploaded to the server.
- the server fetches the recipe data
- the information of Germany and Thailand is added to the original In the screening dimension
- the recipes in Germany and Thailand are screened out together, and then the recipes are sorted according to the popularity of the recipes, the stored ingredients and their freshness, and finally the recipes that need to be recommended are obtained.
- the ingredient storage device displays the recommended recipes screened by the server on the display screen of the ingredient storage device.
- the controller of the food storage device can also monitor changes in location information and/or language usage information, and when the location information and/or language usage information changes, according to the changed location information and/or language usage information The information updates the recipe sorting, so that the ingredient storage device displays the latest recipes and their sorting according to the changed location information and/or language usage information.
- the present application provides a method for sorting the ingredient library and recipes, wherein the sorting of the ingredient library and recipes includes: obtaining the current location information and/or language usage information of the ingredient storage device, wherein the location Information and language usage information characterize the user's eating habits; based on the location information and/or language usage information, display the sorting of ingredients according to the preset sorting rules; when the location information and/or language usage information changes, according to the changed location information and/or language usage information to update the ingredient ordering.
- the embodiment of the present application realizes the display function of automatically switching the ingredients in the ingredient library with the location information and/or language usage information of the ingredient storage device by performing an AND operation on the location information such as the country mask and the ingredient information such as the ingredient display code .
- the embodiment of the present application can calculate the heat value of the food in the food storage, and adjust the temperature of the food in the food storage and the display of the food storage device according to the heat value. display order.
- two dimensions of location information and language usage information are added to the original recommendation dimensions, so that popular recipes that are more in line with local food culture can be recommended to users.
- this application can dynamically switch the ingredient library and recommended recipes according to the location information and/or language usage information of the ingredient storage device, thereby solving the problem that the current ingredient storage device cannot be based on the location information of the ingredient storage device used by the user. and/or language usage information to dynamically adjust ingredient libraries and popular recipes.
- a sorting method for the ingredient library and recipes of the ingredient storage device including:
- the ranking of ingredients is updated according to the changed location information and/or language usage information.
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Educational Administration (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请提供了食材存储设备及食材库和菜谱的排序方法,本申请实施例通过位置信息如国家掩码与食材信息如食材显示码进行与运算的方式,实现了食材库中食材自动随食材存储设备所处的位置信息和/或语言使用信息切换的展示功能。当有新的食材判断是否在某个国家显示时,即后期更新某食材在某个国家的显示时,只需要修改该食材在该国家掩码中二进制位上的显示数值即可,动态并高效的控制了食材库中食材的显示或隐藏的问题。通过食材存储设备所处的位置信息和/或语言使用信息的获取,本申请实施例可以计算出食材库中食材的热度值,并根据热度值结果调整食材在食材库和食材存储设备显示器中的显示顺序。
Description
相关申请的交叉引用
本申请要求在2022年03月03日提交、申请号为202210204720.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及食材存储设备技术领域,尤其涉及食材存储设备及食材库和菜谱的排序方法。
食材存储设备可以为用户提供食材的智能推荐、智能管理、智能储藏,并可以为用户推荐菜谱以及多功能烹饪等多种功能。例如,食材存储设备可以将食材库推送给用户,并将食材库中的食材显示在食材存储设备显示屏中。在实际使用场景中,由于不同用户的喜好和饮食习惯不同,理想的情况是,根据用户选择的食材存储设备使用所处的位置信息和用户的语言使用信息来动态调整食材库食材的显示及热门菜谱的推荐。
但在目前的食材存储设备中,还无法根据用户使用的食材存储设备所处的位置信息和用户的语言使用信息动态调整食材库和热门菜谱。而且,通常情况下食材库的数据量较大,为了方便用户的使用,后续还会对食材库进行更新,这也增加了根据用户使用的食材存储设备所处的位置信息和用户的语言使用信息动态调整食材库和热门菜谱的难度。
发明内容
本申请实施例提供一种食材存储设备,包括:显示器,用于显示用户界面;通信器,用于与服务器进行通信;控制器,与所述显示器及所述通信器连接,所述控制器被配置为:获取食材存储设备当前所处的位置信息和/或语 言使用信息,其中,所述位置信息和所述语言使用信息表征用户的饮食习惯;基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序;当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
本申请实施例提供一种用于食材存储设备的食材库和菜谱的排序方法,包括:获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,所述位置信息和所述语言使用信息表征用户的饮食习惯;基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序;当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
图1A为本申请根据示例性实施例示出的食材存储设备立体图;
图1B为本申请根据示例性实施例示出的食材存储设备外观示意图;
图2为本申请根据示例性实施例示出的食材存储设备硬件配置示意图;
图3为本申请实施例提供的食材存储设备示意图;
图4为本申请实施例提供的食材显示码显示示意图;
图5为本申请实施例提供的食材显示判断流程示意图;
图6为本申请实施例提供的食材显示效果示意图;
图7为本申请实施例提供的获取食材热度列表的交互流程示意图;
图8是本申请实施例提供的热度值计算方式流程示意图;
图9为本申请实施例提供的热度值计算规则示意图;
图10为本申请实施例提供的按照第一排序规则对食材进行热度值排序的效果示意图;
图11为本申请实施例提供的按照第二排序规则对食材进行热度值排序的效果示意图;
图12为本申请实施例提供的用户更改食材存储设备的位置信息和语言使 用信息时食材显示逻辑示意图;
图13为本申请实施例提供的根据国家码、语言使用信息获取需要推荐的菜谱交互流程示意图。
为使本申请的目的、方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。
图1A为本申请根据示例性实施例示出的食材存储设备立体图,本申请实施例提供的食材存储设备100的形状近似长方体。该食材存储设备100由提供有限储存空间的储藏室101和设置在储藏室开口处的箱门200限定。储藏室101为具有开口的箱体。在图1A所示示例中,储藏室101包括位于下方的冷冻室101A以及位于上方的冷藏室101B,冷冻室101A和冷藏室101B分别具有一个或者多个独立的储存空间,如冷冻室101A所包括的抽屉式间室等,以及冷藏室101B所包括的多个容纳格,顶部照明灯位于容纳格内部。
在图1A所示示例中,多个抽屉式间室通过抽屉式箱门200A封盖。冷藏室101B被分割成左侧和右侧,左侧和右侧分别通过可枢转地安装在箱体上的箱门200B封盖。
需要说明的是,图1A作为本申请实施例的一个示例,其示出的食材存储设备并不构成对本申请所提供食材存储设备的限定。例如,在本申请另外的实施例中,食材存储设备箱体被分割成左侧和右侧,限定左侧箱体为冷冻室,限定右侧箱体为冷藏室,该冷冻室和冷藏室均可通过可枢转地安装在箱体上的箱门封盖。又如,在本申请另外的实施例中,储藏室包括冷藏室、冷冻室以及变温室。
基于上述实施例提供的食材存储设备,通过在食材存储设备箱体外侧设置显示器,可以使食材存储设备具有显示功能。
图1B为本申请根据示例性实施例示出的食材存储设备外观示意图,如图 1B所示,在冷藏室门上设有显示器,显示器嵌入到门体中。冷藏室门上显示器下方的位置处设有标签读取区,标签读取区内置用于读取射频识别(Radio Frequency Identification,RFID)标签的天线,以用于识别近距离的RFID标签。
在一些实施例中,显示器的显示屏所在平面与箱门外表面平齐。
图2为本申请根据示例性实施例示出的食材存储设备硬件配置示意图,作为示例,食材存储设备200可以包括显示器210、控制器220、多根用于检测RFID标签的天线230、检测器240、存储器250、通信器260和若干用户输入接口。显示器210、天线230、检测器240、存储器250通过通信接口与控制器220耦合。其中,显示器210,用于接收控制器220输出的图像信号,进行显示视频内容和图像以及菜单操控界面的组件,以及显示用于控制食材存储设备200的用户操控人机界面(User Interface,UI)。
控制器220,可以包括一个或者多个处理单元,例如***芯片(system on a chip,SoC)、中央处理器(central processing unit,CPU)、微控制器(microcontroller,MCU)、存储控制器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,控制器220与天线230通过串口通信。
在一些实施例中,控制器220包括RFID模块,RFID模块、天线230以及RFID标签构成RFID读写***,天线230用于在RFID模块和RFID标签之间传递射频信号,RFID模块通过天线230完成对RFID标签的读、写操作。
在一些实施例中,RFID模块通过串口与天线通信。
存储器250,可以包括一个或者多个存储单元,例如可以包括易失性存储器(volatile memory),如:动态随机存取存储器(dynamic random access memory,DRAM)、静态随机存取存储器(static random access memory,SRAM)等;还可以包括非易失性存储器(non-volatile memory,NVM),如:只读存储器(read-only memory,ROM)、闪存(flash memory)等。其中,不同的存储单元可以是独立的器件,也可以集成或者封装在一个或者多个处理器或者通信 接口中,成为处理器或者通信接口的一部分。
存储器250中存储有程序指令和应用程序,如语音应用。控制器220可调用存储器250中的程序指令或者运行应用程序,使食材存储设备执行相关的方法,例如本申请实施例所提供的食材标签的扫描方法。
检测器240,至少包括声音采集器,如麦克风,可以用于接收用户的声音。示例性的,包括用户控制食材存储设备200的控制指令的语音信号。检测器240还可以包括箱门开关状态传感器,如检测磁敏开关、机械开关,用于检测每个箱门的开关信号,当根据检测到的开关信号记录所述箱门的开关状态,发送开关状态信息给控制器220。
用户输入接口,包括麦克风、触摸板、传感器、按键等其他输入接口中至少一者。
通信器260,用于与服务器或者局域网内的终端设备进行通信。
在一些实施例中,不同的储藏室内设置的天线的功率可以不同。且,各个储藏室的天线的功率能够保证天线识别到自身间室包括的食材即可,从而避免功率太大时会增加误识别率,功率太小时会识别不全自身间室的食材。
在一些实施例中,将设置在标签读取区下的天线称为第一天线,将设置在储藏室中的天线称为第二天线。
基于本申请实施例提供的食材存储设备,可以使用RFID标签对储藏室中的食材进行标识,RFID标签的标签信息(如标签标识)与其标识的食材的食材信息之间具有对应关系,从而实现RFID标签与食材信息之间的虚拟关联。实际应用中,将贴设有RFID标签的食材存放到食材存储设备中,通过第二天线检测储藏室中RFID标签以获取其标签信息,根据标签信息与食材信息的关联关系确定该标签所标识的食材。
在一些实施例中,标签信息包括标签编码,标签编码中的特定码段为标签标识。建立RFID标签的标识信息与食材信息的对应关系,可以实现RFID标签与食材的虚拟关联。进而,在获取到储藏室中RFID标签的标签标识后,即可根据标签标识和预先建立的对应关系确定RFID标签对应的食材。
在一些实施例中,控制器220通过运行食材管理应用实现食材管理功能,食材管理应用提供的应用界面包括:可作为应用主界面的食材管理界面、用于建立RFID标签与食材信息的关联关系的标签编辑界面、用于展示推荐菜谱信息的菜谱展示界面等。
在一些实施例中,响应于开机或者用户输入的食材管理应用启动指令,控制器220启动食材管理应用。食材管理应用启动后,用户可以在食材管理应用中输入标签编辑指令。
在一些实施例中,食材信息包括食材标识(Identity document,ID)、食材名称、存放位置标识、食材数量、食材保质期、起始时间等中的一项或者多项。根据存放位置标识可以确定该食材存放的储藏室。
在一些实施例中,储藏室中现有食材对应的食材信息保存在本地食材信息集合中。该现有食材是指当前储藏在食材存储设备中的食材。
在一些实施例中,食材管理应用启动后,从本地食材信息集合中读取现有食材的食材信息,例如读取存放状态为放入状态的食材信息。然后根据现有食材的食材信息显示食材管理界面,食材管理界面包括根据食材信息绘制的食材图标,从而使得食材存储设备中的现有食材以图标、图文等形式尽数展示。除此之外,食材管理界面中还可以显示各类功能控件,如RFID标签编辑控件、食材添加控件、菜谱推荐控件等,以供用户操作以触发控制器220实现相应功能。
基于上述内容提供的食材存储设备,食材存储设备应运而生。食材存储设备,就是能对食材存储设备进行智能化控制、对食品进行智能化管理的食材存储设备类型。食材存储设备可以自动进行食材存储设备模式调换,始终让食物保持最佳存储状态,可让用户通过手机或电脑,随时随地了解食材存储设备里食物的数量、保鲜保质信息,可为用户提供健康食谱和营养禁忌,也可提醒用户定时补充食品等。
食材存储设备可以为用户提供食材的智能推荐、智能管理、智能储藏并可以为用户推荐菜谱以及多功能烹饪等多种功能。例如,食材存储设备可以 将食材库推送给用户,并将食材库中的食材显示在食材存储设备的显示屏中。在实际使用场景中,由于不同用户的喜好和饮食习惯不同,理想的情况是,根据用户选择的食材存储设备使用所处的位置信息和用户的语言使用信息来动态调整食材库食材的显示及热门菜谱的推荐。
例如,猪肉不能显示在某些国家的食材存储设备的显示屏上;再如,如果食材存储设备使用所处的位置信息是印度,可以将咖喱、洋葱、土豆等比较受欢迎的食材显示在食材库靠前的位置;再如,如果食材存储设备所处的位置信息是德国,但是用户选择的语言使用信息是泰语,说明用户很有可能是生活在德国的泰国人,则可以将一些热门的泰国食材和菜谱推荐给用户,以提高用户对推荐食材和菜谱的满意度。
但在目前的食材存储设备中,还无法根据用户使用的食材存储设备所处的位置信息和用户的语言使用信息动态调整食材库和热门菜谱。例如,有的食材存储设备只有食材搜索功能,并没有食材库;再如,有的食材存储设备虽然有食材库,但是在切换食材库时食材显示结果并没有变动,即无法进行食材的切换。
而且,通常情况下食材库的数据量较大,例如,目前现有食材库支持数百种食材,为了方便用户的使用,后续还会对食材库进行扩充与更新,这也增加了根据用户使用的食材存储设备所处的位置信息和用户的语言使用信息动态调整食材库和热门菜谱的难度。如何自动根据食材存储设备所处的位置信息及用户的语言使用信息切换不同食材库,以及向用户推荐更为符合当地饮食文化的热门菜谱是本文解决的技术问题。
本申请实施例提供一种食材存储设备及食材库和菜谱的排序方法,可以根据当前食材存储设备所处的位置信息和用户的语言使用信息动态切换食材库和推荐菜谱的数据显示。
图3为本申请实施例提供的食材存储设备示意图。如图3所示,该食材存储设备可以包括显示器、通信器和控制器。其中,显示器用于显示用户界面;通信器用于与服务器进行通信;控制器与显示器及通信器连接,控制器 被配置为执行如下步骤:
获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,位置信息和语言使用信息表征用户的饮食习惯;基于位置信息和/或语言使用信息,按照预设的排序规则显示食材排序;当位置信息和/或语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
在本申请实施例中,获取食材存储设备当前所处的位置信息和/或语言使用信息可以有多种方式,例如,可以是从服务器获取,也可以在菜单中设置,还可以通过识别等方式获取等,具体本申请不做限定。本申请实施例中,预设的排序规则可以根据用户实际需求预先制定,例如,可以包括食材排序规则、菜谱排序规则、食材显示规则等。
为了便于对本申请的进一步理解,下面结合具体实例对食材存储设备的控制器执行的步骤进行详细说明。在本申请中,食材存储设备当前所处的位置信息可以是食材存储设备所在的使用地区对应的国家,每个国家可以对应有一个唯一的国家码,该国家码是位置信息的唯一标识。其中,为了对每个国家和国家码之间建立对应关系,还可以对每个国家建立一个国家掩码,该国家掩码与唯一的国家码一一对应,也就是说,国家掩码也是唯一的。在本申请中,国家掩码一方面可以与国家码之间建立唯一的对应关系,另一方面,国家掩码可以用来表示某个国家中食材的显示情况,该食材显示情况与用户的饮食和习惯有关。食材信息可以是可以表示食材显示的编码,如为了便于举例和描述,本申请中的食材信息可以包括食材显示码。
需要说明的是,本申请中的位置信息并不局限于某个国家,也就是说,并不仅仅包括国家码、国家掩码等,食材信息并不仅限于食材显示码,仅是为了示例性说明。
下面以食材存储设备当前所处的位置信息为某个国家为例,对食材存储设备中某些食材显示或隐藏、及食材排序等情况进行详细说明。需要说明的是,本申请中涉及到的“位置信息和/或语言使用信息”在实际使用过程中,可以单独使用其中的一种,如仅仅使用位置信息,或仅仅使用语言使用信息, 还可以是两种方式的结合,本申请对此不做限定。在举例过程中,针对“位置信息和/或语言使用信息”的情况,有可能仅是列举了其中一种,但本申请并不局限于其中一种,仅是为了更清楚的描述方案便于对方案进行进一步理解。
一种实现方式中,可以通过如下方式实现食材库中食材的显示和隐藏。首先,获取食材存储设备位置信息的国家码。用户在首次使用食材存储设备时,会设定食材存储设备位置信息的当前国家区域。例如,食材存储设备可以设置有默认的位置信息,如默认位置信息可以为澳大利亚,如果用户位置信息不是澳大利亚,用户可以通过点击选取的方式选择食材存储设备位置信息。
位置信息选择完成后,会产生位置信息所在国家的国家码,国家码会保存在食材存储设备***中,且该国家码唯一。国家码的表现形式可以为,采用各个国家的英文名的缩写,代表每个国家的国家码,例如,澳大利亚的国家码可以为AUS,马来西亚的国家码可以为MYS,英国的国家码可以为GBR等。
一种实现方式中,可以通过如下步骤按照排序规则对食材进行显示与排序:根据位置信息和/或语言使用信息获取食材信息;对位置信息和食材信息进行与运算,得到运算结果;根据运算结果将满足排序规则的食材添加到食材库中,并显示食材。其中,根据位置信息和/或语言使用信息获取食材信息可以包括如下步骤:获取预先建立的映射表,映射表用于存储与位置信息和/或语言使用信息相关联的关联信息;根据关联信息及食材在位置信息的显示情况设置食材信息。
获取到食材存储设备位置信息的国家码后,可以根据预先建立的映射表获取国家码对应的国家掩码。
为了区分每个国家和地区,本申请实施例根据预先建立的映射表获取国家码对应的国家掩码,该映射表用于存储国家码和国家掩码的映射关系。
一种实现方式中,本申请实施例采用二进制的方式来表达国家码代表的 含义。目前,食材存储设备规划支持35个国家和地区,在一些实施例中,可以使用35个二进制位来表示,每一个二进制位代表一个国家和地区。
为了便于描述,可以将这个二进制数称为该国家的国家掩码。当然,本申请并不限于采用二进制数表达国家掩码,还可以采用十六进制或其他方式等。
映射表用于存储国家码和国家掩码的映射关系。可以根据已生成的国家码,在映射表中为国家码和国家掩码建立一一映射关系。其中,国家掩码的表达方式可以为,在唯一的国家码后面加上后缀,例如,澳大利亚国家码为AUS,可通过映射表将该国家的国家掩码表示为AUS_MASK。
映射表中还存储有国家码、国家掩码(如十六进制、二进制等表现形式)、国家码值代表的含义等,如表1所示。例如,澳大利亚的国家掩码十六进制值形式为0X01,二进制形式为…00001(此处及下文中,…的省略值为0)。
表1 国家码其国家掩码映射关系
国家码与国家掩码确定后,可以根据食材在位置信息的显示情况为食材设置食材显示码。
根据食材在不同国家和地区的显示情况,可以为食材设置食材显示码。食材显示码可以预先设定设置规则。一种实现方式中,国家掩码和食材显示码均采用二进制编码形式,国家掩码和食材显示码位数相同。例如,食材显示码也可以由35位二进制数表示,每一位使用0或1来表示,1表示显示,0表示不显示。如果某种食材需要在某个国家显示,只需要在该国家的二进制位上设置为1即可。
图4为本申请实施例提供的食材显示码显示示意图。如图4所示,例如, 某种食材只在马来西亚和英国显示,则设置其显示码为:…00110(省略值为0)。
食材码确定后,可以对国家掩码和食材显示码进行与运算,得到运算结果;根据运算结果将满足预设规则的食材添加到食材库中,其中,预设规则用于制定位置信息是否显示食材。
实际使用场景中,根据国家掩码和食材显示码确定可显示在食材存储设备显示屏中的食材可以通过如下步骤实现:对国家掩码和食材显示码进行与运算,得到运算结果;根据运算结果将满足预设规则的食材添加到食材库中,预设规则用于制定位置信息是否显示该食材;如果该食材满足预设规则,食材在食材存储设备显示屏中显示;如果该食材不满足预设规则,食材在食材存储设备显示屏中隐藏。国家掩码和食材显示码确定后,用国家掩码和食材显示码进行与运算(&),得到运算结果,根据运算结果将满足预设规则的食材(以下也可以简称为食材)添加到食材库中。其中,预设规则可以预先制定,根据预设规则判断运算结果;如果运算结果满足预设规则,食材在位置信息显示;如果运算结果不满足预设规则,食材不在位置信息显示。
图5为本申请实施例提供的食材显示判断流程示意图。如图5所示,预设规则可以为,国家掩码和食材显示码进行与运算后,首先对运算结果是否为0进行判断。如阅图5所示,本申请实施例提供的食材显示判断流程如下:
步骤500:对国家掩码和食材显示码进行与运算,得到运算结果。
步骤501:判断运算结果是否为0,若是,则执行步骤502;若否,则执行步骤503。
步骤502:不添加该食材。
本申请实施例中,如果在执行步骤501时,确定运算结果为0,表示该食材不支持在该国家地区展示,则执行步骤502,不添加到食材。
步骤503:将该食材添加到食材库列表。
本申请实施例中,如果在执行步骤501时,确定运算结果不为0,表示该食材支持在该国家展示,则执行步骤503,将该食材添加至食材库列表,并刷 新显示到食材存储设备显示屏上。
例如,如前面所述,某食材只在马来西亚和英国显示,则其食材显示码为…00110。如果当前食材存储设备设置的位置信息是澳大利亚,其国家掩码为…00001,则其国家掩码和食材显示码进行与运算的运算结果为,(…00110)&(…00001)=0,则根据预设规则,该食材在澳大利亚的食材存储设备显示屏上不会显示出来。
图6为本申请实施例提供的食材显示效果示意图。如图6所以,依据上述预设规则,结合国家掩码和食材显示码的与运算结果,可以计算出哪种食材在食材存储设备的显示屏中显示,哪种不显示,并将显示结果显示在食材存储设备的显示屏中。
当用户更改食材存储设备的位置信息如更换国家码时,食材存储设备及后台服务如服务器还会监听国家码的变动情况。如果食材存储设备位置信息的国家更新,会获取与变动后的国家码对应的国家掩码,并根据国家掩码更新食材库。
例如,用户在获取食材显示时,后台会登录食材数据库并获取更新后的国家掩码,从而更新食材库的显示列表,并刷新在食材存储设备的显示器210上的食材显示。
通过国家掩码(如二进制显示方式)与食材显示码(如二进制显示方式)的与运算的方式,实现了食材库中食材自动随食材存储设备所处的位置信息切换的展示功能。当有新的食材判断是否在某个国家显示时,即后期更新某食材在某个国家的显示时,只需要修改该食材在该国家掩码中二进制位上的显示数值即可,动态并高效的控制了食材库中食材的显示或隐藏的问题。
一种实现方式中,基于位置信息和/或语言使用信息,按照预设的排序规则显示食材排序可以通过如下步骤实现:获取食材库中的食材热度列表,食材热度列表包含食材id值和热度值字段;根据位置信息和/或语言使用信息按照预设的热度值计算规则计算各个食材对应的热度值,热度值计算规则用于制定食材热度值的计算方法;按照排序规则和热度值对各个食材进行食材排 序。
其中,按照排序规则和热度值对各个食材进行食材排序可以包括如下步骤:将热度值赋值给食材热度列表中对应的食材;按照排序规则对食材进行显示与排序。将热度值赋值给食材热度列表中对应的食材,可以包括如下步骤,遍历食材热度列表中的所有食材;根据食材id值将热度值累加赋值给食材热度列表中对应的食材。
将满足预设规则的食材添加到食材库中之后,可以根据国家码和用户的语言使用信息获取食材库中的食材热度列表;食材热度列表包括食材id值和食材热度值;食材id值唯一;食材热度值用于体现食材在食材库中的热度。
具体的,在根据国家码和用户的语言使用信息获取食材库中的食材热度列表之前,还包括:识别用户的语言使用信息,并将国家码和语言上传至食材库所在的服务器。
具体实现中,如图7所示,在食材库中的食材需要在食材存储设备显示屏中显示时,食材存储设备与服务器之间的交互流程如下:
步骤700:食材存储设备获取到食材存储设备当前所处的位置信息并识别出用户的语言使用信息。
步骤701:食材存储设备将位置信息和用户的语言使用信息上传到服务器。
本申请实施例中,食材存储设备在向服务器端请求食材库食材热度值列表时,执行步骤701,将位置信息和用户的语言使用信息一起上传到服务器端,
步骤702:服务器根据位置信息的国家码和语言使用信息下发食材库中的食材热度列表。
本申请实施例中,食材热度列表可以包括食材id值和食材热度值。其中,食材id值唯一,是对食材的唯一标识;食材热度值用于体现食材在食材库中的热度。
一种实现方式中,可以为食材热度列表中的食材添加一个热度值字段。表2为食材热度列表中食材的结构表,如表2所示,食材id值可以为食材唯一标识id,如001、002等标识,结构表中还有食材名称、食材热度值等。
可以按照事先约定将食材热度值分为几个档位,例如,分为3个档,三个档的值分别为:0、1、2,食材热度值越大,表示食材在食材存储设备显示器中越靠前显示。
表2 食材热度列表中食材的结构表
食材唯一标识id | 食材英文名称 | 食材热度值 |
001 | apple | 2 |
002 | banana | 0 |
获取到食材热度列表之后,可以根据国家码、语言使用信息和预设的热度值计算规则为各个食材计算对应的热度值,热度值计算规则用于制定食材热度值的计算方法。
在一些实施例中,食材热度值默认为第一数值,控制器进一步被配置为:根据位置信息筛选出对应的第一批热门食材,第一批热门食材的热度值加第一预定数量;根据语言使用信息筛选出对应的第二批热门食材,第二批热门食材的热度值加第二预定数量;累加第一批热门食材和第二批热门食材的热度值,生成各个食材计算对应的热度值。
食材热度值是根据用户上报的位置信息和用户的语言使用信息共同决定的,本申请实施例中,食材热度值默认可以为0(即,第一数值为0);第一预定数量可以与第二预定数量相同,如,均可以为1。
图8是本申请实施例提供的热度值计算方式流程示意图。如图8所示,可以通过如下方式根据国家码、语言使用信息和预设的热度值计算规则为各个食材计算对应的热度值:
步骤800:根据国家码筛选出对应的第一批热门食材,第一批热门食材的热度值加1;其中,第一批热门食材是满足根据国家码筛选条件筛选出来的食材。
步骤801:根据用户的语言使用信息筛选出对应的第二批热门食材,第二批热门食材的热度值加1;其中,第二批热门食材是满足根据用户的语言使用信息筛选条件筛选出来的食材。
步骤802:累加第一批热门食材和第二批热门食材的热度值,生成各个食材对应的热度值。
具体实现时,参见图9,图9为本申请实施例提供的热度值计算规则示意图。例如,用户请求位置信息是德国,但是使用语言是泰语,首先会根据德国的国家码筛选出对应的第一批热门食材,即将所有德国的热门食材筛选出来,对应的食材热度值加1。如,第一批热门食材中包含食材1、食材2、食材3……,最初食材的默认热度值为0,经过第一批筛选后,这些食材的热度值加1,如食材1、食材2、食材3的热度值均变为1。
经过第一批筛选之后,根据用户的语言使用信息筛选出对应的第二批热门食材,即用户使用的是泰语,则将泰国热门食材筛选出来,对应的食材热度值加1。如图9中,经过第二批筛选后,第二批热门食材包括食材1、食材4、食材5……,这样,重复的食材热度值会变成2,如食材1均在第一批筛选和第二批筛选中出现,则食材1的热度值变为2。筛选出未重复食材热度值为1,如食材2、食材3、食材4及食材5均出现过一次,则未重复出现,热度值为1。其他未被筛选出的食材其食材热度值仍为默认值0。
在对食材进行排序过程中,排序规则可以包括第一排序规则和第二排序规则,控制器可以被配置为执行如下步骤:依次按照第一排序规则和第二排序规则对食材进行排序,并显示排序结果;第一排序规则为对食材按照热度值由高到低进行排序;第二排序规则为针对相同热度值的食材按照英文字母顺序进行排序。
各个食材对应的热度值计算完成后,可以将热度值赋值给食材热度列表中对应的食材;依次按照第一排序规则和第二排序规则对食材进行排序,并将食材的排序结果显示在食材存储设备显示屏;第一排序规则为对食材按照热度值由高到低进行排序;第二排序规则为针对相同热度值的食材按照英文字母顺序进行排序。
获取到食材的热度值后,根据食材热度列表,遍历食材热度列表中的所有食材,根据食材id值将热度值累加赋值给食材热度列表中对应的食材。也 就是根据食材id值,将获取的食材热度值赋值给食材热度列表中食材id值相同的食材中。
食材热度列表中的食材热度值赋值完成后,可以按照一定的排序规则对食材按热度值进行排序。例如,一种排序方式可以为,首先按照第一排序规则为食材按照热度值进行排序,第一排序规则为对食材按照热度值由高到低进行排序。
图10为本申请实施例提供的按照第一排序规则对食材进行热度值排序的效果示意图。如图10所示,例如,三种食材的食材热度值分别为:食材1热度值为0、食材2热度值为2、食材3热度值为1,则按照第一排序规则进行排序后,热度值越高的食材在食材存储设备显示屏中显示越靠前,如食材2显示在食材3的前面。这样,用户可以直观的看到当地的热门食材,免去了用户自己筛选的过程,节省了用户的时间。
第一排序规则为对食材按照热度值由高到低进行排序。容易理解的是,食材热度值高的排在前面,相反,食材热度值低的排在后面。例如,目前有三种食材,分别为苹果、香蕉和哈密瓜。其中,苹果热度值为1,香蕉热度值为0,哈密瓜热度值为2,容易看出,哈密瓜的热度值最高,则按照热度值由高到低进行排序,三种食材的显示先后顺序分别为:哈密瓜、苹果、香蕉。
为了避免相同热度值食材排序出现紊乱的问题,本申请还对热度值相同的食材再按字母顺序进行二次排序,即按照第二排序规则为针对相同热度值的食材按照英文字母顺序进行排序。
图11为本申请实施例提供的按照第二排序规则对食材进行热度值排序的效果示意图。如图11所示,食材热度值经过计算后,食材2和食材4热度值相同,热度值均为2。食材3和食材5的热度值相同,均为1,则出现了不同的食材相同热度值的情况。
针对上述情况,本申请通过第二排序规则,针对相同热度值的食材按照英文字母顺序进行排序。例如,食材2和食材4的热度值均为2,但食材2是apple,食材4是banana,则食材2的首字母为a、食材4的首字母为4,按照 英文字母顺序,a在前b在后,则在食材存储设备显示屏显示时,食材2显示在食材4的前面,如图11所示,最终将显示结果显示在食材存储设备显示器上。
在实际使用过程中,会出现第一排序规则和第二排序规则联合使用的情况。此时可以依次按照第一排序规则和第二排序规则对食材进行排序,并将食材的排序结果显示在食材存储设备显示屏上。
在一些实施例中,当位置信息和/或语言使用信息发生变化时,可以根据变化后的位置信息和/或语言使用信息更新食材排序,可以包括如下步骤,监听位置信息和/或语言使用信息,如果位置信息和/或语言使用信息发生变化,根据变化后的位置信息和/或语言使用信息更新食材排序。其中,根据变化后的位置信息和/或语言使用信息更新食材排序,包括:根据变化后的位置信息和/或语言使用信息重新计算各个食材对应的热度值;对计算后的热度值进行排序,按照热度值的排序结果更新食材排序。
当用户更改食材存储设备的位置信息和语言使用信息时,食材存储设备及后台服务如服务器还会监听国家码和用户的语言使用信息变动情况。图12为本申请实施例提供的用户更改食材存储设备的位置信息和语言使用信息时食材显示逻辑示意图。如图12所示,食材存储设备及后台服务如服务器执行如下步骤:
步骤1200:监听国家码和语言使用信息的变动。
步骤1201:判断是否有变动,若是,则执行步骤1203;若否,则执行步骤1202。
需要说明的是,根据位置信息和/或语言使用信息按照预设的排序规则显示食材排序之前,还包括将位置信息和/或语言使用信息上传至服务器。以根据上传后的位置信息和/或语言使用信息更新食材排序情况。
步骤1202:保持当前食材热度列表及食材显示结果。
步骤1203:重新获取食材热度列表。
步骤1204:按照变动后的国家码和语言使用信息重新计算食材对应的热 度值,并重新对食材热度值进行排序,以及将排序结果显示在食材存储设备显示屏。
例如,用户在获取食材显示时,后台会登录食材数据库并获取更新后的国家掩码或用户的语言使用信息,从而更新食材库的显示列表与食材排序,并刷新在食材存储设备的显示器上的食材显示结果。
通过食材存储设备位置信息的选择和用户的语言使用信息的获取,本申请实施例可以计算出食材库中食材的热度值,并根据热度值结果调整食材在食材库和食材存储设备的显示器中的显示顺序。
在一些实施例中,控制器进一步被配置为根据位置信息和/或语言使用信息按照预设的排序规则显示菜谱排序。一种实现方式中,可以通过如下步骤根据位置信息和/或语言使用信息按照预设的排序规则显示菜谱排序,包括:将位置信息和/或语言使用信息添加到菜谱原有的筛选维度中,生成新的筛选维度;筛选维度是对菜谱进行筛选的条件;按照新的筛选维度对菜谱进行排序,并显示菜谱排序结果。
仍以位置信息为某个国家为例,具体的,本申请还可以根据国家码、语言使用信息获取需要推荐的菜谱。图13为本申请实施例提供的根据国家码、语言使用信息获取需要推荐的菜谱流程示意图。如图13所示,可以通过如下方式根据国家码、语言使用信息获取需要推荐的菜谱,食材存储设备和服务器之间的交互流程如下:
步骤1300:食材存储设备将国家码和语言使用信息上传至菜谱所在的服务器。
步骤1301:服务器将国家码和语言使用信息添加到菜谱原有的筛选维度中,生成新的筛选维度。
其中,上述筛选维度是对菜谱进行筛选的条件。
步骤1302:服务器按照新的筛选维度对菜谱进行排序,根据菜谱的排序结果生成需要推荐的菜谱。
步骤1303:服务器将该菜谱发送至食材存储设备。
步骤1304:食材存储设备在食材存储设备显示屏上显示该菜谱。
在以往的菜谱推荐中,推荐维度主要通过食材管理存储的食材及其新鲜度来进行推荐。例如,某些食材新鲜度比较高,则优先推荐;某些食材新鲜度比较低或已过期,则不推荐或进行相应提示等。本申请实施例除了结合上述推荐方法外,还可以根据国家码、语言使用信息获取需要推荐的菜谱。
如前面所述,食材存储设备位置信息是德国,如果用户选择的使用语言是泰语,说明用户很有可能是生活在德国的泰国人,本申请同样可以将一些热门的泰国菜推荐给用户,以提高用户对推荐菜谱的满意度。
具体实现时,在获取当前食材存储设备位置信息的国家码和用户的语言使用信息之后,在向服务器端请求当前食材存储设备的热门推荐菜谱数据时,将国家码和语言使用信息上传至菜谱所在的服务器,即将地区信息和使用语言信息一起上传到服务器端。
服务器端在抓取菜谱信息时,首先根据用户的语言使用信息将该语言的位置信息筛选出来,在原来的筛选维度(如食材新鲜度)上加入食材存储设备位置信息及用户的语言使用信息,即将国家码和语言使用信息添加到菜谱原有的筛选维度中,生成新的筛选维度。在服务器中按照新的筛选维度对菜谱进行排序,根据菜谱的排序结果生成需要推荐的菜谱。
其中,筛选维度是对菜谱进行筛选的条件,例如,将位置信息德国和语言使用信息泰语上传至服务器端,服务器端在抓取菜谱数据时,将德国和泰国两个地区的信息加入到原有筛选维度中,将区域为德国和泰国的菜谱一块筛选出来,再根据菜谱热度、存储食材及其新鲜度等条件对菜谱进行排序,最终获取需要推荐的菜谱。以及,食材存储设备将服务器端筛选出来的推荐菜谱显示到食材存储设备显示屏中。
本申请实施例在向用户推荐菜谱时,在原有的推荐维度上新加入位置信息和语言使用信息两个维度,可以向用户推荐更为符合当地饮食文化的热门菜谱。在一些实施例中,食材存储设备的控制器还可以监听位置信息和/或语言使用信息的变动,当位置信息和/或语言使用信息发生变化时,根据变化后 的位置信息和/或语言使用信息更新菜谱排序,以使食材存储设备根据变化后的位置信息和/或语言使用信息显示最新的菜谱及其排序。
由以上技术方案可知,本申请提供一种食材库和菜谱的排序方法,其中,对食材库和菜谱的排序包括:获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,位置信息和语言使用信息表征用户的饮食习惯;基于位置信息和/或语言使用信息,按照预设的排序规则显示食材排序;当位置信息和/或语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
本申请实施例通过位置信息如国家掩码与食材信息如食材显示码进行与运算的方式,实现了食材库中食材自动随食材存储设备所处的位置信息和/或语言使用信息切换的展示功能。当有新的食材判断是否在某个国家显示时,即后期更新某食材在某个国家的显示时,只需要修改该食材在该国家掩码中二进制位上的显示数值即可,动态并高效的控制了食材库中食材的显示或隐藏的问题。通过食材存储设备所处的位置信息和/或语言使用信息的获取,本申请实施例可以计算出食材库中食材的热度值,并根据热度值结果调整食材在食材库和食材存储设备显示器中的显示顺序。另外,本申请实施例在向用户推荐菜谱时,在原有的推荐维度上新加入位置信息和语言使用信息两个维度,可以向用户推荐更为符合当地饮食文化的热门菜谱。综上,本申请可以根据食材存储设备所处的位置信息和/或语言使用信息动态切换食材库和推荐的菜谱,从而解决了目前食材存储设备无法根据用户使用的食材存储设备所处的位置信息和/或语言使用信息动态调整食材库和热门菜谱的问题。
基于上述实施例中的食材存储设备,在本申请的部分实施例中还提供一种用于食材存储设备的食材库和菜谱的排序方法,包括:
获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,所述位置信息和所述语言使用信息表征用户的饮食习惯;
基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序;
当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述示例性的讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用实施方式以及适于具体使用考虑的各种不同的变形的实施方式。
Claims (16)
- 一种食材存储设备,包括:显示器,用于显示用户界面;通信器,用于与服务器进行通信;控制器,与所述显示器及所述通信器连接,所述控制器被配置为:获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,所述位置信息和所述语言使用信息表征用户的饮食习惯;基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序;当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
- 根据权利要求1所述的食材存储设备,执行所述基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序时,所述控制器具体被配置为:获取食材库中的食材热度列表,所述食材热度列表包含食材id值和热度值字段;根据所述位置信息和/或所述语言使用信息按照预设的热度值计算规则计算各个食材对应的热度值,所述热度值计算规则用于制定所述食材热度值的计算方法;按照所述排序规则和所述热度值对各个所述食材进行食材排序。
- 根据权利要求2所述的食材存储设备,执行所述按照所述排序规则和所述热度值对各个所述食材进行食材排序时,所述控制器具体被配置为:将所述热度值赋值给所述食材热度列表中对应的食材;按照所述排序规则对所述食材进行显示与排序。
- 根据权利要求3所述的食材存储设备,执行所述将所述热度值赋值给所述食材热度列表中对应的食材时,所述控制器具体被配置为:遍历所述食材热度列表中的所有食材;根据所述食材id值将所述热度值累加赋值给所述食材热度列表中对应的所述食材。
- 根据权利要求3所述的食材存储设备,执行所述按照所述排序规则对所述食材进行显示与排序时,所述控制器具体被配置为:根据所述位置信息和/或所述语言使用信息获取食材信息;对所述位置信息和所述食材信息进行与运算,得到运算结果;根据所述运算结果将满足所述排序规则的食材添加到食材库中,并显示所述食材。
- 根据权利要求5所述的食材存储设备,执行所述根据所述位置信息和/或所述语言使用信息获取食材信息时,所述控制器具体被配置为:获取预先建立的映射表,所述映射表用于存储与所述位置信息和/或所述语言使用信息相关联的关联信息;根据所述关联信息及所述食材在所述位置信息的显示情况设置食材信息。
- 根据权利要求5所述的食材存储设备,所述位置信息和所述食材信息均采用二进制编码形式,所述位置信息和所述食材信息显示码位数相同。
- 根据权利要求1所述的食材存储设备,所述排序规则包括第一排序规则和第二排序规则,所述控制器进一步被配置为:依次按照所述第一排序规则和所述第二排序规则对所述食材进行排序,并显示排序结果;所述第一排序规则为对所述食材按照热度值由高到低进行排序;所述第二排序规则为针对相同热度值的所述食材按照英文字母顺序进行排序。
- 根据权利要求1所述的食材存储设备,执行所述当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序时,所述控制器具体被配置为:监听所述位置信息和/或所述语言使用信息,如果所述位置信息和/或所述语言使用信息发生变化,根据变化后的位置 信息和/或语言使用信息更新食材排序。
- 根据权利要求9所述的食材存储设备,执行所述根据变化后的位置信息和/或语言使用信息更新食材排序,所述控制器具体被配置为:根据变化后的位置信息和/或语言使用信息重新计算各个食材对应的热度值;对计算后的所述热度值进行排序,按照所述热度值的排序结果更新所述食材排序。
- 根据权利要求1所述的食材存储设备,在所述根据所述位置信息和/或所述语言使用信息按照预设的排序规则显示食材排序之前,所述控制器还被配置为:将所述位置信息和/或所述语言使用信息上传至所述服务器。
- 根据权利要求1所述的食材存储设备,所述食材热度值默认为第一数值,所述控制器进一步被配置为:根据所述位置信息筛选出对应的第一批热门食材,所述第一批热门食材的热度值加第一预定数量;根据所述语言使用信息筛选出对应的第二批热门食材,所述第二批热门食材的热度值加第二预定数量;累加所述第一批热门食材和所述第二批热门食材的热度值,生成各个食材计算对应的热度值。
- 根据权利要求1所述的食材存储设备,所述控制器进一步被配置为:根据所述位置信息和/或所述语言使用信息按照所述预设的排序规则显示菜谱排序。
- 根据权利要求13所述的食材存储设备,执行所述根据所述位置信息和/或所述语言使用信息按照所述预设的排序规则显示菜谱排序时,所述控制器具体被配置为:将所述位置信息和/或所述语言使用信息添加到菜谱原有的筛选维度中,生成新的筛选维度;所述筛选维度是对所述菜谱进行筛选的条件;按照新的所述筛选维度对所述菜谱进行排序,并显示菜谱排序结果。
- 根据权利要求13所述的食材存储设备,所述控制器还被配置为:监听所述位置信息和/或所述语言使用信息的变动;当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新菜谱排序。
- 一种用于食材存储设备的食材库和菜谱的排序方法,所述方法包括:获取食材存储设备当前所处的位置信息和/或语言使用信息,其中,所述位置信息和所述语言使用信息表征用户的饮食习惯;基于所述位置信息和/或所述语言使用信息,按照预设的排序规则显示食材排序;当所述位置信息和/或所述语言使用信息发生变化时,根据变化后的位置信息和/或语言使用信息更新食材排序。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210204720.4 | 2022-03-03 | ||
CN202210204720.4A CN114579855A (zh) | 2022-03-03 | 2022-03-03 | 食材存储设备及食材库和菜谱的排序方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023165227A1 true WO2023165227A1 (zh) | 2023-09-07 |
Family
ID=81772049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/140688 WO2023165227A1 (zh) | 2022-03-03 | 2022-12-21 | 食材存储设备及食材库和菜谱的排序方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114579855A (zh) |
WO (1) | WO2023165227A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114579855A (zh) * | 2022-03-03 | 2022-06-03 | 海信视像科技股份有限公司 | 食材存储设备及食材库和菜谱的排序方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021564A (zh) * | 2016-05-30 | 2016-10-12 | 美的集团股份有限公司 | 一种菜谱推荐方法和装置 |
WO2017113642A1 (zh) * | 2015-12-30 | 2017-07-06 | 青岛海尔股份有限公司 | 基于食谱的信息推送方法与装置 |
CN109815420A (zh) * | 2019-03-27 | 2019-05-28 | 海信(山东)冰箱有限公司 | 一种信息推送方法及设备 |
CN110852914A (zh) * | 2019-10-31 | 2020-02-28 | 珠海优特智厨科技有限公司 | 一种菜谱语言的自适应调整方法和装置 |
CN114579855A (zh) * | 2022-03-03 | 2022-06-03 | 海信视像科技股份有限公司 | 食材存储设备及食材库和菜谱的排序方法 |
-
2022
- 2022-03-03 CN CN202210204720.4A patent/CN114579855A/zh active Pending
- 2022-12-21 WO PCT/CN2022/140688 patent/WO2023165227A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017113642A1 (zh) * | 2015-12-30 | 2017-07-06 | 青岛海尔股份有限公司 | 基于食谱的信息推送方法与装置 |
CN106021564A (zh) * | 2016-05-30 | 2016-10-12 | 美的集团股份有限公司 | 一种菜谱推荐方法和装置 |
CN109815420A (zh) * | 2019-03-27 | 2019-05-28 | 海信(山东)冰箱有限公司 | 一种信息推送方法及设备 |
CN110852914A (zh) * | 2019-10-31 | 2020-02-28 | 珠海优特智厨科技有限公司 | 一种菜谱语言的自适应调整方法和装置 |
CN114579855A (zh) * | 2022-03-03 | 2022-06-03 | 海信视像科技股份有限公司 | 食材存储设备及食材库和菜谱的排序方法 |
Also Published As
Publication number | Publication date |
---|---|
CN114579855A (zh) | 2022-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111860718B (zh) | 冰箱及食材管理方法 | |
CN112344619A (zh) | 冰箱及食材信息编辑方法 | |
CN109299384A (zh) | 场景推荐方法、装置及***、存储介质 | |
WO2023165227A1 (zh) | 食材存储设备及食材库和菜谱的排序方法 | |
CN111780477A (zh) | 冰箱及食材管理方法 | |
CN112344618A (zh) | 冰箱及食材信息的定义方法 | |
CN113011538A (zh) | 冰箱及食材标签扫描方法 | |
WO2022001768A1 (zh) | 一种冰箱 | |
CN112951373A (zh) | 一种食材推荐方法、设备、智能冰箱和智能终端 | |
CN111811182B (zh) | 一种冰箱及食谱推荐方法 | |
WO2022095564A1 (zh) | 显示设备及界面显示方法 | |
KR20170126698A (ko) | 콘텐트 제공을 위한 전자 장치 및 방법 | |
CN113495487A (zh) | 一种调节目标设备运行参数的终端和方法 | |
CN111857477B (zh) | 显示控制方法、装置、移动终端及存储介质 | |
CN113251727A (zh) | 冰箱及信息推荐方法 | |
KR20110097337A (ko) | 단말기 및 그 제어 방법 | |
CN115082149A (zh) | 一种电子设备、服务器及烹饪设备推荐方法 | |
WO2022041992A1 (zh) | 冰箱、显示设备、服务器、推荐方法及消息提醒方法 | |
CN109146021A (zh) | 交互方法、装置及智能终端 | |
CN114294884A (zh) | 冰箱及消息提醒方法 | |
CN111552874B (zh) | 一种冰箱及食谱推荐方法 | |
CN114820122A (zh) | 一种食材存储设备、终端设备以及采购清单生成方法 | |
CN116134279A (zh) | 冰箱及食材管理方法 | |
CN113483518B (zh) | 冰箱及界面显示方法 | |
WO2023202221A1 (zh) | 一种电子设备及数据处理方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22929653 Country of ref document: EP Kind code of ref document: A1 |