patents.google.com

CN110634552A - Recipe push method and device based on IoT operating system - Google Patents

  • ️Tue Dec 31 2019
基于物联网操作系统的食谱推送方法和装置Recipe push method and device based on IoT operating system

技术领域technical field

本发明涉及物联网操作系统技术领域,具体而言,涉及一种基于物联网操作系统的食谱推送方法和装置。The present invention relates to the technical field of Internet of Things operating systems, in particular, to a recipe push method and device based on the Internet of Things operating system.

背景技术Background technique

现有技术中存在的能提供的食谱推荐方案的智能应用,往往仅能根据用户的健身计划,给出一些配合用户健身计划的食材推荐,这种推荐方式往往推荐项目比较单一,不适用于不同的用户,也不适用于无健身计划的普通用户,无法满足用户日常的使用需求。The intelligent applications that can provide recipe recommendation schemes in the prior art can often only recommend some ingredients that match the user's fitness plan according to the user's fitness plan. This recommendation method often recommends a single item and is not suitable for different It is also not suitable for ordinary users without fitness plans, and cannot meet the daily needs of users.

针对现有技术中智能应用的食谱推荐项目单一无法满足不同用户需求的问题,目前尚未提出有效的解决方案。Aiming at the problem that a single recipe recommendation item of an intelligent application cannot meet the needs of different users in the prior art, no effective solution has been proposed yet.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种基于物联网操作系统的食谱推送方法和装置,以至少解决智能应用的食谱推荐项目单一无法满足不同用户需求的技术问题。Embodiments of the present invention provide a recipe push method and device based on an Internet of Things operating system, so as to at least solve the technical problem that a single recipe recommendation item of an intelligent application cannot meet the needs of different users.

根据本发明实施例的一个方面,提供了一种基于物联网操作系统的食谱推送方法,包括:在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,所述饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;根据所述用户的饮食习惯信息生成目标食谱,其中,所述目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;将所述目标食谱推送给所述用户。According to an aspect of the embodiments of the present invention, a method for pushing recipes based on an Internet of Things operating system is provided, including: within a specified time period, acquiring information on a user's eating habits through a smart home device, wherein the eating habits information at least Including: consumed ingredient information and cooking information of each consumed ingredient; generating a target recipe according to the user's eating habit information, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient; The target recipe is pushed to the user.

可选地,所述在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息包括:在指定时间周期内,获取已食用食材信息,其中,所述已食用食材信息包括:所述已食用食材放入智能冰箱的时间,所述已食用食材从所述智能冰箱取出的时间,所述已食用食材的种类,以及所述已食用食材的质量和/或数量;在指定时间周期内,获取所述已食用食材的烹饪信息,其中,所述已食用食材的烹饪信息至少包括:烹饪的所述已食用食材的种类和用量,所述已食用食材的烹饪方式,以及所述已食用食材烹饪时所使用的调味品的种类和用量。Optionally, the acquiring the user's eating habit information by using the smart home device within a specified time period includes: within a specified time period, acquiring the information of the eaten ingredients, wherein the information of the eaten ingredients includes: the eaten The time when the food was put into the smart refrigerator, the time when the consumed food was taken out from the smart refrigerator, the type of the consumed food, and the quality and/or quantity of the consumed food; within a specified time period, obtain The cooking information of the eaten ingredient, wherein the cooking information of the eaten ingredient at least includes: the type and amount of the eaten ingredient to be cooked, the cooking method of the eaten ingredient, and the cooking method of the eaten ingredient The type and amount of seasoning used.

可选地,所述根据所述用户的饮食习惯信息生成目标食谱,包括:获取所述用户的身体状态信息,其中,所述身体状态信息至少包括以下之一:体重、体脂率、蛋白质含量、骨盐量、内脏脂肪率;根据所述用户的饮食习惯信息,以及所述用户的身体状态信息,生成目标食谱。Optionally, the generating the target recipe according to the user's eating habit information includes: acquiring the user's body state information, wherein the body state information includes at least one of the following: weight, body fat percentage, protein content , bone salt amount, visceral fat rate; according to the user's eating habits information, and the user's physical state information, generate a target recipe.

可选地,所述根据所述用户的饮食习惯信息,以及所述用户的身体状态信息,生成目标食谱包括:记录指定时间周期内所述用户的饮食习惯信息和所述用户的身体状态信息;分析所述用户的饮食习惯信息和所述用户的身体状态信息,得到所述用户需要补充的第一目标营养信息;其中,所述第一目标营养信息包括:第一目标营养类别,及每一所述第一目标营养类别对应的补充量;从数据库中获取所述第一目标营养信息对应的第一目标食谱,其中,所述第一目标食谱包括:第一目标食材信息和所述第一目标食材的烹饪信息。Optionally, generating the target recipe according to the user's eating habit information and the user's physical state information includes: recording the user's eating habit information and the user's physical state information within a specified time period; Analyzing the user's eating habit information and the user's physical state information to obtain first target nutritional information that the user needs to supplement; wherein, the first target nutritional information includes: a first target nutritional category, and each The supplementary amount corresponding to the first target nutrition category; the first target recipe corresponding to the first target nutrition information is obtained from the database, wherein the first target recipe includes: the first target ingredient information and the first target recipe. Cooking information for the target ingredient.

可选地,所述根据所述用户的饮食习惯信息,以及所述用户的身体状态信息,生成目标食谱包括:获取目标天气信息;根据所述用户的饮食习惯信息、所述用户的身体状态信息以及所述目标天气信息生成所述目标食谱。Optionally, generating the target recipe according to the user's eating habit information and the user's physical state information includes: acquiring target weather information; according to the user's eating habit information and the user's physical state information and the target weather information to generate the target recipe.

可选地,所述根据所述用户的饮食习惯信息、所述用户的身体状态信息以及所述目标天气信息生成所述目标食谱,包括:记录指定时间周期内所述用户的饮食习惯信息、所述用户的身体状态信息以及天气信息;分析所述用户的饮食习惯信息、所述用户的身体状态信息以及所述天气信息,得到所述用户需要补充的第二目标营养信息;其中,所述第二目标营养信息包括:第二目标营养类别,及每一所述第二目标营养类别对应的补充量;从数据库中获取所述第二目标营养信息对应的第二目标食谱,其中,所述第二目标食谱包括:第二目标食材信息和所述第二目标食材的烹饪信息。Optionally, generating the target recipe according to the user's eating habit information, the user's physical state information and the target weather information includes: recording the user's eating habit information, all the user's physical state information and weather information; analyze the user's eating habit information, the user's physical state information and the weather information, and obtain the second target nutritional information that the user needs to supplement; The two-target nutritional information includes: a second target nutritional category, and a supplementary amount corresponding to each of the second targeted nutritional categories; a second targeted recipe corresponding to the second targeted nutritional information is obtained from a database, wherein the No. The two-target recipe includes: second target ingredient information and cooking information of the second target ingredient.

可选地,所述获取已食用的食材信息之后,所述方法包括:根据所述已食用食材信息生成食材记录表,其中,所述食材记录表用于记录所述已食用食材的放入所述智能冰箱的时间和取出时间,所述已食用食材的种类、数量和重量,所述已食用食材的新鲜程度以及所述已食用食材的最佳食用时间。Optionally, after acquiring the consumed food material information, the method includes: generating a food material record table according to the consumed food material information, wherein the food material record table is used to record where the consumed food material is placed. The time and take-out time of the smart refrigerator, the type, quantity and weight of the eaten ingredients, the freshness of the eaten ingredients, and the best eating time of the eaten ingredients.

可选地,所述根据所述已食用食材信息生成食材记录表之后,所述方法包括:当放置在所述智能冰箱内部的任一食材被取出,且超过预定时间未被放回冰箱时,删除所述食材记录表中与所述任一食材相关的记录,并发送提示信息,其中,所述提示信息用于提示所述任一食材超过最佳食用时间。Optionally, after generating the ingredient record table according to the consumed ingredient information, the method includes: when any ingredient placed in the smart refrigerator is taken out and not returned to the refrigerator for a predetermined time, Delete the record related to the any ingredient in the ingredient record table, and send prompt information, wherein the prompt information is used to prompt that the any ingredient exceeds the optimal eating time.

