Container capacity measurement method, device, electronic device and storage medium

The method uses a disturbance function to calculate liquid quality and height data, combined with density, to create a relationship curve for accurate volume measurement of irregular containers, overcoming the inefficiencies of existing scanning methods.

CN120008708BActive Publication Date: 2025-07-15E SURFING IOT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510509190.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-07-15
Estimated Expiration
2045-04-22

AI Technical Summary

Technical Problem

Existing container capacity measurement methods are difficult to accurately measure containers of different shapes, especially because of the high cost of three-dimensional scanner equipment, complex operation and difficulty in modeling small containers.

Method used

By calculating the liquid mass data and liquid level height data in the container to be measured based on the preset perturbation function, combining the liquid density, a relationship curve between the liquid level and the liquid volume is established, and real-time data is obtained using non-contact sensors and mass sensors to construct a container capacity measurement method.

Benefits of technology

It realizes efficient capacity measurement of containers of different shapes, simplifies the operation process, reduces equipment costs, and avoids the complexity of three-dimensional modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120008708B_ABST
    Figure CN120008708B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of container capacity measurement, and discloses a container capacity measurement method, device, electronic device and storage medium. The method comprises: delivering a liquid to be measured into the container to be measured, and obtaining a real-time liquid top height difference data set and a real-time mass data set of the container to be measured during the delivery of the liquid to be measured, calculating the liquid mass data and liquid level height data in the container to be measured according to a perturbation function, establishing a relationship curve between the liquid level height and the liquid volume based on the liquid level height data, the liquid mass data and the density of the liquid to be measured, and calculating the capacity of the container to be measured at each liquid level height through the relationship curve; establishing a relationship curve between the liquid level height and the liquid volume of the container to be measured through the liquid mass data and the liquid level height data in the container to be measured calculated based on a preset perturbation function, so as to measure the container capacity, thereby improving the efficiency of container capacity measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of container capacity measurement, and in particular, to a container capacity measurement method, device, electronic device and storage medium. Background Art

[0002] In many industrial fields such as food fermentation and alcohol brewing, the accurate measurement of liquid volume in irregular containers is still a problem that needs to be solved. The commonly used method for measuring container volume is to indirectly calculate the internal volume of the container by detecting the liquid level of the container, but the premise of this method is to model the container volume and obtain volume data at any height in the container.

[0003] Container volume modeling usually adopts the 3D scanner modeling method. This method uses a 3D scanner to scan the inside of the container to obtain a scan file, and then obtains the 3D model of the container through software processing, and then obtains the volume data of any height in the container through an algorithm. However, the 3D scanner equipment is expensive, requires certain professional knowledge and skills for the operator, and the post-processing data is complicated; in addition, this method is greatly affected by environmental factors. For containers with smooth inner walls, a large number of identification points need to be affixed to the inner wall to ensure the accuracy of the scan. The operation is relatively cumbersome, which greatly increases the labor cost; in addition, containers vary in shape and size. For smaller containers, due to the small internal space, it is difficult to scan the inside using a 3D scanner, resulting in the limitation of the 3D scanner modeling method for modeling smaller containers.

[0004] Therefore, in order to solve the technical problem that the existing container capacity measurement method is difficult to accurately measure the capacity of containers of different shapes, a container capacity measurement method, device, electronic device and storage medium are urgently needed. Summary of the invention

[0005] The purpose of the present application is to provide a container capacity measurement method, device, electronic device and storage medium. By calculating the liquid mass data and liquid level height data in the container to be tested based on a preset perturbation function, combined with the density of the liquid to be tested, a relationship curve between the liquid level height and the liquid volume of the container to be tested is established to obtain the capacity of the container to be tested at each liquid level height, to measure the container capacity, and to solve the problem that the existing container capacity measurement method is difficult to accurately measure the capacity of containers of different shapes. A corresponding relationship curve is constructed through the liquid level change and volume change of the liquid to be tested in the container to be tested, thereby obtaining the capacity of the container to be tested at each liquid level height, thereby improving the container capacity measurement efficiency.

[0006] In a first aspect, the present application provides a method for measuring container capacity, comprising:

[0007] Transfer the liquid to be measured into the container to be measured, and obtain the real-time liquid head height difference dataset and real-time mass dataset of the container to be measured during the process of transferring the liquid to be measured; the real-time liquid head height difference dataset is a dataset of the difference between the internal height of the container to be measured and the real-time liquid height;

[0008] According to a preset perturbation function, combine the real-time liquid head height difference dataset and the real-time mass dataset to calculate the liquid mass data and liquid level height data in the container to be measured;

[0009] Based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured;

[0010] Through the relationship curve, calculate the capacity of the container to be measured at each liquid level height.

[0011] The container capacity measurement method provided by this application can measure the capacity of a container. By calculating the liquid mass data and liquid level height data in the container to be measured based on a preset perturbation function, and combining the density of the liquid to be measured, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height and realize the measurement of the container capacity, solving the problem that the existing container capacity measurement methods are difficult to accurately measure the capacity of containers with different shapes. By constructing a corresponding relationship curve through the change of the liquid level height and volume of the liquid to be measured in the container to be measured, the capacity of the container to be measured at each liquid level height is obtained, improving the efficiency of container capacity measurement.

[0012] Optionally, transferring the liquid to be measured into the container to be measured, and obtaining the real-time liquid head height difference dataset and real-time mass data of the container to be measured during the process of transferring the liquid to be measured includes:

[0013] Obtain the internal height and initial mass of the container to be measured before inputting the liquid to be measured;

[0014] Transfer the liquid to be measured into the container to be measured to obtain the real-time liquid head height difference and real-time mass of the container to be measured during the process of transferring the liquid to be measured; the real-time liquid head height difference is the difference between the internal height of the container to be measured and the real-time liquid height;

[0015] Summarize the internal height of the container, the initial mass, the real-time liquid head height difference, and the real-time mass to obtain the real-time liquid head height difference dataset and real-time mass dataset of the container to be measured.

[0016] Optionally, transferring the liquid to be measured into the container to be measured to obtain the real-time liquid head height difference and real-time mass of the container to be measured during the process of transferring the liquid to be measured includes:

