Method, device and equipment for measuring volume of irregular container, medium and product
By laying sensors in irregular containers to collect and fuse data, building a three-dimensional model and calculating volume using trapezoidal integral method, the problem of large measurement error in the prior art is solved, and high-precision volume measurement of irregular containers is achieved.
Patent Information
- Application Number
- CN202411588360.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the volume measurement of irregular containers usually results in large measurement errors and it is difficult to accurately identify complex shape characteristics inside the container.
By laying multiple sensors in irregular containers, collecting internal shape data and fusion, building a three-dimensional data model, calculating volume using trapezoidal integral method, accurately identifying the internal shape characteristics of the container, and improving measurement accuracy.
It realizes accurate measurement of irregular container volume, reduces measurement errors, improves measurement accuracy, and is suitable for containers with complex shapes.
Smart Images

Figure CN119085779A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a volume measurement method, device, equipment, medium and product for irregular containers. Background Art
[0002] Volume measurement is widely used in many fields such as industrial production, logistics and transportation, and liquid storage. It is difficult to measure the volume of irregular containers. In the related art, when measuring the volume of an irregular container, it is generally assumed that it is a regular shape, and then the volume is estimated based on the size information of the irregular container. However, since this measurement method measures the volume of an irregular container by assuming it to be a regular container, it is easy to produce large measurement errors. Summary of the invention
[0003] In view of this, the present invention provides a method, device, equipment, medium and product for measuring the volume of an irregular container to solve the problem in the related art that large measurement errors are easily generated by assuming that the irregular container is a regular container for volume measurement.
[0004] In the first aspect, the present invention provides a method for measuring the volume of an irregular container. A plurality of sensors are arranged in the irregular container, and different sensors are arranged at different positions. The method comprises: acquiring internal shape data of the irregular container collected by each sensor; fusing the internal shape data of the irregular container collected by different sensors to obtain fused data; performing three-dimensional modeling of the irregular container using the fused data to obtain a three-dimensional data model of the irregular container; and calculating the volume of the irregular container based on the three-dimensional data model.
[0005] The volume measurement method of an irregular container provided by the present invention collects the internal shape data of the irregular container through multiple sensors arranged in a regular container, fuses the internal shape data of the irregular container collected by different sensors to obtain fused data; uses the fused data to perform three-dimensional modeling on the irregular container to obtain a three-dimensional data model of the irregular container; and calculates the volume of the irregular container based on the three-dimensional data model. The method provided by the present invention collects the internal shape data of the irregular container through multiple sensors, fuses the data collected by multiple sensors, constructs a three-dimensional data model of the irregular container based on the fusion result, calculates the volume of the irregular container based on the three-dimensional data model, and constructs a three-dimensional data model by fusing data from multiple sensors, so as to form a more accurate internal shape model of the container, and calculate the volume of the irregular container based on the three-dimensional data model, so as to accurately identify the complex shape features inside the container, and effectively improve the volume measurement accuracy of the irregular container.
[0006] In an optional embodiment, the internal shape data of the irregular container collected by each sensor is the three-dimensional shape data of the irregular container, and the internal shape data of the irregular container collected by different sensors are fused to obtain fused data, including: weighted averaging the three-dimensional shape data collected by each sensor in the corresponding dimension to obtain fused data.
[0007] The method provided in this optional implementation manner realizes the fusion of data from different sensors by performing weighted averaging processing on the three-dimensional shape data collected by different sensors in terms of dimension. It has a stronger anti-interference ability, can maintain the stability and reliability of the data in a complex environment, and facilitates the construction of subsequent three-dimensional models.
[0008] In an optional embodiment, the step of calculating the volume of the irregular container based on the three-dimensional data model includes: calculating the volume of the three-dimensional data model using a trapezoidal integration method; and determining the volume of the irregular container based on the volume of the three-dimensional data model.
[0009] The method provided by this optional implementation calculates the volume of the three-dimensional data model through the trapezoidal integration method, determines the volume of the irregular container based on the volume of the three-dimensional data model, and effectively improves the volume measurement accuracy of the irregular container.
[0010] In an optional embodiment, the step of performing weighted averaging on the three-dimensional shape data collected by each sensor in the corresponding dimension to obtain fused data includes: performing filtering and correction processing on the three-dimensional shape data collected by each sensor using a preset method to obtain the three-dimensional shape data filtered by the corresponding sensor; and performing weighted averaging on the three-dimensional shape data filtered by different sensors in the corresponding dimension to obtain fused data.
[0011] In an optional embodiment, the step of calculating the volume of the three-dimensional data model using the trapezoidal integration method includes: calculating the volume of two-dimensional slices of the three-dimensional data model at different depths based on the trapezoidal integration method; accumulating the volumes of the two-dimensional slices of the three-dimensional data model at different depths to obtain the volume of the three-dimensional data model.
[0012] In an optional embodiment, the method further includes: storing the volume of the irregular container in a preset memory and sending it to a display terminal for display.
[0013] In the second aspect, the present invention provides a volume measuring device for an irregular container. A plurality of sensors are arranged in the irregular container, and different sensors are arranged at different positions. The device comprises: an acquisition module, used to acquire the internal shape data of the irregular container collected by each sensor; a fusion module, used to fuse the internal shape data of the irregular container collected by different sensors to obtain fused data; a modeling module, used to perform three-dimensional modeling of the irregular container using the fused data to obtain a three-dimensional data model of the irregular container; and a calculation module, used to calculate the volume of the irregular container based on the three-dimensional data model.
[0014] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for measuring the volume of an irregular container according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for measuring the volume of an irregular container of the first aspect or any corresponding embodiment thereof.
[0016] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for measuring the volume of an irregular container according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 is a schematic flow chart of a method for measuring the volume of an irregular container according to an embodiment of the present invention; Figure 2 is a schematic flow chart of another method for measuring the volume of an irregular container according to an embodiment of the present invention; Figure 3 is a flow chart of another method for measuring the volume of an irregular container according to an embodiment of the present invention; Figure 4 is a structural block diagram of a volume measuring device for an irregular container according to an embodiment of the present invention; Figure 5It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] In the related art, when measuring the volume of an irregular container, it is generally assumed that the container is of a regular shape, and then the volume is estimated based on the size information of the irregular container. However, since this measurement method measures the volume of the irregular container by assuming that the irregular container is a regular container, it is easy to produce large measurement errors.
[0021] In view of this, a method for measuring the volume of an irregular container provided in an embodiment of the present application can be applied to a server to achieve volume measurement of an irregular container. The method provided by the present invention collects internal shape data of an irregular container through multiple sensors, fuses the data collected by the multiple sensors, constructs a three-dimensional data model of the irregular container based on the fusion result, calculates the volume of the irregular container based on the three-dimensional data model, and constructs a three-dimensional data model by fusing data from multiple sensors to form a more accurate internal shape model of the container. The volume of the irregular container is calculated based on the three-dimensional data model, and the complex shape features inside the container can be accurately identified, effectively improving the volume measurement accuracy of the irregular container.
[0022] According to an embodiment of the present invention, an embodiment of a method for measuring the volume of an irregular container is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0023] In this embodiment, a method for measuring the volume of an irregular container is provided, which can be used for the above-mentioned server. A plurality of sensors are arranged in the irregular container, and different sensors are arranged at different positions. In the embodiment of the present application, the plurality of sensors may include but are not limited to two ultrasonic sensors and two electromagnetic sensors. The four sensors are arranged in a specific alignment so that the measurement data complement and correct each other, avoiding the limitation of the measurement angle of a single sensor. The ultrasonic sensor and the electromagnetic sensor respectively collect the distance data and electromagnetic characteristic data of the inner wall of the container, which represent different aspects of the internal shape of the container. During the measurement process, the ultrasonic sensor is responsible for measuring the internal depth and shape of the container, while the electromagnetic sensor detects the material properties and surface contour of the container. After the sensor is started, the ultrasonic sensor transmits ultrasonic waves into the container, receives reflected waves, and measures the distance data of different points inside; the electromagnetic sensor measures the changes in the electromagnetic characteristics inside the container. Figure 1 is a flow chart of a method for measuring the volume of an irregular container according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S101, obtaining the internal shape data of the irregular container collected by each sensor.
[0024] Exemplarily, the irregular container can be any irregular container that needs to be measured for volume, and the internal shape data is used to characterize the internal shape information of the irregular container. In the embodiment of the present application, the three-dimensional data obtained from the ultrasonic sensor and the electromagnetic sensor represent the measurement values of the container at different depths and angles, for example, each depth layer has a two-dimensional sensor data matrix.
[0025] Step S102, fusing the internal shape data of the irregular container collected by different sensors to obtain fused data.
[0026] Exemplarily, in an embodiment of the present application, data at the same depth layer are fused to obtain fused data.
[0027] Step S103, using the fused data to perform three-dimensional modeling on the irregular container to obtain a three-dimensional data model of the irregular container.
[0028] Exemplarily, in an embodiment of the present application, a three-dimensional data model is formed by 3D modeling based on the shape information of the inner wall of the irregular container in the fusion data. 3D modeling may include but is not limited to three-dimensional modeling software, three-dimensional scanner measurement modeling, and three-dimensional scanner measurement modeling. Three-dimensional modeling software such as 3DMAX, SoftImage, Maya, UG and AutoCAD, etc., use some basic geometric elements, such as cubes, spheres, etc., through a series of geometric operations such as translation, rotation, stretching and Boolean operations to build complex geometric scenes. Three-dimensional scanner measurement modeling: measure through a scanner to obtain the three-dimensional data of the object, and then use this data for modeling. Image or video modeling: obtain the three-dimensional information of the object through images or videos, and then use this information for modeling.
[0029] Step S104, calculating the volume of the irregular container based on the three-dimensional data model.
[0030] Illustratively, in an embodiment of the present application, a calculus algorithm may be used to perform layered calculations on the volume of a three-dimensional data model, thereby calculating the volume of an irregular container.
[0031] The volume measurement method of an irregular container provided in this embodiment collects the internal shape data of the irregular container through multiple sensors arranged in the regular container, fuses the internal shape data of the irregular container collected by different sensors to obtain fused data; uses the fused data to perform three-dimensional modeling on the irregular container to obtain a three-dimensional data model of the irregular container; and calculates the volume of the irregular container based on the three-dimensional data model. The internal shape data of the irregular container is collected by multiple sensors, the data collected by the multiple sensors are fused, a three-dimensional data model of the irregular container is constructed based on the fusion result, and the volume of the irregular container is calculated based on the three-dimensional data model. By fusing the data of multiple sensors to construct a three-dimensional data model, a more accurate internal shape model of the container can be formed, and the volume of the irregular container can be calculated based on the three-dimensional data model, which can accurately identify the complex shape features inside the container, and effectively improve the volume measurement accuracy of the irregular container.
[0032] In this embodiment, a method for measuring the volume of an irregular container is provided, which can be used for the above-mentioned server. Figure 2 is a flow chart of a method for measuring the volume of an irregular container according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step S201, obtaining the internal shape data of the irregular container collected by each sensor. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0033] Step S202: fusing the internal shape data of the irregular container collected by different sensors to obtain fused data.
[0034] Specifically, the internal shape data of the irregular container collected by each sensor is the three-dimensional shape data of the irregular container. The above step S202 includes: Step S2021, weighted average the shape three-dimensional data collected by each sensor in the corresponding dimension to obtain fused data. Exemplarily, in the embodiment of the present application, the dimension and shape of the sensor data are ensured to be consistent so as to perform effective data fusion and volume calculation. By performing weighted average processing on the shape three-dimensional data collected by different sensors in the dimension, the fusion of different sensor data is achieved, which has stronger anti-interference ability, can maintain the stability and reliability of data in complex environments, and facilitates the construction of subsequent three-dimensional models.
[0035] In some optional implementations, the above step S2021 includes: Step a1: perform filtering and correction processing on the three-dimensional shape data collected by each sensor using a preset method to obtain the three-dimensional shape data after filtering by the corresponding sensor.
[0036] Exemplarily, in the embodiment of the present application, a filtering algorithm can be used to perform filtering and correction processing on the three-dimensional shape data collected by each sensor, and the filtering algorithm may include but is not limited to mean filtering, median filtering, first-order filtering and Kalman filtering. By filtering the output, the accuracy of the data is guaranteed. The data collected by the ultrasonic sensor is used to characterize the depth information of the irregular container, and its data shape can be (number of depth layers, pixel width, pixel height); the data collected by the electromagnetic sensor is used to characterize the material characteristics and contour characteristics of the irregular container, and its data shape can be a data shape of (number of depth layers, pixel width, pixel height).
[0037] Step a2, performing weighted averaging on the three-dimensional shape data filtered by different sensors in the corresponding dimensions to obtain fused data.
[0038] Exemplarily, in an embodiment of the present application, a weighted average is performed on each depth layer, and the data of each depth layer is fused to obtain fused three-dimensional data.
[0039] Step S203: Use the fused data to perform 3D modeling on the irregular container to obtain a 3D data model of the irregular container. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0040] Step S204, calculate the volume of the irregular container based on the three-dimensional data model. Figure 1Step S104 of the illustrated embodiment will not be described in detail here.
[0041] The method provided by the present invention realizes the fusion of different sensor data by performing weighted average processing on the three-dimensional shape data collected by different sensors in dimension, has stronger anti-interference ability, can maintain the stability and reliability of data in complex environments, and is convenient for the subsequent construction of three-dimensional models. A three-dimensional data model of an irregular container is constructed based on the fusion result, and the volume of the irregular container is calculated based on the three-dimensional data model. By fusing data from multiple sensors to construct a three-dimensional data model, a more accurate internal shape model of the container can be formed, and the volume of the irregular container can be calculated based on the three-dimensional data model, so that the complex shape features inside the container can be accurately identified, and the volume measurement accuracy of the irregular container can be effectively improved.
[0042] In this embodiment, a method for measuring the volume of an irregular container is provided, which can be used for the above-mentioned server. Figure 3 is a flow chart of a method for measuring the volume of an irregular container according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps: Step S301, obtaining the internal shape data of the irregular container collected by each sensor. Figure 1 Step S201 of the illustrated embodiment will not be described in detail here.
[0043] Step S302: fuse the internal shape data of the irregular container collected by different sensors to obtain fused data. Figure 1 Step S202 of the illustrated embodiment will not be described in detail here.
[0044] Step S303: Use the fused data to perform 3D modeling on the irregular container to obtain a 3D data model of the irregular container. Figure 1 Step S203 of the illustrated embodiment will not be described in detail here.
[0045] Step S304: Calculate the volume of the irregular container based on the three-dimensional data model.
[0046] Specifically, the above step S304 includes: Step S3041, using the trapezoidal integration method to calculate the volume of the three-dimensional data model.
[0047] In some optional implementations, the above step S3041 includes: Step b1, calculating the volumes of two-dimensional slices of the three-dimensional data model at different depths based on the trapezoidal integration method.
[0048] Step b2: Accumulate the volumes of the two-dimensional slices of the three-dimensional data model at different depths to obtain the volume of the three-dimensional data model.
[0049] Exemplarily, a numerical integration method is used to calculate the volume of the three-dimensional data model. In the embodiment of the present application, the process of calculating the volume of the three-dimensional data model is to first integrate each two-dimensional slice, calculate the volume of each slice using the trapezoidal integration method, and multiply it by the depth step to obtain the volume of the three-dimensional data model.
[0050] The calculation formula is ,in, Represents the volume of a three-dimensional data model, represents the depth step, Indicates the depth step is The area of the container cross section is is the depth of the irregular container, which can also be understood as the maximum value of calculus. The accuracy of the numerical integration method depends on the resolution and step size of the data. A higher-order integration method or an adjusted step size can be selected according to the actual situation.
[0051] Step S3042: determine the capacity of the irregular container based on the volume of the three-dimensional data model.
[0052] Exemplarily, in the embodiment of the present application, the volume of the three-dimensional data model is determined as the capacity of the irregular container.
[0053] Step S305, storing the volume of the irregular container in a preset memory and sending it to a display terminal for display.
[0054] Exemplarily, in the embodiment of the present application, the measurement results are displayed to the user through a display screen, and the measurement data is stored in the system memory or external memory for subsequent analysis.
[0055] The method provided in the embodiment of the present application collects the internal shape data of an irregular container through multiple sensors, fuses the data collected by the multiple sensors, constructs a three-dimensional data model of the irregular container based on the fusion result, calculates the volume of the irregular container based on the three-dimensional data model, and constructs a three-dimensional data model by fusing data from multiple sensors. A more accurate internal shape model of the container can be formed, and the volume of the irregular container can be calculated based on the three-dimensional data model. The complex shape features inside the container can be accurately identified, and the volume measurement accuracy of the irregular container is effectively improved. The volume of the three-dimensional data model is calculated by the trapezoidal integration method, and the volume of the irregular container is determined based on the volume of the three-dimensional data model, which effectively improves the volume measurement accuracy of the irregular container. The method provided by the present invention can be applied to a variety of industries, such as petrochemical, food and beverage, medical equipment and other fields, and is particularly suitable for containers with complex shapes that require high-precision measurement.
[0056] In the present embodiment, a volume measuring device for an irregular container is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and contemplated.
[0057] This embodiment provides a volume measurement device for an irregular container, such as Figure 4 As shown, including: An acquisition module 401 is used to acquire the internal shape data of the irregular container collected by each sensor; A fusion module 402 fuses the internal shape data of the irregular container collected by different sensors to obtain fused data; A modeling module 403 is used to perform three-dimensional modeling on the irregular container using the fused data to obtain a three-dimensional data model of the irregular container; The calculation module 404 is used to calculate the volume of the irregular container based on the three-dimensional data model.
[0058] In some optional implementations, the internal shape data of the irregular container collected by each sensor is the three-dimensional shape data of the irregular container, and the fusion module 402 includes: The fusion submodule is used to perform weighted averaging on the three-dimensional shape data collected by each sensor in the corresponding dimension to obtain fused data.
[0059] In some optional embodiments, the fusion submodule includes: A first processing unit is used to perform filtering and correction processing on the three-dimensional shape data collected by each sensor using a preset method to obtain the three-dimensional shape data after filtering of the corresponding sensor; The second processing unit is used to perform weighted averaging on the three-dimensional shape data filtered by different sensors in the corresponding dimensions to obtain fused data.
[0060] In some optional implementations, the calculation module 404 includes: A calculation submodule, used for calculating the volume of the three-dimensional data model using a trapezoidal integration method; The determination submodule is used to determine the volume of the irregular container based on the volume of the three-dimensional data model.
[0061] In some optional implementations, the calculation submodule includes: A calculation unit, used for calculating the volume of two-dimensional slices of the three-dimensional data model at different depths based on the trapezoidal integration method; The accumulation unit is used to accumulate the volumes of the two-dimensional slices of the three-dimensional data model at different depths to obtain the volume of the three-dimensional data model.
[0062] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0063] The volume measuring device for an irregular container in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0064] The embodiment of the present invention also provides a computer device having the above Figure 4 The volume measuring device for the irregular container is shown.
[0065] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0066] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0067] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0068] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0069] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0070] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0071] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0072] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0073] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for measuring the volume of an irregular container, characterized in that: A plurality of sensors are arranged in the irregular container, and different sensors are arranged at different positions. The method includes: Acquiring the internal shape data of the irregular container collected by each sensor; fusing the internal shape data of the irregular container collected by different sensors to obtain fused data; Performing three-dimensional modeling on the irregular container using the fused data to obtain a three-dimensional data model of the irregular container; The volume of the irregular container is calculated based on the three-dimensional data model.
2. The method according to claim 1, characterized in that The internal shape data of the irregular container collected by each sensor is the three-dimensional shape data of the irregular container. The step of fusing the internal shape data of the irregular container collected by different sensors to obtain fused data includes: The three-dimensional shape data collected by each sensor is weighted averaged in the dimension corresponding to the dimension to obtain fused data.
3. The method according to claim 1, characterized in that The step of calculating the volume of the irregular container based on the three-dimensional data model comprises: Calculating the volume of the three-dimensional data model using a trapezoidal integration method; The capacity of the irregular container is determined based on the volume of the three-dimensional data model.
4. The method according to claim 2, characterized in that: The step of performing weighted averaging on the three-dimensional shape data collected by each sensor in the dimension corresponding to the dimension to obtain fused data includes: Using a preset method, filtering and correcting the three-dimensional shape data collected by each sensor to obtain the three-dimensional shape data after filtering by the corresponding sensor; The three-dimensional shape data filtered by different sensors are weighted averaged in the corresponding dimensions to obtain fused data.
5. The method according to claim 3, characterized in that: The step of calculating the volume of the three-dimensional data model by using the trapezoidal integration method comprises: Calculating the volumes of two-dimensional slices of the three-dimensional data model at different depths based on the trapezoidal integration method; The volumes of the two-dimensional slices of the three-dimensional data model at different depths are accumulated to obtain the volume of the three-dimensional data model.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The volume of the irregular container is stored in a preset memory and sent to a display terminal for display.
7. A volume measuring device for an irregular container, characterized in that: A plurality of sensors are arranged in the irregular container, and different sensors are arranged at different positions. The device comprises: An acquisition module, used for acquiring the internal shape data of the irregular container collected by each sensor; A fusion module, which fuses the internal shape data of the irregular container collected by different sensors to obtain fused data; A modeling module, used to perform three-dimensional modeling on the irregular container using the fused data to obtain a three-dimensional data model of the irregular container; A calculation module is used to calculate the volume of the irregular container based on the three-dimensional data model.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the volume measurement method of an irregular container according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the volume measurement method of an irregular container according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the volume measurement method of an irregular container according to any one of claims 1 to 6.
Citation Information
Patent Citations
Volume measurement method and device based on three-dimensional laser scanning
CN102980531A
Freight truck boxcar spare capacity intelligent detection method and system
CN110044258A
Ship cabin volume measurement method and device, computer equipment and storage medium
CN112053396A
Truck compartment volume measuring system based on binocular vision
CN112945100A
Irregular object measurement method based on fusion of laser radar and camera
CN113093216A
Cited By
Method, device and equipment for determining volume of liquid in irregular container
CN121558146A
