CN114860767A - Remaining quality guarantee duration prompting method and device, storage medium and electronic device - Google Patents

Remaining quality guarantee duration prompting method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114860767A
CN114860767A CN202210311701.1A CN202210311701A CN114860767A CN 114860767 A CN114860767 A CN 114860767A CN 202210311701 A CN202210311701 A CN 202210311701A CN 114860767 A CN114860767 A CN 114860767A
Authority
CN
China
Prior art keywords
target
refrigerator
food
quality guarantee
remaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210311701.1A
Other languages
Chinese (zh)
Inventor
陈皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210311701.1A priority Critical patent/CN114860767A/en
Publication of CN114860767A publication Critical patent/CN114860767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/63Scene text, e.g. street names

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Cold Air Circulating Systems And Constructional Details In Refrigerators (AREA)

Abstract

The application discloses a method and a device for prompting remaining quality guarantee duration, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method comprises the following steps: acquiring a first remaining quality guarantee period of target food in a refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value; under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the reminder information is used to indicate a first remaining shelf life of the target food product; and under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through a message middleware so that the target equipment broadcasts or displays the prompt information.

Description

Remaining quality guarantee duration prompting method and device, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for prompting remaining quality guarantee duration, a storage medium and an electronic device.
Background
With the progress of scientific technology and the development of artificial intelligence, intelligent algorithms are applied to daily life more and more, the intelligent development of the intelligent algorithms is very important, and the most important problem of intelligence is to intelligently solve the urgent needs of users.
In the prior art, the broadcasting mode of the prompt message for storing the food to expire is limited to the current refrigerator device, the refrigerator device cannot broadcast the prompt message for storing the food to expire under the condition that the current refrigerator device does not have the broadcasting capability, and currently, in order to solve the problem that the refrigerator device cannot broadcast the prompt message for storing the food to expire under the condition that the current refrigerator device does not have the broadcasting capability, in the prior art, other device information which is in a binding relationship with the refrigerator device is generally acquired at a cloud end, and the prompt message for storing the food to expire is broadcasted by other devices, but because the other device information which is in the binding relationship with the refrigerator device is acquired at the cloud end, the response time of the refrigerator device is too long, so that the experience brought to the user by the prompt message for storing the food to expire in the current refrigerator popular in the market is not good, under the background of the big era of smart family everything interconnection, the user experience is important.
Aiming at the problems that in the related art, under the condition that a refrigerator controls other equipment to send a prompt that food material storage is about to expire, the response time of the refrigerator equipment is too long, and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for prompting remaining quality guarantee duration, a storage medium and an electronic device, and at least solves the problems that in the related art, under the condition that a refrigerator controls other equipment to send a prompt that food storage is about to expire, the response time of the refrigerator equipment is too long and the like.
According to an embodiment of the invention, a method for prompting a remaining shelf life is provided, which includes: acquiring a first remaining quality guarantee period of target food in a refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value; under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the reminder information is used to indicate a first remaining shelf life of the target food product; and under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through a message middleware so that the target equipment broadcasts or displays the prompt information.
In an exemplary embodiment, the obtaining the first remaining shelf life of the target food in the refrigerator includes at least one of: identifying identification information on the target food; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food when the identification information comprises the production date and the quality guarantee period of the target food, or determining a time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period when the identification information comprises the quality guarantee end time of the target food; acquiring voice information of a target object; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food under the condition that the production date and the quality guarantee period of the target food are identified in the voice information, or determining the time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period under the condition that the quality guarantee end time of the target food is identified in the voice information; acquiring first type information of the target food; determining the shelf life of the target food according to the corresponding relation of the first type information stored in the target database, and determining the first remaining shelf life according to the time when the target food is put into the refrigerator for the first time, the shelf life and the current date.
In an exemplary embodiment, before or after generating the prompt message corresponding to the target food, the method further includes: acquiring first type information of the target food and second type information of a group of foods in the refrigerator; wherein the set of food items includes one or more food items within the refrigerator other than the target food item; and determining target menu information from menu information stored in the refrigerator according to the first type information and the second type information, and displaying the target menu information.
In one exemplary embodiment, before acquiring the first type information of the target food item and the second type information of the group of food items within the refrigerator, the method further comprises: obtaining a remaining shelf life of each of other food items in the refrigerator, wherein the other food items include food items in the refrigerator other than the target food item; selecting the group of food products from the other food products according to the remaining shelf life of each of the other food products, wherein the remaining shelf life of each of the food products in the group of food products is less than or equal to a second preset threshold and greater than the first preset threshold.
In an exemplary embodiment, the obtaining a first remaining shelf life of a target food item in a refrigerator includes: determining whether the refrigerator is turned on for the first time within a preset time period in case that it is detected that the refrigerator is turned on; and under the condition that the refrigerator is determined to be opened for the first time within the preset time period, acquiring the first remaining quality guarantee period of the target food in the refrigerator.
In an exemplary embodiment, before sending the prompt message to the target device, the method further includes: acquiring account information bound to the refrigerator, and acquiring a group of devices bound in the account information; determining a distance of each device in the set of devices from the refrigerator; determining a device closest to the refrigerator among the group of devices as the target device.
In one exemplary embodiment, obtaining a first remaining shelf-life of a target food item within a refrigerator comprises: acquiring a target area for placing the target food in a refrigerator, wherein the target area at least comprises: a refrigerated area, a frozen area; determining the shelf life of the target food according to the corresponding relation between the target food and the target area; determining the first remaining shelf-life based on the target food shelf-life and a current date.
According to another embodiment of the present invention, there is provided a remaining quality guarantee period prompting device, including: the refrigerator comprises a determining module, a storage module and a control module, wherein the determining module is used for acquiring a first residual quality guarantee period of target food in the refrigerator and determining whether the first residual quality guarantee period is less than or equal to a first preset threshold value; the generating module is used for generating prompt information corresponding to the target food and determining whether the refrigerator has a voice playing function or not under the condition that the first residual quality guarantee period is less than or equal to the first preset threshold; wherein the reminder information is used to indicate a first remaining shelf life of the target food product; and the sending module is used for determining target equipment with a voice playing function according to the equipment information cached in the database under the condition that the refrigerator does not have the voice playing function, and sending the prompt information to the target equipment through the message middleware so that the target equipment broadcasts or displays the prompt information.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above method for prompting remaining shelf life when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for indicating the remaining shelf life through the computer program.
In the embodiment of the invention, a first remaining quality guarantee period of target food in a refrigerator is obtained, and whether the first remaining quality guarantee period is less than or equal to a first preset threshold value or not is determined; under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the reminder information is used to indicate a first remaining shelf life of the target food product; under the condition that the refrigerator does not have a voice playing function, determining target equipment with the voice playing function according to equipment information cached in a database, and sending the prompt information to the target equipment through a message middleware so that the target equipment broadcasts or displays the prompt information; by adopting the technical scheme, the problems that the response time of the refrigerator equipment is too long and the like under the condition that the refrigerator controls other equipment to send the prompt that the food material storage is about to expire are solved, and therefore even under the condition that the current refrigerator equipment does not have the broadcasting capability, the broadcasting or displaying can be still carried out through other equipment, the target equipment with the voice playing function is determined through equipment information cached in the database by the refrigerator equipment, and the response time of the refrigerator equipment is shortened.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a schematic diagram of a hardware environment of a method for indicating remaining shelf life according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for indicating remaining shelf life according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a prior art method of indicating remaining shelf life;
FIG. 4 is a schematic diagram of a method for indicating remaining shelf life according to an embodiment of the invention;
fig. 5 is a block diagram of a remaining expiration time prompting apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for prompting the remaining shelf life is provided. The method for prompting the remaining quality guarantee period is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent household equipment ecology, intelligent residence ecology and the like. Alternatively, in this embodiment, the method for prompting the remaining shelf life may be applied to a hardware environment formed by the terminal device 102 and the server 104 shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
Step S202, acquiring a first remaining quality guarantee period of target food in a refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value;
step S204, generating prompt information corresponding to the target food under the condition that the first remaining shelf life is less than or equal to the first preset threshold, and determining whether the refrigerator has a voice playing function; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and step S206, under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through the message middleware so that the target equipment broadcasts or displays the prompt information.
It should be noted that the message middleware in step S206 supports WebSocket, and sends the prompt message to the target device through WebSocket, which is a protocol for performing full duplex communication on a single TCP connection, so that data exchange between the target device and the server becomes simpler, and the server is allowed to actively push data to the target device. In the WebSocket API, the target device and the server only need to complete one-time handshake, and persistent connection can be directly established between the target device and the server, and bidirectional data transmission is carried out.
Through the steps, obtaining a first remaining quality guarantee period of target food in the refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value; under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the hint information is to indicate a first remaining shelf-life of the target food product; under the condition that the refrigerator does not have the voice playing function, the target device with the voice playing function is determined according to the device information cached in the database, the prompt message is sent to the target device through the message middleware, so that the target device broadcasts or displays the prompt message, the problems that in the related technology, under the condition that the refrigerator controls other devices to send the reminding that the storage of the food materials is about to expire, the response time of the refrigerator device is too long and the like are solved, further, even under the condition that the current refrigerator device does not have the broadcasting capability, the target device with the voice playing function can still be broadcasted or displayed through other devices, the refrigerator device determines the target device with the voice playing function through the device information cached in the database, and the response time of the refrigerator device is shortened.
The target device in step S206 may be a terminal device configured with a display screen or a broadcast capability, and may include but is not limited to at least one of the following: intelligent sound box, TV, air conditioner, washing machine, etc.
In an exemplary embodiment, the prompt message is sent to a terminal when there is no terminal device configured with a display screen or a broadcast capability for an account corresponding to the refrigerator, where the terminal in this embodiment may be a terminal device configured with a target client, and the terminal may include but is not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be an instant messaging client, a browser client, a control client, etc. The refrigerator communicates with the target device and the terminal through a network, which may include but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication.
In an exemplary embodiment, determining a target device with a voice playing function according to device information cached in a database includes: acquiring equipment information cached in the database; determining first equipment according to the equipment information, wherein the first equipment is online equipment; determining the device function of the first device according to the device information; and determining target equipment with a voice playing function in the first equipment according to the equipment function.
In an exemplary embodiment, the obtaining the first remaining shelf life of the target food in the refrigerator includes at least one of: identifying identification information on the target food; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food when the identification information comprises the production date and the quality guarantee period of the target food, or determining a time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period when the identification information comprises the quality guarantee end time of the target food; acquiring voice information of a target object; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food under the condition that the production date and the quality guarantee period of the target food are identified in the voice information, or determining the time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period under the condition that the quality guarantee end time of the target food is identified in the voice information; acquiring first type information of the target food; determining the shelf life of the target food according to the corresponding relation of the first type information stored in the target database, and determining the first remaining shelf life according to the time when the target food is put into the refrigerator for the first time, the shelf life and the current date.
In one exemplary embodiment, identifying the identification information on the target food product comprises: acquiring image information of the target food, wherein the image information at least comprises: the identification information; and identifying the identification information on the target food according to the image information.
In one exemplary embodiment, before the identification information on the target food is identified, in case that a scan button of the refrigerator, which receives a target object, performs a target operation, an identification function of the refrigerator is turned on.
In an exemplary embodiment, before or after generating the prompt message corresponding to the target food, the method further includes: acquiring first type information of the target food and second type information of a group of foods in the refrigerator; wherein the set of food items includes one or more food items within the refrigerator other than the target food item; and determining target menu information from menu information stored in the refrigerator according to the first type information and the second type information, and displaying the target menu information.
That is to say, under the condition that the remaining shelf life of the target food is less than or equal to the preset time, the type information of other foods in the refrigerator is acquired, and the target recipe information is determined for the target food and the other foods, so that the target object can solve the target food as soon as possible according to the target recipe information, and further the waste of food is reduced.
In one exemplary embodiment, before acquiring the first type information of the target food item and the second type information of the group of food items within the refrigerator, the method further comprises: obtaining a remaining shelf life of each of other food items in the refrigerator, wherein the other food items include food items in the refrigerator other than the target food item; selecting the group of food products from the other food products according to the remaining shelf-life time of each of the other food products, wherein the remaining shelf-life time of each of the food products in the group of food products is less than or equal to a second preset threshold and greater than the first preset threshold.
That is, a group of foods having a remaining shelf life less than or equal to a second preset threshold and greater than the first preset threshold is obtained from the stored foods in the refrigerator, so that the target object can use the target video and the obtained group of foods according to the target recipe information, thereby reducing waste of foods.
For example, in the case that the target food is eggs, the remaining shelf life of tomatoes, bread and potatoes stored in a refrigerator is obtained, wherein the remaining shelf life of the tomatoes is 5 days, the remaining shelf life of the bread is 3 days and the remaining shelf life of the potatoes is 10 days; the tomatoes, the bread and the potatoes stored in the refrigerator are used for determining the bread, and the target recipe information is determined in the recipe information according to the bread and the eggs.
In an exemplary embodiment, the obtaining a first remaining shelf life of a target food item in a refrigerator includes: determining whether the refrigerator is turned on for the first time within a preset time period in case that it is detected that the refrigerator is turned on; and under the condition that the refrigerator is determined to be opened for the first time within the preset time period, acquiring the first remaining quality guarantee period of the target food in the refrigerator.
That is, the user or developer sets in advance three different time periods, e.g., 6:00-8:00, 12:00-14:00, 19:00-20:00, in the morning, in the evening; the refrigerator is opened for the first time in three time periods, the program can automatically detect the food in the refrigerator and obtain the remaining quality guarantee period of the food, and prompt information is played or displayed under the condition that the remaining quality guarantee period of the target food is less than the preset period.
In an exemplary embodiment, before sending prompt information to a target device, account information bound to a refrigerator is acquired, and a group of devices bound to the account information are acquired; determining a distance of each device in the set of devices from the refrigerator; determining a device closest to the refrigerator among the group of devices as the target device.
That is, in order to improve the comfort of the user and to facilitate the user to receive the prompt information, the embodiment of the present invention preferentially transmits the prompt information to the target device closest to the refrigerator.
In one exemplary embodiment, obtaining a first remaining shelf-life of a target food item within a refrigerator comprises: acquiring a target area for placing the target food in a refrigerator, wherein the target area at least comprises: a refrigerated area, a frozen area; determining the shelf life of the target food according to the corresponding relation between the target food and the target area; determining the first remaining shelf-life based on the target food shelf-life and a current date.
In one exemplary embodiment, obtaining a first remaining shelf-life of a target food item within a refrigerator comprises: acquiring an opening time of target food in an opened state in a refrigerator, wherein the opening time is used for indicating the time for changing the target food from an unopened state to an opened state; and determining the shelf life of the target food according to the unsealing time, and determining a first remaining shelf life of the target food in the refrigerator according to the shelf life.
In one exemplary embodiment, obtaining a first remaining shelf-life of a target food item within a refrigerator comprises: acquiring a target temperature set by a refrigerator, and determining the shelf life of the target food according to the corresponding relation between the target food and the target temperature; determining the first remaining shelf-life based on the target food shelf-life and a current date.
In one exemplary embodiment, obtaining a first remaining shelf-life of a target food item within a refrigerator comprises: when a target food item is placed on a door of a refrigerator (or, a place to be moved when the refrigerator is opened), a remaining shelf life of the food item is dynamically adjusted according to the number of times the door of the refrigerator is opened or the length of time the door is opened after the placement.
In order to better understand the process of the method for prompting the remaining shelf life, the following describes a flow of a method for prompting the remaining shelf life with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a method for prompting remaining shelf life is provided, and fig. 3 is a flowchart of a method for prompting remaining shelf life according to an alternative embodiment of the present invention, as shown in fig. 3, specifically including the following steps:
step S301: starting;
step S302: extracting food materials;
step S303: determining whether the food material has a shelf life, and in case of the food material having the shelf life, performing step S304; otherwise, executing step S311;
step S304: obtaining the residual quality guarantee period of the food material;
step S305: 1/3 (corresponding to the target food in the above embodiment) of the food materials with the residual shelf life time less than the total shelf life time is obtained;
step S306: determining whether the refrigerator supports voice broadcasting, if so, executing a step S307, otherwise, executing a step S308;
step S307: playing the prompt message, for example: your xx remains, please note, xx days;
step S308: determining whether the user is bound with other voice network devices, if so, executing step S307, otherwise, executing step S309;
step S309: determining whether a user binds a target APP, and executing a step S310 if the user binds the target APP, otherwise, executing a step S312;
step S310: pushing to a target APP;
step S311: whether a recommended quality guarantee period exists or not, if so, executing the step S304, otherwise, executing the step S312;
step S312: and (6) ending.
In this embodiment, a method for prompting remaining shelf life is provided, and fig. 4 is a flowchart of a method for determining shelf life according to an alternative embodiment of the present invention, as shown in fig. 4, the following steps are specifically provided:
step S401: starting;
step S402: adding food materials through a target APP or voice;
step S403: determining whether the food material has a shelf life, and if so, executing step S407, otherwise, executing step S404;
step S404: whether a default quality guarantee period exists or not, if so, executing the step S407, otherwise, executing the step S405;
step S405: whether the food material has a recommended quality guarantee period or not, if so, executing a step S407, otherwise, executing a step S406;
step S406: inquiring about shelf life;
step S407: the addition is successful;
step S408: and (6) ending.
In the embodiment of the invention, a user opens the refrigerator for the first time in three different time periods of morning, noon and evening, and the program can automatically detect food materials in the refrigerator and obtain the quality guarantee period; screening out food materials with the shelf life being one third of the recommended shelf life, and actively broadcasting the food materials to users by voice; at this time, if the refrigerator of the user home does not have the voice broadcasting function, other voice internet protocol device equipment under the user home, such as a sound box, a kitchen ware and the like, can be actively obtained, and if the voice internet protocol device equipment under the user home does not have the voice broadcasting function, the voice internet protocol device equipment under the user home can be actively pushed to the smart home app; some food materials do not have quality guarantee periods, the user can be actively prompted to set recommended quality guarantee periods during storage, and after all the processes are met, the user can be prompted to carry out humanized prompts such as 'the quality guarantee period of your apple is still 3 days, please pay attention to', and the like; caching based on redis in service processing, such as online device information and the like; the app message can be pushed by the websocket, response time is prolonged, bonus brought by smart families in the era of Internet of things is fully diffused, and users can obtain more convenience.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a remaining shelf life prompting device is further provided, and the remaining shelf life prompting device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 5 is a block diagram of a remaining expiration time reminder according to an embodiment of the present invention; as shown in fig. 5, includes:
a determining module 52, configured to obtain a first remaining shelf life of a target food in a refrigerator, and determine whether the first remaining shelf life is less than or equal to a first preset threshold;
the generating module 54 is configured to generate a prompt message corresponding to the target food and determine whether the refrigerator has a voice playing function when the first remaining shelf life is less than or equal to the first preset threshold; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and the sending module 56 is configured to, when the refrigerator does not have a voice playing function, determine a target device having the voice playing function according to the device information cached in the database, and send the prompt information to the target device through the message middleware, so that the target device broadcasts or displays the prompt information.
By the device, a first residual quality guarantee period of target food in the refrigerator is obtained, and whether the first residual quality guarantee period is smaller than or equal to a first preset threshold value or not is determined; under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the reminder information is used to indicate a first remaining shelf life of the target food product; under the condition that the refrigerator does not have the voice playing function, the target equipment with the voice playing function is determined according to the equipment information cached in the database, and the prompt information is sent to the target equipment through the message middleware, so that the target equipment broadcasts or displays the prompt information.
In an exemplary embodiment, the determining module is further configured to one of: identifying identification information on the target food; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food when the identification information comprises the production date and the quality guarantee period of the target food, or determining a time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period when the identification information comprises the quality guarantee end time of the target food; acquiring voice information of a target object; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food under the condition that the production date and the quality guarantee period of the target food are identified in the voice information, or determining the time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period under the condition that the quality guarantee end time of the target food is identified in the voice information; acquiring first type information of the target food; determining the shelf life of the target food according to the corresponding relation of the first type information stored in a target database, and determining the first residual shelf life according to the time when the target food is put into the refrigerator for the first time, the shelf life and the current date.
In an exemplary embodiment, the determining module is further configured to obtain first type information of the target food and second type information of a group of food in the refrigerator; wherein the set of food items includes one or more food items within the refrigerator other than the target food item; and determining target menu information from menu information stored in the refrigerator according to the first type information and the second type information, and displaying the target menu information.
In an exemplary embodiment, the determining module is further configured to obtain a remaining shelf life of each of other food items in the refrigerator, wherein the other food items include food items in the refrigerator other than the target food item; selecting the group of food products from the other food products according to the remaining shelf life of each of the other food products, wherein the remaining shelf life of each of the food products in the group of food products is less than or equal to a second preset threshold and greater than the first preset threshold.
In an exemplary embodiment, the determining module is further configured to determine whether the refrigerator is turned on for the first time within a preset time period, in case that it is detected that the refrigerator is turned on; and under the condition that the refrigerator is determined to be opened for the first time within the preset time period, acquiring the first remaining quality guarantee period of the target food in the refrigerator.
In an exemplary embodiment, the determining module is further configured to obtain account information bound to the refrigerator, and obtain a set of devices bound to the account information; determining a distance of each device in the set of devices from the refrigerator; determining a device closest to the refrigerator among the group of devices as the target device.
In an exemplary embodiment, the determining module is further configured to obtain a target area for the target food to be placed in a refrigerator, wherein the target area at least includes: a refrigerated area, a frozen area; determining the shelf life of the target food according to the corresponding relation between the target food and the target area; determining the first remaining shelf-life based on the target food shelf-life and a current date.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, acquiring a first remaining quality guarantee period of target food in the refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value;
s2, generating prompt information corresponding to the target food and determining whether the refrigerator has a voice playing function or not under the condition that the first remaining shelf life is less than or equal to the first preset threshold; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and S3, under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through the message middleware so that the target equipment broadcasts or displays the prompt information.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first remaining quality guarantee period of target food in the refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value;
s2, generating prompt information corresponding to the target food and determining whether the refrigerator has a voice playing function or not under the condition that the first remaining shelf life is less than or equal to the first preset threshold; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and S3, under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through the message middleware so that the target equipment broadcasts or displays the prompt information.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as individual integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for prompting remaining quality guarantee period is characterized by comprising the following steps:
acquiring a first remaining quality guarantee period of target food in a refrigerator, and determining whether the first remaining quality guarantee period is less than or equal to a first preset threshold value;
under the condition that the first remaining quality guarantee duration is less than or equal to the first preset threshold, generating prompt information corresponding to the target food, and determining whether the refrigerator has a voice playing function or not; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and under the condition that the refrigerator does not have the voice playing function, determining target equipment with the voice playing function according to the equipment information cached in the database, and sending the prompt information to the target equipment through a message middleware so that the target equipment broadcasts or displays the prompt information.
2. The method for indicating remaining shelf-life according to claim 1, wherein the obtaining a first remaining shelf-life of a target food in a refrigerator comprises at least one of:
identifying identification information on the target food; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food when the identification information comprises the production date and the quality guarantee period of the target food, or determining a time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period when the identification information comprises the quality guarantee end time of the target food;
acquiring voice information of a target object; determining the first remaining quality guarantee period according to the production date, the quality guarantee period and the current date of the target food under the condition that the production date and the quality guarantee period of the target food are identified in the voice information, or determining the time interval between the quality guarantee end time and the current date as the first remaining quality guarantee period under the condition that the quality guarantee end time of the target food is identified in the voice information;
acquiring first type information of the target food; determining the shelf life of the target food according to the corresponding relation of the first type information stored in the target database, and determining the first remaining shelf life according to the time when the target food is put into the refrigerator for the first time, the shelf life and the current date.
3. The method for indicating remaining shelf-life according to claim 1, wherein before or after generating the indication information corresponding to the target food, the method further comprises:
acquiring first type information of the target food and second type information of a group of foods in the refrigerator; wherein the set of food items includes one or more food items within the refrigerator other than the target food item;
and determining target menu information from menu information stored in the refrigerator according to the first type information and the second type information, and displaying the target menu information.
4. The method for indicating remaining expiration time according to claim 3, wherein before acquiring the first type information of the target food and the second type information of a group of food in the refrigerator, the method further comprises:
obtaining a remaining shelf life of each of other food items in the refrigerator, wherein the other food items include food items in the refrigerator other than the target food item;
selecting the group of food products from the other food products according to the remaining shelf-life time of each of the other food products, wherein the remaining shelf-life time of each of the food products in the group of food products is less than or equal to a second preset threshold and greater than the first preset threshold.
5. The method for indicating remaining shelf-life according to claim 1, wherein the obtaining a first remaining shelf-life of a target food in a refrigerator comprises:
determining whether the refrigerator is turned on for the first time within a preset time period in case that it is detected that the refrigerator is turned on;
and under the condition that the refrigerator is determined to be opened for the first time within the preset time period, acquiring the first remaining quality guarantee period of the target food in the refrigerator.
6. The method for prompting remaining shelf life according to claim 1, wherein before sending the prompting message to the target device, the method further comprises:
acquiring account information bound to the refrigerator, and acquiring a group of devices bound in the account information;
determining a distance of each device in the set of devices from the refrigerator;
determining a device closest to the refrigerator among the group of devices as the target device.
7. The method for indicating remaining shelf-life according to claim 1, wherein obtaining a first remaining shelf-life of a target food item in a refrigerator comprises:
acquiring a target area for placing the target food in a refrigerator, wherein the target area at least comprises: a refrigerated area, a frozen area;
determining the shelf life of the target food according to the corresponding relation between the target food and the target area;
determining the first remaining shelf-life time based on the shelf-life time of the target food product and the current date.
8. A device for indicating remaining shelf life, comprising:
the refrigerator comprises a determining module, a storage module and a control module, wherein the determining module is used for acquiring a first residual quality guarantee period of target food in the refrigerator and determining whether the first residual quality guarantee period is less than or equal to a first preset threshold value;
the generating module is used for generating prompt information corresponding to the target food and determining whether the refrigerator has a voice playing function or not under the condition that the first remaining shelf life is less than or equal to the first preset threshold; wherein the reminder information is used to indicate a first remaining shelf life of the target food product;
and the sending module is used for determining target equipment with a voice playing function according to the equipment information cached in the database under the condition that the refrigerator does not have the voice playing function, and sending the prompt information to the target equipment through the message middleware so that the target equipment broadcasts or displays the prompt information.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210311701.1A 2022-03-28 2022-03-28 Remaining quality guarantee duration prompting method and device, storage medium and electronic device Pending CN114860767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210311701.1A CN114860767A (en) 2022-03-28 2022-03-28 Remaining quality guarantee duration prompting method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210311701.1A CN114860767A (en) 2022-03-28 2022-03-28 Remaining quality guarantee duration prompting method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114860767A true CN114860767A (en) 2022-08-05