[0017] Transfer the liquid to be measured into the container to be measured, and during the process of transferring the liquid to be measured, obtain the preliminary real-time liquid level height difference and the preliminary real-time mass of the container to be measured in real time;

[0018] Perform filtering processing on the preliminary real-time liquid level height difference and the preliminary real-time mass respectively to eliminate the noise caused by liquid flow, and obtain the real-time liquid level height difference and the real-time mass.

[0019] Optionally, summarize the internal height of the container, the initial mass, the real-time liquid level height difference and the real-time mass to obtain the real-time liquid level height difference data set and the real-time mass data set of the container to be measured, including:

[0020] Judge whether the real-time liquid level height difference is less than or equal to a preset critical threshold;

[0021] If not, continue to transfer the liquid to obtain the real-time liquid level height difference and the real-time mass at the same moment;

[0022] If so, stop transferring the liquid, and based on the real-time liquid level height difference and the real-time mass obtained at the same moment, combine the internal height of the container and the initial mass to construct the real-time liquid level height difference data set and the real-time mass data set.

[0023] The container capacity measurement method provided by the present application can measure the container capacity. By means of a preset critical threshold, it is determined whether the liquid level height of the container to be measured reaches the internal height of the container, so as to avoid unnecessary data acquisition when the liquid level is too high, improve the data acquisition efficiency, and ensure the efficiency and effectiveness of data acquisition.

[0024] Optionally, the preset perturbation function includes a preset liquid level perturbation function and a preset mass perturbation function.

[0025] Optionally, according to the preset perturbation function, combine the real-time liquid level height difference data set and the real-time mass data set to calculate the liquid mass data and the liquid level height data in the container to be measured, including:

[0026] Based on the real-time liquid level height difference data set, combine the preset liquid level perturbation function to calculate the liquid level height data of the liquid to be measured in the container to be measured at different moments;

[0027] Based on the real-time mass data set, combine the preset mass perturbation function to calculate the liquid mass data of the liquid to be measured in the container to be measured at different moments.

[0028] Optionally, based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured, including:

[0029] Obtain the density of the liquid to be measured;

[0030] According to the liquid mass data and the density of the liquid to be measured, calculate the liquid volume data;

[0031] Based on the liquid level height data and the liquid volume data, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured.

[0032] The container capacity measurement method provided by this application can measure the container capacity. Calculate the liquid volume data by dividing the liquid mass data by the density of the liquid to be measured, and establish a relationship curve between the liquid level height and the liquid volume of the container to be measured based on the volume data and the liquid level height. The capacity of the container to be measured at each liquid level height can be determined through the relationship curve, improving the container capacity measurement efficiency.

[0033] In a second aspect, this application provides a container capacity measurement device, including:

[0034] An acquisition module, configured to transport the liquid to be measured into the container to be measured, and acquire a real-time liquid level height difference data set and a real-time mass data set of the container to be measured during the transportation of the liquid to be measured; the real-time liquid level height difference data set is a data set of the difference between the internal height of the container to be measured and the real-time liquid height;

[0035] A first calculation module, configured to calculate the liquid mass data and the liquid level height data in the container to be measured according to a preset perturbation function, in combination with the real-time liquid level height difference data set and the real-time mass data set;

[0036] A construction module, configured to establish a relationship curve between the liquid level height and the liquid volume of the container to be measured based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured;

[0037] A second calculation module, configured to calculate the capacity of the container to be measured at each liquid level height through the relationship curve.

[0038] The container capacity measuring device calculates the liquid mass data and liquid level height data in the container to be measured based on a preset perturbation function, combines the density of the liquid to be measured, and establishes a relationship curve between the liquid level height and the liquid volume of the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height, realize the measurement of the container capacity, solve the problem that the existing container capacity measurement method is difficult to accurately measure the capacity of containers with different shapes, construct the corresponding relationship curve through the change of the liquid level height and the volume change of the liquid to be measured in the container to be measured, thereby obtain the capacity of the container to be measured at each liquid level height, and improve the container capacity measurement efficiency.

[0039] In a third aspect, the present application provides an electronic device, including a processor and a memory. The memory stores a computer program executable by the processor. When the processor executes the computer program, it runs the steps in the container capacity measurement method described above.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it runs the steps in the container capacity measurement method described above.

[0041] Beneficial effects: The container capacity measurement method, device, electronic device and storage medium provided by the present application calculate the liquid mass data and liquid level height data in the container to be measured based on a preset perturbation function, combine the density of the liquid to be measured, and establish a relationship curve between the liquid level height and the liquid volume of the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height, realize the measurement of the container capacity, solve the problem that the existing container capacity measurement method is difficult to accurately measure the capacity of containers with different shapes, construct the corresponding relationship curve through the change of the liquid level height and the volume change of the liquid to be measured in the container to be measured, thereby obtain the capacity of the container to be measured at each liquid level height, and improve the container capacity measurement efficiency. Description of the Drawings

[0042] Figure 1 It is a flowchart of the container capacity measurement method provided by an embodiment of the present application.

[0043] Figure 2 It is a schematic structural diagram of the container capacity measurement device provided by an embodiment of the present application.

[0044] Figure 3 It is a schematic structural diagram of the electronic device provided by an embodiment of the present application.

[0045] Label description: 1. Acquisition module; 2. First calculation module; 3. Establishment module; 4. Second calculation module; 301. Processor; 302. Memory; 303. Communication bus. Detailed Embodiments

[0046] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.

[0047] It should be noted that: similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc. are only used for differential description and cannot be understood as indicating or implying relative importance.

[0048] Please refer to Figure 1 , Figure 1 which is a method for measuring the container capacity in some embodiments of the present application, used to measure the container capacity, and includes the steps of:

[0049] Step S101: Transport the liquid to be measured into the container to be measured, and obtain the real-time liquid surface height difference data set and real-time mass data set of the container to be measured during the process of transporting the liquid to be measured; the real-time liquid surface height difference data set is the data set of the difference between the internal height of the container to be measured and the real-time liquid height.