根据本发明实施例的又一方面,还提供了一种基于物联网操作系统的食谱推送装置,包括:第一获取模块,用于在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,所述饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;生成模块,用于根据所述用户的饮食习惯信息生成目标食谱,其中,所述目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;推送模块,用于将所述目标食谱推送给所述用户。According to yet another aspect of the embodiments of the present invention, a recipe push device based on an Internet of Things operating system is also provided, including: a first acquisition module, configured to acquire the user's eating habit information through a smart home device within a specified time period , wherein the eating habit information at least includes: consumed ingredient information and cooking information of each consumed ingredient; a generating module configured to generate a target recipe according to the user's eating habit information, wherein at least one of the target recipes It includes: target ingredient information and target cooking information corresponding to the target ingredient; a push module for pushing the target recipe to the user.

可选地,所述获取模块包括:第一获取单元,用于在指定时间周期内,获取已食用食材信息,其中,所述已食用食材信息包括:所述已食用食材放入智能冰箱的时间,所述已食用食材从所述智能冰箱取出的时间,所述已食用食材的种类,以及所述已食用食材的质量和/或数量;第二获取单元,用于在指定时间周期内,获取所述已食用食材的烹饪信息,其中,所述已食用食材的烹饪信息至少包括:烹饪的所述已食用食材的种类和用量,所述已食用食材的烹饪方式,以及所述已食用食材烹饪时所使用的调味品的种类和用量。Optionally, the obtaining module includes: a first obtaining unit, configured to obtain the information of the eaten ingredients within a specified time period, wherein the information of the eaten ingredients includes: the time when the eaten ingredients are put into the smart refrigerator , the time when the eaten ingredients are taken out from the smart refrigerator, the types of the eaten ingredients, and the quality and/or quantity of the eaten ingredients; a second obtaining unit, used for obtaining, within a specified time period, the The cooking information of the eaten ingredient, wherein the cooking information of the eaten ingredient at least includes: the type and amount of the eaten ingredient to be cooked, the cooking method of the eaten ingredient, and the cooking method of the eaten ingredient The type and amount of seasoning used.

可选地,所述生成模块包括:第三获取单元,用于获取所述用户的身体状态信息,其中,所述身体状态信息至少包括以下之一:体重、体脂率、蛋白质含量、骨盐量、内脏脂肪率;第一生成单元,用于根据所述用户的饮食习惯信息,以及所述用户的身体状态信息,生成目标食谱。Optionally, the generating module includes: a third acquiring unit, configured to acquire physical state information of the user, wherein the physical state information includes at least one of the following: body weight, body fat percentage, protein content, bone salt amount and visceral fat rate; the first generating unit is configured to generate a target recipe according to the user's eating habit information and the user's physical state information.

可选地,所述第一生成单元包括:记录子单元,用于记录指定时间周期内所述用户的饮食习惯信息和所述用户的身体状态信息;分析子单元,用于分析所述用户的饮食习惯信息和所述用户的身体状态信息,得到所述用户需要补充的第一目标营养信息,其中,所述第一目标营养信息包括:第一目标营养类别,及每一所述第一目标营养类别对应的补充量;第一生成子单元,用于从数据库中获取所述第一目标营养信息对应的第一目标食谱,其中,所述第一目标食谱包括:第一目标食材信息和所述第一目标食材的烹饪信息。Optionally, the first generating unit includes: a recording subunit for recording the user's eating habit information and the user's physical state information within a specified time period; an analysis subunit for analyzing the user's Eating habit information and the user's physical state information to obtain the first target nutritional information that the user needs to supplement, wherein the first target nutritional information includes: a first target nutritional category, and each first target nutritional information The supplementary amount corresponding to the nutrition category; the first generating subunit is used to obtain the first target recipe corresponding to the first target nutrition information from the database, wherein the first target recipe includes: the first target ingredient information and all the Describe the cooking information of the first target ingredient.

可选地,所述第一生成单元还包括:获取子单元,用于获取目标天气信息;第二生成子单元,用于根据所述用户的饮食习惯信息、所述用户的身体状态信息以及所述当日的天气信息生成所述目标食谱。Optionally, the first generating unit further includes: an acquiring subunit, for acquiring target weather information; a second generating subunit, for The target recipe is generated based on the weather information of the day.

可选地,所述第二生成子单元还用于:记录指定时间周期内所述用户的饮食习惯信息、所述用户的身体状态信息以及天气信息;分析所述用户的饮食习惯信息、所述用户的身体状态信息以及所述天气信息,得到所述用户需要补充的第二目标营养信息;其中,所述第二目标营养信息包括:第二目标营养类别,及每一所述第二目标营养类别对应的补充量;从数据库中获取所述第二目标营养信息对应的第二目标食谱,其中,所述第二目标食谱包括:第二目标食材信息和所述第二目标食材的烹饪信息。Optionally, the second generating subunit is further configured to: record the user's eating habit information, the user's physical state information and weather information within a specified time period; analyze the user's eating habit information, the The user's physical state information and the weather information are used to obtain the second target nutrition information that the user needs to supplement; wherein, the second target nutrition information includes: a second target nutrition category, and each second target nutrition The supplementary amount corresponding to the category; the second target recipe corresponding to the second target nutritional information is obtained from the database, wherein the second target recipe includes: second target ingredient information and cooking information of the second target ingredient.

可选地,所述获取模块包括:第二生成单元,用于根据所述已食用食材信息生成食材记录表,其中,所述食材记录表用于记录所述已食用食材的放入所述智能冰箱的时间和取出时间,所述已食用食材的种类、数量和重量,所述已食用食材的新鲜程度以及所述已食用食材的最佳食用时间。Optionally, the acquiring module includes: a second generating unit, configured to generate an ingredient record table according to the consumed ingredient information, wherein the ingredient record table is used to record the smart food that has been eaten. The time and take-out time of the refrigerator, the type, quantity and weight of the eaten ingredients, the freshness of the eaten ingredients, and the best eating time of the eaten ingredients.

可选地,所述获取模块还包括:删除单元,用于当放置在所述智能冰箱内部的任一食材被取出,且超过预定时间未被放回冰箱时,删除所述食材记录表中与所述任一食材相关的记录;发送单元,用于发送提示信息,其中,所述提示信息用于提示所述任一食材超过最佳食用时间。Optionally, the acquisition module further includes: a deletion unit, configured to delete any food item placed in the smart refrigerator when it is taken out and not returned to the refrigerator for a predetermined period of time. A record related to any of the ingredients; a sending unit, configured to send prompt information, wherein the prompt information is used to prompt that the any of the ingredients exceeds the optimal eating time.

根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述可疑帐号的确定方法。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the above-mentioned method for determining suspicious accounts when running.

根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述的可疑帐号的确定方法。According to another aspect of the embodiments of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the above-mentioned computer program through the computer program How to identify suspicious accounts.

在本发明实施例中,在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;根据用户的饮食习惯信息生成目标食谱,其中,目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;将目标食谱推送给用户,通过针对每一个用户的饮食习惯来制定对应的食谱进行推送,解决了智能应用的食谱推荐项目单一无法满足不同用户需求的技术问题,提高了食谱推送与不同用户的匹配度。In this embodiment of the present invention, within a specified time period, the user's eating habit information is acquired through a smart home device, wherein the eating habit information at least includes: information on the eaten ingredients and cooking information of each eaten ingredient; according to the user's diet The habit information generates a target recipe, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient; push the target recipe to the user, and formulate a corresponding recipe according to each user's eating habits to push, so as to solve the problem. It solves the technical problem that a single recipe recommendation item of the smart application cannot meet the needs of different users, and improves the matching degree of recipe push with different users.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是根据本发明实施例一种可选的基于物联网操作系统的食谱推送方法的硬件环境示意图;1 is a schematic diagram of a hardware environment of an optional method for pushing recipes based on an Internet of Things operating system according to an embodiment of the present invention;

图2是本发明实施例的一种可选的基于物联网操作系统的食谱推送方法的流程图;2 is a flowchart of an optional recipe push method based on an IoT operating system according to an embodiment of the present invention;

图3是根据本发明实施例的一种基于物联网操作系统的食谱推送系统的结构框图;3 is a structural block diagram of a recipe push system based on an Internet of Things operating system according to an embodiment of the present invention;

图4是本发明实施例的一种可选的基于物联网操作系统的食谱推送方法的流程图;4 is a flowchart of an optional recipe push method based on an IoT operating system according to an embodiment of the present invention;

图5是根据本发明实施例的基于物联网操作系统的食谱推送装置的一种可选的结构框图;5 is an optional structural block diagram of a recipe push device based on an IoT operating system according to an embodiment of the present invention;

