Method for displaying content of liquid in container, refrigeration equipment and storage medium

Through the combination of infrared imaging and flood filling algorithms, the correction index of visible light and short-wave infrared photos solves the problem of accuracy in identifying the liquid inventory of liquid containers in the refrigerator, achieving accurate display and intuitive observation of liquid content.

CN118799792APending Publication Date: 2024-10-18QINDAO HAIER REFRIGERATOR CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310402068.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology cannot accurately determine the liquid inventory of non-transparent liquid containers in the refrigerator, making it difficult for users to restock in time. Moreover, different liquid densities and packaging make it difficult to convert weight into volume.

Method used

Infrared imaging is used to obtain the liquid level boundary position, combined with the flood filling algorithm to calculate the liquid level height, and through the correction index adjustment of visible light and short-wave infrared photos, the liquid content is accurately identified and marked on the visible light photos.

Benefits of technology

It achieves accurate display of the liquid content of each bottle, with small errors and more accurate detection. Users can intuitively feel the remaining amount of liquid, avoiding the difficulty of weight conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799792A_ABST
    Figure CN118799792A_ABST
Patent Text Reader

Abstract

The invention discloses a method for displaying the content of liquid in a container, refrigeration equipment and a storage medium. The method comprises the steps that an image in a refrigerator is obtained, and position information of the liquid storage container in the image is recognized; the liquid level boundary position in the liquid storage container in the refrigerator is obtained based on infrared imaging; the height position information of the liquid level boundary position of the liquid storage container is calculated through a flooding filling algorithm, and the corresponding liquid storage container in the image is marked according to the height position information of the liquid level boundary position; according to the scheme, the residual liquid content of each bottle can be displayed, and a user can conveniently and intuitively feel; the segmentation surface of the liquid level identified by adopting the flooding filling algorithm is very distinct, so that compared with the prior art, the error is smaller, and the detection is more accurate; according to the scheme, ordinary visible light photos and short-wave infrared photos are further provided, the liquid content is detected through the short-wave infrared photos, the liquid content is displayed on ordinary visible light, each bottle can be clearly observed while the liquid level is displayed, and more intuition is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of liquid display in a container in a refrigerator, and in particular to a method for displaying the liquid content in a container, a refrigeration device and a storage medium. Background Art

[0002] Refrigerators often store liquid containers with non-transparent packaging, such as juice, milk, and beverages. If you cannot finish drinking them at one time and store them in the refrigerator, you will forget the remaining amount after a period of time. Users will not be able to accurately grasp the inventory of ingredients and find it difficult to judge whether to restock.

[0003] The weighing method used in the prior art cannot determine the specific source of weight loss after taking out multiple items at one time, and if a new liquid container is put in, the weighing scheme will be confusing. In addition, because different liquids have different densities and packaging, it is difficult to convert weight into volume. Summary of the invention

[0004] The purpose of the present invention is to provide a method for displaying the liquid content in a container, a refrigeration device and a storage medium, so as to solve the problem in the prior art that the liquid inventory in the liquid container bottle stored in the refrigerator cannot be accurately known, and thus the liquid cannot be replenished in time.

[0005] To achieve one of the above-mentioned purposes of the invention, one embodiment of the present invention provides a method for displaying the liquid content in a container, the method comprising: acquiring an image inside a refrigerator, and identifying position information of a liquid storage container in the image; acquiring the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging; using a flood filling algorithm to calculate the height position information of the liquid level boundary position of the liquid storage container, and marking the corresponding liquid storage container in the image according to the height position information of the liquid level boundary position.

[0006] As a further improvement of the present invention, the method also includes: the flood filling algorithm calculates the height of the liquid level boundary position, including: setting multiple seed starting positions, the multiple seed starting positions are respectively located at the bottom pixel points of the liquid storage container in the infrared imaging; setting an algorithm threshold, the algorithm threshold is: the average value of all grayscale values ​​within a preset height higher than the seed starting position; flooding the pixel points within a preset range value from the seed starting position upwards based on the algorithm threshold; obtaining the flood height value of each seed column, calculating the average value and using the average value as the height of the liquid level boundary position.

[0007] As a further improvement of the present invention, the method further includes: the image inside the refrigerator is a visible light photograph.