[0050] Step S102: According to the preset perturbation function, combine the real-time liquid surface height difference data set and the real-time mass data set to calculate the liquid mass data and liquid surface height data in the container to be measured.

[0051] Step S103: Based on the liquid surface height data, liquid mass data and the density of the liquid to be measured, establish a relationship curve between the liquid surface height and the liquid volume of the container to be measured.

[0052] Step S104: Calculate the capacity of the container to be measured at each liquid surface height through the relationship curve.

[0053] The method for measuring the capacity of a container calculates the liquid mass data and liquid level height data in the container to be measured based on a preset perturbation function, combines the density of the liquid to be measured, and establishes a relationship curve between the liquid level height and the liquid volume of the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height, realizing the measurement of the container capacity, solving the problem that the existing container capacity measurement methods are difficult to accurately measure the capacities of containers with different shapes, constructing a corresponding relationship curve through the change in the liquid level height and the volume change of the liquid to be measured in the container to be measured, thereby obtaining the capacity of the container to be measured at each liquid level height and improving the container capacity measurement efficiency.

[0054] Specifically, in step S101, first, a height sensor needs to be installed above the container to be measured. The height sensor can be non-contact, such as an ultrasonic sensor or a laser sensor. And, the container to be measured is placed on a mass sensor such as a high-precision electronic scale. Then, a liquid delivery device is set up, such as a combination device of a liquid supply pool, a water pump, and a conduit, and the liquid to be measured is delivered into the container to be measured at a preset flow rate when measuring the container to be measured. By reading the values on the sensors, the real-time liquid level height difference and the real-time mass of the container to be measured can be obtained. Among them, the conduit and the height sensor can be respectively arranged at both ends above the container to be measured (that is, the conduit and the height sensor are kept at the farthest distance as much as possible) to reduce the interference caused by the liquid impact and liquid level perturbation generated when the liquid to be measured is delivered into the container to be measured to the liquid level detection.

[0055] Specifically, in step S101, the liquid to be measured is delivered into the container to be measured, and the real-time liquid level height difference data set and the real-time mass data of the container to be measured during the process of delivering the liquid to be measured are obtained, including:

[0056] Obtain the internal height and initial mass of the container before the liquid to be measured is input;

[0057] Deliver the liquid to be measured into the container to be measured to obtain the real-time liquid level height difference and the real-time mass of the container to be measured during the process of delivering the liquid to be measured; the real-time liquid level height difference is the difference between the internal height of the container and the real-time liquid height;

[0058] Summarize the internal height of the container, the initial mass, the real-time liquid level height difference, and the real-time mass to obtain the real-time liquid level height difference data set and the real-time mass data set of the container to be measured.

[0059] In step S101, the internal height of the container represents the maximum height of the container, and the initial mass represents the mass of the empty container. Before injecting the liquid to be measured, it is necessary to obtain the internal height and the initial mass of the container to be measured. That is, the distance from the top to the bottom inside the container to be measured is obtained through a height sensor as the internal height of the container, and the initial mass is obtained by placing the empty container to be measured on a mass sensor. Among them, the liquid to be measured may be water, alcohol or other liquids, and the densities of these liquids are usually known. Therefore, they can be directly read from a preset database without additional measurement steps, which can simplify the operation process.

[0060] Specifically, in step S101, the liquid to be measured is transported into the container to be measured to obtain the real-time liquid level height difference and the real-time mass of the container to be measured during the transportation of the liquid to be measured, including:

[0061] Transport the liquid to be measured into the container to be measured, and during the transportation of the liquid to be measured, obtain the preliminary real-time liquid level height difference and the preliminary real-time mass of the container to be measured in real time;

[0062] Perform filtering processing on the preliminary real-time liquid level height difference and the preliminary real-time mass respectively to eliminate the noise caused by the liquid flow, and obtain the real-time liquid level height difference and the real-time mass.

[0063] In step S101, during the liquid transportation process, the original data of the liquid level height difference and the mass of the container to be measured are collected in real time through sensors as the preliminary real-time liquid level height difference and the preliminary real-time mass. Due to the influence of the shaking during the liquid injection process or the noise of the sensor itself, the collected original data (i.e., the preliminary real-time liquid level height difference and the preliminary real-time mass) may fluctuate. To eliminate these fluctuations, filtering processing is performed on the preliminary real-time liquid level height difference and the preliminary real-time mass data. For example, the moving average filtering method is adopted, and a window containing 5 data points is set. Each new data point is averaged with its previous 4 data points as the filtered data. Through this filtering process, the random noise in the preliminary real-time liquid level height difference and the preliminary real-time mass data is effectively filtered out, and the smoother and more stable real-time liquid level height difference and real-time mass data are obtained. These filtered data can more accurately reflect the real state of the liquid in the container, thereby improving the accuracy of the subsequent container capacity calculation.

[0064] Among them, for the filtering processing, appropriate filtering algorithms and parameters can be selected according to different application scenarios and noise characteristics to achieve the optimal filtering effect and measurement accuracy. For example, median filtering and Kalman filtering and other algorithms can also be used for processing, and median filtering and Kalman filtering and other algorithms are existing technologies, which will not be elaborated here.

[0065] Specifically, in step S101, the internal height of the container, the initial mass, the real-time liquid level height difference, and the real-time mass are aggregated to obtain the real-time liquid level height difference data set and the real-time mass data set of the container to be measured, including:

[0066] Determine whether the real-time liquid level height difference is less than or equal to a preset critical threshold;

[0067] If not, continue to transport the liquid to obtain the real-time liquid level height difference and the real-time mass at the same moment;

[0068] If so, stop transporting the liquid, and based on the obtained real-time liquid level height difference and real-time mass at the same moment, combined with the internal height of the container and the initial mass, construct the real-time liquid level height difference data set and the real-time mass data set.