图6是根据本发明实施例的一种可选的电子装置的结构示意图。FIG. 6 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

本发明实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种基于物联网操作系统的食谱推送方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,可选地,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present invention may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal for a recipe push method based on an Internet of Things operating system according to an embodiment of the present invention. As shown in FIG. 1 , the mobile terminal 10 may include one or more (only one is shown in FIG. 1 ) processors 102 (the processors 102 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA, etc. ) and a memory 104 for storing data, optionally, the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 for communication functions. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的数据信息的获取方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for acquiring data information in the embodiment of the present invention. Executing various functional applications and data processing implements the above-mentioned methods. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means 106 are used to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by the communication provider of the mobile terminal 10 . In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

图2是根据本发明实施例的一种基于物联网操作系统的食谱推送方法的流程图。如图2所示,该方法包括:FIG. 2 is a flowchart of a recipe push method based on an IoT operating system according to an embodiment of the present invention. As shown in Figure 2, the method includes:

步骤S202,在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;Step S202, within a specified time period, obtain the user's eating habit information through the smart home device, wherein the eating habit information at least includes: consumed ingredient information and cooking information of each consumed ingredient;

步骤S204,根据用户的饮食习惯信息生成目标食谱,其中,目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;Step S204, generating a target recipe according to the user's eating habit information, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient;

步骤S206,将目标食谱推送给用户。Step S206, push the target recipe to the user.

需要说明的是,上述步骤均可以在智能网关的云端控制平台实现,获取用户饮食习惯信息可以通过智能家居设备实现,相关的智能家居设备均通过物联网连接在同一个智能网关上,从而实现信息共享。It should be noted that the above steps can be implemented on the cloud control platform of the smart gateway, and the acquisition of the user's dietary habits information can be implemented through smart home devices. shared.

图3是根据本发明实施例的一种基于物联网操作系统的食谱推送系统的结构框图。如图3所示,用户控制终端、智能冰箱和智能橱柜均与智能网关相连。FIG. 3 is a structural block diagram of a recipe push system based on an IoT operating system according to an embodiment of the present invention. As shown in Figure 3, the user control terminal, the smart refrigerator and the smart cabinet are all connected to the smart gateway.

可选地,在指定时间内,通过智能家居设备获取用户的饮食习惯信息包括:在指定时间周期内,获取已食用食材信息,其中,已食用食材信息包括:已食用食材放入智能冰箱的时间,已食用食材从智能冰箱取出的时间,已食用食材的种类,以及已食用食材的质量和/或数量;在指定时间周期内,获取已食用食材的烹饪信息,其中,已食用食材的烹饪信息至少包括:烹饪的已食用食材的种类和用量,已食用食材的烹饪方式,以及已食用食材烹饪时所使用的调味品的种类和用量。Optionally, obtaining the user's eating habit information through the smart home device within a specified time period includes: within a specified time period, obtaining the information on the eaten ingredients, wherein the information on the eaten ingredients includes: the time when the eaten ingredients are put into the smart refrigerator. , the time when the eaten ingredients are taken out from the smart refrigerator, the types of the eaten ingredients, and the quality and/or quantity of the eaten ingredients; within a specified time period, the cooking information of the eaten ingredients is obtained, wherein the cooking information of the eaten ingredients It should at least include: the type and amount of the eaten ingredients, the cooking method of the eaten ingredients, and the type and amount of condiments used in the cooking of the eaten ingredients.

在使用智能冰箱的过程中,智能冰箱可以通过自带的摄像头对用户放入/取出的食材进行图像采集,并将采集到的食材图像上传至云端控制平台。In the process of using the smart refrigerator, the smart refrigerator can use its own camera to collect images of the ingredients put in/out by the user, and upload the collected images of the ingredients to the cloud control platform.

在一种实施方式中,可以在智能冰箱的柜门以及柜子内部设置摄像头,以使得通过该些摄像头对用户放入/取出的食材进行图像采集,并将采集到的食材图像上传至云端控制平台。In one embodiment, cameras can be set on the cabinet door and inside the cabinet of the smart refrigerator, so that the images of the ingredients put in/taken out by the user are captured by the cameras, and the captured images of the ingredients are uploaded to the cloud control platform .

同时智能冰箱可以通过自带的重量传感器,对用户放入冰箱内食材的重量进行记录,并将食材重量与该食材的图像一并上传至云端控制平台。At the same time, the smart refrigerator can record the weight of the ingredients put into the refrigerator by the user through the built-in weight sensor, and upload the weight of the ingredients and the image of the ingredients to the cloud control platform.

另外,用户也可以通过安装在手机上的智能冰箱控制APP,使用扫描条码功能,通过对食材外包装上的二维码或者条形码进行扫描的方式,获取该食材的相关信息,包括:产地、种类、重量、品牌、生产日期以及保质期等等,并将获取到的该些食材相关信息上传至云端控制平台保存。In addition, users can also control the APP through the smart refrigerator installed on the mobile phone, use the barcode scanning function, and obtain the relevant information of the ingredients by scanning the QR code or barcode on the outer packaging of the ingredients, including: origin, type , weight, brand, production date and shelf life, etc., and upload the obtained information about the ingredients to the cloud control platform for storage.

智能橱柜通过自带的摄像头,对用户取出的调味料进行图像采集,以确定用户烹饪时所使用的调味料种类,并根据取出前和放回后该调味料的质量变化,确定用户的烹饪习惯,并将该些信息上传至云端控制平台。The smart cabinet collects images of the seasonings taken out by the user through the built-in camera to determine the type of seasoning used by the user when cooking, and determines the user's cooking habits according to the quality change of the seasoning before taking out and after putting it back in. , and upload the information to the cloud control platform.

在本方案中,当云端控制平台通过智能冰箱上传的信息确定用户取出某些食材后,可以向智能橱柜发出“配料记录”指令,以使得智能橱柜响应于该指令,通过摄像头确定用户所取出的配料种类,并根据取出前和放入后该配料的质量变化,并将该些信息上传至云端控制平台,以使得云端控制平台可以根据该些信息确定用户在烹饪该些食材时,习惯加入的调味料以及用量。In this solution, when the cloud control platform determines that the user has taken out some ingredients through the information uploaded by the smart refrigerator, it can issue an "ingredient record" command to the smart cabinet, so that the smart cabinet can respond to the command and determine the user's take out through the camera. The type of ingredients, and according to the quality changes of the ingredients before taking out and after putting them in, and uploading the information to the cloud control platform, so that the cloud control platform can determine, according to the information, which ingredients the user is accustomed to adding when cooking the ingredients. Seasoning and dosage.

例如,云端控制平台通过智能冰箱上传的信息确定用户取出的食材为:“豆腐”,并且向智能橱柜发出了“配料记录”指令,智能橱柜响应于该“配料记录”指令,通过摄像头确定用户所取出的配料为“辣椒酱”,并确定该辣椒酱取出前和放回后的质量变化:10g,并将该些信息上传至云端控制平台,进而云端控制平台可以确定并保存用户针对食材“豆腐”的烹饪习惯为:与辣椒酱一同进行烹饪。For example, the cloud control platform determines that the ingredients taken out by the user are: "tofu" through the information uploaded by the smart refrigerator, and sends the "ingredient record" command to the smart cabinet, and the smart cabinet responds to the "ingredient record" command and determines the user's The ingredients taken out are "chili sauce", and the quality change before and after the chili sauce is taken out and put back is determined: 10g, and the information is uploaded to the cloud control platform, and the cloud control platform can determine and save the user's target for the ingredients "tofu". "The cooking habit is: cook with chili sauce.

还可以通过智能煤气灶或集成灶,或智能油烟机的摄像头,获取当前正在烹饪的食材的种类和数量、调味品的种类和数量,本发明实施例对此不做限定。The types and quantities of ingredients currently being cooked, and the types and quantities of condiments may also be acquired through a smart gas stove or an integrated stove, or a camera of a smart range hood, which is not limited in this embodiment of the present invention.

可选地,根据用户的饮食习惯信息生成目标食谱,包括:获取用户的身体状态信息,其中,身体状态信息至少包括以下之一:体重、体脂率、蛋白质含量、骨盐量、内脏脂肪率;根据用户的饮食习惯信息,以及用户的身体状态信息,生成目标食谱。Optionally, generating the target recipe according to the user's eating habit information includes: acquiring the user's body state information, wherein the body state information includes at least one of the following: weight, body fat ratio, protein content, bone salt content, visceral fat ratio ; According to the user's eating habit information and the user's physical state information, the target recipe is generated.