[0008] As a further improvement of the present invention, the method also includes: calculating a correction index based on the position deviation of the visible light photograph and the short-wave infrared photograph obtained by the infrared imaging; adjusting the height position information of the liquid level boundary position in the short-wave infrared photograph by the correction index and marking it on the liquid storage container in the visible light photograph.

[0009] As a further improvement of the present invention, the method also includes the step of "obtaining the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging", including: adjusting the position information of the liquid storage container in the visible light photograph according to the correction index; and identifying the liquid level boundary position of the liquid storage container corresponding to the position information in the short-wave infrared photograph based on the adjusted position information of the liquid storage container.

[0010] As a further improvement of the present invention, the method also includes the step of "adjusting the height position information of the liquid level boundary position in the short-wave infrared photograph by a correction index and marking it on the liquid storage container in the visible light photograph", specifically including: extracting the liquid storage container image in the short-wave infrared photograph, calculating the height position information of the liquid level boundary position in the liquid storage container image by using a flood filling algorithm; marking the height position information of the liquid level boundary position in the visible light photograph.

[0011] As a further improvement of the present invention, the method also includes: the calculation method of the correction index includes: establishing a two-dimensional coordinate plane; mapping the visible light photograph and the short-wave infrared photograph in the two-dimensional coordinate plane through a fixed relationship between the distances between the visible light photograph and the short-wave infrared photograph and the corresponding shooting sources based on shooting sources at different positions; calculating the number of pixels Md of the short-wave infrared photograph corresponding to the lateral offset distance d and / or the number of pixels Mk corresponding to the longitudinal offset distance k in the two-dimensional coordinate plane relative to the visible light photograph; adjusting the position information of the liquid storage container and the position information of the liquid level height based on the number of pixels Md of the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k.

[0012] The present invention also provides a refrigeration device, comprising a camera, a memory and a processor, wherein the camera is used to capture images inside a refrigerator; the memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in any one of the above-mentioned methods for displaying the liquid content in a container are implemented.

[0013] As a further improvement of the present invention, the refrigeration equipment also includes: two cameras are provided and installed on the opening and closing door of the refrigeration equipment, for taking pictures when the opening and closing door reaches a preset angle, and the preset angle is the angle of the opening and closing door when the camera is officially in the refrigerator.

[0014] The present invention also provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the method for displaying the liquid content in a container as described in any one of the above items.

[0015] Compared with the prior art, the present invention has the following beneficial effects: the present solution can specifically display the remaining liquid content of each bottle, which is convenient for users to intuitively experience; the flood filling algorithm is adopted, and the liquid surface segmentation surface identified by the algorithm is clear-cut, and the error is smaller and the detection is more accurate compared with the prior art.

[0016] This solution also provides the ability to take ordinary visible light photos and short-wave infrared photos. The liquid content is detected by short-wave infrared photos and displayed under ordinary visible light. While displaying the liquid level, each bottle can be clearly observed, which is more intuitive. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of the method for displaying the liquid content in a container according to the present invention.

[0018] Figure 2 It is a schematic diagram of flood filling of the present invention.

[0019] Figure 3 It is a schematic diagram of taking average values ​​of different heights of each row of seeds after being filled with water in the present invention.

[0020] Figure 4 The present invention is a flow chart of a method for directly identifying the liquid level in a short-wave infrared photo and displaying the liquid content in a liquid storage container in a visible light photo.

[0021] Figure 5 The present invention is a flow chart of a method for calculating the position information of the liquid storage container in a short-wave infrared photo by using the position information of the liquid storage container in a visible light photo and displaying the liquid content in the container in the visible light photo.

[0022] Figure 6 It is a schematic diagram of the deviation between the visible light photograph and the short-wave infrared photograph of the present invention.

[0023] Figure 7 It is a flow chart of the correction index calculation method of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0025] In the first embodiment of the present invention, a method for displaying the liquid content in a container is provided. Although the present application provides the following implementation or process Figure 1 The method operation steps shown are based on routine or no creative labor, and the execution order of the steps in the method that do not have a necessary causal relationship in logic is not limited to the execution order provided in the implementation mode of this application. Figure 1 As shown, a method for displaying the liquid content in a container, the steps are as follows:

