Non-contact liquid weight measuring method and device for irregular container
By analyzing the container image, obtaining characteristic parameters, finding matching preset parameters, and calculating the liquid weight, the problem of understanding the volume-height relationship of wine body weight measurement is solved, and the precise measurement and monitoring efficiency of liquids in irregular containers is improved.
Patent Information
- Application Number
- CN202510112971.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-03-04
AI Technical Summary
In the prior art, accurate measurement of the weight of wine is required to accurately understand the volume-height relationship of wine jars. It is a lot of work to establish this model for each wine jar and it is difficult to achieve.
By acquiring the image information of the container, analyzing and obtaining the characteristic parameters of the container, finding preset parameters that match the characteristic parameters, obtaining the inner wall volume-height ratio, detecting the liquid level height and liquid density, and calculating the liquid weight.
It reduces the monitoring workload of containers, improves monitoring efficiency, and can accurately measure the volume, density and weight of liquids in irregular containers during food fermentation, alcohol aging, etc., ensures understanding of product quality, realizes product value estimates, and prevents economic losses caused by theft and leakage.
Smart Images

Figure CN119555174A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of detection instruments, and in particular to a non-contact liquid weight measurement method for an irregular container and a device thereof. Background Art
[0002] In many industrial fields such as food fermentation and alcohol brewing, accurate measurement of liquid volume, density and weight in irregular containers has always been a problem that needs to be solved urgently.
[0003] Take the wine jars in the liquor industry as an example. In the brewing and storage of Maotai-flavor liquor, companies have long encountered the challenge of accurate measurement of base liquor, and lack effective monitoring and management measures for leakage of wine jars and improper use by internal personnel. At the same time, due to the lack of inventory of core assets, companies have encountered difficulties in asset valuation, property-secured loans or credit line increases.
[0004] The production process of wine jars used to brew Maotai-flavor liquor combines traditional skills with modern technology. Traditional skills rely on the experience and skills of craftsmen, and their shaping is difficult to standardize, greatly affected by human factors, and has different shapes.
[0005] In the prior art, the weight of the wine in the wine jar is measured by measuring the density and volume of the wine in the wine jar in real time. The volume calculation of the wine jar requires modeling the volume-height relationship of the wine jar, and the calculation is based on the height of the wine liquid measured in real time by the sensor.
[0006] At present, similar technical products and equipment only simply realize the function of measuring the weight of the base wine in the wine jar, with poor accuracy, resulting in poor product reliability and difficulty in industrial promotion. Among them, the measurement of the liquid level of the wine body is a contact metering device. The monitoring sensor goes deep into the wine jar. Long-term placement affects the quality of the wine body, and wine companies generally hold reservations; the wine body density monitoring is only carried out by contact measurement before the wine jar is sealed, and the impact of the long-term storage density change of the base wine is not considered, and there is no real-time monitoring; the wine body volume estimation requires the volume-height relationship modeling of each wine jar, which is a huge workload.
[0007] Accurate measurement of wine weight requires accurate knowledge of the volume-height relationship of the wine jar. Building this model for each wine jar is labor-intensive and difficult to achieve. Summary of the invention
[0008] The main purpose of the present invention is to provide a non-contact liquid weight measurement method and device for irregular containers, aiming to solve the technical problems in the prior art that accurate measurement of wine weight requires accurate understanding of the volume-height relationship of the wine jar, and the workload of establishing the model for each wine jar is large.
[0009] To achieve the above object, the present invention provides a non-contact liquid weight measurement method for an irregular container, the non-contact liquid weight measurement method for an irregular container comprising: Get image information of the container; Acquire characteristic parameters of the container according to the image information; Searching a database for preset parameters that match the characteristic parameters; Obtaining an inner wall volume-height ratio associated with the preset parameters; Detecting the liquid level in the container; detecting the density of the liquid in the container; The weight of the liquid in the container is calculated according to the inner wall volume-to-height ratio, the liquid level height, and the liquid density.
[0010] In one embodiment, the step of acquiring characteristic parameters of the container according to the image information includes: Acquire the container mouth position, container bottom position and maximum circumference position of the container according to the image information; Obtaining the maximum circumference position and the container mouth position to calculate the slope parameter of the container; Calculate the height parameter of the container according to the container mouth position, the container bottom position, and the maximum circumference position; Calculate the maximum perimeter parameter of the container according to the maximum perimeter position; The characteristic parameter is obtained according to the slope parameter, the height parameter and the maximum perimeter parameter.
[0011] In one embodiment, the step of calculating the height parameter of the container according to the container mouth position, the container bottom position, and the maximum circumference position comprises: Acquire a first height from the maximum circumference position to the container mouth position; Acquire a second height from the maximum circumference position to the bottom position of the container; Calculate the height parameter according to the first height and the second height; A height ratio parameter of the container is calculated according to the first height and the height parameter.
[0012] In one embodiment, the step of calculating the maximum perimeter parameter of the container according to the maximum perimeter position comprises: Obtaining radius information at the maximum circumference position; The maximum circumference parameter at the maximum circumference position is calculated according to the radius information.
[0013] In one embodiment, the characteristic parameter includes a plurality of sub-characteristic parameters, and the preset parameter includes a plurality of sub-preset parameters; The step of searching the database for preset parameters matching the characteristic parameters comprises: Compare the plurality of sub-feature parameters with the sub-preset parameters corresponding to the preset parameters in the database one by one; The preset parameters matching the characteristic parameters are determined according to the comparison results.
[0014] In one embodiment, the characteristic parameters further include wall thickness distribution parameters; After the step of determining the preset parameters according to the comparison result, the method further includes: Acquire the number of the preset parameters matching the characteristic parameters; When the number of the preset parameters is multiple, obtaining the wall thickness distribution parameter of the container; Obtaining a preset wall thickness feature associated with each of the preset parameters; Comparing the wall thickness distribution parameter with a plurality of the preset wall thickness characteristics one by one; The preset parameter corresponding to the characteristic parameter is determined according to the comparison result.
[0015] In one embodiment, the characteristic parameters further include a fitted outer wall volume-height ratio, and the preset parameters include an outer wall volume-height ratio; The step of searching the database for preset parameters matching the characteristic parameters comprises: Comparing the fitted outer wall volume-height ratio with each outer wall volume-height ratio in the database one by one; The preset parameters matching the characteristic parameters are determined according to the comparison results.
[0016] In one embodiment, the step of searching a database for preset parameters matching the characteristic parameters comprises: Obtain error parameters corresponding to the characteristic parameters and each preset parameter in the database; Calculating a matching error coefficient between the characteristic parameter and the corresponding preset parameter according to the error parameter; The preset parameter matching the characteristic parameter is determined according to the matching error coefficient.
[0017] In one embodiment, the error parameter includes a first sub-error and a second sub-error; The step of calculating the matching error coefficient between the characteristic parameter and the corresponding preset parameter according to the error parameter comprises: Obtaining a first weight ratio of the first sub-error and a second weight ratio of the second sub-error; Calculate the matching error coefficient according to the first sub-error, the first weight ratio, the second sub-error, and the second weight ratio; The matching error coefficient K, the first sub-error m, the first weight ratio M, the second sub-error n and the second weight ratio N satisfy the following relationship: K= M*m+N*n.
[0018] In addition, in order to solve the above problems, the present invention also proposes a non-contact liquid weight measuring device for an irregular container, the non-contact liquid weight measuring device for an irregular container comprising: An image acquisition component, used for acquiring image information of the container; A processing module, the processing module is connected to the image acquisition component by signal; A storage module stores a non-contact liquid weight measurement program for an irregular container, and when the non-contact liquid weight measurement program for an irregular container is executed by a processor, the steps of the non-contact liquid weight measurement method for an irregular container as described above are implemented.
[0019] The technical solution of the present invention obtains image information by photographing the outer surface of the container, obtains characteristic parameters of the container based on analysis of the image information, and then compares the characteristic parameters with preset parameters stored in a database to quickly determine the volume-height ratio of the inner wall of the container. This reduces the workload of monitoring containers and improves monitoring efficiency. In the process of food fermentation, alcohol aging, etc., the volume, density, weight and other indicators of liquids in irregular containers can be accurately measured to ensure a clear understanding of the weight of the products produced, achieve product value estimation, and prevent all economic losses caused by theft and leakage, facilitating refined product management. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0021] Figure 1 It is a schematic flow chart of a first embodiment of a non-contact liquid weight measurement method for an irregular container of the present invention; Figure 2 It is a schematic flow chart of a second embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention; Figure 3It is a schematic flow chart of a third embodiment of a method for non-contact liquid weight measurement of an irregular container according to the present invention; Figure 4 It is a schematic flow chart of a fourth embodiment of a non-contact liquid weight measurement method for an irregular container of the present invention; Figure 5 It is a schematic flow chart of a fifth embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention; Figure 6 It is a schematic flow chart of a sixth embodiment of the non-contact liquid weight measurement method for an irregular container of the present invention; Figure 7 It is a structural schematic diagram of the non-contact liquid weight measurement method of an irregular container during the measurement process of the present invention; Figure 8 It is a schematic diagram of the container slope parameter in the non-contact liquid weight measurement method of an irregular container of the present invention; Fig. 9 It is a schematic diagram of the container height parameter in the non-contact liquid weight measurement method of an irregular container of the present invention; Fig.10 It is a schematic diagram of the maximum perimeter parameter of a container in the non-contact liquid weight measurement method of an irregular container of the present invention; Fig.11 It is a schematic diagram of container wall thickness distribution parameters in the non-contact liquid weight measurement method for irregular containers of the present invention; Fig.12 It is a schematic diagram of the operation of collecting image information in the non-contact liquid weight measurement method of an irregular container of the present invention; Fig.13 It is a schematic diagram of the fitted outer wall height-volume ratio curve of the container in the non-contact liquid weight measurement method for an irregular container of the present invention.
[0022] Description of Figure Numbers: 1. Container; 2. Height and density monitoring integrated equipment; 3. Density monitoring transceiver.
[0023] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0026] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0027] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0028] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0029] The present invention provides a non-contact liquid weight measurement method for irregular containers, please refer to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for non-contact liquid weight measurement in an irregular container according to the present invention. The method for non-contact liquid weight measurement in an irregular container comprises the following steps: Step S10: Acquire image information of the container; Step S20: acquiring characteristic parameters of the container according to the image information; Step S30: searching the database for preset parameters that match the characteristic parameters; Step S40: obtaining an inner wall volume-height ratio associated with the preset parameters; Step S50: Detecting the liquid level in the container; Step S60: Detecting the density of the liquid in the container; Step S70: Calculate the weight of the liquid in the container according to the inner wall volume-height ratio, the liquid level height and the liquid density.
[0030] Due to process limitations, containers made of different materials have more or less dimensional errors during the production process. For example, ceramic containers and wooden containers have inconsistent wall thickness, which affects the actual volume of the liquid in the container. For example, wine jars, vinegar jars, or soy sauce jars are used as examples in the following embodiments of the present invention. In addition, even containers with relatively high precision requirements, such as chemical reagent containers, have the same problem.
[0031] In this embodiment, the image information of any side of the container 1 is collected by using a depth camera, and the image information is processed by image analysis and other methods to obtain various characteristic parameters of the container 1. The characteristic parameters include but are not limited to the height parameter, slope parameter, maximum perimeter parameter, etc. of the container 1.
[0032] Before confirming the inner wall volume-height ratio of the container 1, a database is also established. The database pre-stores characteristic parameters of preset containers of multiple categories and models, which are saved in the database as preset parameters. The preset parameters can be scanned and modeled by a handheld 3D scanner on the inner and outer wall images of multiple categories of preset containers. The categories of preset containers pre-stored in the database can be determined based on the more commonly used containers in various industries.
[0033] After scanning the preset container with a 3D scanner, the outer wall image information and the inner wall image information of the preset container are detected and collected respectively. A three-dimensional image or a three-dimensional model is established for the outer wall and the inner wall of the preset container in combination with a matching algorithm. The volume of the liquid in the preset container can be actually measured to obtain the outer wall volume-height ratio and the inner wall volume-height ratio corresponding to the preset container. The relationship between the inner and outer wall volume-height ratios of each preset container is further drawn, associated with the preset parameters and saved in the database. In this embodiment, the preset container models in the database should be no less than 300.
[0034] After the database is established, the characteristic parameters are compared with the preset parameters in the database one by one. When the preset parameters consistent with the characteristic parameters are found, the inner wall volume-height fitting ratio associated with the preset parameters is called as the inner wall volume-height ratio of the container 1.
[0035] In this embodiment, by establishing a database and pre-saving data packets of multiple categories of containers, the corresponding inner wall volume-height ratio can be directly obtained without repeated calculation, which greatly improves the detection efficiency.
[0036] A liquid level detection member and a density detection member are arranged on the top of the container 1. The liquid level detection member and the density detection member can adopt a height and density monitoring integrated device 2. At the same time, a density monitoring transceiver 3 is arranged on the outer wall of the container 1. Please refer to Figure 7 The height and density monitoring integrated device 2 is connected to the density monitoring transceiver 3 through a wire. The height and density monitoring integrated device 2 excites the density monitoring transceiver 3 to send an electromagnetic wave or ultrasonic wave signal. The signal is attenuated and reflected in the liquid and received by the density monitoring transceiver 3, and finally fed back to the height and density monitoring integrated device 2. Thus, the liquid level height and liquid density in the container 1 are obtained.
[0037] In this embodiment, the liquid level detection member is arranged at the container mouth of the container 1 to measure the distance from the liquid level to the bottle mouth and record it as a relative height.
[0038] When calculating the height of the liquid level relative to the outer wall of container 1, the relative height is subtracted from the height of the outer wall of container 1, that is, the height of the liquid level relative to the outer wall of container 1; when calculating the height of the liquid level relative to the inner wall of container 1, the relative height is subtracted from the height of the inner wall of container 1, that is, the height of the liquid level relative to the inner wall of container 1.
[0039] The volume of the liquid is then calculated based on the liquid level height, the inner wall volume-height ratio, and the outer wall volume-height ratio.
[0040] By combining the liquid level height into the volume-height ratio curve, the liquid volume inside the container 1 is matched and determined. The weight of the liquid in the container 1 is calculated by the following formula: Formula 1: ; Where m in Formula 1 is the mass, i.e. the weight of the liquid. ρ is the density of the liquid, and v is the volume of the liquid. After calculation, the weight change of the liquid in the container can be monitored in real time.
[0041] The technical solution of the present invention obtains image information by photographing the outer surface of the container 1, and obtains characteristic parameters of the container 1 based on analysis of the image information; the characteristic parameters are then compared with preset parameters stored in a database to quickly determine the volume-height ratio of the inner wall of the container 1. The workload of monitoring containers is reduced and monitoring efficiency is improved. In the process of food fermentation, alcohol aging, etc., the volume, density, weight and other indicators of liquids in irregular containers can be accurately measured to ensure a clear understanding of the quality of the products produced and to achieve product value estimation, while preventing all economic losses caused by theft and leakage, and facilitating refined product management.
[0042] For further information, see Figure 2 , Figure 2 This is a flow chart of the second embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention, step S20 includes the following steps: Step S21: acquiring the container mouth position, container bottom position and maximum circumference position of the container according to the image information; Step S22: obtaining the maximum circumference position and the container mouth position to calculate the slope parameter of the container; Step S23: calculating the height parameter of the container according to the container mouth position, the container bottom position, and the maximum circumference position; Step S24: calculating the maximum perimeter parameter of the container according to the maximum perimeter position; Step S25: Acquire the characteristic parameter according to the slope parameter, the height parameter and the maximum perimeter parameter.
[0043] The image information is an image of any side of the container 1, which can be approximately regarded as a cross-sectional view of the container 1. Figure 8~Figure 10 ,According to the image analysis, the container mouth position (container top), container bottom position (container bottom) and maximum circumference position (container widest position) of container 1 can be obtained.
[0044] See also Figure 8 First, obtain the parallel line A at the maximum circumference position, then obtain the connecting line B between the right end (or left end) of the maximum circumference position and the right end (or left end) of the bottle mouth, and obtain the angle α between the parallel line A and the connecting line B through image analysis, then the slope parameter k of container 1 is k=tanα.
[0045] Specifically, the height parameter of the container is determined according to the container mouth position, the container bottom position and the maximum circumference position. Step S23 includes: Step S231: obtaining a first height from the maximum circumference position to the container mouth position; Step S232: obtaining a second height from the maximum circumference position to the bottom position of the container; Step S233: calculating the height parameter according to the first height and the second height; Step S234: Calculating a height ratio parameter of the container according to the first height and the height parameter.
[0046] See also Fig. 9 , obtain the parallel line X at the container mouth, obtain the parallel line Y at the container bottom, and obtain the distance h between the parallel line X and the parallel line A through image analysis 1 , and the distance h between parallel lines A and Y 2 , then the height parameter of container 1 h = h 1 +h 2 .
[0047] Further calculate the distance h between parallel line X and parallel line A 1 The height ratio between the height parameter and the height ratio H = h 1 / (h 1 +h 2 ).
[0048] Specifically, the maximum perimeter parameter of the container is determined according to the width of the maximum perimeter position of the container. Step S24 includes: Step S241: Obtain the radius information at the maximum circumference position, Step S242: Calculate the maximum circumference parameter at the maximum circumference position according to the radius information.
[0049] See also Fig.10 By analyzing the image information, the length at the maximum circumference position is obtained, and the length can be approximately regarded as the diameter of the container 1; or the radius r at the maximum circumference position is obtained through image analysis. In this embodiment, taking the radius r as an example, the maximum circumference parameter C of the container 1 = 2πr.
[0050] For further information, see Figure 3 , Figure 3 This is a flow chart of the third embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention. Step S30 specifically includes the following steps: Step S31: comparing the plurality of sub-feature parameters with the sub-preset parameters corresponding to the preset parameters in the database one by one; Step S32: Determine the preset parameter that matches the characteristic parameter according to the comparison result.
[0051] The characteristic parameter includes a plurality of sub-characteristic parameters, and the preset parameter includes a plurality of sub-preset parameters. According to the above content, the plurality of sub-characteristic parameters are slope parameter k, height parameter h, height ratio parameter H and maximum circumference parameter C. The plurality of sub-preset parameters correspond to the preset slope parameter k', height parameter h', height ratio parameter H' and maximum circumference parameter C'. The four sub-characteristic parameters are compared with the plurality of sub-preset parameters one by one. When the four sub-preset parameters are consistent with the four sub-characteristic parameters, it means that the inner wall volume-height ratio of container 1 is consistent with the inner wall volume-height ratio associated with the preset parameter, thereby confirming the inner wall volume-height ratio of container 1.
[0052] In actual application, there may not be completely consistent data. Therefore, a certain error range can be set when comparing each sub-feature parameter. For example, when the error range of the height parameter is ±1mm, assuming that the volume height of container 1 is h, and the volume height of the preset container is h', then when h'-1mm≤h≤h'+1mm, it can be regarded as the height parameter of the preset container and the height parameter of the container are the same, while also ensuring the accuracy of the measurement.
[0053] For further information, see Figure 4 , Figure 4 This is a flow chart of the fourth embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention, wherein the characteristic parameters also include wall thickness distribution parameters; after step 32, the following steps are also included: Step S33: obtaining the number of the preset parameters matching the characteristic parameters; Step S34: when there are multiple preset parameters, obtaining the wall thickness distribution parameters of the container; Step S35: obtaining the preset wall thickness feature associated with each preset parameter; Step S36: comparing the wall thickness distribution parameter with the plurality of preset wall thickness characteristics one by one; Step S37: Determine the preset parameter corresponding to the characteristic parameter according to the comparison result.
[0054] When there is only one preset parameter in the database that is consistent with the characteristic parameter, the inner wall volume-height ratio associated with the preset parameter is directly used as the inner wall volume-height ratio of the container 1.
[0055] However, when two or more preset parameters are found to be consistent with the characteristic parameters in the database, the wall thickness distribution parameters of the container 1 are further obtained.
[0056] Select a point at different heights on the container 1 and measure the wall thickness information of each point, so as to draw the wall thickness distribution parameters of the container 1. Fig.11 In this embodiment, the height direction of the container 1 is divided into six equal parts, and points O are selected in sequence. 1 , point O 2 , point O 3 , point O 4 , point O 5 The wall thickness of the container 1 at five locations is used as a wall thickness distribution parameter of the container 1 .
[0057] In the database, the preset wall thickness feature of the preset container is measured in advance, and the preset wall thickness feature is associated with the preset parameter of the preset container. Therefore, in this embodiment, when two or more preset parameters are found to be consistent with the feature parameter, the wall thickness distribution parameter is compared with the preset wall thickness features associated with the multiple preset parameters one by one, so as to find the preset wall thickness feature closest to the wall thickness distribution parameter. The inner wall volume-height ratio of the preset container associated with the closest preset wall thickness feature is used as the inner wall volume-height ratio of the container 1.
[0058] Further, the characteristic parameters also include the fitted outer wall volume-height ratio, and the preset parameters include the outer wall volume-height ratio; please refer to Figure 5 , Figure 5 This is a flow chart of the fifth embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention, wherein step S30 includes the following steps: Step S31A: comparing the fitted outer wall volume-height ratio with each outer wall volume-height ratio in the database one by one; Step S32A: Determine the preset parameter that matches the characteristic parameter according to the comparison result.
[0059] As another implementation, a depth camera is used to collect image information of the container 1, and a corresponding matching algorithm is used to perform volume modeling on the irregular container. The modeling method is a conventional technical method and will not be described in detail here. Please refer to Fig.12 , through simulation means, according to the collected image information, establish the corresponding volume-height ratio curve, please refer to Fig.13 , to obtain the fitted outer wall volume-height ratio corresponding to container 1.
[0060] When establishing a database, the outer wall volume-height ratio of the preset container is used as a sub-preset parameter, so as to search for a matching outer wall volume-height ratio in the database according to the fitted outer wall volume-height ratio. When a consistent outer wall volume-height ratio is found, it is determined that the preset parameter matches the characteristic parameter of container 1. The inner wall volume-height ratio of the corresponding preset container is further used as the inner wall volume-height ratio of container 1.
[0061] It should be noted that, within the error range, when there are multiple preset containers with the same outer wall volume-height ratio and the same fitted outer wall volume-height ratio in the database, in order to determine the inner wall volume-height ratio of the container 1, the wall thickness distribution parameter of the container 1 is further obtained and compared with the preset wall thickness characteristics of the preset containers associated with the multiple outer wall volume-height ratios. The specific comparison process is consistent with the comparison process in the fourth embodiment above, and will not be repeated here.
[0062] For further information, see Figure 6 , Figure 6This is a flow chart of a sixth embodiment of the non-contact liquid weight measurement method for irregular containers of the present invention, wherein step S30 comprises: Step S31B: obtaining error parameters corresponding to the characteristic parameters and each preset parameter in the database; Step S32B: calculating a matching error coefficient between the characteristic parameter and the corresponding preset parameter according to the error parameter; Step S33B: Determine the preset parameter that matches the characteristic parameter according to the matching error coefficient.
[0063] As another implementation, after obtaining the fitted outer wall volume-height relationship ratio of container 1 and the wall thickness distribution parameters of container 1, the fitted outer wall volume-height ratio and the outer wall volume-height ratio associated with the preset parameters are compared to obtain the error parameter therebetween, which is recorded as the first sub-error; the wall thickness distribution parameters are compared with the wall thickness characteristics in the database and the preset wall thickness characteristics to obtain the error parameter therebetween, which is recorded as the second sub-error.
[0064] Specifically, step S32B includes: Step S321B: Obtain a first weight ratio of the first sub-error and a second weight ratio of the second sub-error; Step S322B: Calculate the matching error coefficient according to the first sub-error, the first weight ratio, the second sub-error and the second weight ratio.
[0065] The matching error coefficient is further calculated according to the following expression: Expression 1: K = M*m+N*n; Among them, K is the matching error coefficient, m is the first sub-error, M is the first weight ratio, n is the second sub-error, and N is the second weight ratio.
[0066] It should be noted that the first weight ratio and the second weight ratio can be determined empirically, and only need to satisfy 0≤M, N≤1. In special cases, if the first sub-error, that is, the matching error of the outer wall volume-height ratio has a greater impact on the final matching error of the container 1, the M value can be appropriately increased according to the degree of impact, and vice versa.
[0067] By searching the first sub-error and the second sub-error between the characteristic parameters and each preset parameter in the database, the preset container corresponding to the minimum matching error coefficient is finally calculated, and the inner wall volume-height ratio of the preset container is used as the inner wall volume-height ratio of container 1.
[0068] In addition, to solve the above problems, the present invention also proposes a non-contact liquid weight measuring device for an irregular container, the non-contact liquid weight measuring device for an irregular container comprising an image acquisition component, a processing module, and a storage module, the image acquisition component being used to obtain image information of the container 1; the processing module being signal-connected to the image acquisition component; the storage module storing a non-contact liquid weight measuring program for an irregular container, and when the non-contact liquid weight measuring program for an irregular container is executed by a processor, the steps of the non-contact liquid weight measuring method for an irregular container as described above are implemented.
[0069] Due to process limitations, containers made of different materials have more or less dimensional errors during the production process. For example, ceramic containers and wooden containers have inconsistent wall thickness, which affects the actual volume of the liquid in the container. For example, wine jars, vinegar jars, or soy sauce jars are used as examples in the following embodiments of the present invention. In addition, even containers with relatively high precision requirements, such as chemical reagent containers, have the same problem.
[0070] In this embodiment, the image information of any side of the container 1 is collected by using a depth camera, and the image information is processed by image analysis and other methods to obtain various characteristic parameters of the container 1. The characteristic parameters include but are not limited to the height parameter, slope parameter, maximum perimeter parameter, etc. of the container 1.
[0071] Before confirming the inner wall volume-height ratio of the container 1, a database is also established. The database pre-stores characteristic parameters of preset containers of multiple categories and models, which are saved in the database as preset parameters. The preset parameters can be scanned and modeled by a handheld 3D scanner on the inner and outer wall images of multiple categories of preset containers. The categories of preset containers pre-stored in the database can be determined based on the more commonly used containers in various industries.
[0072] After scanning the preset container with a 3D scanner, the outer wall image information and the inner wall image information of the preset container are detected and collected respectively. A three-dimensional image or a three-dimensional model is established for the outer wall and the inner wall of the preset container in combination with a matching algorithm. The volume of the liquid in the preset container can be actually measured to obtain the outer wall volume-height ratio and the inner wall volume-height ratio corresponding to the preset container. The relationship between the inner and outer wall volume-height ratios of each preset container is further drawn, associated with the preset parameters and saved in the database. In this embodiment, the preset container models in the database should be no less than 300.
[0073] After the database is established, the characteristic parameters are compared with the preset parameters in the database one by one. When the preset parameters consistent with the characteristic parameters are found, the inner wall volume-height fitting ratio associated with the preset parameters is called as the inner wall volume-height ratio of the container 1.
[0074] In this embodiment, by establishing a database and pre-saving data packets of multiple categories of containers, the corresponding inner wall volume-height ratio can be directly obtained without repeated calculation, which greatly improves the detection efficiency.
[0075] A liquid level detection member and a density detection member are arranged on the top of the container 1. The liquid level detection member and the density detection member can adopt a height and density monitoring integrated device 2. At the same time, a density monitoring transceiver 3 is arranged on the outer wall of the container 1. Please refer to Figure 7 The height and density monitoring integrated device 2 is connected to the density monitoring transceiver 3 through a wire. The height and density monitoring integrated device 2 excites the density monitoring transceiver 3 to send an electromagnetic wave or ultrasonic wave signal. The signal is attenuated and reflected in the liquid and received by the density monitoring transceiver 3, and finally fed back to the height and density monitoring integrated device 2. Thus, the liquid level height and liquid density in the container 1 are obtained.
[0076] In this embodiment, the liquid level detection member is arranged at the container mouth of the container 1 to measure the distance from the liquid level to the bottle mouth and record it as a relative height.
[0077] When calculating the height of the liquid level relative to the outer wall of container 1, the relative height is subtracted from the height of the outer wall of container 1, that is, the height of the liquid level relative to the outer wall of container 1; when calculating the height of the liquid level relative to the inner wall of container 1, the relative height is subtracted from the height of the inner wall of container 1, that is, the height of the liquid level relative to the inner wall of container 1.
[0078] The volume of the liquid is then calculated based on the liquid level height, the inner wall volume-height ratio, and the outer wall volume-height ratio.
[0079] By combining the liquid level height into the volume-height ratio curve, the liquid volume inside the container 1 is matched and determined. The weight of the liquid in the container 1 is calculated by the following formula: Formula 1: ; Where m in Formula 1 is the mass, i.e. the weight of the liquid. ρ is the density of the liquid, and v is the volume of the liquid. After calculation, the weight change of the liquid in the container can be monitored in real time.
[0080] The technical solution of the present invention obtains image information by photographing the outer surface of the container 1, and obtains characteristic parameters of the container 1 based on analysis of the image information; the characteristic parameters are then compared with preset parameters stored in a database to quickly determine the volume-height ratio of the inner wall of the container 1. The workload of monitoring containers is reduced and monitoring efficiency is improved. In the process of food fermentation, alcohol aging, etc., the volume, density, weight and other indicators of liquids in irregular containers can be accurately measured to ensure a clear understanding of the quality of the products produced and to achieve product value estimation, while preventing all economic losses caused by theft and leakage, and facilitating refined product management.
[0081] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A non-contact liquid weight measurement method for irregular containers, characterized in that: The non-contact liquid weight measurement method for an irregular container comprises: Get image information of the container; Acquire characteristic parameters of the container according to the image information; Searching a database for preset parameters that match the characteristic parameters; Obtaining an inner wall volume-height ratio associated with the preset parameters; Detecting the liquid level in the container; detecting the density of the liquid in the container; The weight of the liquid in the container is calculated according to the inner wall volume-to-height ratio, the liquid level height, and the liquid density.
2. The non-contact liquid weight measurement method for irregular containers according to claim 1, characterized in that: The step of acquiring characteristic parameters of the container according to the image information comprises: Acquire the container mouth position, container bottom position and maximum circumference position of the container according to the image information; Obtaining the maximum circumference position and the container mouth position to calculate the slope parameter of the container; Calculate the height parameter of the container according to the container mouth position, the container bottom position, and the maximum circumference position; Calculate the maximum perimeter parameter of the container according to the maximum perimeter position; The characteristic parameter is obtained according to the slope parameter, the height parameter and the maximum perimeter parameter.
3. The non-contact liquid weight measurement method for irregular containers according to claim 2, characterized in that: The step of calculating the height parameter of the container according to the container mouth position, the container bottom position, and the maximum circumference position comprises: Acquire a first height from the maximum circumference position to the container mouth position; Acquire a second height from the maximum circumference position to the bottom position of the container; Calculate the height parameter according to the first height and the second height; A height ratio parameter of the container is calculated according to the first height and the height parameter.
4. The non-contact liquid weight measurement method for irregular containers according to claim 2, characterized in that: The step of calculating the maximum perimeter parameter of the container according to the maximum perimeter position comprises: Obtaining radius information at the maximum circumference position; The maximum circumference parameter at the maximum circumference position is calculated according to the radius information.
5. The non-contact liquid weight measurement method for irregular containers according to claim 1, characterized in that: The characteristic parameter includes a plurality of sub-characteristic parameters, and the preset parameter includes a plurality of sub-preset parameters; The step of searching the database for preset parameters matching the characteristic parameters comprises: Compare the plurality of sub-feature parameters with the sub-preset parameters corresponding to the preset parameters in the database one by one; The preset parameters matching the characteristic parameters are determined according to the comparison results.
6. The non-contact liquid weight measurement method for irregular containers according to claim 5, characterized in that: The characteristic parameters also include wall thickness distribution parameters; After the step of determining the preset parameters according to the comparison result, the method further includes: Acquire the number of the preset parameters matching the characteristic parameters; When the number of the preset parameters is multiple, obtaining the wall thickness distribution parameter of the container; Obtaining a preset wall thickness feature associated with each of the preset parameters; Comparing the wall thickness distribution parameter with a plurality of the preset wall thickness characteristics one by one; The preset parameter corresponding to the characteristic parameter is determined according to the comparison result.
7. The non-contact liquid weight measurement method for irregular containers according to claim 1, characterized in that: The characteristic parameters also include the fitted outer wall volume-height ratio, and the preset parameters include the outer wall volume-height ratio; The step of searching the database for preset parameters matching the characteristic parameters comprises: Comparing the fitted outer wall volume-height ratio with each outer wall volume-height ratio in the database one by one; The preset parameters matching the characteristic parameters are determined according to the comparison results.
8. The non-contact liquid weight measurement method for irregular containers according to claim 1, characterized in that: The step of searching the database for preset parameters matching the characteristic parameters comprises: Obtain error parameters corresponding to the characteristic parameters and each preset parameter in the database; Calculate the matching error coefficient between the characteristic parameter and the corresponding preset parameter according to the error parameter; The preset parameter matching the characteristic parameter is determined according to the matching error coefficient.
9. The non-contact liquid weight measurement method for irregular containers according to claim 8, characterized in that: The error parameter includes a first sub-error and a second sub-error; The step of calculating the matching error coefficient between the characteristic parameter and the corresponding preset parameter according to the error parameter comprises: Obtaining a first weight ratio of the first sub-error and a second weight ratio of the second sub-error; Calculate the matching error coefficient according to the first sub-error, the first weight ratio, the second sub-error and the second weight ratio; The matching error coefficient K, the first sub-error m, the first weight ratio M, the second sub-error n and the second weight ratio N satisfy the following relationship: K= M*m+N*n.
10. A non-contact liquid weight measuring device for irregular containers, characterized in that: The non-contact liquid weight measuring device for irregular containers comprises: An image acquisition component, used for acquiring image information of the container; A processing module, the processing module is connected to the image acquisition component by signal; A storage module, wherein a non-contact liquid weight measurement program for an irregular container is stored on the storage module, and when the non-contact liquid weight measurement program for an irregular container is executed by a processor, the steps of the non-contact liquid weight measurement method for an irregular container as described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Syrup filling system based on visual inspection
CN115991314A
Method and device for detecting liquid level in container
CN116337177A
Filling dose automatic identification method and system
CN118373037A
Beverage analysis device
DE202014104307U1
Method for identifying the cavity of a glass container forming machine in which a glass container has been manufactured
EP3932876A1
Cited By
Liquid weight non-contact measurement method
CN120177285A