[0069] In step S101, during the measurement of the container capacity, in order to efficiently and accurately obtain the data set for subsequent calculations, a critical threshold judgment mechanism is adopted. First, a critical threshold is preset, which represents the minimum allowable value of the liquid level height difference of the container, that is, the value for judging whether the liquid level is close to the top of the container, and it can be adjusted according to the actual application scenario and accuracy requirements. During the process of transporting the liquid to the container to be measured, the real-time liquid level height difference is continuously monitored. The real-time liquid level height difference at the current moment is compared with the preset critical threshold. If the real-time liquid level height difference is greater than or equal to the critical threshold, it indicates that there is still a certain distance between the liquid level and the top of the container, and the data acquisition will continue to run to obtain new real-time liquid level height difference and real-time mass data. On the contrary, if the real-time liquid level height difference is less than the critical threshold, it means that the liquid level is already very close to the top of the container, and continuing to transport the liquid and collect data may not be meaningful, but instead will increase data redundancy and resource waste. At this time, the liquid transportation should be stopped immediately, and the last set of collected real-time liquid level height difference and real-time mass data should be recorded. The finally constructed data set contains the key data points during the entire process from the start of liquid transportation to the liquid level approaching the top of the container, and at the same time avoids the ineffective data acquisition when the liquid level is too high, ensuring the efficiency and effectiveness of data acquisition. Among them, the internal height of the container is aggregated into the real-time liquid level height difference data set as the liquid level height difference at the initial moment, and the initial mass is aggregated into the real-time mass data set as the real-time mass at the initial moment.

[0070] Specifically, the preset perturbation functions include a preset liquid surface perturbation function and a preset mass perturbation function; in step S102, according to the preset perturbation functions, combined with the real-time liquid level height difference data set and the real-time mass data set, calculate the liquid mass data and the liquid surface height data in the container to be measured, including:

[0071] Based on the real-time liquid head height difference dataset and combined with a preset liquid surface disturbance function, the liquid surface height data of the liquid to be measured in the container to be measured at different times is calculated;

[0072] Based on the real-time mass dataset and combined with a preset mass disturbance function, the liquid mass data of the liquid to be measured in the container to be measured at different times is calculated.

[0073] In step S102, the real-time liquid head height difference dataset reflects the change of the difference between the internal height of the container and the real-time liquid height over time. The liquid surface disturbance function is used to process these data to eliminate or reduce the measurement errors caused by factors such as liquid surface fluctuations, so as to obtain more accurate liquid surface height data. Similarly, the liquid mass data is obtained by combining the real-time mass dataset with the preset mass disturbance function. The real-time mass dataset records the change of the total mass of the container and the liquid inside it over time. The mass disturbance function is applied to process these mass data, aiming to correct the deviation caused by external vibrations or other interference factors to the mass measurement, and then obtain more accurate liquid mass data. By applying the liquid surface disturbance function and the mass disturbance function respectively and making them act on the corresponding real-time liquid head height difference dataset and real-time mass dataset, data optimization processing for the respective characteristics of the liquid surface height and liquid mass can be achieved. Thus, the accuracy of the finally obtained liquid surface height data and liquid mass data is effectively improved.

[0074] Among them, the calculation formula for the liquid surface height data is specifically:

[0075] ;

[0076] Among them, is the liquid surface height at the t-th moment; is the internal height of the container; is the real-time liquid head height difference at the t-th moment in the real-time liquid head height difference dataset, and t represents the t-th moment; is the preset liquid surface disturbance function, , is the flow rate of the liquid to be measured, g is the acceleration due to gravity, with a value of 9.81 m / s 2 , and A is the cross-sectional area of the outlet of the conduit for transporting the liquid to be measured.

[0077] Through the calculation formula for the liquid surface height data, the liquid surface height corresponding to each real-time liquid head height difference is calculated to obtain the liquid surface height data.

[0078] The calculation formula for the liquid mass data is specifically:

[0079] ;

[0080] Among them, is the liquid mass at the t-th moment; is the initial mass; is the real-time mass at the t-th moment in the real-time mass dataset; is a preset mass perturbation function, , is the density of the liquid to be measured.

[0081] Through the calculation formula of liquid mass data, the liquid mass corresponding to each real-time mass is calculated to obtain the liquid mass data.

[0082] Specifically, in step S103, based on the liquid level height data, liquid mass data, and the density of the liquid to be measured, a relationship curve between the liquid level height and liquid volume of the container to be measured is established, including:

[0083] Obtain the density of the liquid to be measured;

[0084] According to the liquid mass data and the density of the liquid to be measured, calculate the liquid volume data;

[0085] Based on the liquid level height data and the liquid volume data, establish a relationship curve between the liquid level height and liquid volume of the container to be measured.

[0086] In step S103, since the liquid to be measured is a known liquid, the density of the liquid to be measured can be obtained by methods such as consulting a database. Using the liquid mass data and the liquid density, through the calculation of mass divided by density, the liquid volume data corresponding to the liquid mass data is obtained, that is , is the liquid volume at the t-th moment, thus realizing the conversion from mass data to volume data. Associate the liquid level height data and the calculated liquid volume data, and establish a relationship curve between the liquid level height and liquid volume. For example, the liquid level height data can be used as the abscissa, and the liquid volume data can be used as the ordinate. By means of data fitting, a relationship curve between the liquid level height and liquid volume is established, and thus the capacity characteristic curve of the container is obtained.

[0087] In some alternative embodiments, a relationship expression between the liquid level height and liquid volume can be constructed through a machine learning algorithm (such as a random forest algorithm, a support vector machine algorithm, or a K-nearest neighbor algorithm, etc.) to construct the corresponding relationship curve. Among them, the machine learning algorithm is a prior art and will not be elaborated here.

[0088] By establishing a relationship curve between the liquid level height and liquid volume, there is no need to use complex equipment such as a 3D scanner. Only through simple calculations and data association, the capacity curve of the container can be established, with simple operation and low cost, especially suitable for the capacity measurement of containers of various shapes.

[0089] Specifically, in step S104, after the relationship curve is established, the capacity of the container at various liquid level heights can be obtained by querying the relationship curve. For example, if the capacity of the container at a certain liquid level height is needed, it is only necessary to find the point corresponding to the liquid level height on the relationship curve, and its ordinate value is the container capacity at the height. In this way, the capacity measurement of containers of various shapes can be realized without complex three-dimensional modeling.