[0026] S1: Acquire an image inside the refrigerator and identify the position information of the liquid storage container in the image; specifically, take a photo of the inside of the refrigerator, and the shooting area may be canned beverage bottles or other containers for storing liquids. In a preferred embodiment of the present invention, a separate space may be provided in the refrigerator for storing liquid containers, and a camera is installed in the area for photographing the containers.

[0027] S2: Obtaining the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging. It should be noted that infrared imaging is used to capture and form a short-wave infrared photo of the liquid storage container inside the refrigerator, and the captured area is the same as the area of ​​the liquid storage container captured in step S1. The short-wave infrared photo captured by infrared imaging can show the volume of the liquid in the liquid storage container.

[0028] S3: Calculate the height position information of the liquid level boundary position of the liquid storage container using a flood filling algorithm, and mark the corresponding liquid storage container in the image according to the height position information of the liquid level boundary position.

[0029] In a specific embodiment of the present invention, the flood filling algorithm can adopt the Floodfill algorithm. The Floodfill method can set all pixels in the area to new values, and determine a set of seed points (the seed points are points in the area) through certain rules, and then determine whether the neighboring pixels of the seed points form a connected domain with the seeds, so as to decide whether to fill them, until all pixels in the area are found or the boundary of the contour line is reached.

[0030] In the first embodiment of the present invention, Figure 2 As shown in Figure 1, the flood filling algorithm specifically includes the following steps:

[0031] A plurality of seed starting positions are set, and the plurality of seed starting positions are respectively located at the bottom pixel points of the liquid storage container in the infrared imaging; preferably, the number of seeds is consistent with the pixel points of the bottom layer of the liquid storage container in the image, and specifically, each pixel point of the bottom layer can be set as a seed.

[0032] The algorithm threshold is set, and the algorithm threshold is: the average value of all gray values ​​within a preset height higher than the seed starting position. Preferably, the preset height can be set to 30 pixels, that is, the average gray value of each pixel within 30 pixels of each seed height is calculated, and the average value is the algorithm threshold.

[0033] Pixels are filled with water from the seed starting position upwards based on the algorithm threshold within a preset range. Preferably, the preset range can be 10 grayscale values, i.e., a range of 10 grayscale values ​​above the algorithm threshold and 10 grayscale values ​​below the algorithm threshold. Within this range, water is filled upwards from the seed starting position.

[0034] like Figure 3 As shown, the flooding height value of each seed column is obtained, the average value is calculated and the average value is used as the height of the liquid level boundary position.

[0035] Finally, the position information of the height of the liquid level boundary position is marked in the image.

[0036] In the first embodiment of the present invention, it also includes the determination of empty bottles: the gray value range is 0-255, where 0 is black and 255 is white. Preferably, through experimental measurement, when the algorithm threshold calculated when setting the algorithm threshold is greater than 90, it can be considered as an empty bottle.

[0037] In the first embodiment of the present invention, the image inside the refrigerator taken by the camera is a visible light photo.

[0038] Furthermore, the deep learning training set can be used to identify liquid storage containers in visible light photos, including containers containing liquids. Through the deep learning algorithm of big data, various liquid container bottles can be identified, including beverage bottles, cans, bottled dairy products, and bottled and canned alcoholic beverages.

[0039] In the first embodiment of the present invention, a short-wave infrared photograph is obtained by infrared imaging.

[0040] In one embodiment of the present invention, Figure 4 As shown, the object detection model is used to extract the position information of the liquid storage container in the short-wave infrared photo and identify the liquid level boundary position in the liquid storage container. The object detection model can use the Fast RCNN algorithm or the Faster-RCNN algorithm or the Mask RCNN algorithm or the R-FCN algorithm or the FPN algorithm.

[0041] Preferably, the object detection model can use a two-stage algorithm. The first stage focuses on finding the location of the object and obtaining a suggestion box to ensure sufficient precision and recall. The second stage focuses on classifying the suggestion box and finding a more precise location. The two-stage algorithm has higher precision and more accurate recognition.

[0042] Identifying the liquid level boundary position in the liquid storage container specifically includes:

[0043] After obtaining the position information of the liquid storage container in the short-wave infrared photo, the region of interest is cut out according to the position information of the liquid storage container. The region of interest (ROI) is: a required area in the captured image. In an embodiment of the present invention, the region may be the area where the liquid storage container is located. The region of interest (ROI) is commonly used in the field of machine vision recognition, and is usually used to identify and extract targets in an image.