可选地,根据用户的饮食习惯信息,以及用户的身体状态信息,生成目标食谱包括:记录指定时间周期内用户的饮食习惯信息和用户的身体状态信息;分析用户的饮食习惯信息和用户的身体状态信息,得到用户需要补充的第一目标营养信息;其中,第一目标营养信息包括:第一目标营养类别,及每一第一目标营养类别对应的补充量;从数据库中获取第一目标营养信息对应的第一目标食谱,其中,第一目标食谱包括:第一目标食材信息和第一目标食材的烹饪信息。Optionally, according to the user's eating habit information and the user's physical state information, generating the target recipe includes: recording the user's eating habit information and the user's physical state information within a specified time period; analyzing the user's eating habit information and the user's body. state information to obtain the first target nutrition information that the user needs to supplement; wherein, the first target nutrition information includes: the first target nutrition category and the supplementary amount corresponding to each first target nutrition category; the first target nutrition is obtained from the database The first target recipe corresponding to the information, wherein the first target recipe includes: first target ingredient information and cooking information of the first target ingredient.

例如,如果用户的身体状态信息显示用户体内脂肪含量较高、蛋白质含量较低,可以给用户推荐高蛋白低脂的食谱,例如蛋清、牛肉、鸡胸肉、绿叶蔬菜等,同时结合用户的饮食习惯,推荐用户比较喜欢的烹饪方法。For example, if the user's physical status information shows that the user's body fat content is high and the protein content is low, the user can be recommended high-protein low-fat recipes, such as egg whites, beef, chicken breast, green leafy vegetables, etc., and combined with the user's eating habits , recommends the cooking method that the user prefers.

可选地,根据用户的饮食习惯信息,以及用户的身体状态信息,生成目标食谱包括:获取目标天气信息;根据用户的饮食习惯信息、用户的身体状态信息以及目标天气信息生成目标食谱。Optionally, generating the target recipe according to the user's eating habit information and the user's physical state information includes: acquiring target weather information; and generating the target recipe according to the user's eating habit information, the user's physical state information, and the target weather information.

可选地,根据用户的饮食习惯信息、用户的身体状态信息以及目标天气信息生成目标食谱,包括:记录指定时间周期用户的饮食习惯信息、用户的身体状态信息以及天气信息;分析用户的饮食习惯信息、用户的身体状态信息以及天气信息,得到所述用户需要补充的第二目标营养信息;其中,所述第二目标营养信息包括:第二目标营养类别,及每一所述第二目标营养类别对应的补充量;从数据库中获取所述第二目标营养信息对应的第二目标食谱,其中,所述第二目标食谱包括:第二目标食材信息和所述第二目标食材的烹饪信息。Optionally, generating a target recipe according to the user's eating habit information, the user's physical state information, and the target weather information, including: recording the user's eating habit information, the user's physical state information, and weather information for a specified time period; analyzing the user's eating habit information, the user's physical state information and weather information, to obtain the second target nutrition information that the user needs to supplement; wherein, the second target nutrition information includes: a second target nutrition category, and each of the second target nutrition The supplementary amount corresponding to the category; the second target recipe corresponding to the second target nutritional information is obtained from the database, wherein the second target recipe includes: second target ingredient information and cooking information of the second target ingredient.

例如,秋天天气比较干燥的时候,可以推荐一些润肺的食谱,同时考虑到用户的身体状态和饮食习惯,推荐给用户符合身体需求且符合用户饮食喜好的食谱。冬季温度较低的时候,可以推荐一些温补的食谱,比如羊肉汤一类,但是如果用户体内尿酸较高,忌讳嘌呤比较高的食物,而羊肉汤属于嘌呤偏高的失误,此时需要进行一定的避免。For example, when the weather is relatively dry in autumn, some recipes for moisturizing the lungs can be recommended. At the same time, taking into account the user's physical state and eating habits, the user can recommend recipes that meet the user's physical needs and meet the user's dietary preferences. When the temperature is low in winter, you can recommend some warming and nourishing recipes, such as mutton soup, but if the user has high uric acid in the body, food with high purine is taboo, and mutton soup is a mistake with high purine, and needs to be done at this time. Certainly avoid.

可选地,获取已食用的食材信息之后,所述方法包括:根据已食用食材信息生成食材记录表,其中,食材记录表用于记录已食用食材的放入智能冰箱的时间和取出时间,已食用食材的种类、数量和重量,已食用食材的新鲜程度以及已食用食材的最佳食用时间。Optionally, after acquiring the information of the eaten ingredients, the method includes: generating an ingredient record table according to the information of the eaten ingredients, wherein the ingredient record table is used to record the time when the eaten ingredients are put into the smart refrigerator and the time they are taken out. The type, quantity and weight of the ingredients eaten, the freshness of the ingredients eaten, and the best time to eat the ingredients.

可选地,根据已食用食材信息生成食材记录表之后,所述方法包括:当放置在智能冰箱内部的任一食材被取出,且超过预定时间未被放回冰箱时,删除食材记录表中与任一食材相关的记录,并发送提示信息,其中,提示信息用于提示任一食材超过最佳食用时间。Optionally, after generating the ingredient record table according to the consumed ingredient information, the method includes: when any ingredient placed in the smart refrigerator is taken out and not returned to the refrigerator for a predetermined period of time, deleting the items in the ingredient record table with the contents. A record related to any ingredient is sent, and prompt information is sent, wherein the prompt information is used to prompt that any ingredient exceeds the optimal eating time.

本方案提供了一种基于物联网操作系统的信息推荐方法,采用本方案所提供的方法,一方面,当用户在使用智能冰箱时,智能冰箱会通过自带的摄像头,对用户放入或者取出的食材进行识别,并将食材种类以及放入时间一并上传至云端控制平台;云端控制平台根据智能冰箱上传的食材种类,对该些食材进行分类(蔬菜、水果、肉类、蛋类等),并按照预设的统计周期,对用户在该周期内所使用或者买入的食材种类进行统计,进而根据统计结果确定用户的饮食习惯以及近期的食谱构成;一方面,云端控制平台还可以向智能橱柜发送数据采集指令,以使得智能橱柜可以对用户每次烹饪时所使用的调味料的用量进行记录,并上传至云端控制平台保存,进而服务器可以根据该些数据,确定用户的烹饪习惯;另外一方面,云端控制平台可以通过天气APP或者智能门窗系统,获取当前天气状况,并通过智能体脂秤获取用户的身体数据;最后,云端控制平台可以按照用户的饮食习惯,根据天气状况、烹饪习惯、身体数据以及最近的食谱构成,为用户推荐当天(或者未来一段时间)的食材。采用本申请所提供的方案,通过智能冰箱以及智能橱柜对用户食材以及调味料的采集,云端控制平台可以准确的获取用户的饮食习惯以及烹饪习惯,并且可以获取用户最近的食谱构成,同时参考获取到的天气数据以及用户身体数据,可以保证在向用户进行食材推荐时,既符合用户的饮食习惯,又能满足日常营养需求,且符合用户身体需要,有利于用户身体健康。另外极大地提高了智能家居设备之间的联动性以及智能家居的智能化程度。This solution provides an information recommendation method based on the Internet of Things operating system. Using the method provided by this solution, on the one hand, when a user is using a smart refrigerator, the smart refrigerator will use its own camera to put in or take out of the user's Identify the ingredients, and upload the type and time of the ingredients to the cloud control platform; the cloud control platform classifies these ingredients (vegetables, fruits, meat, eggs, etc.) according to the types of ingredients uploaded by the smart refrigerator. , and according to the preset statistical period, the types of ingredients used or purchased by the user during the period are counted, and then the user's eating habits and recent recipe composition are determined according to the statistical results; on the one hand, the cloud control platform can also send The smart cabinet sends data collection instructions, so that the smart cabinet can record the amount of seasoning used by the user each time of cooking, and upload it to the cloud control platform for storage, and then the server can determine the user's cooking habits according to the data; On the other hand, the cloud control platform can obtain the current weather conditions through the weather APP or the smart door and window system, and obtain the user's body data through the intelligent body fat scale; finally, the cloud control platform can follow the user's eating habits, weather conditions, cooking Habits, body data, and the composition of recent recipes, recommend ingredients for the day (or a period of time in the future) for users. Using the solution provided in this application, through the collection of user ingredients and seasonings by smart refrigerators and smart cabinets, the cloud control platform can accurately obtain the user's eating habits and cooking habits, and can obtain the user's most recent recipe composition. The obtained weather data and user body data can ensure that when recommending ingredients to users, it not only meets the user's dietary habits, but also meets the daily nutritional needs, and meets the user's physical needs, which is beneficial to the user's health. In addition, the linkage between smart home devices and the degree of intelligence of smart homes are greatly improved.

