Temperature determination method and device, closed cabinet, and storage medium
Image recognition technology is used to determine the type of items in the airtight cabinet and calculate the optimal temperature, which solves the problem of cumbersome temperature control operations in the airtight cabinet and achieves the effects of intelligent temperature adjustment and food preservation.
Patent Information
- Application Number
- CN202211573886.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-12-08
AI Technical Summary
The temperature control operation of the airtight cabinet is cumbersome, resulting in temperature setting errors that may lead to food deterioration. Existing technology cannot effectively solve this problem.
Image recognition technology is used to determine the type of items in the closed cabinet, and the optimal temperature value in the cabinet is calculated based on the preset relationship between the item type and the storage temperature range to achieve intelligent temperature adjustment of the closed cabinet.
It simplifies the temperature adjustment process of the airtight cabinet, avoids temperature setting errors, ensures safe storage of food, and improves storage efficiency and food preservation effect.
Smart Images

Figure CN115993858B
Abstract
Description
Technical Field
[0001] The present application relates to the field of temperature control technology, and in particular, to a method and device for determining temperature, a closed cabinet, and a storage medium. Background Art
[0002] As a common refrigeration product, sealed cabinets can be found everywhere in shopping malls, supermarkets, etc. A wide variety of products that need to be refrigerated are often stored in sealed cabinets, and different types of items in the cabinets have different requirements for the refrigeration temperature of the unit.
[0003] If different items in a sealed cabinet require different cabinet temperatures, it is necessary to determine a suitable temperature based on experience and then manually adjust the temperature inside the cabinet. This is cumbersome to operate when goods are stored frequently, and incorrect temperature settings may cause food to spoil.
[0004] With regard to the technical problem of the complicated temperature control operation of the above-mentioned closed cabinet, no effective solution has been proposed so far. Summary of the invention
[0005] The embodiments of the present application provide a method and device for determining temperature, a closed cabinet, and a storage medium to solve the technical problem that the temperature control operation of the closed cabinet is relatively complicated.
[0006] To solve the above technical problems, according to one aspect of an embodiment of the present application, a method for determining temperature is provided, including: determining the type of items stored in the sealed cabinet based on an image of the items collected from the sealed cabinet; searching for the corresponding storage temperature range based on the item type; and determining the optimal cabinet temperature value of the sealed cabinet based on the storage temperature ranges of all the item types.
[0007] Optionally, the optimal cabinet temperature value of the sealed cabinet is determined based on the storage temperature ranges of all the item types, including: when the number of the item types is one, taking the middle value of the storage temperature range as the optimal cabinet temperature value; when the number of the item types is multiple, determining the optimal cabinet temperature value of the sealed cabinet by combining the storage temperature ranges of multiple item types.
[0008] Optionally, the optimal cabinet temperature value is determined in the closed cabinet in combination with the storage temperature ranges of a plurality of the item types, including: obtaining the interval relationship between the storage temperature ranges of two of the item types; determining the suitable storage temperatures of the two item types based on the interval relationship between the storage temperature ranges of the two item types, and then determining the optimal cabinet temperature value based on all the suitable storage temperatures.
[0009] Optionally, determining the suitable storage temperatures of the two types of items according to the interval relationship between the storage temperature intervals of the two types of items includes: determining that there are no suitable storage temperatures for the two types of items when a first storage temperature interval [t1, t2] of a first type of item among the two types of items does not intersect with a second storage temperature interval [t3, t4] of a second type of item among the two types of items; and determining that there are no suitable storage temperatures for the two types of items or taking the middle value of the intersection interval as the suitable storage temperature when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion. The suitable storage temperatures of the two types of items, wherein the proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%; when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, or when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], the suitable storage temperatures of the two types of items are determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
[0010] Optionally, when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], determining the suitable storage temperatures of the two types of items according to the intermediate value of the first storage temperature interval [t1, t2] and the intermediate value of the second storage temperature interval [t3, t4] includes: when the first storage temperature interval [t1, t2] of the first type of item among the two types of items includes the second storage temperature interval of the second type of item among the two types of items, obtaining a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtaining an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t4, taking P as the suitable storage temperature; if P is less than t3 or greater than t4, obtaining an intermediate value Q between P and N; if Q is between t3 and t4, taking Q as the suitable storage temperature, otherwise taking an intermediate value of Q and N, and updating the value of Q using the obtained intermediate value until the obtained value of Q is between t3 and t4.
[0011] Optionally, when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, determining the suitable storage temperature of the two types of items according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4] includes: obtaining a first middle value M of the first storage temperature interval [t1, t2] and a second middle value N of the second storage temperature interval [t3, t4]; obtaining the first middle value M and the second middle value N of the first storage temperature interval [t1, t2]; obtaining the first middle value M and the ... second storage temperature interval [t3, t4]; determining the suitable storage temperature of the two types of items The middle value P of the intermediate value N is obtained; if P is between t3 and t2, P is used as the suitable temperature; if P is greater than t2, the middle value Q of P and M is obtained; if Q is between t3 and t2, Q is used as the suitable temperature, otherwise the middle value of Q and M is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2; if P is less than t3, the middle value Q of P and N is obtained; if Q is between t3 and t2, Q is used as the suitable temperature, otherwise the middle value of Q and N is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2.
[0012] Optionally, based on the interval relationship between the storage temperature intervals of the two types of items, the suitable storage temperatures of the two types of items are determined, and then the optimal cabinet temperature value is determined based on all suitable storage temperatures, including: when the number of the types of items is n, taking the average value of n(n-1) / 2 suitable storage temperatures as the optimal cabinet temperature value, where n is a natural number greater than or equal to 2.
[0013] According to another aspect of an embodiment of the present application, a temperature determination device is also provided, including: a type determination unit, used to determine the type of items stored in the sealed cabinet based on the object images collected from the sealed cabinet; a search unit, used to search for the corresponding storage temperature range according to the item type; and a temperature determination unit, used to determine the optimal cabinet temperature value of the sealed cabinet based on the storage temperature ranges of all the item types.
[0014] Optionally, the temperature determination unit is also used to: when the number of the item types is one, use the middle value of the storage temperature range as the optimal cabinet temperature value; when the number of the item types is multiple, determine the optimal cabinet temperature value of the sealed cabinet by combining the storage temperature ranges of multiple item types.
[0015] Optionally, the temperature determination unit is also used to: obtain the interval relationship between the storage temperature intervals of the two types of items; determine the suitable storage temperatures of the two types of items based on the interval relationship between the storage temperature intervals of the two types of items, and then determine the optimal cabinet temperature value based on all suitable storage temperatures.
[0016] Optionally, the temperature determination unit is further used to: determine that there are no suitable storage temperatures for the two types of items when a first storage temperature interval [t1, t2] of a first type of item among the two types of items does not intersect with a second storage temperature interval [t3, t4] of a second type of item among the two types of items; determine that there are no suitable storage temperatures for the two types of items or use an intermediate value of the intersection interval as the suitable storage temperature for the two types of items when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion, wherein: The proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%; when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, or when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
[0017] Optionally, the temperature determination unit is also used to: when the first storage temperature interval [t1, t2] of the first item type among the two item types contains the second storage temperature interval of the second item type among the two item types, obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t4, use P as the suitable storage temperature; if P is less than t3 or greater than t4, obtain an intermediate value Q between P and N; if Q is between t3 and t4, use Q as the suitable storage temperature, otherwise take an intermediate value of Q and N, and use the obtained intermediate value to update the value of Q until the obtained value of Q is between t3 and t4.
[0018] Optionally, the temperature determination unit is further configured to: when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t2, use P as the appropriate storage temperature; if P is greater than t2, the middle value of P and M is obtained as Q; if Q is between t3 and t2, Q is used as the suitable storage temperature, otherwise the middle value of Q and M is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2; if P is less than t3, the middle value of P and N is obtained as Q; if Q is between t3 and t2, Q is used as the suitable storage temperature, otherwise the middle value of Q and N is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2.
[0019] Optionally, the temperature determination unit is further used to: when the number of the item types is n, take the average value of n(n-1) / 2 suitable storage temperatures as the optimal cabinet temperature value, wherein n is a natural number greater than or equal to 2.
[0020] According to another aspect of an embodiment of the present application, a closed cabinet is also provided, including a temperature determination device.
[0021] According to another aspect of an embodiment of the present application, a computer-readable storage medium is further provided, the storage medium including a stored program, and the program implements the above method when executed by a processor.
[0022] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0023] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the embodiments of the above method.
[0024] By applying the technical solution of the present application, the type of items stored in the sealed cabinet is determined by image recognition based on the image of the items collected from the sealed cabinet, the corresponding storage temperature range is searched according to the item type, and the optimal cabinet temperature value of the sealed cabinet is determined according to the storage temperature range of all item types. In the technical solution of the present application, the type of items placed in the cabinet can be determined by image acquisition and recognition technology, the optimal cabinet temperature value can be determined by a temperature setting algorithm according to the item type, and the sealed cabinet can be controlled to automatically set to the corresponding storage temperature, thereby realizing intelligent adjustment of the temperature of the sealed cabinet, which can solve the technical problem that the temperature control operation of the sealed cabinet is relatively cumbersome. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of an optional method for determining temperature according to an embodiment of the present application;
[0026] Figure 2 is a schematic diagram of an optional temperature range table according to an embodiment of the present application;
[0027] Figure 3 is a flow chart of an optional method for determining temperature according to an embodiment of the present application;
[0028] Figure 4 is a schematic diagram of an optional temperature determination device according to an embodiment of the present application;
[0029] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all 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 the present application.
[0031] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0032] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can 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 character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0033] It should be understood that although the terms first, second, third, etc. may be used to describe certain technical features in the embodiments of the present application, these technical features should not be limited to these terms. These terms are only used to distinguish these technical features.
[0034] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0035] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0036] Example 1
[0037] If different items in a sealed cabinet require different cabinet temperatures, it is necessary to determine a suitable temperature based on experience and then manually adjust the temperature inside the cabinet. This is cumbersome to operate when goods are stored frequently, and incorrect temperature settings may cause food to spoil.
[0038] To overcome the above problems, according to one aspect of the embodiments of the present application, a method for determining temperature is provided. The optimal temperature value of the sealed cabinet can be determined through image recognition and temperature setting algorithm, so as to realize automatic adjustment of the temperature in the cabinet, make the cabinet temperature adjustment more intelligent, and avoid wasting cold or spoiling food due to insufficient temperature. Figure 1 As shown, the method comprises the following steps:
[0039] Step S1, determining the type of the object stored in the sealed cabinet based on the object image collected from the sealed cabinet.
[0040] A camera can be installed in a closed cabinet to capture images of items when they are placed. Image recognition can then be used to identify the type of item. For example, a neural network model that can recognize various vegetables, fruits, foods, etc. can be pre-trained, and the model can then be used to recognize the type of item.
[0041] Step S2, searching for the corresponding storage temperature range according to the item type.
[0042] A data table is created in advance to store the correspondence between item types and storage temperature intervals, for example, item 1 corresponds to storage temperature interval 1, item 2 corresponds to storage temperature interval 2, and item 3 corresponds to storage temperature interval 3. When needed, the storage temperature interval corresponding to each item type can be queried through the data table.
[0043] Step S3, determining the optimal temperature value inside the sealed cabinet according to the storage temperature ranges of all types of items.
[0044] In the embodiment of step S3, determining the optimal temperature value inside the sealed cabinet includes the following situations:
[0045] One is that when the number of item types is one, the middle value of the storage temperature range is used as the optimal cabinet temperature value.
[0046] Secondly, when there are multiple types of items, the optimal temperature value inside the sealed cabinet is determined by combining the storage temperature ranges of multiple types of items. This can be achieved through the following steps S31-S32:
[0047] Step S31, obtain the interval relationship between the storage temperature intervals of two item types, for example: it can be an inclusion relationship (that is, the two boundary values of one storage temperature interval fall within the other storage temperature interval), non-intersecting (that is, there is no temperature value falling within the two storage temperature intervals), and intersecting (that is, there is at least one temperature value falling within the two storage temperature intervals, which can be just one boundary point or an interval).
[0048] Step S31, determining suitable storage temperatures for the two types of items based on the interval relationship between the storage temperature intervals of the two types of items, and then determining the optimal cabinet temperature value based on all the suitable storage temperatures.
[0049] The embodiments of step S31 include the following four possibilities:
[0050] 1) When a first storage temperature interval [t1, t2] of a first item type among the two item types does not intersect with a second storage temperature interval [t3, t4] of a second item type among the two item types, it is determined that there is no suitable storage temperature for the two item types.
[0051] 2) When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion (for example, 10%), it is determined that there are no suitable storage temperatures for two types of items or the middle value of the intersection interval is used as the suitable storage temperature for the two types of items, and the proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%, where min{a, b} means taking the minimum value of a and b.
[0052] 3) When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than a preset proportion, the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
[0053] Specifically, a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4] can be obtained; an intermediate value P of the first intermediate value M and the second intermediate value N is obtained; if P is between t3 and t2, P is used as the suitable temperature; if P is greater than t2, an intermediate value Q between P and M is obtained; if Q is between t3 and t2, Q is used as the suitable temperature, otherwise an intermediate value between Q and M is taken, and the value of Q is updated using the obtained intermediate value until the value of Q is between t3 and t2; if P is less than t3, an intermediate value Q between P and N is obtained; if Q is between t3 and t2, Q is used as the suitable temperature, otherwise an intermediate value between Q and N is taken, and the value of Q is updated using the obtained intermediate value until the value of Q is between t3 and t2.
[0054] 4) When there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4] (such as the second storage temperature interval [t3, t4] is included in the first storage temperature interval [t1, t2]), the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
[0055] Specifically, the first intermediate value M of the first storage temperature interval [t1, t2] and the second intermediate value N of the second storage temperature interval [t3, t4] can be obtained first; the intermediate value P of the first intermediate value M and the second intermediate value N is obtained; if P is between t3 and t4, P is used as the suitable storage temperature; if P is less than t3 or greater than t4, the intermediate value Q of P and N is obtained; if Q is between t3 and t4, Q is used as the suitable storage temperature, otherwise the intermediate value of Q and N is taken, and the value of Q is updated using the obtained intermediate value until the obtained value of Q is between t3 and t4.
[0056] In the above embodiment, when the number of item types is n, the average value of n(n-1) / 2 suitable storage temperatures is used as the optimal cabinet temperature value, where n is a natural number greater than or equal to 2. For example, when n is 2, there is only one suitable storage temperature, and in this case, the suitable storage temperature is directly used as the optimal cabinet temperature value; for example, when n is 5, there are 10 suitable storage temperatures, and the average value of these 10 suitable storage temperatures can be used as the optimal cabinet temperature value.
[0057] Through the above steps, based on the image of the object collected from the sealed cabinet, the type of the object stored in the sealed cabinet is determined by image recognition, the corresponding storage temperature range is found according to the type of the object, and the optimal cabinet temperature value of the sealed cabinet is determined according to the storage temperature range of all the types of objects. In the technical solution of the present application, the type of object placed in the cabinet can be determined by image acquisition and recognition technology, the optimal cabinet temperature value can be determined by a temperature setting algorithm according to the type of object, and the sealed cabinet can be controlled to automatically set to the corresponding storage temperature, so as to realize intelligent adjustment of the cabinet temperature of the sealed cabinet, which can solve the technical problem that the temperature control operation of the sealed cabinet is relatively cumbersome.
[0058] Example 2
[0059] When storing different kinds of items in a cabinet, the suitable storage temperature for each item is also different, which may cause one or more items to be unsuitable for storage at this temperature. It is necessary to determine a storage temperature that is most suitable for all items. As an optional embodiment, the technical solution of the present application is further described in detail below in combination with a specific implementation method:
[0060] First determine the temperature range required for storing different items, which can be formulated according to the food freezing and refrigeration temperature standards or actual conditions, such as Figure 2 The following is an example of a table of temperature ranges for refrigeration and freezing. Figure 3 :
[0061] Step S301, an image acquisition device is installed in a closed cabinet. When an object is placed in the cabinet, an image is acquired and transmitted to an image recognition device.
[0062] Step S302: The image recognition device uses the database to identify the types of items placed in the cabinet.
[0063] Step S303: Determine the optimal temperature value according to the temperature ranges required for storing different items. The specific method is as follows:
[0064] Single item stored in the cabinet:
[0065] Step S304: When a single item is stored in the cabinet, after determining the type of item and its corresponding storage temperature range through image recognition, take the middle value as the optimal cabinet temperature value.
[0066] For example: The suitable refrigeration temperature for apples is 0 - 6°C. If only apples are placed in the cabinet, the cabinet temperature is adjusted to 3°C.
[0067] Two items stored in the cabinet:
[0068] Step S305: When two items are stored in the cabinet, determine the optimal cabinet temperature value (this solution can be extended to multiple items). Assume that the suitable refrigeration temperature for item 1 is t1 - t2°C, and the suitable refrigeration temperature for item 2 is t3 - t4°C, and let t1 <= t3.
[0069] 1) The temperature ranges are in an inclusion relationship, that is, t1 < t3 < t4 < t2:
[0070] Take the middle value of item 1, M = (t1 + t2) / 2, take the middle value of item 2, N = (t3 + t4) / 2, and then take the middle value of M and N, P = (M + N) / 2. If t3 < P < t4, then take P as the optimal cabinet temperature value; if P < t3 or P > t4, then take Q = (P + N) / 2. If t3 < Q < t4, then take Q as the optimal cabinet temperature value. If Q < t3 or Q > t4, then continue to take the middle value of Q and N until the value is within the t3 - t4 temperature range as the optimal temperature.
[0071] The final calculation formula is: Optimal temperature T = ((((t1 + t2) / 2 + (t3 + t4) / 2) / 2 + N) / 2 +...
[0072] For example: The suitable refrigeration temperature for apples is 0 - 6°C, and the suitable refrigeration temperature for cauliflower is 1 - 2°C. M = 3°C, N = 1.5°C. At this time, P = (M + N) / 2 = 2.25°C. Since 2.25°C > 2°C, take Q = (P + N) / 2 = 1.87°C. Because 1.87°C is within the 1 - 2°C range, so take 1.87°C as the optimal temperature for storing apples and cauliflower.
[0073] 2) The case where the boundary points coincide, that is, t1 < t2 = t3 < t4:
[0074] To lay the groundwork for the intersection relationship in the third case, first consider the boundary point situation. If the highest temperature of Item 1 is equal to the lowest temperature of Item 2, this temperature can be considered as the temperature inside the cabinet. However, the sealed cabinet is often opened and closed to access items. Each time the cabinet is opened, the temperature inside the cabinet will rise, and it will slowly return to the normal value after closing the door. This has less impact on Item 2, but a great impact on Item 1. Throughout the process of temperature rise and fall inside the cabinet, it is higher than the refrigeration temperature range of Item 1. Therefore, this situation is treated as if there is no optimal temperature. Considering that the situation of t1 < t3 < t2 < t4 (where t2 ≈ t3) is similar to the above situation, when t2 > t3 but t2 and t3 are very close, there is also no optimal temperature. At this time, the degree of closeness needs to be quantified. It can be stipulated that when the intersection of the storage temperatures of the two items is less than 10% of the smaller temperature range, that is, when t2 - t3 < min{t2 - t1, t4 - t3} × 10%, there is no optimal temperature.
[0075] For example: The suitable refrigeration temperature for apples is 0 - 6°C, and the suitable refrigeration temperature for lychees is 5.8 - 10°C. The intersection of the two temperature ranges is 5.8 - 6.0°C. Since 6.0 - 5.8 = 0.2 < min{6 - 0, 10 - 5.8} × 10% = 0.42, there is no optimal temperature, and an alarm is processed.
[0076] 3) The intersection situation, that is, t1 < t3 < t2 < t4:
[0077] The intersection here needs to exclude the boundary point situation, that is, it is discussed under the restriction condition of t2 - t3 >= min{t2 - t1, t4 - t3} × 10%. Take the middle value M of Item 1 = (t1 + t2) / 2, take the middle value N of Item 2 = (t3 + t4) / 2, and then take the middle value P of M and N = (M + N) / 2.
[0078] If t3 < P < t2, then take P as the optimal temperature value inside the cabinet;
[0079] If P > t2, then take Q = (P + M) / 2. If t3 < Q < t2, then take Q as the optimal temperature value inside the cabinet. If Q > t2, then continue to take the middle value of Q and M until the value is within the t3 - t2 temperature range as the optimal temperature.
[0080] The final calculation formula is: T = ((((t1 + t2) / 2 + (t3 + t4) / 2) / 2 + M) / 2 +...
[0081] If P < t3, then take Q = (P + N) / 2. If t3 < Q < t2, then take Q as the optimal temperature value inside the cabinet. If Q < t3, then continue to take the middle value of Q and N until the value is within the t3 - t2 temperature range as the optimal temperature.
[0082] The final calculation formula is: T = ((((t1 + t2) / 2 + (t3 + t4) / 2) / 2 + N) / 2 +...)
[0083] For example, the suitable refrigeration temperature for coconuts is -5 to -2 °C, and the suitable refrigeration temperature for grapes is -3 to 3 °C. Since -2 - (-3) = 1 < min{-2 - (-5), 3 - (-3)} × 10% = 0.3, there is an optimal temperature. M = (t1 + t2) / 2 = -3.5 °C, N = (t3 + t4) / 2 = 0 °C, and then take the intermediate value P of M and N = (M + N) / 2 = -1.7 °C. Since -1.7 °C > 2 °C, take Q = (P + M) / 2 = -2.6 °C. Because -2.6 °C is between -3 °C and -2 °C, -2.6 °C is the optimal temperature for refrigerating coconuts and grapes.
[0084] 4) Non - intersecting cases
[0085] If the storage temperatures of item 1 and temperature 2 do not intersect, that is, t2 < t3, or t2 - t3 < min{t2 - t1, t4 - t3} × 10%, there is no optimal temperature, and the closed cabinet gives an alarm prompt.
[0086] There are two solutions when there is an alarm. One is to adjust the items in the cabinet, and the other is to appropriately change the storage temperature range of some items according to the actual situation, but it is necessary to evaluate whether changing the temperature range will cause other adverse effects.
[0087] For example, the suitable refrigeration temperature for apples is 0 to 6 °C, and the suitable refrigeration temperature for coconuts is -5 to -2 °C. Since the two temperature ranges have no intersection, there is no optimal temperature.
[0088] Multiple items are stored in the cabinet:
[0089] Step S306, when multiple items are stored in the cabinet, determine the optimal temperature value in the cabinet.
[0090] For multiple items, consider two storage methods: one is to put one item at a time, and the other is to put multiple items at a time. For the case where there are more than two items in the cabinet, the intermediate value of the temperature range of the item stored for the first time is no longer used as an optimal temperature.
[0091] 1) Put one item at a time
[0092] Perform the temperature setting algorithm for the currently placed item and each previously placed item respectively, record the optimal temperature obtained by each algorithm. If there is no optimal temperature between two items, give an alarm. Until all types of items are placed and the door is closed, take the average value of the n(n - 1) / 2 optimal temperatures of the n items in the closed cabinet as the final temperature in the cabinet.
[0093] 2) Put multiple items at a time
[0094] When multiple items are placed at once, first identify all the types of items in the cabinet, then randomly select an item and perform the temperature setting algorithm with the other items. If there is no optimal temperature between a certain item and the other items, an alarm will be triggered. If both exist, select another item other than this item and perform the temperature setting algorithm with the other items, and so on. After closing the door, the average value of the n(n-1) / 2 optimal temperatures of the n items in the closed cabinet is taken as the final cabinet temperature.
[0095] The above is the specific temperature setting algorithm for determining the temperature inside the cabinet. The final determined temperature inside the cabinet is sent to the main board of the closed cabinet condensing unit to control the closed cabinet to automatically adjust to the corresponding temperature.
[0096] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can 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 a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0098] Example 3
[0099] According to another aspect of the embodiments of the present application, an embodiment of a temperature determination device for implementing the above-mentioned temperature determination method is also provided, such as Figure 4 As shown, the device may include:
[0100] A type determination unit 41, configured to determine the type of the object stored in the sealed cabinet according to the image of the object collected from the sealed cabinet;
[0101] A search unit 43, configured to search for a corresponding storage temperature range according to the item type;
[0102] The temperature determination unit 45 is used to determine the optimal cabinet temperature value of the closed cabinet according to the storage temperature ranges of all the types of items.
[0103] Through the above modules, based on the image of the object collected from the sealed cabinet, the type of the object stored in the sealed cabinet is determined by image recognition, the corresponding storage temperature range is found according to the type of the object, and the optimal cabinet temperature value of the sealed cabinet is determined according to the storage temperature range of all the types of the object. In the technical solution of the present application, the type of object placed in the cabinet can be determined by image acquisition and recognition technology, the optimal cabinet temperature value can be determined by a temperature setting algorithm according to the type of object, and the sealed cabinet can be controlled to automatically set to the corresponding storage temperature, thereby realizing intelligent adjustment of the cabinet temperature of the sealed cabinet. The technical problem of cumbersome temperature control operation of the sealed cabinet can be solved.
[0104] Optionally, the temperature determination unit is also used to: when the number of the item types is one, use the middle value of the storage temperature range as the optimal cabinet temperature value; when the number of the item types is multiple, determine the optimal cabinet temperature value of the sealed cabinet by combining the storage temperature ranges of multiple item types.
[0105] Optionally, the temperature determination unit is also used to: obtain the interval relationship between the storage temperature intervals of the two types of items; determine the suitable storage temperatures of the two types of items based on the interval relationship between the storage temperature intervals of the two types of items, and then determine the optimal cabinet temperature value based on all suitable storage temperatures.
[0106] Optionally, the temperature determination unit is further used to: determine that there are no suitable storage temperatures for the two types of items when a first storage temperature interval [t1, t2] of a first type of item among the two types of items does not intersect with a second storage temperature interval [t3, t4] of a second type of item among the two types of items; determine that there are no suitable storage temperatures for the two types of items or use an intermediate value of the intersection interval as the suitable storage temperature for the two types of items when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion, wherein: The proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%; when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3 and the proportion of the intersection interval is not less than the preset proportion, or when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
[0107] Optionally, the temperature determination unit is also used to: when the first storage temperature interval [t1, t2] of the first item type among the two item types contains the second storage temperature interval of the second item type among the two item types, obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t4, use P as the suitable storage temperature; if P is less than t3 or greater than t4, obtain an intermediate value Q between P and N; if Q is between t3 and t4, use Q as the suitable storage temperature, otherwise take an intermediate value of Q and N, and use the obtained intermediate value to update the value of Q until the obtained value of Q is between t3 and t4.
[0108] Optionally, the temperature determination unit is further configured to: when the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t2, use P as the appropriate storage temperature; if P is greater than t2, the middle value of P and M is obtained as Q; if Q is between t3 and t2, Q is used as the suitable storage temperature, otherwise the middle value of Q and M is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2; if P is less than t3, the middle value of P and N is obtained as Q; if Q is between t3 and t2, Q is used as the suitable storage temperature, otherwise the middle value of Q and N is taken, and the value of Q is updated using the obtained middle value until the value of Q is between t3 and t2.
[0109] Optionally, the temperature determination unit is further used to: when the number of the item types is n, take the average value of n(n-1) / 2 suitable storage temperatures as the optimal cabinet temperature value, wherein n is a natural number greater than or equal to 2.
[0110] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in a corresponding hardware environment, can be implemented by software, and can also be implemented by hardware, wherein the hardware environment includes a network environment.
[0111] Example 4
[0112] According to another aspect of the embodiment of the present application, a closed cabinet is provided, including a temperature determination device. Specific implementation methods can refer to the above embodiments.
[0113] Example 5
[0114] This embodiment provides an electronic device (such as a refrigerator, an air purifier, or other household appliances), the electronic device comprising: a processor 201, a memory 202, and a transmission device 203, such as Figure 5 As shown, the terminal may also include an input and output device 204; wherein:
[0115] The memory 202 can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 202, that is, implementing the above-mentioned method. The memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0116] The transmission device 203 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 203 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 203 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
[0117] Specifically, the memory 202 is used to store application programs.
[0118] The processor 201 may call the application program stored in the memory 202 through the transmission device 203 to execute the steps in the above embodiment.
[0119] Example 6
[0120] The embodiment of the present application provides a software for executing the technical solutions described in the above embodiments and preferred implementation modes.
[0121] An embodiment of the present application provides a non-volatile computer storage medium, which stores computer executable instructions. The computer executable instructions can execute the method for editing the content in a document in any of the above method embodiments.
[0122] The above-mentioned software is stored in the above-mentioned storage medium, which includes but is not limited to: a CD, a floppy disk, a hard disk, an erasable memory, etc.
[0123] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0124] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
[0125] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0126] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0127] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0128] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, device bus, etc. The server is similar to the general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.
[0129] (5) Other electronic devices with data interaction functions, such as televisions, large-screen cars, etc.
[0130] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining temperature, characterized in that: The method comprises: Determining the type of the object stored in the sealed cabinet based on the image of the object collected from the sealed cabinet; Find the corresponding storage temperature range according to the item type; Determining the optimal temperature value inside the sealed cabinet according to the storage temperature ranges of all the types of items; Determining the optimal temperature value inside the sealed cabinet according to the storage temperature ranges of the plurality of item types includes: Obtaining an interval relationship between storage temperature intervals of two types of items; Determine the suitable storage temperature of the two types of items according to the interval relationship between the storage temperature intervals of the two types of items, and then determine the optimal cabinet temperature value according to all the suitable storage temperatures; Determining suitable storage temperatures for the two types of items according to the interval relationship between the storage temperature intervals of the two types of items includes: In the case where a first storage temperature interval [t1, t2] of a first item type among the two item types does not intersect with a second storage temperature interval [t3, t4] of a second item type among the two item types, determining that there is no suitable storage temperature for the two item types; When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion, it is determined that there are no suitable storage temperatures for the two types of items or the middle value of the intersection interval is used as the suitable storage temperature for the two types of items, wherein the proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%; When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, or when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
2. The method according to claim 1, characterized in that Determining the optimal temperature value inside the sealed cabinet according to the storage temperature ranges of all the types of items includes: When the number of the item type is one, the middle value of the storage temperature range is used as the optimal cabinet temperature value; In the case where there are multiple types of items, the optimal temperature value inside the closed cabinet is determined by combining the storage temperature ranges of the multiple types of items.
3. The method according to claim 1, characterized in that: In the case where there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], determining suitable storage temperatures for the two types of items according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4] includes: In the case where the first storage temperature interval [t1, t2] of the first item type among the two item types contains the second storage temperature interval of the second item type among the two item types, obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t4, use P as the suitable storage temperature; if P is less than t3 or greater than t4, obtain an intermediate value Q between P and N; if Q is between t3 and t4, use Q as the suitable storage temperature, otherwise take an intermediate value of Q and N, and use the obtained intermediate value to update the value of Q until the obtained value of Q is between t3 and t4.
4. The method according to claim 1, characterized in that: When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, determining the suitable storage temperatures of the two types of items according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4], including: Obtain a first intermediate value M of the first storage temperature interval [t1, t2] and a second intermediate value N of the second storage temperature interval [t3, t4]; obtain an intermediate value P of the first intermediate value M and the second intermediate value N; if P is between t3 and t2, use P as the suitable storage temperature; if P is greater than t2, obtain an intermediate value Q between P and M; if Q is between t3 and t2, use Q as the suitable storage temperature, otherwise take an intermediate value of Q and M, and use the obtained intermediate value to update the value of Q until the obtained value of Q is between t3 and t2; if P is less than t3, obtain an intermediate value Q between P and N; if Q is between t3 and t2, use Q as the suitable storage temperature, otherwise take an intermediate value of Q and N, and use the obtained intermediate value to update the value of Q until the obtained value of Q is between t3 and t2.
5. The method according to any one of claims 1 to 4, characterized in that: Determining suitable storage temperatures for the two types of items according to the interval relationship between the storage temperature intervals of the two types of items, and then determining the optimal cabinet temperature value according to all suitable storage temperatures, including: When the number of the item types is n, the average value of n(n-1) / 2 suitable storage temperatures is used as the optimal cabinet temperature value, where n is a natural number greater than or equal to 2.
6. A device for determining temperature, characterized in that: The device comprises: A type determination unit, used to determine the type of the object stored in the sealed cabinet based on the image of the object collected from the sealed cabinet; A search unit, used to search for a corresponding storage temperature range according to the item type; A temperature determination unit, used to determine an optimal internal temperature value of the sealed cabinet according to the storage temperature ranges of all the types of items; The temperature determination unit is further used to: obtain the interval relationship between the storage temperature intervals of the two types of items; determine the suitable storage temperatures of the two types of items according to the interval relationship between the storage temperature intervals of the two types of items, and then determine the optimal cabinet temperature value according to all the suitable storage temperatures; The temperature determination unit is further configured to: determine that there is no suitable storage temperature for the two types of items when a first storage temperature interval [t1, t2] of a first type of item among the two types of items does not intersect with a second storage temperature interval [t3, t4] of a second type of item among the two types of items; When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is less than a preset proportion, it is determined that there are no suitable storage temperatures for the two types of items or the middle value of the intersection interval is used as the suitable storage temperature for the two types of items, wherein the proportion is (t2-t3) / min{(t2-t1), (t4-t3)}*100%; When the first storage temperature interval [t1, t2] intersects with the second storage temperature interval [t3, t4], t1≤t3, and the proportion of the intersection interval is not less than the preset proportion, or when there is an inclusion relationship between the first storage temperature interval [t1, t2] and the second storage temperature interval [t3, t4], the suitable storage temperature of the two types of items is determined according to the middle value of the first storage temperature interval [t1, t2] and the middle value of the second storage temperature interval [t3, t4].
7. A closed cabinet, characterized in that: A device for determining temperature comprising the temperature as claimed in claim 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 5.