[0090] As can be seen from the above, the container capacity measurement method, by conveying the liquid to be measured into the container to be measured, and obtaining the real-time liquid top height difference data set and the real-time mass data set of the container to be measured during the conveying process of the liquid to be measured, the real-time liquid top height difference data set is a data set of the difference between the internal height of the container to be measured and the real-time liquid height of the container to be measured, according to a preset perturbation function, combined with the real-time liquid top height difference data set and the real-time mass data set, the liquid mass data and the liquid level height data in the container to be measured are calculated, based on the liquid level height data, the liquid mass data and the density of the liquid to be measured, a relationship curve between the liquid level height and the liquid volume of the container to be measured is established, and the liquid level to be measured is calculated through the relationship curve. The capacity of the container at each liquid level height; thus, by calculating the liquid mass data and liquid level height data in the container to be tested based on a preset perturbation function, combined with the density of the liquid to be tested, a relationship curve between the liquid level height and the liquid volume of the container to be tested is established to obtain the capacity of the container to be tested at each liquid level height, thereby measuring the container capacity, solving the problem that the existing container capacity measurement method is difficult to accurately measure the capacity of containers of different shapes, and constructing a corresponding relationship curve through the liquid level change and volume change of the liquid to be tested in the container to be tested, thereby obtaining the capacity of the container to be tested at each liquid level height, thereby improving the container capacity measurement efficiency.

[0091] refer to Figure 2 The present application provides a container capacity measuring device for measuring the container capacity, comprising:

[0092] Acquisition module 1 is used to transport the liquid to be tested into the container to be tested, and to obtain a real-time liquid top height difference data set and a real-time mass data set of the container to be tested during the process of transporting the liquid to be tested; the real-time liquid top height difference data set is a data set of the difference between the internal height of the container to be tested and the real-time liquid height;

[0093] The first calculation module 2 is used to calculate the liquid mass data and liquid level data in the container to be tested according to a preset disturbance function and in combination with the real-time liquid top height difference data set and the real-time mass data set;

[0094] Establishing module 3, for establishing a relationship curve between the liquid level and the liquid volume of the container to be tested based on the liquid level data, the liquid mass data and the density of the liquid to be tested;

[0095] The second calculation module 4 is used to calculate the capacity of the container to be measured at each liquid level height through a relationship curve.

[0096] The container capacity measuring device calculates the liquid mass data and liquid level height data in the container to be measured based on a preset perturbation function, combines the density of the liquid to be measured, and establishes a relationship curve between the liquid level height and the liquid volume of the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height, realize the measurement of the container capacity, solve the problem that the existing container capacity measurement methods are difficult to accurately measure the capacity of containers with different shapes, construct a corresponding relationship curve through the change of the liquid level height and the volume change of the liquid to be measured in the container to be measured, so as to obtain the capacity of the container to be measured at each liquid level height, and improve the container capacity measurement efficiency.

[0097] Specifically, before the acquisition module 1 executes, it is first necessary to install a height sensor above the container to be measured. The height sensor can be non-contact, such as an ultrasonic sensor or a laser sensor. And place the container to be measured on a mass sensor such as a high-precision electronic scale. Then, set up a liquid delivery device, such as a combination device of a liquid supply pool, a water pump, and a conduit, and deliver the liquid to be measured into the container to be measured at a preset flow rate when measuring the container to be measured. By reading the values on the sensors, the real-time liquid top height difference and the real-time mass of the container to be measured can be obtained. Among them, the conduit and the height sensor can be respectively arranged at both ends above the container to be measured (that is, the conduit and the height sensor are kept as far apart as possible) to reduce the interference of the liquid impact and liquid level disturbance generated when the liquid to be measured is delivered into the container to be measured on the liquid level detection.

[0098] Specifically, when the acquisition module 1 delivers the liquid to be measured into the container to be measured and obtains the real-time liquid top height difference data set and the real-time mass data of the container to be measured during the process of delivering the liquid to be measured, it executes:

[0099] Obtain the internal height and initial mass of the container before the liquid to be measured is input into the container to be measured;

[0100] Deliver the liquid to be measured into the container to be measured to obtain the real-time liquid top height difference and the real-time mass of the container to be measured during the process of delivering the liquid to be measured; the real-time liquid top height difference is the difference between the internal height of the container to be measured and the real-time liquid height;

[0101] Summarize the internal height of the container, the initial mass, the real-time liquid top height difference, and the real-time mass to obtain the real-time liquid top height difference data set and the real-time mass data set of the container to be measured.

[0102] When the acquisition module 1 is in operation, the internal height of the container represents the maximum height of the container, and the initial mass represents the mass of the empty container. Before injecting the liquid to be measured, it is necessary to obtain the internal height and initial mass of the container to be measured. That is, the distance from the top to the bottom inside the container to be measured is obtained through a height sensor as the internal height of the container, and the initial mass is obtained by placing the empty container to be measured on a mass sensor. Among them, the liquid to be measured may be water, alcohol or other liquids, and the densities of these liquids are usually known, so they can be directly read from a preset database without additional measurement steps, which can simplify the operation process.

[0103] Specifically, when the acquisition module 1 conveys the liquid to be measured into the container to be measured to obtain the real-time liquid level height difference and real-time mass of the container to be measured during the process of conveying the liquid to be measured, it executes:

[0104] Convey the liquid to be measured into the container to be measured, and during the process of conveying the liquid to be measured, obtain the preliminary real-time liquid level height difference and preliminary real-time mass of the container to be measured in real time;

[0105] Perform filtering processing on the preliminary real-time liquid level height difference and preliminary real-time mass respectively to eliminate the noise caused by liquid flow, and obtain the real-time liquid level height difference and real-time mass.