[0044] In one embodiment of the present invention, the correction index is calculated based on the position deviation of the visible light photo and the short-wave infrared photo. It should be noted that since the position settings of the cameras for taking the visible light photo and the short-wave infrared photo are different, the positions of the same target in the corresponding photos also have deviations, such as Figure 6 shown.

[0045] Furthermore, the height position information of the liquid level boundary position in the liquid storage container within the region of interest in the short-wave infrared photo is calculated through a flood filling algorithm.

[0046] Furthermore, the height position information of the liquid level boundary position in the short-wave infrared photo is adjusted by the correction index and marked on the liquid storage container in the visible light photo.

[0047] It should be noted that if Figure 7 As shown, the calculation method of the correction index includes:

[0048] Create a two-dimensional coordinate plane.

[0049] Based on shooting sources at different positions, the visible light photo and the short-wave infrared photo are mapped in a two-dimensional coordinate plane through a fixed relationship between the distances between the visible light photo and the short-wave infrared photo and the corresponding shooting sources; specifically, the difference between the installation positions of the two cameras is collected, such as: when the two cameras are installed on the same refrigerator door or are installed on two refrigerator doors respectively, there is a deviation in the horizontal distance between the two, or there is a deviation in the vertical height direction of the two. Based on this deviation, the viewing angles of the two cameras shooting the same object have a deviation. Preferably, the camera is controlled to take pictures of the items in the refrigerator when it reaches a preset position to reduce visual deviation. Specifically, the preset position is: when the refrigerator door is turned so that the camera lens is facing the refrigerator to take pictures, the angle of the refrigerator door is the trigger threshold. After adjustment, the angle is preferably set to 45°.

[0050] It should be explained that the fixed relationship between the distances of the above-mentioned visible light photo and the short-wave infrared photo and the corresponding shooting sources represents the shooting range of the camera when shooting an object and the relationship between the distance between the camera and the object and the size of the object in the photo. The visible light photo and the short-wave infrared photo are mapped in a two-dimensional coordinate plane according to the two positioned shooting sources.

[0051] Calculating the number of pixels Md of the shortwave infrared photograph corresponding to the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k in the two-dimensional coordinate plane relative to the visible light photograph;

[0052] The position information of the liquid storage container and the position information of the liquid level height are adjusted based on the number of pixels Md of the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k.

[0053] In the second embodiment of the present invention, the solution different from the first embodiment is: using the object detection model to extract the position information of the liquid storage container in the visible light photo and calculate the position information of the liquid storage container in the short-wave infrared photo, such as Figure 5 It should be noted that the object detection model can be used to identify the liquid storage container in the visible light photo with higher accuracy, better recognition effect and faster recognition. The specific steps include:

[0054] The image inside the refrigerator is obtained. The image inside the refrigerator is a visible light photo. The position information of the liquid storage container in the visible light photo is identified through the object detection model.

[0055] Furthermore, the position of the liquid level boundary in the liquid storage container in the refrigerator is obtained based on infrared imaging; specifically, the short-wave infrared photo is obtained by infrared imaging. The correction index is calculated based on the position deviation of the visible light photo and the short-wave infrared photo obtained by infrared imaging; it should be noted that since the position settings of the cameras for taking visible light photos and taking short-wave infrared photos are offset, the positions of the same target in the corresponding photos also have deviations, such as Figure 6 As shown in the figure, the bottom part is the camera for taking visible light photos and the camera for taking short-wave infrared photos. The size and shooting range of the pictures taken by the cameras for taking visible light photos and short-wave infrared photos are the same, so the size of the visible light photos and the short-wave infrared photos are the same at long distances. However, due to the position deviation of the two cameras when taking pictures, the target position information in the visible light photos and short-wave infrared photos will be offset.

[0056] The step of “obtaining the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging” includes:

[0057] adjusting the position information of the liquid storage container in the visible light photograph according to the correction index;

[0058] Based on the adjusted position information of the liquid storage container, the position of the liquid level boundary of the liquid storage container corresponding to the position information in the short-wave infrared photo is identified. Specifically, based on the adjusted position information of the liquid storage container, the position information of the liquid storage container in the short-wave infrared photo is calculated, and based on the position information of the liquid storage container in the short-wave infrared photo, a region of interest is cropped and the position information of the liquid level boundary of the liquid storage container in the region of interest is calculated using a flood filling algorithm;

