Reminding information generation method for food materials and refrigeration system
Through ingredient image matching and time analysis, accurate reminder information is generated, which solves the problem of insufficient accuracy of ingredient shelf life reminders in the existing technology, improves the accuracy and efficiency of reminder information, and improves user eating experience.
Patent Information
- Application Number
- CN202410779053.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, the shelf life reminder of food ingredients has insufficient accuracy and cannot accurately reflect the freshness of the food ingredients obtained by the user, affecting the user's eating experience.
By acquiring images of food ingredients, candidate image sequences are determined, image matching is used to generate reminder information, and the collection time and final collection time are combined to reflect changes in the freshness of the food ingredients and generate accurate reminder information.
It improves the accuracy and efficiency of food reminder information, ensures the reliability and convenience of reminder information, and helps users eat or process food in a timely manner.
Smart Images

Figure CN118710232A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of refrigeration equipment, and in particular to a method for generating reminder information for food ingredients and a refrigeration system. Background Art
[0002] People generally want to eat fresher ingredients. In related technologies, the expiration date is often used to remind users to eat ingredients at the right time, such as recommending eating lettuce within 3 days. However, the starting point of the expiration date constraint often corresponds to ingredients of one freshness, while the ingredients obtained by the user correspond to another freshness. In this way, the reminder function of the expiration date has limitations and is likely to be inaccurate, which in turn affects the user's experience of eating ingredients. Summary of the invention
[0003] In order to solve at least one of the technical problems mentioned above, the present application provides a method for generating reminder information for food and a refrigeration system:
[0004] According to a first aspect of the present application, a method for generating reminder information for food is provided, the method comprising:
[0005] acquiring a first image indicating a first food ingredient currently stored in a refrigeration device;
[0006] Determine a candidate image sequence, the candidate image sequence comprising a plurality of candidate images arranged in order of acquisition time, the plurality of candidate images all indicating a second food ingredient, the second food ingredient and the first food ingredient indicating the same food ingredient category, a difference between two adjacent candidate images in the candidate image sequence representing a change in freshness of the second food ingredient, and the candidate image corresponding to the last acquisition time in the candidate image sequence indicating the second food ingredient having a freshness lower than a freshness threshold;
[0007] When there is a first reference image matching the first image in the candidate image sequence, first reminder information for the first food is generated based on the acquisition time corresponding to the first reference image and the last acquisition time.
[0008] According to a second aspect of the present application, a refrigeration system is provided, the refrigeration system comprising:
[0009] Refrigeration equipment, the refrigeration equipment is used to store food;
[0010] A server side, a communication relationship is established between the server side and the refrigeration device, and the server side is used to execute the reminder information generation method for food as described in the first aspect.
[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0012] Implementing this application has the following beneficial effects:
[0013] The present application provides an accurate method for generating reminder information for food ingredients. The present application generates reminder information by matching images indicating food ingredients. A candidate image sequence obtained in historical time is used as a matching data source. The candidate image sequence indicates a second food ingredient. The candidate image sequence can reflect the process in which the freshness corresponding to the second food ingredient gradually decreases to below the freshness threshold. At the same time, the second food ingredient and the first food ingredient indicate the same food ingredient category. Such a reliable and effective candidate image sequence is conducive to the contribution of the matching data source to the generation of reminder information, thereby improving the accuracy of the generated reminder information. In image matching, the reminder information is generated with the help of the acquisition time corresponding to the matched first reference image and the last acquisition time, taking into account the efficiency and convenience of generating reminder information and the accuracy of the generated reminder information.
[0014] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above-mentioned objectives, technical solutions and beneficial effects of the present invention can be clearly obtained through the following detailed description of specific embodiments that can implement the present invention, combined with the description of the accompanying drawings.
[0016] The same reference numerals and symbols in the drawings and the description are used to represent the same or equivalent elements.
[0017] Figure 1 It is a flowchart of a method for generating reminder information for food provided by the present application;
[0018] Figure 2 It is a schematic diagram of the process of obtaining and applying the reference image sequence provided by this application;
[0019] Figure 3 is a schematic diagram of a process for updating a candidate image sequence provided by the present application;
[0020] Figure 4 is a schematic diagram of the process of obtaining and processing the second image provided by the present application;
[0021] Figure 5 It is a system block diagram of a refrigeration system provided in this application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0025] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0026] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0027] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0028] Figure 1A flow chart of a method for generating reminder information for food ingredients according to an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0029] S101: Acquire a first image indicating a first food ingredient, where the first food ingredient is currently stored in a refrigeration device;
[0030] In an embodiment of the present application, the execution subject of the reminder information generation method for food provided in the embodiment of the present application can be the refrigeration device itself, or it can be a server end of the same refrigeration device as the refrigeration device, wherein the refrigeration device is used to store food. The refrigeration device can be at least one refrigerator, at least one freezer, or a combination of at least one refrigerator and at least one freezer. The first image can be obtained by photographing the first food by an image acquisition module (such as a camera installed in the refrigeration device). The first image can be maintained by indicating the first food identification of the first food and indicating the acquisition time of the first image. The acquisition time can be the image shooting time, or it can be the maintenance start time created for image maintenance.
[0031] S102: Determine a candidate image sequence, the candidate image sequence comprising a plurality of candidate images arranged in order of acquisition time, the plurality of candidate images all indicating a second food ingredient, the second food ingredient and the first food ingredient indicating the same food ingredient category, a difference between two adjacent candidate images in the candidate image sequence representing a change in freshness of the second food ingredient, the candidate image corresponding to the last acquisition time in the candidate image sequence indicating the second food ingredient having a freshness lower than a freshness threshold;
[0032] In an embodiment of the present application, the candidate image sequence as the matching data source is obtained in historical time. The acquisition time corresponding to each of the multiple candidate images in the candidate image sequence is earlier than the acquisition time corresponding to the above-mentioned first image. For the candidate image sequence, it can be understood that the candidate image sequence includes N candidate images, candidate image i is the i-th candidate image among the N candidate images, and the value range of i is 1-N. Candidate image i and candidate image i+1 are two adjacent candidate images in the candidate image sequence. The acquisition time corresponding to candidate image i can be earlier than the acquisition time corresponding to candidate image i+1. The freshness of the food indicated by candidate image i is higher than the freshness of the food indicated by candidate image i+1. The difference between candidate image i and candidate image i+1 represents the change in the freshness of the food, such as the lettuce leaves in candidate image i are green, and the lettuce leaves in candidate image i appear yellow. When i takes N, the freshness of the food indicated by candidate image i is lower than the freshness threshold, such as the lettuce in candidate image i shows deterioration symptoms (such as rot). Since multiple candidate images indicate the second food, the candidate image sequence can reflect the process in which the freshness corresponding to the second food gradually decreases to below the freshness threshold.
[0033] The second ingredient and the first ingredient indicate the same ingredient category. The ingredients stored in the refrigeration equipment can be meat ingredients, vegetable ingredients, etc. According to different classification rules, they can be divided into meat ingredient categories and vegetable ingredient categories; or they can be further divided into small categories based on the meat ingredient category and the vegetable ingredient category, such as the beef ingredient category and the pork ingredient category under the meat ingredient category, and the leafy vegetable ingredient category and the mushroom ingredient category under the vegetable ingredient category. Of course, the division of ingredient categories can be flexibly adjusted according to actual needs.
[0034] S103: When there is a first reference image matching the first image in the candidate image sequence, generate first reminder information for the first food based on the acquisition time corresponding to the first reference image and the last acquisition time.
[0035] In an embodiment of the present application, based on the support of the candidate image sequence in terms of reliability and effectiveness, if there is a candidate image matching the first image in the candidate image sequence, the first reminder information can be generated using the candidate image as the first reference image. Combined with the above example, the acquisition time corresponding to candidate image i is time i, and the first reference image is candidate image i. When the value range of i is 1-N-1, the first reminder information is generated based on the difference between time i and time N. For example, when time i is May 2 and time N is May 6, the first reminder information is intended to remind that there are still 4 days of shelf life, and to remind the user to eat the first ingredient within 4 days. When the value range of i is N, the first reminder information is generated based on the difference between time N and time N, then the first reminder information is intended to remind that the shelf life has expired, and to remind the user to dispose of the first ingredient (such as leaving the first ingredient away from the refrigeration equipment).
[0036] Of course, the generation of the first reminder information can also be combined with the current time, so that the generated first reminder information can remind the expiration time. Combined with the above example, the acquisition time corresponding to candidate image i is time i, and the first reference image is candidate image i. When the value range of i is 1-N-1, the first reminder information is generated based on time i, time N, and current time. For example, time i is May 2, time N is May 6, and the current time is June 12. Based on the difference between time i and time N, a shelf life indicating 4 days can be obtained. Fusion of the shelf life and the current time can obtain an expiration time indicating June 16. In this way, the first reminder information can remind that the expiration time is June 16.
[0037] The embodiments of the present application will be described in detail below.
[0038] As a possible implementation, for the aforementioned step S103, after generating the first reminder information for the first ingredient based on the acquisition time corresponding to the first reference image and the last acquisition time, the method may further include the following steps: first, acquiring a second image indicating the first ingredient according to a preset rule, wherein the preset rule records the interval between the acquisition time of the latter image and the acquisition time of the previous image; and then, in the event that the second image is different from the first image and there is a second reference image in the candidate image sequence that matches the second image, generating the second reminder information for the first ingredient based on the acquisition time corresponding to the second reference image and the last acquisition time.
[0039] The second image can be obtained by photographing the first ingredient through an image acquisition module (such as a camera installed in a refrigeration device). The second image can be acquired, which also indicates that the first ingredient is currently stored in the refrigeration device. The preset rule records the interval between the time of the next image acquisition and the time of the previous image acquisition, such as 24h. The interval here can be used to constrain the time of two image captures. At this time, whether to generate the second reminder information with the help of the candidate image sequence requires that the second image is different from the first image, and the candidate image sequence has a second reference image that matches the second image. It can be understood that the difference between the second image and the first image indicates that the freshness corresponding to the second ingredient has changed, and the shelf life and / or expiration time involved in the reminder information need to be updated. The candidate image sequence has a second reference image that matches the second image, indicating that the candidate image sequence can be used to participate in the generation of the second reminder information. For the process of "generating the second reminder information with the help of the acquisition time corresponding to the matched second reference image and the last acquisition time", the process of "generating the first reminder information with the help of the acquisition time corresponding to the matched first reference image and the last acquisition time" in the aforementioned step S103 can be referred to, and no further description is given.
[0040] The second reminder information generation method provided here focuses on the scenario where the first food is stored in the refrigeration equipment for an interval exceeding the interval provided by the preset rule, and generates the second reminder information by continuing to use the candidate image sequence, which is convenient and efficient.
[0041] As a possible implementation, the second reminder information generation method provided above can be disassembled into image acquisition logic, image maintenance logic and reminder information generation logic. The image acquisition logic acquires image j indicating the first ingredient according to the preset rules. The image maintenance logic saves image j when there is a difference between image j and image j-1, otherwise deletes image j. Image j-1 is the image indicating the first ingredient that was saved last time. Image j can be maintained by indicating the first ingredient identifier of the first ingredient and indicating the acquisition time of image j. The reminder information generation logic then "generates reminder information with the acquisition time corresponding to the matched reference image and the last acquisition time". It should be noted that if the image j acquired this time is deleted, the image j will still be acquired next time. The difference between the acquisition time (such as the image shooting time) corresponding to each of the saved image j and image j-1 is a multiple of the interval, which may be 1 times or more than 1 times. Therefore, the logical path formed by the image acquisition logic -> image maintenance logic -> reminder information generation logic can be repeatedly executed until it is detected that the refrigeration equipment does not store the first ingredient, or the image newly acquired according to the preset rules indicates that the freshness of the first ingredient is lower than the freshness threshold.
[0042] like Figure 2 As shown, the image indicating the first food obtained here can participate in the update of the candidate image sequence:
[0043] S201: when it is detected that the refrigeration device does not store the first food, or the third image indicates that the freshness of the first food is lower than the freshness threshold, construct a reference image sequence indicating the first food, wherein the third image is the latest image captured according to a preset rule, and the preset rule records the interval between the time of capturing the next image and the time of capturing the previous image;
[0044] S202: When the total number of images in the reference image sequence and the candidate image sequence is the same, and the reference image sequence contains an image that matches any image in the candidate image sequence, the reference image sequence is deleted, and the difference between the acquisition times corresponding to two adjacent candidate images in the candidate image sequence is a multiple of the interval.
[0045] It can be understood that the acquisition and maintenance of the candidate image indicating the second ingredient in the candidate image sequence can follow the above-mentioned "image acquisition logic" and "image maintenance logic". The candidate image sequence is obtained at historical time. The reference image sequence is obtained at current time. Considering that the sequence needs to participate in the generation of reminder information, the sequence generally includes at least two images. The third image here can be the second image that is different from the first image; it can also be an image indicating the first ingredient that is saved later. If the second image is the second image saved in the reference image sequence, the third image is not limited to the third image saved in the reference image sequence. The third image is the latest image collected based on the preset rule, that is, after the third image is obtained, the image indicating the first ingredient is not obtained according to the preset rule, that is, "the refrigeration equipment is monitored to not store the first ingredient"; or, through the third image itself, it is known that the freshness corresponding to the first ingredient is lower than the freshness threshold, corresponding to "the third image indicates the first ingredient whose freshness is lower than the freshness threshold"; or, the third image matches the candidate image corresponding to the last acquisition time in the candidate image sequence, corresponding to "the third image indicates the first ingredient whose freshness is lower than the freshness threshold".
[0046] If the total number of images in the reference image sequence and the candidate image sequence is the same, and there is an image in the reference image sequence that matches any image in the candidate image sequence, it can be said that the two sequences are completely matched. In this case, the reference image sequence can be deleted to save storage resources, while retaining the candidate image sequence. In practical applications, the candidate image sequence can also be replaced with the reference image sequence.
[0047] Further, for the aforementioned step S201, if Figure 3 As shown, after constructing the reference image sequence indicating the first food, the method further includes:
[0048] S301: Determine at least one subsequence matching the candidate image sequence from the reference image sequence, the subsequence including at least one reference image;
[0049] S302: Determine at least one remaining image in the reference image sequence except for the at least one subsequence;
[0050] S303: For each of the remaining images, based on the position of the remaining image in the reference image sequence and the matching relationship between the at least one subsequence and the candidate image sequence, add the remaining image to the candidate image sequence to update the candidate image sequence.
[0051] There are also cases where the two sequences do not completely match. The part of one sequence that matches the other sequence can be extracted. Referring to Table 1 below, there are 3 subsequences in the reference image sequence that match the candidate image sequence: subsequence 1 includes reference images 1-2, subsequence 2 includes reference image 4, and subsequence 3 includes reference image 7. There are 3 remaining images, namely reference image 3, reference images 5-6.
[0052]
[0053] Table 1
[0054] For each residual image, the residual image can be added to the candidate image sequence based on the position of the residual image in the reference image sequence and the matching relationship between at least one subsequence and the candidate image sequence. Taking reference image 3 as the residual image as an example, reference image 3 ranks third in the reference image sequence. In the matching relationship between at least one subsequence and the candidate image sequence, it can be seen that subsequence 1 matches local image sequence 1 (including candidate images 1-2), subsequence 2 matches local image sequence 2 (including candidate image 3), and subsequence 3 matches local image sequence 3 (including candidate image 7). Reference image 3 exists between subsequence 1 and subsequence 2, and reference image 3 should be added between local image sequence 1 and local image sequence 2. The updated candidate image sequence can be referred to below.
[0055] Table 2:
[0056]
[0057] Table 2
[0058] The information content of the candidate image sequence can be increased by updating, so that the candidate image sequence reflects the change process of the food freshness in a more fine-grained manner, thereby improving the effectiveness and accuracy of the sequence in generating reminder information. It should be noted that the remaining images added to the candidate image sequence can update the acquisition time of the remaining images based on the difference in acquisition time between them and the adjacent images (such as reference image 2) in the original sequence, and the acquisition time of the adjacent images in the same direction (such as candidate image 2) in the new sequence.
[0059] In addition, for the aforementioned step S301, after determining at least one subsequence matching the candidate image sequence from the reference image sequence, the method may further include the following steps: when the subsequence includes at least two of the reference images, determining, for each of the subsequences, a first acquisition time interval corresponding to the subsequence, and updating a second acquisition time interval corresponding to a local image sequence based on the first acquisition time interval to update the candidate image sequence, wherein the local image sequence is composed of the candidate images corresponding to the subsequence in the candidate image sequence.
[0060] In combination with Table 1 and related discussions, taking the matching subsequence 1 and local image sequence 1 as an example, the first acquisition time interval corresponding to subsequence 1 is determined based on the difference between the acquisition times of reference image 1 and reference image 2, and the second acquisition time interval corresponding to local image sequence 1 is determined based on the difference between the acquisition times of candidate image 1 and candidate image 2. The second acquisition time can be updated with the average of the first acquisition time interval and the second acquisition time interval, and then based on the updated second acquisition time, the difference between the acquisition time corresponding to the first image in local image sequence 1 and the last acquisition time is updated to achieve the update of the candidate image sequence. In this way, the adaptability of the candidate image sequence in the time dimension can be improved.
[0061] Of course, for ease of use, the acquisition time corresponding to the image in the sequence can also be converted into the distance expiration time. The update of the time dimension here can also be achieved based on the distance expiration time corresponding to each of the matching images in the two sequences. Taking the matching reference image 1 and candidate image 1 as an example, the distance expiration time corresponding to reference image 1 is determined based on the difference between the acquisition time corresponding to reference image 1 and reference image 7. The distance expiration time corresponding to candidate image 1 is determined based on the difference between the acquisition time corresponding to candidate image 1 and candidate image 5. The distance expiration time corresponding to candidate image 1 can be updated with the average of the two distance expiration times to achieve the update of the candidate image sequence. Correspondingly, if candidate image 1 is matched, a reminder message can be generated based on the distance expiration time corresponding to candidate image 1.
[0062] As a possible implementation, the focus here is on the situation where the candidate image sequence cannot be determined, or the candidate image sequence does not have an image matching the first image. It should be understood that in this case, the image acquisition and maintenance indicating the first food ingredient is started to establish a relevant sequence, and then participate in the generation of subsequent reminder information. Figure 4 As shown, the method also includes:
[0063] S401: when the candidate image sequence cannot be determined or the candidate image sequence does not have an image matching the first image, acquiring a second image indicating the first food according to a preset rule, wherein the preset rule records an interval between a later image acquisition time and a previous image acquisition time;
[0064] S402: if there is a difference between the second image and the first image, retain the second image and generate third reminder information for the first ingredient;
[0065] S403: When the difference between the second image and the first image is smaller than a difference threshold, delete the second image.
[0066] Here, reference may be made to the relevant contents of the above-mentioned "image acquisition logic" and "image maintenance logic". The image acquisition logic acquires the image j indicating the first ingredient according to the preset rules. The image maintenance logic saves the image j if there is a difference between the image j and the image j-1, otherwise deletes the image j. The image j-1 is the image indicating the first ingredient that was saved last time. The image j can be maintained by indicating the first ingredient identifier of the first ingredient and indicating the acquisition time of the image j. The reminder information generation logic here is triggered by the difference between the image j and the image j-1, and the reminder information is intended to remind the user that the first ingredient is about to expire and to remind the user to eat the first ingredient as soon as possible. It should be noted that if the image j acquired this time is deleted, the image j will still be acquired next time. The difference between the acquisition time (such as the image shooting time) corresponding to the saved image j and the image j-1 is a multiple of the interval, which may be 1 times or more than 1 times. Therefore, the logical path formed by the image acquisition logic -> image maintenance logic -> reminder information generation logic can be repeatedly executed until it is detected that the refrigeration equipment does not store the first ingredient, or the image newly acquired according to the preset rules indicates that the freshness of the first ingredient is lower than the freshness threshold.
[0067] Furthermore, the method may also include the following steps: when it is monitored that the refrigeration equipment does not store the first ingredient, or the third image indicates that the freshness of the first ingredient is lower than the freshness threshold, constructing a reference image sequence indicating the first ingredient, and the third image is the most recently captured image based on the preset rule.
[0068] Considering that the sequence needs to participate in the generation of reminder information, the sequence generally includes at least two images. The third image here can be the second image that is different from the first image mentioned above; it can also be an image indicating the first ingredient that is saved later. If the second image is the second image saved in the reference image sequence, the third image is not limited to the third image saved in the reference image sequence. The third image is the latest image captured based on the preset rule, that is, after the third image is acquired, the image indicating the first ingredient is not acquired according to the preset rule, that is, "the refrigeration equipment is monitored to not store the first ingredient"; or, the third image itself knows that the freshness corresponding to the first ingredient is lower than the freshness threshold, corresponding to "the third image indicates the first ingredient whose freshness is lower than the freshness threshold"; or, the third image matches the candidate image corresponding to the last acquisition time in the candidate image sequence, corresponding to "the third image indicates the first ingredient whose freshness is lower than the freshness threshold".
[0069] As a possible implementation, for the aforementioned step S102, the determining of the candidate image sequence may include the following steps: first, determining a plurality of sequences according to the ingredient category to which the first ingredient belongs; and then determining the sequence that has participated in the largest number of image matches as the candidate image sequence.
[0070] There is one ingredient category to which the first ingredient belongs, and the ingredient indicated by each sequence in the multiple sequences also belongs to this ingredient category. There are at least two ingredient categories to which the first ingredient belongs, and the ingredient category indicated by each sequence in the multiple sequences may be any one of the at least two ingredient categories. The number of times a sequence participates in image matching can be determined by the historical performance of the sequence. It can be counted once for providing a reference image, or it can be counted once for participating in the generation of reminder information for an ingredient (more than one reminder information may be generated). The number of times a sequence participates in image matching can, to a certain extent, measure the availability and reliability of a sequence participating in the generation of reminder information, and thereby provide the effectiveness of the determined candidate image sequence participating in the generation of reminder information.
[0071] It can be seen from the technical solutions provided by the above embodiments of the present application that the embodiments of the present application provide an accurate method for generating reminder information for food ingredients. The embodiments of the present application generate reminder information by matching images indicating food ingredients. The candidate image sequence obtained in historical time is used as the matching data source. The candidate image sequence indicates the second food ingredient. The candidate image sequence can reflect the process in which the freshness corresponding to the second food ingredient gradually decreases to below the freshness threshold. At the same time, the second food ingredient and the first food ingredient indicate the same food category. Such a reliable and effective candidate image sequence is conducive to the contribution of the matching data source to the generation of reminder information, thereby improving the accuracy of the generated reminder information. In the image matching, the reminder information is generated with the help of the acquisition time corresponding to the matched first reference image and the last acquisition time, which takes into account the efficiency and convenience of generating reminder information and the accuracy of the generated reminder information.
[0072] The embodiment of the present application also provides a device for generating reminder information for food, the device comprising:
[0073] An image acquisition module: used to acquire a first image indicating a first food material currently stored in a refrigeration device;
[0074] A sequence determination module: used to determine a candidate image sequence, wherein the candidate image sequence includes a plurality of candidate images arranged in order of acquisition time, the plurality of candidate images all indicate a second food ingredient, the second food ingredient and the first food ingredient indicate the same food ingredient category, a difference between two adjacent candidate images in the candidate image sequence represents a change in freshness of the second food ingredient, and the candidate image corresponding to the last acquisition time in the candidate image sequence indicates the second food ingredient whose freshness is lower than a freshness threshold;
[0075] Reminder information generation module: used to generate first reminder information for the first food based on the acquisition time corresponding to the first reference image and the last acquisition time when there is a first reference image matching the first image in the candidate image sequence.
[0076] It should be noted that the device in the device embodiment and the method embodiment are based on the same inventive concept.
[0077] The present application also provides a refrigeration system. Figure 5 As shown, the refrigeration system 50 includes:
[0078] Refrigeration equipment 501, the refrigeration equipment is used to store food;
[0079] A server side 502, a communication relationship is established between the server side and the refrigeration device, and the server side is used to execute the above-mentioned method for generating reminder information for food.
[0080] The refrigeration equipment and the server side can be directly or indirectly connected through wired or wireless communication. The server side can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server may include a network communication unit, a processor, a memory, and the like. The image can be acquired by an image acquisition module installed in the refrigeration equipment, and then sent to the server side through the refrigeration equipment. The server side can maintain images and sequences.
[0081] In one embodiment, the server sends the generated reminder information to the refrigeration device, so that the refrigeration device displays the reminder information using an interactive interface. The server sends the reminder information to the refrigeration device, and the refrigeration device can display the reminder information using an interactive interface, which is intuitive and easy to read. In actual applications, the server can also send the reminder information to the user terminal, so that the user can be reminded to eat or process the food in a more timely and effective manner. The user terminal can establish a binding relationship with the refrigeration device or the server through the login account of the application running on it.
[0082] The embodiment of the present application also provides a computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above method. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0083] An embodiment of the present application also provides a computer program product, which includes at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above method.
[0084] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for generating reminder information for food ingredients, characterized in that: The method comprises: acquiring a first image indicating a first food ingredient currently stored in a refrigeration device; Determine a candidate image sequence, the candidate image sequence comprising a plurality of candidate images arranged in order of acquisition time, the plurality of candidate images all indicating a second food ingredient, the second food ingredient and the first food ingredient indicating the same food ingredient category, a difference between two adjacent candidate images in the candidate image sequence representing a change in freshness of the second food ingredient, and the candidate image corresponding to the last acquisition time in the candidate image sequence indicating the second food ingredient having a freshness lower than a freshness threshold; When there is a first reference image matching the first image in the candidate image sequence, first reminder information for the first food is generated based on the acquisition time corresponding to the first reference image and the last acquisition time.
2. The method according to claim 1, characterized in that After generating the first reminder information for the first food based on the acquisition time corresponding to the first reference image and the last acquisition time, the method further includes: Acquire a second image indicating the first food according to a preset rule, wherein the preset rule records the interval between the time of acquiring the next image and the time of acquiring the previous image; When there is a difference between the second image and the first image, and there is a second reference image in the candidate image sequence that matches the second image, second reminder information for the first ingredient is generated based on the acquisition time corresponding to the second reference image and the last acquisition time.
3. The method according to claim 1, characterized in that The method further comprises: In a case where it is monitored that the refrigeration device does not store the first food, or the third image indicates that the freshness of the first food is lower than the freshness threshold, constructing a reference image sequence indicating the first food, wherein the third image is the latest image captured according to a preset rule, and the preset rule records the interval between the time of capturing the next image and the time of capturing the previous image; In the case that the total number of images in the reference image sequence and the candidate image sequence is the same, and there is an image in the reference image sequence that matches any image in the candidate image sequence, the reference image sequence is deleted, and the difference between the acquisition times corresponding to two adjacent candidate images in the candidate image sequence is a multiple of the interval.
4. The method according to claim 3, characterized in that: After constructing the reference image sequence indicating the first food, the method further includes: Determine at least one subsequence matching the candidate image sequence from the reference image sequence, the subsequence comprising at least one reference image; determining at least one remaining image in the reference image sequence excluding the at least one subsequence; For each of the remaining images, based on the position of the remaining image in the reference image sequence and the matching relationship between the at least one subsequence and the candidate image sequence, the remaining image is added to the candidate image sequence to update the candidate image sequence.
5. The method according to claim 4, characterized in that After determining at least one subsequence matching the candidate image sequence from the reference image sequence, the method further includes: In the case where the subsequence includes at least two reference images, for each subsequence, a first acquisition time interval corresponding to the subsequence is determined, and a second acquisition time interval corresponding to a local image sequence is updated based on the first acquisition time interval to update the candidate image sequence, wherein the local image sequence is composed of the candidate images in the candidate image sequence corresponding to the subsequence.
6. The method according to claim 1, characterized in that The method further comprises: When the candidate image sequence cannot be determined or the candidate image sequence does not have an image matching the first image, acquiring a second image indicating the first food according to a preset rule, wherein the preset rule records an interval between a later image acquisition time and a previous image acquisition time; If there is a difference between the second image and the first image, retain the second image and generate third reminder information for the first ingredient; When the difference between the second image and the first image is less than a difference threshold, the second image is deleted.
7. The method according to claim 6, characterized in that The method further comprises: When it is detected that the refrigeration device does not store the first ingredient, or the third image indicates that the freshness of the first ingredient is lower than the freshness threshold, a reference image sequence indicating the first ingredient is constructed, and the third image is the latest image captured based on the preset rule.
8. The method according to claim 1, characterized in that The determining of the candidate image sequence comprises: Determining a plurality of sequences according to the food category to which the first food belongs; The sequence that has participated in the largest number of image matchings is determined as the candidate image sequence.
9. A refrigeration system, characterized in that: The refrigeration system comprises: Refrigeration equipment, the refrigeration equipment is used to store food; A server side, a communication relationship is established between the server side and the refrigeration device, and the server side is used to execute the reminder information generation method for food as described in any one of claims 1 to 8.
10. The system according to claim 9, characterized in that The server sends the generated reminder information to the refrigeration device, so that the refrigeration device displays the reminder information using an interactive interface.