[0106] When the acquisition module 1 is in operation, it drives the liquid conveying device to convey the liquid to be measured into the container to be measured. During the liquid conveying process, the original data of the liquid level height difference and mass of the container to be measured are collected in real time through sensors as the preliminary real-time liquid level height difference and preliminary real-time mass. Due to the influence of the shaking during the liquid injection process or the noise of the sensor itself, the collected original data (i.e., the preliminary real-time liquid level height difference and preliminary real-time mass) may fluctuate. To eliminate these fluctuations, filtering processing is performed on the preliminary real-time liquid level height difference and preliminary real-time mass data. For example, the moving average filtering method is adopted, and a window containing 5 data points is set. Each new data point is averaged with its previous 4 data points to obtain the filtered data. Through this filtering process, the random noise in the preliminary real-time liquid level height difference and preliminary real-time mass data is effectively filtered out, and the more smooth and stable real-time liquid level height difference and real-time mass data are obtained. These filtered data can more accurately reflect the real state of the liquid in the container, thereby improving the accuracy of the subsequent container capacity calculation.

[0107] Among them, for the filtering processing, appropriate filtering algorithms and parameters can be selected according to different application scenarios and noise characteristics to achieve the optimal filtering effect and measurement accuracy. For example, median filtering and Kalman filtering and other algorithms can also be used for processing, and median filtering and Kalman filtering and other algorithms are existing technologies and will not be elaborated here.

[0108] Specifically, when the acquisition module 1 obtains the internal height, initial mass, real-time liquid level height difference, and real-time mass inside the aggregation container to obtain the real-time liquid level height difference dataset and real-time mass dataset of the container to be measured, the following is executed:

[0109] Determine whether the real-time liquid level height difference is less than or equal to a preset critical threshold;

[0110] If not, continue to transport the liquid to obtain the real-time liquid level height difference and real-time mass at the same moment;

[0111] If so, stop transporting the liquid, and based on the obtained real-time liquid level height difference and real-time mass at the same moment, combined with the internal height and initial mass of the container, construct the real-time liquid level height difference dataset and real-time mass dataset.

[0112] When the acquisition module 1 is executing and during the process of measuring the container capacity, in order to efficiently and accurately obtain the dataset for subsequent calculations, a critical threshold judgment mechanism is adopted. First, a critical threshold is preset. This critical threshold represents the minimum allowable value of the liquid level height difference of the container, that is, the value for judging whether the liquid level is close to the top of the container, and it can be adjusted according to the actual application scenario and accuracy requirements. During the process of transporting the liquid to the container to be measured, the real-time liquid level height difference is continuously monitored. Compare the real-time liquid level height difference at the current moment with the preset critical threshold. If the real-time liquid level height difference is greater than or equal to the critical threshold, it indicates that there is still a certain distance from the liquid level to the top of the container, and the data acquisition will continue to run to obtain new real-time liquid level height difference and real-time mass data. On the contrary, if the real-time liquid level height difference is less than the critical threshold, it means that the liquid level is already very close to the top of the container. Continuing to transport the liquid and collect data may not be meaningful and will instead increase data redundancy and resource waste. At this time, the liquid transportation should be stopped immediately, and the last set of collected real-time liquid level height difference and real-time mass data should be recorded. The finally constructed dataset contains the key data points during the entire process from the start of liquid transportation to the liquid level approaching the top of the container, and at the same time avoids invalid data acquisition when the liquid level is too high, ensuring the efficiency and effectiveness of data acquisition. Among them, the internal height of the container is summarized into the real-time liquid level height difference dataset as the liquid level height difference at the initial moment, and the initial mass is summarized into the real-time mass dataset as the real-time mass at the initial moment.

[0113] Specifically, the preset perturbation functions include a preset liquid surface perturbation function and a preset mass perturbation function; when the first calculation module 2 calculates the liquid mass data and liquid surface height data in the container to be measured according to the preset perturbation functions, combined with the real-time liquid level height difference dataset and the real-time mass dataset, the following is executed:

[0114] Based on the real-time liquid head height difference data set, combined with a preset liquid surface disturbance function, the liquid surface height data of the liquid to be measured in the container to be measured at different times is calculated;

[0115] Based on the real-time mass data set, combined with a preset mass disturbance function, the liquid mass data of the liquid to be measured in the container to be measured at different times is calculated.

[0116] When the first calculation module 2 is executed, the real-time liquid head height difference data set reflects the change of the difference between the internal height of the container and the real-time liquid height over time. The liquid surface disturbance function is used to process these data to eliminate or reduce the measurement errors caused by factors such as liquid surface fluctuations, so as to obtain more accurate liquid surface height data. Similarly, the liquid mass data is obtained by combining the real-time mass data set with the preset mass disturbance function. The real-time mass data set records the change of the total mass of the container and the liquid inside it over time. The mass disturbance function is applied to process these mass data, aiming to correct the deviation caused by external vibration or other interference factors to the mass measurement, and then obtain more accurate liquid mass data. By applying the liquid surface disturbance function and the mass disturbance function respectively, and making them act on the corresponding real-time liquid head height difference data set and real-time mass data set respectively, the data optimization processing for the respective characteristics of the liquid surface height and the liquid mass can be realized. Thus, the accuracy of the finally obtained liquid surface height data and liquid mass data is effectively improved.

[0117] Among them, the calculation formula for the liquid surface height data is specifically:

[0118] ;

[0119] Among them, is the liquid surface height at the t-th moment; is the internal height of the container; is the real-time liquid head height difference at the t-th moment in the real-time liquid head height difference data set, and t represents the t-th moment; is the preset liquid surface disturbance function, , is the flow rate of the liquid to be measured, g is the acceleration due to gravity, with a value of 9.81 m / s 2 , and A is the cross-sectional area of the outlet of the conduit for conveying the liquid to be measured.

[0120] Through the calculation formula for the liquid surface height data, the liquid surface height corresponding to each real-time liquid head height difference is calculated to obtain the liquid surface height data.

[0121] The calculation formula for the liquid mass data is specifically:

[0122] ;

[0123] Among them, is the liquid mass at the t-th moment; is the initial mass; is the real-time mass at the t-th moment in the real-time mass dataset; is a preset mass perturbation function, , is the density of the liquid to be measured.

[0124] Through the calculation formula of liquid mass data, the liquid mass corresponding to each real-time mass is calculated to obtain liquid mass data.

[0125] Specifically, when the establishing module 3 establishes the relationship curve between the liquid level height and the liquid volume of the container to be measured based on the liquid level height data, liquid mass data and the density of the liquid to be measured, it executes:

[0126] Obtain the density of the liquid to be measured;