[0059] Finally, the position information of the liquid level boundary is marked in the visible light photograph.

[0060] In the second embodiment of the present invention, Figure 7 As shown, the calculation method of the correction index includes:

[0061] Create a two-dimensional coordinate plane.

[0062] Based on shooting sources at different positions, the visible light photo and the short-wave infrared photo are mapped in a two-dimensional coordinate plane through a fixed relationship between the distances between the visible light photo and the short-wave infrared photo and the corresponding shooting sources. Specifically, the difference between the installation positions of the two cameras is collected, such as: when the two cameras are installed on the same refrigerator door or are installed on two refrigerator doors respectively, there is a deviation in the horizontal distance between the two, or there is a deviation in the vertical height direction of the two. Based on this deviation, the viewing angles of the two cameras shooting the same object have a deviation. Preferably, the camera is controlled to take pictures of the items in the refrigerator when it reaches a preset position to reduce visual deviation. Specifically, the preset position is: when the refrigerator door is turned so that the camera lens is facing the refrigerator to take pictures, the angle of the refrigerator door is the trigger threshold. After adjustment, the angle is preferably set to 45°.

[0063] It should be explained that the fixed relationship between the distances of the above-mentioned visible light photo and the short-wave infrared photo and the corresponding shooting sources represents the shooting range of the camera when shooting an object and the relationship between the distance between the camera and the object and the size of the object in the photo. The visible light photo and the short-wave infrared photo are mapped in a two-dimensional coordinate plane according to the two positioned shooting sources.

[0064] Furthermore, the number of pixels Md of the shortwave infrared photograph corresponding to the lateral offset distance d and / or the number of pixels Mk corresponding to the longitudinal offset distance k in the two-dimensional coordinate plane are calculated relative to the visible light photograph.

[0065] Further, the position information of the liquid storage container and the position information of the liquid level height are adjusted based on the number of pixels Md of the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k.

[0066] In a third embodiment of the present invention, a refrigeration device is provided, including a camera, a memory, and a processor.

[0067] The camera is used to capture images inside the refrigerator.

[0068] The memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the method for displaying the liquid content in the container are implemented.

[0069] In one embodiment of the present invention, two cameras are provided and installed on the opening and closing doors of the refrigeration equipment, and can be installed on the same door or on two doors respectively. The camera is used to take pictures when the opening and closing doors reach a preset angle, and the preset angle is the angle of the opening and closing doors when the camera is facing directly into the refrigerator; preferably, the angle of the opening and closing doors can be set to 45 degrees. When the opening and closing door is detected to be 45 degrees, the camera is controlled to take pictures. Ordinary visible light pictures and short-wave infrared pictures are taken respectively.

[0070] In a fourth embodiment of the present invention, a storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for displaying the liquid content in a container in the above embodiment are implemented.

[0071] In summary, the present invention aims to solve the problem in the prior art that the amount of liquid in a liquid container bottle stored in the refrigerator cannot be accurately known in the field of smart refrigerators, and thus the liquid cannot be replenished in time.

[0072] Therefore, the present invention mainly adopts taking short-wave infrared photos, which can identify the content of liquid in the liquid storage container, and calculates the liquid height through the flood filling algorithm and displays it on the visible light photo. One embodiment of the present invention adopts taking visible light photos and short-wave infrared photos, identifying the position of the liquid level boundary on the short-wave infrared photo, and calculating the height by the flood filling algorithm and marking it on the visible light photo. Another embodiment of the present invention adopts taking visible light photos and short-wave infrared photos, identifying the position of the liquid storage container on the visible light photo, calculating the position of the liquid storage container on the short-wave infrared photo, and then using the flood filling algorithm to calculate the height position information of the liquid level boundary and marking it on the visible light photo.

[0073] Through the above technical scheme, the present invention can display the liquid content on the visible light photograph, which is convenient for observing the liquid content in each liquid storage container, and the display effect is more intuitive; using the flood filling algorithm, the liquid level height calculation of the short-wave infrared photo is more accurate, and a correction index is introduced in the scheme of the present invention to adjust the liquid level height, so that the error is smaller when the liquid level height position information is transferred from the short-wave infrared photo to the visible light photo.