为了进一步理解本发明实施例中的技术方案,下面结合附图4来具体说明。图4是根据本发明实施例的一种基于物联网操作系统的食谱推送方法的流程图。如图4所示,该方法包括:In order to further understand the technical solutions in the embodiments of the present invention, a specific description is given below with reference to FIG. 4 . FIG. 4 is a flowchart of a recipe push method based on an IoT operating system according to an embodiment of the present invention. As shown in Figure 4, the method includes:

步骤401,在使用智能冰箱的过程中,智能冰箱可以通过自带的摄像头对用户放入/取出的食材进行图像采集,并将采集到的食材图像上传至云端控制平台。Step 401: During the process of using the smart refrigerator, the smart refrigerator can use its own camera to collect images of the ingredients put in/taken out by the user, and upload the collected images of the ingredients to the cloud control platform.

在一种实施方式中,可以在智能冰箱的柜门以及柜子内部设置摄像头,以使得通过该些摄像头对用户放入/取出的食材进行图像采集,并将采集到的食材图像上传至云端控制平台。In one embodiment, cameras can be set on the cabinet door and inside the cabinet of the smart refrigerator, so that the images of the ingredients put in/taken out by the user are captured by the cameras, and the captured images of the ingredients are uploaded to the cloud control platform .

同时智能冰箱可以通过自带的重量传感器,对用户放入冰箱内食材的重量进行记录,并将食材重量与该食材的图像一并上传至云端控制平台。At the same time, the smart refrigerator can record the weight of the ingredients put into the refrigerator by the user through the built-in weight sensor, and upload the weight of the ingredients and the image of the ingredients to the cloud control platform.

另外,用户也可以通过安装在手机上的智能冰箱控制APP,使用扫描条码功能,通过对食材外包装上的二维码或者条形码进行扫描的方式,获取该食材的相关信息,包括:产地、种类、重量、品牌、生产日期以及保质期等等,并将获取到的该些食材相关信息上传至云端控制平台(相当于智能网关)保存。In addition, users can also control the APP through the smart refrigerator installed on the mobile phone, use the barcode scanning function, and obtain the relevant information of the ingredients by scanning the QR code or barcode on the outer packaging of the ingredients, including: origin, type , weight, brand, production date, shelf life, etc., and upload the obtained information about the ingredients to the cloud control platform (equivalent to a smart gateway) for storage.

步骤402,云端控制平台利用图像识别技术,对智能冰箱上传的图像进行识别,以确定该食材的相关信息,并在数据库中建立“食材记录表”,以保存冰箱内当前所存放的食材。Step 402, the cloud control platform uses image recognition technology to identify the image uploaded by the smart refrigerator to determine the relevant information of the ingredient, and establishes an "ingredient record table" in the database to save the ingredients currently stored in the refrigerator.

一般地,食材的外包装上往往写有食材的品牌以及种类等相关信息,则云端控制平台可以通过对采集到食材图片进行图像识别,以确定该产品的品牌与种类,进而根据该品牌、种类以及采集到的食材图像在网络上查找该食材的相关信息。例如,通过图像识别,云端控制平台确定放入智能冰箱的食材为:三元纯牛奶。Generally, the brand and type of the ingredients are often written on the outer packaging of the ingredients, and the cloud control platform can identify the brand and type of the product by performing image recognition on the images of the collected ingredients, and then according to the brand and type. and the collected image of the food material to find the relevant information of the food material on the Internet. For example, through image recognition, the cloud control platform determines that the ingredients put into the smart refrigerator are: Sanyuan pure milk.

另外,这里需要说明的是,当用户选择使用智能冰箱控制APP主动录入食材信息时,由于通过扫描条码的方式,云端控制平台可以获取食材的相关信息,因而当用户将该食材放入智能冰箱时,智能冰箱可以将采集到的食材图像上传至云端控制平台,以使得云端控制平台通过图像识别,判断该食材的相关信息是否已保存,当云端服务器上已经保存有该食材的相关信息时,则云端控制平台不会再继续查找该食材的相关信息。In addition, it should be noted here that when the user chooses to use the smart refrigerator control APP to actively enter the food information, because the cloud control platform can obtain the relevant information of the food by scanning the barcode, when the user puts the food into the smart refrigerator , the smart refrigerator can upload the collected food images to the cloud control platform, so that the cloud control platform can determine whether the relevant information of the food has been saved through image recognition. When the relevant information of the food has been saved on the cloud server, then The cloud control platform will not continue to search for the relevant information of the ingredient.

而针对用户通过购物APP购买食材的场景,云端控制平台可以通过用户注册的购物APP账号,从购物APP客户端或服务器处获取该账号下食材类的购物订单,进而根据订单信息确定用户新购买食材的相关信息并保存。For the scenario where the user purchases ingredients through the shopping APP, the cloud control platform can obtain the shopping order for the ingredients under the account from the shopping APP client or server through the shopping APP account registered by the user, and then determine the user's newly purchased ingredients according to the order information. relevant information and save it.

另外还需要说明的是,当用户从智能冰箱中取出食材时,智能冰箱会将取出的食材上传至云端控制平台,以使得云端控制平台在该食材对应的“食材记录表”中记录取出日期。而当该食材取出超过预设时长阈值(比如24小时,在本方案中,针对不同食材设置有不同的时长阈值,为了便于描述,后文将针对不同食材设置的时长阈值称为“冰箱外最长存放时长”)后仍未放回智能冰箱,则在“食材记录表”删除与该食材对应的记录,同时向用户发出提醒,告知用户该食材取出冰箱的时间较长,如仍未消耗掉,建议丢弃,以避免用户误食取出冰箱较长时间而可能变质的食材。In addition, it should be noted that when the user takes out the ingredients from the smart refrigerator, the smart refrigerator will upload the removed ingredients to the cloud control platform, so that the cloud control platform records the date of removal in the "ingredient record table" corresponding to the ingredients. When the ingredient is taken out beyond the preset duration threshold (for example, 24 hours, in this solution, different duration thresholds are set for different ingredients. For the convenience of description, the duration thresholds set for different ingredients will be referred to as "the maximum duration outside the refrigerator". If it has not been put back into the smart refrigerator after long storage time”), the record corresponding to the ingredient will be deleted in the “Ingredient Record Table”, and a reminder will be sent to the user to inform the user that the ingredient has taken a long time to take out of the refrigerator, and if it is still not consumed , it is recommended to discard it to prevent users from accidentally eating ingredients that may deteriorate after taking out the refrigerator for a long time.

且云端控制平台可以在数据库中创建“已消耗食材记录表”,并将用户从智能冰箱内取出且未放回的食材记录在“已消耗食材记录表”中,同时将该食材在食材记录表中记录的取出日期,确定为该食材的消耗日期,并将该食材的消耗日期以及通过执行步骤1~步骤2获取到的该食材的重量一并记录在“已消耗食材记录表”中,同时从食材记录表中删除该食材所对应的记录。And the cloud control platform can create a "consumed ingredient record table" in the database, and record the ingredients that the user has taken out of the smart refrigerator and have not put back in the "consumed ingredients record table", and at the same time the ingredients are recorded in the ingredient record table. The take-out date recorded in the item is determined as the consumption date of the ingredient, and the consumption date of the ingredient and the weight of the ingredient obtained by performing steps 1 to 2 are recorded in the "consumed ingredient record table", and at the same time Delete the record corresponding to the ingredient from the ingredient record table.

例如,通过执行步骤1以及步骤2,云端控制平台创建了如下表1所示的“食材记录表”。For example, by executing steps 1 and 2, the cloud control platform creates the "ingredient record table" shown in Table 1 below.

表1食材记录表Table 1 Ingredients record sheet

食材Ingredients 类型type 种类type 存放日期storage date 状态state 取出日期Take out date 食材afood a 乳制品dairy products 牛奶milk 2019年6月10号June 10, 2019 取出take out 2019年6月12号June 12, 2019 食材bfood b 蔬菜vegetable 菠菜spinach 2019年6月11号June 11, 2019 存放store -- 食材cfood c 水果fruit 桃子peach 2019年6月12号June 12, 2019 取出take out 2019年6月14号June 14, 2019