[0127] According to the liquid mass data and the density of the liquid to be measured, calculate the liquid volume data;

[0128] Based on the liquid level height data and the liquid volume data, establish the relationship curve between the liquid level height and the liquid volume of the container to be measured.

[0129] When the establishing module 3 executes, since the liquid to be measured is a known liquid, the density of the liquid to be measured can be obtained by methods such as consulting a database. Using the liquid mass data and the liquid density, through the calculation of mass divided by density, the liquid volume data corresponding to the liquid mass data is obtained, that is , is the liquid volume at the t-th moment, thus realizing the conversion from mass data to volume data. Correlate the liquid level height data and the calculated liquid volume data, and establish the relationship curve between the liquid level height and the liquid volume. For example, the liquid level height data can be used as the abscissa and the liquid volume data as the ordinate, and through data fitting, establish the relationship curve between the liquid level height and the liquid volume, thereby obtaining the capacity characteristic curve of the container.

[0130] In some alternative embodiments, a relationship expression between the liquid level height and the liquid volume can be constructed through machine learning algorithms (such as random forest algorithm, support vector machine algorithm or K-nearest neighbor algorithm, etc.) to construct the corresponding relationship curve. Among them, the machine learning algorithm is a prior art and will not be elaborated here.

[0131] By establishing the relationship curve between the liquid level height and the liquid volume, there is no need to use complex devices such as 3D scanners. Only through simple calculations and data correlation, the capacity curve of the container can be established, with simple operation and low cost, especially suitable for measuring the capacity of containers of various shapes.

[0132] Specifically, when the second calculation module 4 is executing, after the relationship curve is established, the capacity of the container at each liquid level height can be obtained by querying this relationship curve. For example, if it is necessary to know the capacity of the container at a specific liquid level height, only need to find the point corresponding to the liquid level height on this relationship curve, and its ordinate value is the capacity of the container at this height. Thus, without the need for complex three-dimensional modeling, the capacity measurement of containers of various shapes can be achieved.

[0133] As can be seen from the above, the container capacity measurement device transports the liquid to be measured into the container to be measured, and obtains the real-time liquid level height difference data set and real-time mass data set of the container to be measured during the process of transporting the liquid to be measured. The real-time liquid level height difference data set is the data set of the difference between the internal height of the container to be measured and the real-time liquid height. According to the preset perturbation function, combining the real-time liquid level height difference data set and the real-time mass data set, the liquid mass data and liquid level height data in the container to be measured are calculated. Based on the liquid level height data, liquid mass data and the density of the liquid to be measured, a relationship curve between the liquid level height and liquid volume of the container to be measured is established. Through the relationship curve, the capacity of the container to be measured at each liquid level height is calculated; thus, through the liquid mass data and liquid level height data in the container to be measured calculated based on the preset perturbation function, combined with the density of the liquid to be measured, a relationship curve between the liquid level height and liquid volume of the container to be measured is established to obtain the capacity of the container to be measured at each liquid level height, realizing the measurement of the container capacity, solving the problem that the existing container capacity measurement methods are difficult to accurately measure the capacity of containers of different shapes. By constructing the corresponding relationship curve through the change of the liquid level height and volume of the liquid to be measured in the container to be measured, the capacity of the container to be measured at each liquid level height is obtained, improving the container capacity measurement efficiency.

[0134] Please refer to Figure 3 , Figure 3Schematic structural diagram of an electronic device provided by an embodiment of the present application. The present application provides an electronic device, including: a processor 301 and a memory 302. The processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanisms (not marked). The memory 302 stores a computer program executable by the processor 301. When the electronic device runs, the processor 301 executes the computer program to perform the container capacity measurement method in any optional implementation manner of the above embodiment, so as to implement the following functions: conveying a liquid to be measured into a container to be measured, and obtaining a real-time liquid level height difference data set and a real-time mass data set of the container to be measured during the process of conveying the liquid to be measured. The real-time liquid level height difference data set is a data set of the difference between the internal height of the container to be measured and the real-time liquid height. According to a preset perturbation function, combining the real-time liquid level height difference data set and the real-time mass data set, calculating to obtain the liquid mass data and the liquid level height data in the container to be measured, and based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured, establishing a relationship curve between the liquid level height and the liquid volume of the container to be measured, and calculating the capacity of the container to be measured at each liquid level height through the relationship curve.

[0135] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it executes the container capacity measurement method in any optional implementation manner of the above embodiment to achieve the following functions: conveying a liquid to be measured into a container to be measured, and obtaining a real-time liquid level height difference data set and a real-time mass data set of the container to be measured during the process of conveying the liquid to be measured. The real-time liquid level height difference data set is a data set of the difference between the internal height of the container to be measured and the real-time liquid height. According to a preset perturbation function, combining the real-time liquid level height difference data set and the real-time mass data set, calculating the liquid mass data and the liquid level height data in the container to be measured, and based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured, establishing a relationship curve between the liquid level height and the liquid volume of the container to be measured, and calculating the capacity of the container to be measured at each liquid level height through the relationship curve. Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, abbreviated as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviated as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, abbreviated as EPROM), programmable read-only memory (Programmable Red-Only Memory, abbreviated as PROM), read-only memory (Read-Only Memory, abbreviated as ROM), magnetic memory, flash memory, magnetic disk or optical disc.

[0136] In the embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.

[0137] In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units. They can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0138] Furthermore, in each embodiment of the present application, each functional module may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