Family

ID=82628878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210311701.1A Pending CN114860767A (en) 2022-03-28 2022-03-28 Remaining quality guarantee duration prompting method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114860767A (en)

Similar Documents

Publication Publication Date Title
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN113296729A (en) Prompt message broadcasting method, device and system, storage medium and electronic device
CN109002001A (en) The management system and method for interactive voice
CN114860767A (en) Remaining quality guarantee duration prompting method and device, storage medium and electronic device
CN111541868A (en) Cooking state monitoring method, device and system
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115714810A (en) Method and device for sending push message, storage medium and electronic device
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN113825004B (en) Multi-screen sharing method and device for display content, storage medium and electronic device
CN114864047A (en) Recipe recommendation method, storage medium and electronic device
CN114691731A (en) Usage preference determination method and apparatus, storage medium, and electronic apparatus
CN115237514A (en) Message card display method and device, storage medium and electronic device
CN116301511A (en) Equipment interaction method and device, storage medium and electronic device
CN115484116B (en) Processing method and device of equipment data, storage medium and electronic device
CN114900382B (en) Control method of intelligent equipment, storage medium and electronic device
CN116540557A (en) Audiovisual combined intelligent household appliance terminal control method, device and storage medium
CN116668579A (en) Message reminding method, storage medium, electronic device and reminding system
CN115174290B (en) Session record display method and device, storage medium and electronic device
CN114900381B (en) Message sending method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
US20230230573A1 (en) Management apparatus, management system, management method, and recording medium
CN115987935A (en) Notification message pushing method and device, storage medium and electronic device
CN115171676A (en) Method and device for determining intention behavior, storage medium and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115032905A (en) Prompting method and device in scene, storage medium and electronic device

Legal Events

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