其中,记录表中的状态是指该食材当前是否存放在智能冰箱中,状态“取出”表示该食材当前已被用户取出,不在智能冰箱中,针对状态为“取出”的食材,云端控制平台可以将智能冰箱所采集到的食材被取出的日期作为该食材的取出日期。而针对状态为“存放”的食材,则不记录取出日期。Among them, the status in the record table refers to whether the ingredient is currently stored in the smart refrigerator, and the status "Remove" indicates that the ingredient has been taken out by the user and is not in the smart refrigerator. The date when the ingredients collected by the smart refrigerator are taken out is taken as the date of taking out the ingredients. For ingredients with a status of "stored", the date of removal is not recorded.

如上表1所记录的内容,假设针对牛奶预先设置的“冰箱外最长存放时长”为:24小时,当前日期为6月14号,云端控制平台根据食材记录表中所记录的取出日期,确定食材a取出时间已经超过了“冰箱外最长存放时长”,则云端控制平台可以在如下表2所示的“已消耗食材记录表”中记录食材a,以及食材a的消耗时间,并在表1中删除食材a的相关记录。As shown in Table 1 above, it is assumed that the preset "maximum storage time outside the refrigerator" for milk is: 24 hours, and the current date is June 14. The time for taking out ingredient a has exceeded the "maximum storage time outside the refrigerator", then the cloud control platform can record ingredient a and the consumption time of ingredient a in the "Consumed ingredient record table" as shown in Table 2 below, and record it in the table. Delete the related records of ingredient a in 1.

表2已消耗食材记录表Table 2 Consumed food ingredients record

食材Ingredients 类型type 种类type 消耗日期consumption date 重量(g)Weight (g) 食材afood a 乳制品dairy products 牛奶milk 2019年6月12号June 12, 2019 100g100g 食材dfood d 蔬菜vegetable 苋菜Amaranth 2019年6月10号June 10, 2019 500g500g 食材efood 水果fruit 西瓜watermelon 2019年6月9号June 9, 2019 500g500g

步骤403,云端控制平台按照预设的时间周期,对该周期内用户从智能冰箱中取出食材的种类以及重量进行统计,并根据统计结果,确定用户在统计周期内的饮食食材构成。Step 403 , the cloud control platform counts the types and weights of the ingredients taken out by the user from the smart refrigerator according to a preset time period, and determines the composition of the user's dietary ingredients in the statistical period according to the statistical results.

在本方案中,云端控制平台可以按照预设时间周期(比如7天),并根据“已消耗食材记录表”,对该时间周期内用户所消耗食材的种类以及重量进行统计。In this solution, the cloud control platform can count the types and weights of the ingredients consumed by the user within the time period according to a preset time period (for example, 7 days) and according to the "consumed ingredients record table".

例如,云端控制平台确定用户在过去一周(7天)内,所消耗食材的统计情况为:肉类:800g、蔬菜:900g、水果:600g、乳制品:400g。For example, the cloud control platform determines that the statistics of the ingredients consumed by the user in the past week (7 days) are: meat: 800g, vegetables: 900g, fruit: 600g, and dairy products: 400g.

步骤404,云端控制平台获取用户正常的饮食食材构成比例,并根据通过执行步骤3确定的用户过去一段时间内的饮食食材构成,确定用户未来一段时间内的饮食食材构成。Step 404 , the cloud control platform obtains the normal dietary ingredient composition ratio of the user, and determines the dietary ingredient composition of the user in the future period of time according to the dietary ingredient composition of the user in the past period of time determined by executing step 3.

云端控制平台可以通过互联网获取理论上的用户正常饮食食材构成比例(或也可以是营养专家推荐的用户正常饮食食材构成比例),比如在保证营养均衡的前提下,理论上的用户正常的饮食食材构成比例为:肉类:蔬菜:水果:乳制品=2:2:1:1,即表示在一定时间周期内(比如1天、1周或者1个月等等)用户所摄入食材种类的比例应满足上述比列要求。The cloud control platform can obtain the theoretical composition ratio of the user's normal dietary ingredients (or the composition ratio of the user's normal dietary ingredients recommended by nutrition experts) through the Internet. For example, on the premise of ensuring nutritional balance, the theoretical user's normal dietary ingredients The composition ratio is: meat: vegetables: fruits: dairy products = 2: 2: 1: 1, which means that in a certain period of time (such as 1 day, 1 week or 1 month, etc.) The ratio should meet the above ratio requirements.

假设,云端控制平台确定理论上的用户正常的饮食食材构成比例为:肉类:蔬菜:水果:乳制品=2:2:1:1,通过执行步骤3确定用户在过去一周(7天)内饮食食材构成为:肉类:800g、蔬菜:900g、水果:600g、乳制品:400g,则云端控制平台可以确定该用户未来一周(7天)内饮食食材构成为:肉类:800g、蔬菜:700g、水果:200g、乳制品:400g,进而保证用户在两周内饮食食材构成比例达到:肉类:蔬菜:水果:乳制品=2:2:1:1。Suppose, the cloud control platform determines that the theoretical proportion of the user's normal dietary ingredients is: meat: vegetables: fruit: dairy products = 2:2:1:1, and by performing step 3, it is determined that the user has been in the past week (7 days) The composition of dietary ingredients is: meat: 800g, vegetables: 900g, fruit: 600g, dairy products: 400g, then the cloud control platform can determine the composition of the user's dietary ingredients in the next week (7 days): meat: 800g, vegetables: 700g, fruit: 200g, dairy product: 400g, and then ensure that the user's dietary ingredients composition ratio within two weeks reaches: meat: vegetable: fruit: dairy product = 2:2:1:1.

步骤405,智能橱柜通过自带的摄像头,对用户取出的调味料进行图像采集,以确定用户烹饪时所使用的调味料种类,并根据取出前和放回后该调味料的质量变化,确定用户的烹饪习惯,并将该些信息上传至云端控制平台。In step 405, the smart cabinet collects images of the seasonings taken out by the user through the built-in camera, so as to determine the type of seasoning used by the user when cooking, and determines the user according to the quality change of the seasoning before taking out and after putting it back. cooking habits, and upload the information to the cloud control platform.

在本方案中,当云端控制平台通过智能冰箱上传的信息确定用户取出某些食材后,可以向智能橱柜发出“配料记录”指令,以使得智能橱柜响应于该指令,通过摄像头确定用户所取出的配料种类,并根据取出前和放入后该配料的质量变化,并将该些信息上传至云端控制平台,以使得云端控制平台可以根据该些信息确定用户在烹饪该些食材时,习惯加入的调味料以及用量。In this solution, when the cloud control platform determines that the user has taken out some ingredients through the information uploaded by the smart refrigerator, it can issue an "ingredient record" command to the smart cabinet, so that the smart cabinet can respond to the command and determine the user's take out through the camera. The type of ingredients, and according to the quality changes of the ingredients before taking out and after putting them in, and uploading the information to the cloud control platform, so that the cloud control platform can determine, according to the information, which ingredients the user is accustomed to adding when cooking the ingredients. Seasoning and dosage.

例如,云端控制平台通过智能冰箱上传的信息确定用户取出的食材为:“豆腐”,并且向智能橱柜发出了“配料记录”指令,智能橱柜响应于该“配料记录”指令,通过摄像头确定用户所取出的配料为“辣椒酱”,并确定该辣椒酱取出前和放回后的质量变化:10g,并将该些信息上传至云端控制平台,进而云端控制平台可以确定并保存用户针对食材“豆腐”的烹饪习惯为:与辣椒酱一同进行烹饪。For example, the cloud control platform determines that the ingredients taken out by the user are: "tofu" through the information uploaded by the smart refrigerator, and sends the "ingredient record" command to the smart cabinet, and the smart cabinet responds to the "ingredient record" command and determines the user's The ingredients taken out are "chili sauce", and the quality change before and after the chili sauce is taken out and put back is determined: 10g, and the information is uploaded to the cloud control platform, and the cloud control platform can determine and save the user's target for the ingredients "tofu". "The cooking habit is: cook with chili sauce.

步骤406,云端控制平台从天气APP处获取天气信息。Step 406, the cloud control platform obtains weather information from the weather APP.