[0139] In this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0140] The above description is only for the embodiments of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for measuring the capacity of a container, which is used to measure the capacity of the container, characterized in that, Including the steps: Transport the liquid to be measured into the container to be measured, and obtain the real-time liquid head height difference data set and real-time mass data set of the container to be measured during the transportation of the liquid to be measured; the real-time liquid head height difference data set is the data set of the difference between the internal height of the container to be measured and the real-time liquid height; According to the preset perturbation function, combine the real-time liquid head height difference data set and the real-time mass data set to calculate the liquid mass data and liquid level height data in the container to be measured; Based on the liquid level height data, the liquid mass data and the density of the liquid to be measured, establish the relationship curve between the liquid level height and the liquid volume of the container to be measured; Through the relationship curve, calculate the capacity of the container to be measured at each liquid level height; The preset perturbation function includes a preset liquid level perturbation function and a preset mass perturbation function; According to the preset perturbation function, combine the real-time liquid head height difference data set and the real-time mass data set to calculate the liquid mass data and liquid level height data in the container to be measured, including: Based on the real-time liquid head height difference data set, combine the preset liquid level perturbation function to calculate the liquid level height data of the liquid to be measured in the container to be measured at different times; Based on the real-time mass data set, combine the preset mass perturbation function to calculate the liquid mass data of the liquid to be measured in the container to be measured at different times; The specific calculation formula for the liquid level height data is: ; wherein, is the liquid level height at the t-th moment; is the internal height of the container; is the real-time liquid head height difference at the t-th moment in the real-time liquid head height difference dataset, and t represents the t-th moment; is a preset liquid level disturbance function, , Q is the flow rate of the liquid to be measured, g is the acceleration due to gravity, and A is the cross-sectional area of the outlet of the conduit for transporting the liquid to be measured; The specific calculation formula for the liquid mass data is: ; Among them, is the liquid mass at the t-th moment; is the initial mass; is the real-time mass at the t-th moment in the real-time mass dataset; is a preset mass perturbation function, , is the density of the liquid to be measured.

2. The method for measuring the container capacity according to claim 1, characterized in that Transport the liquid to be measured into the container to be measured, and obtain the real-time liquid head height difference data set and real-time mass data of the container to be measured during the transportation of the liquid to be measured, including: Obtain the internal height and initial mass of the container to be measured before inputting the liquid to be measured; Transport the liquid to be measured into the container to be measured to obtain the real-time liquid head height difference and real-time mass of the container to be measured during the transportation of the liquid to be measured; the real-time liquid head height difference is the difference between the internal height of the container to be measured and the real-time liquid height; Summarize the internal height of the container, the initial mass, the real-time liquid head height difference and the real-time mass to obtain the real-time liquid head height difference data set and real-time mass data set of the container to be measured.

3. The method for measuring the container capacity according to claim 2, wherein Transport the liquid to be measured into the container to be measured to obtain the real-time liquid head height difference and real-time mass of the container to be measured during the transportation of the liquid to be measured, including: Transport the liquid to be measured into the container to be measured, and during the transportation of the liquid to be measured, obtain the preliminary real-time liquid head height difference and preliminary real-time mass of the container to be measured in real time; Perform filtering processing on the preliminary real-time liquid head height difference and the preliminary real-time mass respectively to eliminate the noise caused by liquid flow and obtain the real-time liquid head height difference and the real-time mass.

4. The method for measuring the container capacity according to claim 2, wherein Summarize the internal height of the container, the initial mass, the real-time liquid head height difference and the real-time mass to obtain the real-time liquid head height difference data set and real-time mass data set of the container to be measured, including: Judge whether the real-time liquid head height difference is less than or equal to a preset critical threshold; If not, continue to transport the liquid to obtain the real-time liquid level height difference and real-time mass at the same moment. If so, stop transporting the liquid, and based on the obtained real-time liquid level height difference and real-time mass at the same moment, combined with the internal height of the container and the initial mass, construct a real-time liquid level height difference data set and a real-time mass data set.

5. The method for measuring the container capacity according to claim 1, characterized in that, Based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured, including: Obtain the density of the liquid to be measured. According to the liquid mass data and the density of the liquid to be measured, calculate the liquid volume data. Based on the liquid level height data and the liquid volume data, establish a relationship curve between the liquid level height and the liquid volume of the container to be measured.

6. A container capacity measuring device for measuring the capacity of a container, characterized in that, Including: An acquisition module for transporting the liquid to be measured into the container to be measured and obtaining the real-time liquid level height difference data set and the real-time mass data set of the container to be measured during the transportation of the liquid to be measured; the real-time liquid level height difference data set is a data set of the difference between the internal height of the container to be measured and the real-time liquid height. A first calculation module for calculating the liquid mass data and the liquid level height data in the container to be measured according to a preset perturbation function, combined with the real-time liquid level height difference data set and the real-time mass data set. A construction module for establishing a relationship curve between the liquid level height and the liquid volume of the container to be measured based on the liquid level height data, the liquid mass data, and the density of the liquid to be measured. A second calculation module for calculating the capacity of the container to be measured at each liquid level height through the relationship curve. The preset perturbation function includes a preset liquid level perturbation function and a preset mass perturbation function. A first calculation module for calculating the liquid mass data and the liquid level height data in the container to be measured according to a preset perturbation function, combined with the real-time liquid level height difference data set and the real-time mass data set, including: Based on the real-time liquid level height difference data set, combined with the preset liquid level perturbation function, calculate the liquid level height data of the liquid to be measured in the container to be measured at different moments. Based on the real-time mass data set, combined with the preset mass perturbation function, calculate the liquid mass data of the liquid to be measured in the container to be measured at different moments. The specific calculation formula for the liquid level height data is: ; wherein, is the liquid level height at the t-th moment; is the internal height of the container; is the real-time liquid head height difference at the t-th moment in the real-time liquid head height difference dataset, and t represents the t-th moment; is a preset liquid level disturbance function, , Q is the flow rate of the liquid to be measured, g is the acceleration due to gravity, and A is the cross-sectional area of the outlet of the conduit for transporting the liquid to be measured; The specific calculation formula for the liquid mass data is: ; Among them, is the liquid mass at the t-th moment; is the initial mass; is the real-time mass at the t-th moment in the real-time mass dataset; is a preset mass perturbation function, , is the density of the liquid to be measured.

7. An electronic device, characterized in that, It includes a processor and a memory, the memory stores a computer program executable by the processor, and when the processor executes the computer program, it runs the steps in the container capacity measurement method according to any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it runs the steps in the container capacity measurement method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Non-contact liquid volume and mass automatic measurement device and measurement method

    CN113237526A

  • Liquid injecting method, liquid injecting device, and automatic capacity measuring device for container

    JP2006044735A

  • Sample injection device and container information acquisition method

    WO2018155117A1