[0074] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and modules can refer to the corresponding processes in the aforementioned method implementation methods and will not be repeated here.

[0075] In several embodiments provided in the present application, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system implementation described above is only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, systems or modules, which can be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0076] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of hardware plus software functional modules. The above-mentioned integrated module implemented in the form of software functional modules can be stored in a computer-readable storage medium. The above-mentioned software functional modules are stored in a storage medium, including a number of instructions for a computer system (which can be a personal computer, a server, or a network system, etc.) or a processor (processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0077] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned implementation modes, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned implementation modes, 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 various implementation modes of the present application.

Claims

1. A method for displaying the liquid content in a container, It is characterized in that include: Obtain an image of the refrigerator and identify the location information of the liquid storage container in the image; Acquire the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging; A flood filling algorithm is used to calculate the height position information of the liquid level boundary position of the liquid storage container, and the corresponding liquid storage container in the image is marked according to the height position information of the liquid level boundary position.

2. The method for displaying the liquid content in a container according to claim 1, It is characterized in that The flood filling algorithm calculates the height of the liquid level boundary position by: Setting a plurality of seed starting positions, wherein the plurality of seed starting positions are respectively located at bottom pixel points of the liquid storage container in infrared imaging; Setting an algorithm threshold, wherein the algorithm threshold is: an average value of all grayscale values ​​within a preset height higher than the seed starting position; Fill the pixels with water from the seed starting position upwards within the preset range based on the algorithm threshold; The flooding height value of each seed column is obtained, and the average value is calculated and used as the height of the liquid level boundary position.

3. The method for displaying the liquid content in a container according to claim 1, It is characterized in that The image inside the refrigerator is a visible light photo.

4. The method for displaying the liquid content in a container according to claim 3, It is characterized in that Calculating a correction index based on position deviations between the visible light photo and the short-wave infrared photo obtained by infrared imaging; The height position information of the liquid level boundary position in the short-wave infrared photo is adjusted by the correction index and marked on the liquid storage container in the visible light photo.

5. The method for displaying the liquid content in a container according to claim 4, It is characterized in that The step of "obtaining the liquid level boundary position in the liquid storage container in the refrigerator based on infrared imaging" includes: adjusting the position information of the liquid storage container in the visible light photograph according to the correction index; Based on the adjusted position information of the liquid storage container, the liquid level boundary position of the liquid storage container corresponding to the position information in the short-wave infrared photo is identified.

6. The method for displaying the liquid content in a container according to claim 5, It is characterized in that The step of "adjusting the height position information of the liquid level boundary position in the short-wave infrared photo by means of a correction index and marking it on the liquid storage container in the visible light photo" specifically includes: Extracting the liquid storage container image in the short-wave infrared photo, and calculating the height position information of the liquid level boundary position in the liquid storage container image by using a flood filling algorithm; The height position information of the liquid level boundary position is marked in the visible light photograph.

7. The method for displaying the liquid content in a container according to claim 6, It is characterized in that The calculation method of the correction index includes: Establish a two-dimensional coordinate plane; Based on shooting sources at different positions, the visible light photo and the short-wave infrared photo are mapped in a two-dimensional coordinate plane by a fixed relationship between the distances between the visible light photo and the short-wave infrared photo and the corresponding shooting sources; Calculating the number of pixels Md of the shortwave infrared photograph corresponding to the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k in the two-dimensional coordinate plane relative to the visible light photograph; The position information of the liquid storage container and the position information of the liquid level height are adjusted based on the number of pixels Md of the lateral offset distance d and / or the number of pixels Mk of the longitudinal offset distance k.

8. A refrigeration device, comprising a camera, a memory and a processor, It is characterized in that The camera is used to capture images inside the refrigerator; The memory stores a computer program that can be run on the processor, and when the program is executed on the processor, the steps in the method for displaying the liquid content in a container as claimed in any one of claims 1 to 7 are implemented.

9. The refrigeration device according to claim 8, It is characterized in that The cameras are provided with two and installed on the opening and closing doors of the refrigeration equipment, and are used to take pictures when the opening and closing doors reach a preset angle. The preset angle is the angle of the opening and closing doors when the camera is facing directly into the refrigerator.

10. A storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method for displaying the liquid content in a container according to any one of claims 1 to 7 are implemented.