这里需要说明的是,云端控制平台除了可以天气APP获取天气信息外,还可以通过智能门窗的传感器获取当前的天气状况。What needs to be explained here is that the cloud control platform can not only obtain weather information through the weather APP, but also obtain the current weather conditions through the sensors of smart doors and windows.

另外,在本方案中,云端控制平台可以根据饮食食材构成推荐周期,从天气APP处获取指定日期范围内的天气信息。例如,假设云端控制平台每七天向用户推荐未来七天的饮食食材构成,则在这种情况下,云端控制平台每隔七天可以从天气APP处获取未来七天的天气状况;而假设云端控制平台每天都会向用户推荐第二天的饮食食材构成,则在这种情况下,云端控制平台每天都需要从天气APP处获取第二天的天气状况。In addition, in this solution, the cloud control platform can form a recommendation cycle according to the dietary ingredients, and obtain weather information within a specified date range from the weather APP. For example, it is assumed that the cloud control platform recommends the composition of food and ingredients for the next seven days to the user every seven days. In this case, the cloud control platform can obtain the weather conditions for the next seven days from the weather APP every seven days; In this case, the cloud control platform needs to obtain the weather conditions of the next day from the weather APP every day.

步骤407,云端控制平台根据确定的未来一段时间的饮食食材构成、未来天气状况以及用户烹饪习惯,为用户推荐具体的食材。Step 407, the cloud control platform recommends specific ingredients for the user according to the determined composition of dietary ingredients for a period of time in the future, future weather conditions and the user's cooking habits.

具体地,云端控制平台上保存有预先设置的食材推荐规则,比如可以包括:Specifically, the cloud control platform stores preset food recommendation rules, which may include:

规则a:温度≥32℃,推荐习惯烹饪方式不包含辣椒的食材;Rule a: The temperature is ≥32°C, and it is recommended to cook ingredients that do not contain chili peppers;

规则b:温度<0℃,推荐习惯烹饪方式包含辣椒的食材;Rule b: The temperature is less than 0°C, and ingredients that contain chili in the customary cooking method are recommended;

规则c:降雪,推荐食材排骨……等等。Rule c: Snowfall, recommended ingredients for ribs...etc.

在本方案中,云端控制平台首先可以根据通过执行步骤4确定的饮食食材构成,确定未来一段时间内的建议食材种类以及推荐次数。进而云端控制平台可以根据获取到的天气状况,以及预先设置的食材推荐规则,在建议食材种类中确定符合推荐规则的食材,并将确定的食材发送至智能冰箱以及用户终端,以通过智能冰箱以及移动终端向用户推荐该些食材。In this solution, the cloud control platform can firstly determine the types of recommended ingredients and the recommended times for a period of time in the future according to the composition of the dietary ingredients determined by executing step 4. Furthermore, the cloud control platform can, according to the obtained weather conditions and the preset ingredient recommendation rules, determine the ingredients that meet the recommendation rules in the suggested ingredient types, and send the determined ingredients to the smart refrigerator and the user terminal, so as to pass the smart refrigerator and The mobile terminal recommends these ingredients to the user.

例如,云端控制平台确定第二天的饮食食材构成为肉类、蔬菜以及豆制品,且确定第二天的天气状况为:温度-5℃,降雪,则云端控制平台可以根据预先设置的食材推荐规则,确定推荐食材:豆腐、排骨,并根据用户烹饪习惯,从用户经常与豆腐或者排骨搭配的食材中确定一种蔬菜(比如为小葱),并将确定的该些食材一并推送给用户。For example, if the cloud control platform determines that the food ingredients for the next day are meat, vegetables and soy products, and determines that the weather conditions for the next day are: temperature -5°C and snowfall, the cloud control platform can recommend the ingredients based on preset ingredients. Rules, determine the recommended ingredients: tofu, ribs, and according to the user's cooking habits, determine a vegetable (such as shallots) from the ingredients that the user often matches with tofu or ribs, and push the determined ingredients to the user.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

根据本发明实施例的另一个方面,还提供了一种用于实施上述基于物联网操作系统的食谱推送方法的基于物联网操作系统的食谱推送装置。图5是根据本发明实施例的基于物联网操作系统的食谱推送装置的一种可选的结构框图,如图5所示,该装置包括:According to another aspect of the embodiments of the present invention, a recipe pushing apparatus based on an IoT operating system for implementing the above recipe pushing method based on an IoT operating system is also provided. FIG. 5 is an optional structural block diagram of a recipe push device based on an Internet of Things operating system according to an embodiment of the present invention. As shown in FIG. 5 , the device includes:

第一获取模块502,用于在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;The first obtaining module 502 is configured to obtain the user's eating habit information through the smart home device within a specified time period, wherein the eating habit information at least includes: consumed ingredient information and cooking information of each consumed ingredient;

生成模块504,用于根据用户的饮食习惯信息生成目标食谱,其中,目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;The generating module 504 is configured to generate a target recipe according to the user's eating habit information, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient;

推送模块506,用于将目标食谱推送给所用户。Pushing module 506, configured to push the target recipe to all users.

可选地,获取模块包括:第一获取单元,用于在指定时间周期内,获取放置在智能冰箱内部的食材信息,其中,所述食材信息至少包括:所述食材放入所述智能冰箱的时间、所述食材的种类、所述食材从所述智能冰箱中取出的时间以及当所述食材的体积和/或数量;第二获取单元,用于在指定时间周期内,获取所述食材的烹饪信息,其中,所述烹饪信息至少包括:烹饪的所述食材的种类和数量、所述食材的烹饪方式、所述食材烹饪时使用的调味品种类以及用量。Optionally, the obtaining module includes: a first obtaining unit, configured to obtain information on the ingredients placed inside the smart refrigerator within a specified time period, wherein the information on the ingredients at least includes: where the ingredients are placed in the smart refrigerator. time, the type of the ingredients, the time when the ingredients are taken out of the smart refrigerator, and the volume and/or quantity of the ingredients; the second acquisition unit is configured to acquire the information of the ingredients within a specified time period. Cooking information, wherein the cooking information at least includes: the type and quantity of the ingredient to be cooked, the cooking method of the ingredient, the type and amount of the seasoning used when the ingredient is cooked.

可选地,所述获取模块包括:第一获取单元,用于在指定时间周期内,获取已食用食材信息,其中,所述已食用食材信息包括:所述已食用食材放入智能冰箱的时间,所述已食用食材从所述智能冰箱取出的时间,所述已食用食材的种类,以及所述已食用食材的质量和/或数量;第二获取单元,用于在指定时间周期内,获取所述已食用食材的烹饪信息,其中,所述已食用食材的烹饪信息至少包括:烹饪的所述已食用食材的种类和用量,所述已食用食材的烹饪方式,以及所述已食用食材烹饪时所使用的调味品的种类和用量。Optionally, the obtaining module includes: a first obtaining unit, configured to obtain the information of the eaten ingredients within a specified time period, wherein the information of the eaten ingredients includes: the time when the eaten ingredients are put into the smart refrigerator , the time when the eaten ingredients are taken out from the smart refrigerator, the types of the eaten ingredients, and the quality and/or quantity of the eaten ingredients; a second obtaining unit, used for obtaining, within a specified time period, the The cooking information of the eaten ingredient, wherein the cooking information of the eaten ingredient at least includes: the type and amount of the eaten ingredient to be cooked, the cooking method of the eaten ingredient, and the cooking method of the eaten ingredient The type and amount of seasoning used.

可选地,所述生成模块包括:第三获取单元,用于获取所述用户的身体状态信息,其中,所述身体状态信息至少包括以下之一:体重、体脂率、蛋白质含量、骨盐量、内脏脂肪率;第一生成单元,用于根据所述用户的饮食习惯信息,以及所述用户的身体状态信息,生成目标食谱。Optionally, the generating module includes: a third acquiring unit, configured to acquire physical state information of the user, wherein the physical state information includes at least one of the following: body weight, body fat percentage, protein content, bone salt amount and visceral fat rate; the first generating unit is configured to generate a target recipe according to the user's eating habit information and the user's physical state information.

