Volume measurement method, volume measurement device, and computer-readable storage medium
By acquiring the target point cloud of the grain warehouse, performing grid division and height calculation, and utilizing lidar and ICP algorithms, the problem of time-consuming, labor-intensive, and error-prone grain volume measurement was solved, achieving efficient and accurate volume calculation.
Patent Information
- Application Number
- CN202311175023.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-12
AI Technical Summary
Existing methods for measuring grain volume are time-consuming, labor-intensive, and prone to errors, especially for irregularly shaped grain piles where the calculation results are inaccurate.
By acquiring the target point cloud of the grain silo to be tested, the grid is divided, the bottom area and height of each grid are obtained, the volume of the grain silo is calculated using the volume of each grid, the point cloud data is scanned using a gimbal equipped with a lidar, and the point cloud registration and rotation matrix merging are performed using the ICP algorithm.
It improves the accuracy and speed of volume calculation, especially for the volume calculation of irregular grain piles, and reduces the error of manual measurement.
Smart Images

Figure CN117372500B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of point cloud processing technology, and in particular to a volume measurement method, a volume measurement device, and a computer-readable storage medium. Background Technology
[0002] Efficient, accurate, and safe methods for measuring grain reserves are an indispensable part of the grain reserve supervision system and are crucial for safeguarding national interests and food security. Currently, an increasing number of automated and intelligent devices are being incorporated into the construction of smart grain warehouses, such as using temperature sensors to monitor grain warehouse temperatures in real time and using high-definition cameras to monitor grain warehouse footage, thereby ensuring grain safety.
[0003] However, there is still a lack of efficient and accurate measurement methods for grain volume. Traditional methods mainly rely on manual methods, measuring the external dimensions of the grain pile and calculating its volume based on its geometry. However, this method is time-consuming and labor-intensive, and the calculation results are prone to significant errors when the grain pile is irregular in shape or the grain surface is uneven. Summary of the Invention
[0004] This application provides a volume measurement method, a volume measurement device, and a computer-readable storage medium.
[0005] This application provides a volume measurement method, the volume measurement method comprising:
[0006] Obtain the target point cloud of the grain warehouse to be tested;
[0007] The target point cloud is divided into grids, and the base area of each grid is obtained;
[0008] Determine the target point cloud height for each grid cell;
[0009] The volume of each grid is obtained using the base area of each grid and the height of the target point cloud;
[0010] The volume of the grain silo to be tested is obtained based on the volume of each grid.
[0011] The acquisition of the target point cloud of the grain warehouse to be tested includes:
[0012] Several frames of initial point cloud data of the grain warehouse to be tested were collected according to a preset rotation angle.
[0013] Based on the preset rotation angle, determine the rotation matrix between the initial point clouds of adjacent frames;
[0014] The initial point clouds of several frames are merged into the target point cloud according to the rotation matrix.
[0015] The volume measurement method further includes, after acquiring the target point cloud of the grain warehouse to be measured, the method further includes:
[0016] Obtain the direction vector of the grain warehouse to be tested;
[0017] The target point cloud is rotated using the Z-axis vector of the coordinate system and the direction vector to obtain the horizontal point cloud of the grain silo to be measured.
[0018] The grain silo to be tested is a cylindrical grain silo;
[0019] The step of obtaining the direction vector of the grain warehouse to be tested includes:
[0020] The target point cloud is divided into cylindrical segments to obtain the axis of the cylindrical point cloud in the target point cloud;
[0021] Determine the direction vector of the grain warehouse to be tested according to the axis.
[0022] The determination of the target point cloud height for each grid includes:
[0023] Obtain the cylinder radius of the cylindrical point cloud;
[0024] Based on the axis, obtain the axis point cloud in the target point cloud;
[0025] Obtain the surface point cloud in the target point cloud whose distance from the axis point cloud is less than the radius of the cylinder;
[0026] The height of the target point cloud is obtained based on the height information of the surface point cloud of each grid.
[0027] The grain warehouse to be tested is a rectangular grain warehouse;
[0028] The step of obtaining the direction vector of the grain warehouse to be tested includes:
[0029] The target point cloud is segmented into planes to obtain the plane normal vectors of non-planar point clouds in the target point cloud;
[0030] The direction vector of the grain warehouse to be tested is determined according to the plane normal vector.
[0031] The volume measurement method further includes, before dividing the target point cloud into meshes, the following steps:
[0032] The target point cloud is segmented into planes to obtain the surface point cloud after removing the planar point cloud from the target point cloud;
[0033] The step of dividing the target point cloud into grids includes:
[0034] Obtain the projection point cloud of the surface point cloud onto the XY plane;
[0035] Extract the outer contour of the projected point cloud to obtain the contour point cloud;
[0036] Based on the outline point cloud and its centroid, the region enclosed by the outline point cloud is divided into triangular meshes.
[0037] The volume measurement method further includes, after dividing the region enclosed by the contour point cloud into triangular meshes according to the contour point cloud and its centroid, the region enclosed by the contour point cloud.
[0038] Obtain the triangular mesh obtained from the triangular mesh generation;
[0039] Find the longest edge of each triangular grid;
[0040] The triangular mesh is divided along the longest side of each triangular mesh to obtain the final mesh.
[0041] This application also provides a volume measuring device, which includes a processor and a memory, wherein the memory stores program data, and the processor is used to execute the program data to implement the volume measuring method as described above.
[0042] This application also provides a computer-readable storage medium for storing program data, which, when executed by a processor, is used to implement the volume measurement method described above.
[0043] The beneficial effects of this application are as follows: the volume measuring device acquires the target point cloud of the grain silo to be measured; the target point cloud is divided into grids to obtain the base area of each grid; the height of the target point cloud of each grid is determined; the volume of each grid is obtained using the base area and the height of the target point cloud; and the volume of the grain silo to be measured is obtained based on the volume of each grid. Through the above method, the volume measuring device considers the shape of the actual grain silo, and by designing a grid division method for the target point cloud based on the shape of the actual grain silo, the accuracy and speed of volume calculation can be effectively improved. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0045] Figure 1 This is a schematic flowchart of an embodiment of the volume measurement method provided in this application;
[0046] Figure 2 This is a schematic diagram of the overall process of the volume measurement method provided in this application;
[0047] Figure 3 This is a schematic diagram of the first embodiment of mesh generation in the volume measurement method provided in this application;
[0048] Figure 4 This is a schematic diagram of the second embodiment of the mesh generation in the volume measurement method provided in this application;
[0049] Figure 5 This is a schematic diagram of the third embodiment of the mesh generation in the volume measurement method provided in this application.
[0050] Figure 6 This is a schematic diagram of the structure of an embodiment of the volume measuring device provided in this application;
[0051] Figure 7 This is a schematic diagram of another embodiment of the volume measuring device provided in this application;
[0052] Figure 8 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation
[0053] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0054] Please refer to the details. Figure 1 and Figure 2 , Figure 1 This is a schematic flowchart of an embodiment of the volume measurement method provided in this application. Figure 2 This is a schematic diagram of the overall process of the volume measurement method provided in this application.
[0055] The volume measurement method of this application is applied to a volume measurement device, which can be a server or a system consisting of a server and a terminal device working together. Accordingly, the various parts of the volume measurement device, such as units, subunits, modules, and submodules, can be all located in the server, or they can be located separately in the server and the terminal device.
[0056] Furthermore, the aforementioned server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules, such as software or software modules used to provide distributed servers, or as a single software program or software module; no specific limitation is made here. In some possible implementations, the volume measurement method of this application embodiment can be implemented by a processor calling computer-readable instructions stored in memory.
[0057] Specifically, such as Figure 1 As shown, the volume measurement method of this application embodiment specifically includes the following steps:
[0058] Step S11: Obtain the target point cloud of the grain warehouse to be tested.
[0059] In this embodiment of the application, the volume measuring device can use lidar to acquire the overall point cloud of the grain silo to be measured.
[0060] Specifically, this application utilizes a gimbal-mounted LiDAR, positioned directly above the grain silo to be tested. The rotation of the gimbal allows for the scanning of point cloud data of the grain piles within the silo. It should be noted that the installation location of the LiDAR is not specifically limited, as long as it can scan the overall point cloud of the grain piles within the silo. Furthermore, the items to be tested within the silo can be other products besides grain piles, such as wheat piles, peanut piles, etc.
[0061] Furthermore, corresponding to different rotation angles of the gimbal, the lidar acquires initial point clouds at different angles; through the rotation of the gimbal, the lidar can acquire several frames of initial point clouds of the grain pile inside the grain silo to be measured. Then, the volume measurement device needs to register and fuse these several frames of initial point clouds to obtain the target point cloud of the grain silo to be measured.
[0062] Specifically, since the position of the gimbal remains unchanged, it only rotates according to a preset rotation angle, meaning the position of the lidar also remains the same. The volume measurement device calculates the initial rotation matrix between two adjacent initial point clouds based on the angle of each gimbal rotation. It should be noted that the angle of each gimbal rotation can be a preset rotation angle, or it can be controlled by the user or rotated automatically by the gimbal. The rotation angle is then fed back to the volume measurement device in real time for calculating the initial rotation matrix.
[0063] Assuming the gimbal rotates by an angle α around the X-axis each time, the initial rotation matrix is represented as:
[0064]
[0065] Assuming the gimbal rotates by an angle β around the Y-axis each time, the initial rotation matrix is represented as:
[0066]
[0067] Furthermore, the gimbal can also rotate around the X-axis and Y-axis simultaneously each time it rotates, and its initial rotation matrix is a combination of the initial rotation matrices of the two cases mentioned above.
[0068] The volume measurement device uses the initial rotation matrix of the two adjacent initial point clouds calculated above to complete the registration of all initial point cloud data according to the ICP (Iterative Closest Point) point cloud registration method, and obtains the point cloud scan data PC of the entire grain pile surface to be measured.
[0069] The volume measuring device begins to calculate the volume using the point cloud scan data PC obtained in step S11, based on the actual shape of the grain silo. Please refer to the following steps for explanations based on different grain silo shapes:
[0070] Step S12: Divide the target point cloud into a grid and obtain the base area of each grid.
[0071] In this embodiment of the application, before the volume measuring device divides the target point cloud into a grid, it is necessary to ensure that the coordinate axes of the target point cloud and the grid remain parallel.
[0072] Specifically, the volume measuring device can acquire the direction vector of the grain silo to be measured, and rotate the target point cloud using the Z-axis vector of the coordinate system and the direction vector to obtain the horizontal point cloud of the grain silo to be measured. For grain piles with regular shapes, the direction vector of the grain silo to be measured can be determined by the axial direction of the grain silo; for grain piles with irregular shapes, the direction vector of the grain silo to be measured can be determined by the direction vector perpendicular to the bottom surface of the grain silo.
[0073] The following describes the leveling process for different grain silo shapes:
[0074] When the actual grain silo is cylindrical and the grain pile covers the entire silo floor, the volume measurement device performs cylindrical segmentation on the point cloud scan data PC to obtain the cylindrical point cloud data and the axis v of the cylinder. c A point p on the axis c And the radius r of the cylinder.
[0075] The volume measuring device measures the axis v of the point cloud data of the cylinder. c Adjust the target point cloud to be horizontal so that the axis v of the cylinder is... c Parallel to the Z-axis (0, 0, 1) of the coordinate system, the specific leveling method is as follows:
[0076] a. First, find the axis of rotation n, where n = v c ×Z / ‖v c×Z‖, where × represents the cross product of vectors, and ‖v c ×Z‖ represents taking the modulus of the result of the cross product.
[0077] b. Then calculate the rotation angle θ.
[0078] c. Final rotation matrix R n =cosθI+(1-cosθ)nn T +sinθn^, where I is a 3*3 identity matrix, when n=(x,y,z),
[0079] The volume measuring device obtains the rotation matrix R using the above process. n To obtain point cloud PC′, adjust the point cloud PC to be horizontal. Specifically, for each point p in PC, perform the coordinate transformation according to the following formula:
[0080] p′=R n p
[0081] Furthermore, the volume measurement device can also utilize the characteristics of the cylindrical shape of the grain silo to filter the target point cloud, thereby obtaining an accurate target point cloud.
[0082] Specifically, the volume measuring device is based on the rotation matrix R n Calculate a point p on the axis c The coordinates p′ in PC′ c =R n p c The volume measurement device extracts the point cloud data PC belonging to the surface of the haystack from the point cloud PC′ based on the radius r of the cylinder. g The specific operation involves calculating the distance from each point p′(x′, y′, z′) in PC′ to p′. c (x′ c ,y′ c ,z′ c ) horizontal distance When d < r, it means that point p′ is a point on the surface of the valley, thus achieving the filtering of the target point cloud.
[0083] After leveling the target point cloud of the grain silo to be measured, the volume measurement device will PC the point cloud data. g ′, according to Figure 3 The aforementioned partitioning method is used to divide the grain into grids, and then the volume V of the grain pile is calculated.
[0084] When the actual grain silo is rectangular and the grain pile covers the entire silo floor, the volume measurement device performs planar segmentation on the point cloud scan data PC, extracts four planar data of the silo wall, and obtains the planar data equation and the non-planar point cloud data PC. gNon-planar data refers to the point cloud data of the grain pile surface.
[0085] (2) Select any plane from the grain pile surface point cloud data, and assume its normal vector is n. p Referring to the method for leveling the cylinder mentioned earlier, solve for the rotation matrix R. n Adjust the plane to a vertical direction so that n p Perpendicular to the Z-axis (0,0,1), the specific method is as follows:
[0086] a. First, find the axis of rotation n, where n = n p ×Z / ||n p ×Z||.
[0087] b. Then calculate the rotation angle θ.
[0088] c. Final rotation matrix R n =cosθI+(1-cosθ)nn T +cosθn^.
[0089] The volume measuring device obtains the rotation matrix R using the above process. n Point cloud PC g Adjust the level to obtain point cloud data PC of the grain pile surface. g ′.
[0090] After leveling the target point cloud of the grain silo to be measured, the volume measurement device will PC the point cloud data. g ′, according to Figure 4 The aforementioned partitioning method is used to divide the grain into grids, and then the volume V of the grain pile is calculated.
[0091] When the grain pile in the actual grain warehouse does not completely cover the bottom surface, the outer contour of the grain pile's bottom surface has an irregular geometric shape. In this case, the mesh division method for the target point cloud is as follows:
[0092] Depending on whether the grain silo is cylindrical or rectangular, the volume measurement device first levels the point cloud using the method described above, obtaining a leveled point cloud PC′. The volume measurement device then performs planar extraction on the point cloud PC′, removing the planar point cloud data belonging to the bottom surface of the grain silo to obtain the point cloud data PC belonging to the surface of the grain pile. g ′.
[0093] The volume measurement device will use point cloud data PC g Projecting along the Z-axis onto the xoy plane yields point cloud data PC. xoy Volume measurement device for point cloud data PC xoy Extract the outer contour to obtain the contour point cloud pc. b And calculate its centroid p b Assume p bFor (x) b ,y b ,z b ),but
[0094] Where N b For the outline point cloud pc′ b The number of midpoints.
[0095] The volume measuring device is based on the contour point cloud pc′ b and its center of mass p b Following the principles of Delaunay triangulation, the contour point cloud pc′ is... b The enclosed area is divided into triangular grids.
[0096] Furthermore, to avoid excessively large height ranges among points in each triangular mesh, which could lead to inaccurate volume calculations, each triangular mesh obtained from the triangular mesh division is further subdivided along the longest side of the triangle, thus dividing each triangular mesh into several smaller meshes, such as... Figure 5 As shown, the dividing line is parallel to the shortest side when making the division.
[0097] Step S13: Determine the target point cloud height for each grid.
[0098] In this embodiment of the application, the volume measurement device acquires each grid divided by the target point cloud in step S12, then acquires the height information of the data points within each grid range, calculates the average height of all data points in each grid as the target point cloud height of the grid.
[0099] Specifically, the volume measuring device measures the volume according to each grid c i Point p′ in the calculation grid c i height Where N i Represents grid c i The number of points contained therein.
[0100] When there are no points in the grid, the height of the grid will be estimated by interpolation based on its adjacent grids during volume measurement.
[0101] Step S14: Obtain the volume of each grid using the base area of each grid and the height of the target point cloud.
[0102] Step S15: Obtain the volume of the grain silo to be tested based on the volume of each grid.
[0103] In this embodiment of the application, assuming the height of the lidar installation position from the bottom surface of the grain silo is H, then each grid c i volume in Represents grid ci The base area of each grid cell is determined during grid division.
[0104] Finally, the volume measuring device sums the volumes of all the grids to obtain the volume V of the heap.
[0105] In this embodiment, the volume measuring device acquires a target point cloud of the grain silo to be measured; divides the target point cloud into a grid and obtains the base area of each grid; determines the height of the target point cloud for each grid; uses the base area and height of each grid to obtain the volume of each grid; and obtains the volume of the grain silo to be measured based on the volume of each grid. Through this method, the volume measuring device considers the shape of the actual grain silo, and by designing a grid division method for the target point cloud based on the shape of the actual grain silo, the accuracy and speed of volume calculation can be effectively improved.
[0106] This application calculates the volume of irregular grain piles by extracting the outer contour of the grain pile and dividing the area enclosed by the outer contour into triangular meshes. To avoid inaccurate volume calculations due to excessively large height ranges among points in each triangular mesh, each triangular mesh is further subdivided along the longest side of the triangle, resulting in several smaller meshes. The volume of each smaller mesh is then calculated separately and summed to achieve the volume calculation for irregular grain piles.
[0107] When calculating the volume of grain silos of common shapes by dividing them into grid blocks, this application has designed a specific grid division method. For cylindrical grain silos, instead of rectangular division, a fan-shaped block division method is adopted. By accurately calculating the bottom area of the edge area grid, the volume of the edge area grid is calculated, which improves the accuracy of grain pile volume calculation.
[0108] When collecting point cloud data of grain silos, this application uses a scanning method with a gimbal equipped with a lidar. The gimbal rotates around the x-axis or y-axis to complete the scanning of the grain silos. At the same time, the initial rotation matrix between adjacent frames is calculated based on the angle of each rotation of the gimbal. Then, the registration between point clouds is completed using the ICP method. The entire data acquisition and point cloud stitching process is simple and easy to implement.
[0109] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0110] To implement the volume measurement method of the above embodiments, this application also proposes a volume measurement device, which can be found in detail below. Figure 6 , Figure 6This is a schematic diagram of an embodiment of the volume measuring device provided in this application.
[0111] The volume measurement device 200 of this application embodiment includes: a point cloud acquisition module 21, a mesh generation module 22, and a volume measurement module 23.
[0112] Among them, the point cloud acquisition module 21 is used to acquire the target point cloud of the grain warehouse to be tested.
[0113] The grid division module 22 is used to divide the target point cloud into grids and obtain the bottom area of each grid.
[0114] The volume measurement module 23 is used to determine the target point cloud height of each grid; to obtain the volume of each grid using the bottom area of each grid and the target point cloud height; and to obtain the volume of the grain silo to be measured based on the volume of each grid.
[0115] To implement the volume measurement method of the above embodiments, this application also proposes another volume measurement device, please refer to [link / reference needed]. Figure 7 , Figure 7 This is a schematic diagram of another embodiment of the volume measuring device provided in this application.
[0116] The volume measuring device 300 of this application embodiment includes a memory 31 and a processor 32, wherein the memory 31 and the processor 32 are coupled together.
[0117] The memory 31 is used to store program data, and the processor 32 is used to execute the program data to implement the volume measurement method described in the above embodiments.
[0118] In this embodiment, processor 32 can also be referred to as a CPU (Central Processing Unit). Processor 32 may be an integrated circuit chip with signal processing capabilities. Processor 32 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or processor 32 can be any conventional processor.
[0119] To implement the volume measurement method of the above embodiments, this application also provides a computer-readable storage medium, such as... Figure 8As shown, the computer-readable storage medium 400 is used to store program data 41, which, when executed by a processor, is used to implement the volume measurement method as described in the above embodiments.
[0120] This application also provides a computer program product, wherein the computer program product includes a computer program operable to cause a computer to perform the volume measurement method as described in the embodiments of this application. The computer program product may be a software installation package.
[0121] The volume measurement method described in the above embodiments of this application, when implemented as a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0122] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A volume measurement method, characterized in that, The volume measurement method includes: Obtain the target point cloud of the grain warehouse to be tested; The target point cloud is divided into grids, and the base area of each grid is obtained; Determine the target point cloud height for each grid cell; The volume of each grid is obtained using the base area of each grid and the height of the target point cloud; The volume of the grain silo to be tested is obtained based on the volume of each grid. When the grain pile in the actual grain warehouse does not completely cover the bottom surface, the outer contour of the bottom surface of the grain pile has an irregular geometric shape. Before meshing the target point cloud, the volume measurement method further includes: The target point cloud is segmented into planes to obtain the surface point cloud after removing the planar point cloud from the target point cloud; The step of dividing the target point cloud into grids includes: Obtain the projection point cloud of the surface point cloud onto the XY plane; Extract the outer contour of the projected point cloud to obtain the contour point cloud; Based on the outline point cloud and its centroid, the area enclosed by the outline point cloud is divided into triangular meshes; After dividing the region enclosed by the contour point cloud into a triangular mesh according to the contour point cloud and its centroid, the volume measurement method further includes: Obtain the triangular mesh obtained from the triangular mesh generation; Find the longest edge of each triangular grid; The triangular mesh is divided along the longest side of each triangular mesh to obtain the final mesh.
2. The volume measurement method according to claim 1, characterized in that, The acquisition of the target point cloud of the grain warehouse to be tested includes: Several frames of initial point cloud data of the grain warehouse to be tested were collected according to a preset rotation angle. Based on the preset rotation angle, determine the rotation matrix between the initial point clouds of adjacent frames; The initial point clouds of several frames are merged into the target point cloud according to the rotation matrix.
3. The volume measurement method according to claim 1, characterized in that, After acquiring the target point cloud of the grain warehouse to be measured, the volume measurement method further includes: Obtain the direction vector of the grain warehouse to be tested; The target point cloud is rotated using the Z-axis vector of the coordinate system and the direction vector to obtain the horizontal point cloud of the grain silo to be measured.
4. The volume measurement method according to claim 3, characterized in that, The grain silo to be tested is a cylindrical grain silo; The step of obtaining the direction vector of the grain warehouse to be tested includes: The target point cloud is divided into cylindrical segments to obtain the axis of the cylindrical point cloud in the target point cloud; Determine the direction vector of the grain warehouse to be tested according to the axis.
5. The volume measurement method according to claim 4, characterized in that, Determining the target point cloud height for each grid includes: Obtain the cylinder radius of the cylindrical point cloud; Based on the axis, obtain the axis point cloud in the target point cloud; Obtain the surface point cloud in the target point cloud whose distance from the axis point cloud is less than the radius of the cylinder; The height of the target point cloud is obtained based on the height information of the surface point cloud of each grid.
6. The volume measurement method according to claim 3, characterized in that, The grain warehouse to be tested is a rectangular grain warehouse; The step of obtaining the direction vector of the grain warehouse to be tested includes: The target point cloud is segmented into planes to obtain the plane normal vectors of non-planar point clouds in the target point cloud; The direction vector of the grain warehouse to be tested is determined according to the plane normal vector.
7. A volume measuring device, characterized in that, The volume measuring device includes a processor and a memory, the memory storing program data, and the processor executing the program data to implement the volume measuring method as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program data, which, when executed by a processor, is used to implement the volume measurement method according to any one of claims 1-6.
Citation Information
Patent Citations
Granary bulk grain pile volume calculation method and related product thereof
CN115375753A