可选地,所述第一生成单元包括:记录子单元,用于记录指定时间周期内所述用户的饮食习惯信息和所述用户的身体状态信息;分析子单元,用于分析所述用户的饮食习惯信息和所述用户的身体状态信息,得到所述用户需要补充的第一目标营养信息,其中,所述第一目标营养信息包括:第一目标营养类别,及每一所述第一目标营养类别对应的补充量;第一生成子单元,用于从数据库中获取所述第一目标营养信息对应的第一目标食谱,其中,所述第一目标食谱包括:第一目标食材信息和所述第一目标食材的烹饪信息。Optionally, the first generating unit includes: a recording subunit for recording the user's eating habit information and the user's physical state information within a specified time period; an analysis subunit for analyzing the user's Eating habit information and the user's physical state information to obtain the first target nutritional information that the user needs to supplement, wherein the first target nutritional information includes: a first target nutritional category, and each first target nutritional information The supplementary amount corresponding to the nutrition category; the first generating subunit is used to obtain the first target recipe corresponding to the first target nutrition information from the database, wherein the first target recipe includes: the first target ingredient information and all the Describe the cooking information of the first target ingredient.

可选地,所述第一生成单元还包括:获取子单元,用于获取目标天气信息;第二生成子单元,用于根据所述用户的饮食习惯信息、所述用户的身体状态信息以及所述当日的天气信息生成所述目标食谱。Optionally, the first generating unit further includes: an acquiring subunit, for acquiring target weather information; a second generating subunit, for The target recipe is generated based on the weather information of the day.

可选地,所述第二生成子单元还用于:记录指定时间周期内所述用户的饮食习惯信息、所述用户的身体状态信息以及天气信息;分析所述用户的饮食习惯信息、所述用户的身体状态信息以及所述天气信息,得到所述用户需要补充的第二目标营养信息;其中,所述第二目标营养信息包括:第二目标营养类别,及每一所述第二目标营养类别对应的补充量;从数据库中获取所述第二目标营养信息对应的第二目标食谱,其中,所述第二目标食谱包括:第二目标食材信息和所述第二目标食材的烹饪信息。Optionally, the second generating subunit is further configured to: record the user's eating habit information, the user's physical state information and weather information within a specified time period; analyze the user's eating habit information, the The user's physical state information and the weather information are used to obtain the second target nutrition information that the user needs to supplement; wherein, the second target nutrition information includes: a second target nutrition category, and each second target nutrition The supplementary amount corresponding to the category; the second target recipe corresponding to the second target nutritional information is obtained from the database, wherein the second target recipe includes: second target ingredient information and cooking information of the second target ingredient.

可选地,所述获取模块包括:第二生成单元,用于根据所述已食用食材信息生成食材记录表,其中,所述食材记录表用于记录所述已食用食材的放入所述智能冰箱的时间和取出时间,所述已食用食材的种类、数量和重量,所述已食用食材的新鲜程度以及所述已食用食材的最佳食用时间。Optionally, the acquiring module includes: a second generating unit, configured to generate an ingredient record table according to the consumed ingredient information, wherein the ingredient record table is used to record the smart food that has been eaten. The time and take-out time of the refrigerator, the type, quantity and weight of the eaten ingredients, the freshness of the eaten ingredients, and the best eating time of the eaten ingredients.

可选地,所述获取模块还包括:删除单元,用于当放置在所述智能冰箱内部的任一食材被取出,且超过预定时间未被放回冰箱时,删除所述食材记录表中与所述任一食材相关的记录;发送单元,用于发送提示信息,其中,所述提示信息用于提示所述任一食材超过最佳食用时间。Optionally, the acquisition module further includes: a deletion unit, configured to delete any food item placed in the smart refrigerator when it is taken out and not returned to the refrigerator for a predetermined period of time. A record related to any of the ingredients; a sending unit, configured to send prompt information, wherein the prompt information is used to prompt that the any of the ingredients exceeds the optimal eating time.

根据本发明实施例的又一个方面,还提供了一种用于实施上述基于物联网操作系统的食谱推送方法的电子装置。如图6所示,该电子装置包括存储器1002和处理器1004,该存储器1002中存储有计算机程序,该处理器1004被设置为通过计算机程序执行上述任一项方法实施例中的步骤。According to yet another aspect of the embodiments of the present invention, an electronic device for implementing the above method for pushing recipes based on an IoT operating system is also provided. As shown in FIG. 6 , the electronic device includes a memory 1002 and a processor 1004, where a computer program is stored in the memory 1002, and the processor 1004 is configured to execute the steps in any one of the above method embodiments through the computer program.

可选地,在本实施例中,上述电子装置可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the above-mentioned electronic apparatus may be located in at least one network device among multiple network devices of a computer network.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;S1, within a specified time period, obtain the user's eating habit information through the smart home device, wherein the eating habit information at least includes: consumed ingredient information and cooking information of each consumed ingredient;

S2,根据用户的饮食习惯信息生成目标食谱,其中,目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;S2, generating a target recipe according to the user's eating habit information, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient;

S3,将目标食谱推送给用户。S3, push the target recipe to the user.

可选地,本领域普通技术人员可以理解,图6所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图6其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图6中所示更多或者更少的组件(如网络接口等),或者具有与图6所示不同的配置。Optionally, those of ordinary skill in the art can understand that the structure shown in FIG. 6 is only for illustration, and the electronic device can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet device). Internet Devices, MID), PAD and other terminal equipment. FIG. 6 does not limit the structure of the above electronic device. For example, the electronic device may also include more or less components than those shown in FIG. 6 (eg, network interfaces, etc.), or have a different configuration than that shown in FIG. 6 .

其中,存储器1002可用于存储软件程序以及模块,如本发明实施例中的基于物联网操作系统的食谱推送方法和装置对应的程序指令/模块,处理器1004通过运行存储在存储器1002内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的基于物联网操作系统的食谱推送方法。存储器1002可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1002可进一步包括相对于处理器1004远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。其中,存储器1002具体可以但不限于用于储存基于物联网操作系统的食谱推送方法的程序步骤。作为一种示例,如图6所示,上述存储器1002中可以但不限于包括上述基于物联网操作系统的食谱推送装置中的第一获取模块502、生成模块504和推送模块506。此外,还可以包括但不限于上述可疑帐号的确定装置中的其他模块单元,本示例中不再赘述。The memory 1002 can be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for pushing recipes based on the Internet of Things operating system in the embodiment of the present invention. The processor 1004 runs the software programs stored in the memory 1002 by running the software programs and modules to execute various functional applications and data processing, that is, to implement the above recipe push method based on the IoT operating system. Memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 1002 may further include memory located remotely from processor 1004, and these remote memories may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Wherein, the memory 1002 can be specifically, but not limited to, for storing the program steps of the recipe push method based on the Internet of Things operating system. As an example, as shown in FIG. 6 , the foregoing memory 1002 may include, but is not limited to, the first acquiring module 502 , the generating module 504 and the pushing module 506 in the foregoing apparatus for pushing recipes based on the IoT operating system. In addition, it may also include, but is not limited to, other module units in the above-mentioned apparatus for determining suspicious accounts, which will not be repeated in this example.

可选地,上述的传输装置1006用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置1006包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置1006为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Optionally, the above-mentioned transmission device 1006 is configured to receive or send data via a network. Specific examples of the above-mentioned networks may include wired networks and wireless networks. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used for wirelessly communicating with the Internet.

此外,上述电子装置还包括:显示器1008,用于显示可疑帐号的告警推送;和连接总线1010,用于连接上述电子装置中的各个模块部件。In addition, the above electronic device further includes: a display 1008 for displaying an alarm push of suspicious accounts; and a connection bus 1010 for connecting various module components in the above electronic device.

本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for executing the following steps:

S1,在指定时间周期内,通过智能家居设备获取用户的饮食习惯信息,其中,饮食习惯信息至少包括:已食用食材信息和每种已食用食材的烹饪信息;S1, within a specified time period, obtain the user's eating habit information through the smart home device, wherein the eating habit information at least includes: consumed ingredient information and cooking information of each consumed ingredient;

S2,根据用户的饮食习惯信息生成目标食谱,其中,目标食谱中至少包括:目标食材信息和目标食材对应的目标烹饪信息;S2, generating a target recipe according to the user's eating habit information, wherein the target recipe at least includes: target ingredient information and target cooking information corresponding to the target ingredient;

S3,将目标食谱推送给用户。S3, push the target recipe to the user.

可选地,存储介质还被设置为存储用于执行上述实施例中的方法中所包括的步骤的计算机程序,本实施例中对此不再赘述。Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which will not be repeated in this embodiment.

可选地,在本实施例中,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a In the computer-readable storage medium, the storage medium may include: a flash disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。If the integrated units in the above-mentioned embodiments are implemented in the form of software functional units and sold or used as independent products, they may be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a storage medium, Several instructions are included to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed client may be implemented in other manners. The apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.