[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022141055A1 - Method and system for measuring volume of grain in granary, electronic device and storage medium - Google Patents

Method and system for measuring volume of grain in granary, electronic device and storage medium Download PDF

Info

Publication number
WO2022141055A1
WO2022141055A1 PCT/CN2020/140861 CN2020140861W WO2022141055A1 WO 2022141055 A1 WO2022141055 A1 WO 2022141055A1 CN 2020140861 W CN2020140861 W CN 2020140861W WO 2022141055 A1 WO2022141055 A1 WO 2022141055A1
Authority
WO
WIPO (PCT)
Prior art keywords
granary
data
grain
point cloud
coordinates
Prior art date
Application number
PCT/CN2020/140861
Other languages
French (fr)
Chinese (zh)
Inventor
张焱
施逸
杨东
李汪红
Original Assignee
合肥达朴汇联科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 合肥达朴汇联科技有限公司 filed Critical 合肥达朴汇联科技有限公司
Priority to PCT/CN2020/140861 priority Critical patent/WO2022141055A1/en
Publication of WO2022141055A1 publication Critical patent/WO2022141055A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging

Definitions

  • the invention relates to the technical field of laser radar, in particular to a method, system, electronic device and storage medium for measuring grain volume in a granary.
  • Lidar Light Detection And Ranging
  • It is a system that integrates three technologies: laser, global positioning system (GPS) and IMU (Inertial Measurement Unit). Used to acquire data and generate accurate DEMs (Digital Elevation Models).
  • GPS global positioning system
  • IMU Inertial Measurement Unit
  • DEMs Digital Elevation Models
  • the combination of these three technologies can highly accurately locate the spot of the laser beam hitting the object, and the ranging accuracy can reach centimeter level. Based on this advantage, lidar is widely used in 3D reconstruction, vehicle-road collaboration and other application scenarios.
  • the Internet of Things technology has been widely used in the granary.
  • the temperature sensor deployed in the multi-layer grid is used to monitor the temperature of the granary in real time
  • the high-definition camera is used to monitor the image of the granary.
  • there are also methods of using cameras or infrared rays to detect the volume of grain in the granary but these methods all collect the height of several points on the edge of the granary, which approximates that the granary is in a flat state, with low precision, and requires the installation of guide rails in the granary, and the installation process is complicated.
  • Another example is the invention patent with the application number "CN201210224186.X” which discloses a method for measuring the volume of large irregular bulk grain piles based on dynamic three-dimensional laser scanning.
  • the laser radar device is a one-dimensional scanning device, which realizes line scanning and returns coordinate data;
  • the main control computer is used to transmit pulses to the stepping motor and process the signals; the main control computer obtains the point cloud data on the surface of the bulk grain pile, according to the user
  • For the allowable error value of the grain pile measurement determine the distribution density of the scanned points used to calculate the volume, and calculate the bulk grain pile weight according to the grain density provided by the user.
  • the patented solution is relatively complex, requires the use of guide rails, and has
  • the technical problem to be solved by the present invention is to overcome the problem of poor volume measurement accuracy of the existing granary.
  • a method for measuring grain volume in a granary comprising:
  • the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1
  • the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device
  • first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data.
  • the position data and the second point cloud data obtain the second coordinate P2 relative to the granary;
  • the first IMU data and the second IMU data are used in the measurement and calculation process.
  • the relative data is obtained through the first rotation matrix, the first position data and the first point cloud data.
  • the second coordinate P2' relative to the granary is obtained through the second rotation matrix, the second position data and the second point cloud data (that is, the point is converted from the coordinate system of the grain relative to the radar to the grain relative coordinate system).
  • the second coordinate P2' Based on the overall coordinate system of the granary), according to the first coordinate P1', the second coordinate P2' combined and registered to generate the grain simulation map to obtain the grain volume, which has higher accuracy and smaller error than one-dimensional linear scanning, and can be calculated more accurately Out of the granary volume.
  • the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
  • the first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
  • the dividing the grain simulation graph into several grids includes: dividing the grain simulation graph into grids according to x*y.
  • summing up the volumes of all grids includes: calculating the grain volume of each grid relative to the height h of the granary by the computing terminal, and calculating the grain volume x*y*h of each grid.
  • a granary storage capacity measurement system comprising:
  • the calculation module is used to receive the first IMU data and the first position data, the second IMU data and the second position data, and calculate the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix ;
  • the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1
  • the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device
  • the obtaining module is used to obtain the first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtain the first coordinate P1' relative to the granary through the second
  • the rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2 relative to the granary;
  • the judgment module is used to judge whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, and delete the noise data in the first point cloud data and the second point cloud data, and the remaining
  • the first coordinate P1' and the second coordinate P2' are combined and registered to generate a grain simulation map
  • the summation module is used to divide the grain simulation graph into several grids, count the height of each grid, and sum the volume of all grids to obtain the volume of all grains in the granary.
  • the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
  • the first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
  • the dividing the grain simulation graph into several grids includes: dividing the grain simulation graph into grids according to x*y, where x and y are any integers greater than 0.
  • summing the volumes of all grids includes: the computing terminal counts the grain of each grid relative to the height h of the granary, calculates the grain volume x*y*h of each grid, and sums it up.
  • An electronic device comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the granary grain as described Volume measurement method.
  • a storage medium having computer instructions stored thereon, the computer instructions implementing the method for measuring grain volume in a granary when executed by a processor.
  • the present invention uses the first IMU data and the second IMU data. After calculating the first rotation matrix and the second rotation matrix, the relative granary is obtained through the first rotation matrix, the first position data and the first point cloud data.
  • the first coordinate P1', the second coordinate P2' relative to the granary is obtained through the second rotation matrix, the second position data and the second point cloud data (that is, the point is converted from the coordinate system of the grain relative to the radar to the grain relative to the granary
  • the overall coordinate system according to the first coordinate P1', the second coordinate P2' combined and registered to generate a grain simulation map to obtain the grain volume, which can more accurately calculate the granary volume.
  • the present invention uses the first IMU data and the second IMU data in the measurement and calculation process, after calculating the first rotation matrix and the second rotation matrix, the first point cloud data .
  • Any point in the second point cloud data is converted into the overall coordinate system of the granary by the first rotation matrix and the second rotation moment (that is, the point is converted from the radar coordinate system to the overall coordinate system of the granary), which is more accurate than one-dimensional linear scanning. high, the error is smaller, and the volume of the granary can be calculated more accurately.
  • this method installs the first laser radar and the second laser radar at the diagonal positions of the granary, and forms the overall point cloud map of the granary by synthesizing the point cloud data of multiple radars, and carries out the measurement of the granary. Volume calculation, so there is no need to install rails, no need to turn on the light environment in the granary, the deployment is simpler and the cost is lower.
  • this method adopts the method of meshing the point cloud data in the final calculation of the volume, which is divided into zero, and the final calculation is obtained by superimposing the volume data of each individual mesh.
  • the volume of the overall granary is used to smooth the point cloud data in the grid, so that the volume calculation of each grid is more accurate.
  • the accuracy is higher and the error is smaller.
  • FIG. 1 is a schematic flowchart of a method for measuring a granary silo capacity provided in Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of the granary storage capacity measurement system provided in Embodiment 1 of the present invention.
  • FIG. 3 is a schematic diagram of the deployment of a first laser radar device, a second laser radar device, and a computing terminal in the method for measuring the capacity of a granary according to Embodiment 1 of the present invention.
  • FIG. 4 shows a structural block diagram of a device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a method for measuring grain volume in a granary according to an embodiment of the present disclosure.
  • the first laser radar device 2. The second laser radar device; 3. The computing terminal.
  • the computing terminal in the embodiments of the present disclosure may be a personal computer, a laptop portable computer, a desktop computer, or the like.
  • a method for measuring the volume of a granary includes:
  • the computing terminal 3 receives the first IMU data, the first position data, the second IMU data and the second position data, and calculates the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix ;
  • the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1
  • the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device
  • the computing terminal 3 obtains the first point cloud data and the second point cloud data respectively, and obtains the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtains the first coordinate P1' relative to the granary through the second
  • the rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2' relative to the granary;
  • the computing terminal 3 determines whether the first coordinate P1' and the second coordinate P2' are located in the granary, excludes the coordinates outside the granary, and deletes the noise data in the first point cloud data and the second point cloud data, and the remaining The first coordinate P1' and the second coordinate P2' are combined and registered to generate a grain simulation map;
  • the computing terminal 3 divides the grain simulation graph into several grids, and sums the volumes of all grids to obtain the volume of all grains in the granary.
  • step S10 the first IMU data and the second IMU data are collected by the first laser radar device 1 and the second laser radar device 2 installed above the inner wall of the granary, respectively.
  • FIG. 3 is a schematic diagram of the deployment of the first laser radar device, the second laser radar device, and the computing terminal in the method for measuring the capacity of a granary provided in Embodiment 1 of the present invention, the first laser radar device 1, and the second laser radar device. 2.
  • Computing terminal 3 the first laser radar device 1 and the second laser radar device 2 are respectively installed at the diagonal positions of the upper two ends of the interior of the granary by means of bolts or screws.
  • the center of the second laser radar device 2 points to the center of the granary, and the horizontal direction is leveled.
  • a computing terminal 3 is deployed in the office area of the granary park.
  • the first laser radar device 1, the second laser radar device 2, and the computing terminal 3 are in the same local area network. Inside.
  • the calculation process of the first IMU data and the second IMU data is the same.
  • the following takes the calculation process of the first IMU data (or the second IMU data) as an example:
  • the first IMU data (or the second IMU data) are N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, where n is any positive integer.
  • the IMU sensor in the first lidar device mainly includes a three-axis gyroscope, a three-axis accelerometer, and a three-axis magnetometer, so n can be 1 or 2 or 3.
  • the Madgwick algorithm is an existing algorithm, and the algorithm will not be described in detail here.
  • N1x, N1y, and N1z represent the output of any one of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in the three directions of x, y, and z. data (that is, the angular acceleration in the corresponding three directions during motion).
  • N1x, N1y, N1z, N2x, N2y, N2z represent any two of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in x, y, z three output data in each direction.
  • N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z represent the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer at x, y respectively.
  • R1, R2...R3 in R1' correspond to the data in R respectively.
  • the first IMU data or the second IMU data is a group of 6, which are respectively N1x, N1y, N1z, N2x, N2y, and N2z, representing the three-axis gyroscope and the three-axis accelerometer at x,
  • N1x, N1y, N1z, N2x, N2y, and N2z representing the three-axis gyroscope and the three-axis accelerometer at x
  • the gyroscope, accelerometer, and three-axis magnetometer are components in the lidar, so their positional relationship will not be described in detail here.
  • the second rotation matrix R2 of the second lidar device 2 can also be obtained by the same method, by converting the second rotation matrix R2 into R 2 ':
  • the first coordinate P1 and the second coordinate P2 of the grain relative to the radar are converted into the first coordinate P1' and the second coordinate P2' of the grain relative to the granary.
  • the cloud outlier removal algorithm is an existing algorithm, and the cloud outlier removal algorithm is: based on the input data set (ie the first point cloud data, the second point cloud data), the point to its neighbors distribution of distances. For each point in the point cloud, calculate its average distance to all neighboring points, by assuming that the resulting distribution is a Gaussian distribution with mean and standard deviation, its mean distance can be calculated as defined by the global mean and standard deviation of distances All points outside the interval are regarded as outliers and deleted from the dataset. Finally, the denoised first IMU data and the second IMU data are combined and registered to generate a grain simulation map.
  • step S13 in the solution of the embodiment of the present disclosure, the grain simulation graph is divided into grids according to x*y, and the calculation terminal can count the grain of each grid relative to the height h of the granary, and calculate the grain volume of each grid After x*y*h, sum up to get the volume of all grains in the granary, where x and y are any integers greater than 0.
  • the grain simulation map is divided into grids of 0.1m*0.1m, and the grain height of each grid is counted based on the combined grain simulation map. If there is no first point cloud data and second point cloud data in the grid, use the interpolation algorithm to interpolate based on the nearby point clouds; and calculate the grain volume of each grid according to 0.1*0.1* height, and then sum all grid volumes , calculate the volume of all grains in the granary.
  • the interpolation algorithm is mainly used for calculating the average value, and the interpolation algorithm can be selected according to the actual situation.
  • the interpolation algorithm is a conventional technical means in the field, and the specific process of the interpolation algorithm will not be described here.
  • FIG. 2 is a schematic flowchart of a granary silo capacity measurement system provided in Embodiment 1 of the present invention, a granary silo capacity measurement system, including:
  • the calculation module 501 is used to receive the first IMU data and the first position data, the second IMU data and the second position data, and respectively calculate the first IMU data and the second IMU data to obtain the corresponding first rotation matrix and second rotation matrix. matrix;
  • the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1
  • the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device
  • the acquisition module 502 is used to acquire the first point cloud data and the second point cloud data, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtain the first coordinate P1' relative to the granary through the second
  • the rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2' relative to the granary;
  • the judgment module 503 is used to judge whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, and delete the noise data in the first point cloud data and the second point cloud data, The remaining first coordinates P1' and second coordinates P2' are combined and registered to generate a grain simulation map;
  • the summation module 504 is used for dividing the grain simulation graph into several grids, and summing the volumes of all grids to obtain the volume of all grains in the granary.
  • the first IMU data and the second IMU data are collected by the first laser radar device 1 and the second laser radar device 2 installed inside the granary, respectively.
  • the calculation process of the first IMU data and the second IMU data is the same.
  • the following takes the calculation process of the first IMU data (or the second IMU data) as an example:
  • the first IMU data (or the second IMU data) are N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, where n is any positive integer.
  • the IMU sensors in lidar mainly include three-axis gyroscopes, three-axis accelerometers, and three-axis magnetometers, so n can be 1 or 2 or 3.
  • the Madgwick algorithm is an existing algorithm, and the algorithm will not be described in detail here.
  • N1x, N1y, and N1z represent the output of any one of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in the three directions of x, y, and z. data (that is, the angular acceleration in the corresponding three directions during motion).
  • N1x, N1y, N1z, N2x, N2y, N2z represent any two of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in x, y, z three output data in each direction.
  • N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z represent the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer at x, y respectively.
  • formula (1) is as follows:
  • R1, R2...R3 in R1' correspond to the data in R respectively.
  • the first IMU data or the second IMU data is a group of 6, which are respectively N1x, N1y, N1z, N2x, N2y, and N2z, representing the three-axis gyroscope and the three-axis accelerometer at x,
  • N1x, N1y, N1z, N2x, N2y, and N2z representing the three-axis gyroscope and the three-axis accelerometer at x
  • the gyroscope, accelerometer, and three-axis magnetometer are components in the lidar, so their positional relationship will not be described in detail here.
  • the rotation matrix of the second lidar device 2 can also be obtained by the same method.
  • the first coordinate P1 and the second coordinate P2 of the grain relative to the radar are converted into the first coordinate P1' and the second coordinate P2' of the grain relative to the granary.
  • the cloud outlier removal algorithm is an existing algorithm, and the cloud outlier removal algorithm is: based on the input data set (ie, the first point cloud data, the second point cloud data) point to its neighbors distribution of distances. For each point in the point cloud, calculate its average distance to all neighboring points, by assuming that the resulting distribution is a Gaussian distribution with mean and standard deviation, its mean distance can be defined by the global distance mean and standard deviation All points outside the interval are regarded as outliers and deleted from the dataset. Finally, the denoised first IMU data and the second IMU data are combined and registered to generate a grain simulation map.
  • the grain simulation graph is divided into grids according to x*y, and the grains of each grid are counted relative to the height h of the granary, and the grain volume x of each grid is calculated. After *y*h, sum up to get the volume of all grains in the granary, where x and y are any integers greater than 0.
  • the grain simulation map is divided into grids of 0.1m*0.1m, and the grain height of each grid is counted based on the combined grain simulation map. If there is no first point cloud data and second point cloud data in the grid, use the interpolation algorithm to interpolate based on the nearby point clouds; and calculate the grain volume of each grid according to 0.1*0.1* height, and then sum all grid volumes , calculate the volume of all grains in the granary.
  • the interpolation algorithm is mainly used for calculating the average value, and the interpolation algorithm can be selected according to the actual situation.
  • the interpolation algorithm is a conventional technical means in the field, and the specific process of the interpolation algorithm will not be described here.
  • FIG. 4 shows a structural block diagram of a device according to an embodiment of the present disclosure.
  • the foregoing embodiment describes the internal function and structure of the computing terminal 3.
  • the foregoing structure of the computing terminal 3 may be implemented as an electronic device.
  • the electronic device 900 may include a processor 901 and a memory 902.
  • the memory 902 is configured to store a program that supports the processor to execute the method for measuring the grain volume of a granary in any of the above embodiments, and the processor 901 is configured to execute the program stored in the memory 902 .
  • the memory 902 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 901 to implement the steps described in Embodiment 1.
  • FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a method for measuring grain volume in a granary according to an embodiment of the present disclosure.
  • a computer system 1000 includes a processor (CPU, GPU, FPGA, etc.) 1001 that can be loaded into a random access memory (RAM) according to a program stored in a read only memory (ROM) 1002 or from a storage section 1008
  • the program in 1003 executes part or all of the processing in the embodiments shown in the above drawings.
  • various programs and data necessary for the operation of the system 1000 are also stored.
  • the processor 1001 , the ROM 1002 and the RAM 1003 are connected to each other through a bus 1004 .
  • An input/output (I/O) interface 1005 is also connected to the bus 1004 .
  • the following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc. ; and a communication section 1009 including a network interface card such as a LAN card, a modem, and the like. The communication section 1009 performs communication processing via a network such as the Internet.
  • a drive 1010 is also connected to the I/O interface 1005 as needed.
  • a removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.
  • embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a readable medium thereof, the computer program containing program code for performing the methods of the accompanying drawings.
  • the computer program may be downloaded and installed from the network through the communication section 1009, and/or installed from the removable medium 1011.
  • each block in the diagram or block diagram may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function. executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units or modules involved in the embodiments of the present disclosure can be implemented in software or hardware.
  • the described units or modules may also be provided in the processor, and the names of these units or modules do not constitute a limitation on the units or modules themselves in certain circumstances.
  • the present disclosure also provides a storage medium, where the storage medium is a computer-readable storage medium, and the computer-readable storage medium may be a computer-readable storage medium included in the computing terminal described in the foregoing embodiments ; or a computer-readable storage medium that exists alone, not assembled into the device.
  • the computer-readable storage medium stores one or more programs used by one or more processors to perform the methods described in the present disclosure.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

A method and system (1000) for measuring the volume of grain in a granary, an electronic device (900), and a storage medium. The method comprises: calculating first IMU data and second IMU data to obtain a corresponding first rotation matrix and second rotation matrix (S10); respectively obtaining first point cloud data and second point cloud data, and obtaining first coordinates P1' with respect to the granary (S11); determining whether the first coordinates P1' and second coordinates P2' are in the granary, deleting noise data outside the granary, and combining and registering the remaining first coordinates P1' and second coordinates P2' to generate a grain simulation map (S12); and dividing the grain simulation map into several grids, and summing the volume of all the grids to obtain the volume of the grain in the granary (S13). During the measurement and calculation processes, the first IMU data and the second IMU data are used, and the first rotation matrix and the second rotation matrix are converted into an overall coordinate system of the granary which has higher accuracy and smaller error, and can calculate the volume of the granary more accurately compared with one-dimensional linear scanning.

Description

一种粮仓粮食体积测量方法、系统、电子设备及存储介质Method, system, electronic device and storage medium for measuring grain volume in granary 技术领域technical field
本发明涉及激光雷达技术领域,尤其涉及一种粮仓粮食体积测量方法、系统、电子设备及存储介质。The invention relates to the technical field of laser radar, in particular to a method, system, electronic device and storage medium for measuring grain volume in a granary.
背景技术Background technique
激光雷达英文全称为Light Detection And Ranging,简称LiDAR,即光探测与测量,是一种集激光、全球定位系统(GPS)和IMU(Inertial Measurement Unit,惯性测量单元)三种技术于一身的系统,用于获得数据并生成精确的DEM(数字高程模型)。这三种技术的结合,可以高度准确地定位激光束打在物体上的光斑,测距精度可达厘米级。基于此优点,激光雷达广泛使用在三维重建,车路协同等应用场景。The full name of Lidar in English is Light Detection And Ranging, or LiDAR for short, that is, light detection and measurement. It is a system that integrates three technologies: laser, global positioning system (GPS) and IMU (Inertial Measurement Unit). Used to acquire data and generate accurate DEMs (Digital Elevation Models). The combination of these three technologies can highly accurately locate the spot of the laser beam hitting the object, and the ranging accuracy can reach centimeter level. Based on this advantage, lidar is widely used in 3D reconstruction, vehicle-road collaboration and other application scenarios.
目前粮仓已经广泛使用了物联网技术,例如使用多层网格部署的温度传感器实时监控粮仓温度,使用高清摄像头监控粮仓画面。目前也存在使用摄像头或者红外线检测粮仓粮食体积的方法,但是这些方法都是通过采集粮仓边缘数个点高度,近似粮仓为平整状态,精度较低,且需要在粮仓内安装导轨,安装流程复杂。At present, the Internet of Things technology has been widely used in the granary. For example, the temperature sensor deployed in the multi-layer grid is used to monitor the temperature of the granary in real time, and the high-definition camera is used to monitor the image of the granary. At present, there are also methods of using cameras or infrared rays to detect the volume of grain in the granary, but these methods all collect the height of several points on the edge of the granary, which approximates that the granary is in a flat state, with low precision, and requires the installation of guide rails in the granary, and the installation process is complicated.
又如申请号为“CN201210224186.X”的发明专利公开了一种基于动态三维激光扫描的大型不规则散粮堆体积测量方法,其具体步骤如下:首先在粮仓顶部中间位置,沿宽度方向布置导轨;导轨上设有步进电机控制的滑块,激光雷达扫描仪安装在滑块上;滑块从粮仓顶部一端匀速移动至另一端,滑块带动激光雷达扫描仪完成整个散粮堆表面的扫描;激光雷达装 置为一维扫描装置,实现线扫描并返回坐标数据;主控制电脑用于给步进电机发射脉冲,对信号进行处理;主控制电脑得到散粮堆表面的点云数据,根据用户对粮堆测量所允许的误差值,确定用以计算体积的被扫描点的分布密度,根据用户提供粮食密度,计算散粮堆重量。该专利方案较为复杂,需要用到导轨,同时计算精度较差。Another example is the invention patent with the application number "CN201210224186.X" which discloses a method for measuring the volume of large irregular bulk grain piles based on dynamic three-dimensional laser scanning. ; There is a slider controlled by a stepping motor on the guide rail, and the lidar scanner is installed on the slider; the slider moves from one end of the top of the granary to the other end at a constant speed, and the slider drives the lidar scanner to scan the entire surface of the bulk grain pile ; The laser radar device is a one-dimensional scanning device, which realizes line scanning and returns coordinate data; the main control computer is used to transmit pulses to the stepping motor and process the signals; the main control computer obtains the point cloud data on the surface of the bulk grain pile, according to the user For the allowable error value of the grain pile measurement, determine the distribution density of the scanned points used to calculate the volume, and calculate the bulk grain pile weight according to the grain density provided by the user. The patented solution is relatively complex, requires the use of guide rails, and has poor calculation accuracy.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题在于克服现有粮仓体积测量精度较差的问题。The technical problem to be solved by the present invention is to overcome the problem of poor volume measurement accuracy of the existing granary.
本发明通过以下技术手段实现解决上述技术问题的:The present invention realizes and solves the above-mentioned technical problems through the following technical means:
一种粮仓粮食体积测量方法,包括:A method for measuring grain volume in a granary, comprising:
接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;Receive the first IMU data and the first position data, the second IMU data and the second position data, and calculate the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix;
其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1,pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
分别获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2;Obtain the first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data. The position data and the second point cloud data obtain the second coordinate P2 relative to the granary;
判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;Determine whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, delete the noise data in the first point cloud data and the second point cloud data, and the remaining first coordinate P1 ', the second coordinate P2' is combined and registered to generate a grain simulation map;
将粮食模拟图划分成若干个网格,对所有网格体积求和,得到粮仓所 有粮食的体积。Divide the grain simulation graph into several grids, and sum up the volumes of all grids to obtain the volume of all grains in the granary.
在测量和计算过程中使用了第一IMU数据、第二IMU数据,在计算第一旋转矩阵、第二旋转矩阵后,并通过第一旋转矩阵、第一位置数据、第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2’(即将点由粮食相对于雷达的坐标系转换为粮食相对于粮仓的整体坐标系),根据第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图得到粮食体积,相对于一维线性扫描精度更高,误差更小,能更准确的计算出粮仓体积。The first IMU data and the second IMU data are used in the measurement and calculation process. After the first rotation matrix and the second rotation matrix are calculated, the relative data is obtained through the first rotation matrix, the first position data and the first point cloud data. For the first coordinate P1' of the granary, the second coordinate P2' relative to the granary is obtained through the second rotation matrix, the second position data and the second point cloud data (that is, the point is converted from the coordinate system of the grain relative to the radar to the grain relative coordinate system). Based on the overall coordinate system of the granary), according to the first coordinate P1', the second coordinate P2' combined and registered to generate the grain simulation map to obtain the grain volume, which has higher accuracy and smaller error than one-dimensional linear scanning, and can be calculated more accurately Out of the granary volume.
作为本发明进一步的方案:所述第一IMU数据、第二IMU数据分别由安装于粮仓内部的第一激光雷达设备、第二激光雷达设备采集。As a further solution of the present invention, the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
作为本发明进一步的方案:As a further scheme of the present invention:
将第一IMU数据或者第二IMU数据利用Madgwick算法计算出一个四元数q=[q0,q1,q2、q3];Using the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3] from the first IMU data or the second IMU data;
将基于第一IMU数据或者第二IMU数据计算得到对应的四元数代入公式(1),通过公式(1)获取第一旋转矩阵或者第一旋转矩阵;Substitute the corresponding quaternion calculated based on the first IMU data or the second IMU data into formula (1), and obtain the first rotation matrix or the first rotation matrix by formula (1);
所述第一IMU数据或者第二IMU数据为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数;The first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
Figure PCTCN2020140861-appb-000001
Figure PCTCN2020140861-appb-000001
通过公式(2)将R1或者R2对应转化为R1’或者R2’,公式(2)如下:Convert R1 or R2 to R1' or R2' correspondingly by formula (2), formula (2) is as follows:
Figure PCTCN2020140861-appb-000002
Figure PCTCN2020140861-appb-000002
作为本发明进一步的方案:通过第一旋转矩阵与第一点云数据获取相对于粮仓的第一坐标P1’包括:所述第一点云数据、第二点云数据中包括若干个点,对于任意一点的坐标为P1=(x1,y1,z1),则第一激光雷达设备在粮仓内的坐标相对于粮仓的第一坐标P1’=P*R 1'-第一位置数据。 As a further solution of the present invention: obtaining the first coordinate P1' relative to the granary through the first rotation matrix and the first point cloud data includes: the first point cloud data and the second point cloud data include several points, for The coordinates of any point are P1=(x1, y1, z1), then the coordinates of the first lidar device in the granary are relative to the first coordinates of the granary P1'=P*R 1 '-first position data.
作为本发明进一步的方案:通过第二旋转矩阵与第二点云数据获取相对于粮仓的第二坐标P2’包括:第二点云数据中包括若干个点,对于任意一点的坐标为P2=(x2,y2,z2),第二激光雷达设备在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据。 As a further scheme of the present invention: obtaining the second coordinate P2' relative to the granary through the second rotation matrix and the second point cloud data includes: the second point cloud data includes several points, and the coordinates for any point are P2=( x2, y2, z2), the coordinates of the second lidar device in the granary are relative to the second coordinates of the granary P2'=P2*R 2 '-second position data.
作为本发明进一步的方案:所述将粮食模拟图划分成若干个网格包括:将粮食模拟图按照x*y划分网格。As a further solution of the present invention: the dividing the grain simulation graph into several grids includes: dividing the grain simulation graph into grids according to x*y.
作为本发明进一步的方案:对所有网格体积求和包括:计算终端统计每个网格的粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求。As a further solution of the present invention: summing up the volumes of all grids includes: calculating the grain volume of each grid relative to the height h of the granary by the computing terminal, and calculating the grain volume x*y*h of each grid.
一种粮仓仓容测量系统,包括:A granary storage capacity measurement system, comprising:
计算模块,用于接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;The calculation module is used to receive the first IMU data and the first position data, the second IMU data and the second position data, and calculate the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix ;
其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1,pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
获取模块,用于分别获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2;The obtaining module is used to obtain the first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtain the first coordinate P1' relative to the granary through the second The rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2 relative to the granary;
判断模块,用于判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;The judgment module is used to judge whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, and delete the noise data in the first point cloud data and the second point cloud data, and the remaining The first coordinate P1' and the second coordinate P2' are combined and registered to generate a grain simulation map;
求和模块,用于将粮食模拟图划分成若干个网格,统计每个网格高度,对所有网格体积求和,得到粮仓所有粮食的体积。The summation module is used to divide the grain simulation graph into several grids, count the height of each grid, and sum the volume of all grids to obtain the volume of all grains in the granary.
作为本发明进一步的方案:所述第一IMU数据、第二IMU数据分别由安装于粮仓内部的第一激光雷达设备、第二激光雷达设备采集。As a further solution of the present invention, the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
作为本发明进一步的方案:As a further scheme of the present invention:
将第一IMU数据或者第二IMU数据利用Madgwick算法计算出一个四元数q=[q0,q1,q2、q3];Using the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3] from the first IMU data or the second IMU data;
将基于第一IMU数据或者第二IMU数据计算得到对应的四元数代入公式(1),通过公式(1)获取第一旋转矩阵R1或者第一旋转矩阵R2;Substitute the corresponding quaternion calculated based on the first IMU data or the second IMU data into formula (1), and obtain the first rotation matrix R1 or the first rotation matrix R2 by formula (1);
第一IMU数据或者第二IMU数据为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数;The first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
Figure PCTCN2020140861-appb-000003
Figure PCTCN2020140861-appb-000003
通过公式(2)将R1或者R2对应转化为R1’或者R2’,如公式(2)所示:Convert R1 or R2 to R1' or R2' by formula (2), as shown in formula (2):
Figure PCTCN2020140861-appb-000004
Figure PCTCN2020140861-appb-000004
作为本发明进一步的方案:通过第一旋转矩阵与第一点云数据获取相对于粮仓的第一坐标P1’包括:所述第一点云数据、第二点云数据中包括 若干个点,P1=(x1,y1,z1),则第一激光雷达设备在粮仓内的坐标相对于粮仓的第一坐标P1’=P1*R 1'-第一位置数据。 As a further solution of the present invention: obtaining the first coordinate P1' relative to the granary through the first rotation matrix and the first point cloud data includes: the first point cloud data and the second point cloud data include several points, P1 =(x1, y1, z1), then the coordinates of the first lidar device in the granary are relative to the first coordinates of the granary P1'=P1*R 1 '-first position data.
作为本发明进一步的方案:通过第二旋转矩阵与第二点云数据获取相对于粮仓的第二坐标P2’包括:第二点云数据中包括若干个点,对于任意一点的坐标为P2=(x2,y2,z2),第二激光雷达设备在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据。 As a further scheme of the present invention: obtaining the second coordinate P2' relative to the granary through the second rotation matrix and the second point cloud data includes: the second point cloud data includes several points, and the coordinates for any point are P2=( x2, y2, z2), the coordinates of the second lidar device in the granary are relative to the second coordinates of the granary P2'=P2*R 2 '-second position data.
作为本发明进一步的方案:所述将粮食模拟图划分成若干个网格包括:将粮食模拟图按照x*y划分网格,x、y为任意大于0的整数。As a further solution of the present invention: the dividing the grain simulation graph into several grids includes: dividing the grain simulation graph into grids according to x*y, where x and y are any integers greater than 0.
作为本发明进一步的方案:对所有网格体积求和包括:计算终端统计每个网格的粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求和。As a further solution of the present invention: summing the volumes of all grids includes: the computing terminal counts the grain of each grid relative to the height h of the granary, calculates the grain volume x*y*h of each grid, and sums it up.
一种电子设备,包括存储器和处理器;其中,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行以实现如所述的粮仓粮食体积测量方法。An electronic device comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the granary grain as described Volume measurement method.
一种存储介质,其上存储有计算机指令,该计算机指令被处理器执行时实现如所述的粮仓粮食体积测量方法。A storage medium having computer instructions stored thereon, the computer instructions implementing the method for measuring grain volume in a granary when executed by a processor.
本发明的优点在于:The advantages of the present invention are:
1、本发明使用了第一IMU数据、第二IMU数据,在计算第一旋转矩阵、第二旋转矩阵后,并通过第一旋转矩阵、第一位置数据、第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2’(即将点由粮食相对于雷达的坐标系转换为粮食相对于粮仓的整体坐标系),根据第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图得到粮食体积,能更准确的计算出粮 仓体积。1. The present invention uses the first IMU data and the second IMU data. After calculating the first rotation matrix and the second rotation matrix, the relative granary is obtained through the first rotation matrix, the first position data and the first point cloud data. The first coordinate P1', the second coordinate P2' relative to the granary is obtained through the second rotation matrix, the second position data and the second point cloud data (that is, the point is converted from the coordinate system of the grain relative to the radar to the grain relative to the granary The overall coordinate system), according to the first coordinate P1', the second coordinate P2' combined and registered to generate a grain simulation map to obtain the grain volume, which can more accurately calculate the granary volume.
2、相对于现有的测量方法,由于本发明在测量和计算过程中使用了第一IMU数据、第二IMU数据,在计算第一旋转矩阵、第二旋转矩阵后,将第一点云数据、第二点云数据中的任意点,由第一旋转矩阵、第二旋转矩转换为粮仓整体坐标系(即将点由雷达坐标系转换为粮仓整体坐标系),相对于一维线性扫描精度更高,误差更小,能更准确的计算出粮仓体积。2. Compared with the existing measurement method, since the present invention uses the first IMU data and the second IMU data in the measurement and calculation process, after calculating the first rotation matrix and the second rotation matrix, the first point cloud data . Any point in the second point cloud data is converted into the overall coordinate system of the granary by the first rotation matrix and the second rotation moment (that is, the point is converted from the radar coordinate system to the overall coordinate system of the granary), which is more accurate than one-dimensional linear scanning. high, the error is smaller, and the volume of the granary can be calculated more accurately.
3、相对于现有的测量方法,由于所使用的激光雷达厘米级别的定位精度,本方法测量精度更高。3. Compared with the existing measurement methods, the measurement accuracy of this method is higher due to the centimeter-level positioning accuracy of the laser radar used.
4、.相对于现有的测量方法,本方法将第一激光雷达、第二激光雷达安装在粮仓的对角位置,通过合成多个雷达的点云数据形成粮仓的整体点云图,进行粮仓的体积计算,从而无需安装导轨,无需要粮仓内开灯环境,部署更简单,成本更低。4. Compared with the existing measurement methods, this method installs the first laser radar and the second laser radar at the diagonal positions of the granary, and forms the overall point cloud map of the granary by synthesizing the point cloud data of multiple radars, and carries out the measurement of the granary. Volume calculation, so there is no need to install rails, no need to turn on the light environment in the granary, the deployment is simpler and the cost is lower.
5、相对于现有的测量方法,本方法在最后对体积进行计算时采用了对点云数据进行网格划分的方法,化整为零,由每个单独的网格体积数据叠加求出最终整体粮仓的体积。同时运用了线性插值的方法来平滑网格内的点云数据,使得每个网格的体积计算更加精确,相对于传统的直接计算整体数据的方法精度更高,误差也更小。5. Compared with the existing measurement methods, this method adopts the method of meshing the point cloud data in the final calculation of the volume, which is divided into zero, and the final calculation is obtained by superimposing the volume data of each individual mesh. The volume of the overall granary. At the same time, the linear interpolation method is used to smooth the point cloud data in the grid, so that the volume calculation of each grid is more accurate. Compared with the traditional method of directly calculating the overall data, the accuracy is higher and the error is smaller.
附图说明Description of drawings
图1为本发明实施例1提供的粮仓仓容测量方法的流程示意图。FIG. 1 is a schematic flowchart of a method for measuring a granary silo capacity provided in Embodiment 1 of the present invention.
图2为本发明实施例1提供的粮仓仓容测量系统的流程示意图。FIG. 2 is a schematic flowchart of the granary storage capacity measurement system provided in Embodiment 1 of the present invention.
图3为本发明实施例1提供的粮仓仓容测量方法的中第一激光雷达设备、第二激光雷达设备、计算终端的部署示意图。3 is a schematic diagram of the deployment of a first laser radar device, a second laser radar device, and a computing terminal in the method for measuring the capacity of a granary according to Embodiment 1 of the present invention.
图4示出根据本公开一实施方式的设备的结构框图。FIG. 4 shows a structural block diagram of a device according to an embodiment of the present disclosure.
图5是适于用来实现根据本公开一实施方式的粮仓粮食体积测量方法的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a method for measuring grain volume in a granary according to an embodiment of the present disclosure.
附图说明:Description of drawings:
1、第一激光雷达设备;2、第二激光雷达设备;3、计算终端。1. The first laser radar device; 2. The second laser radar device; 3. The computing terminal.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are part of the present invention. examples, but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在本公开的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如10、11等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In some of the processes described in the specification and claims of the present disclosure and the above-mentioned figures, various operations are included in a specific order, but it should be clearly understood that the operations may be performed out of the order in which they appear in the text. Executed or executed in parallel, the sequence numbers of the operations, such as 10, 11, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Additionally, these flows may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit "first" and "second" are different types.
需要强调的是,本公开实施例中的计算终端,可以为个人电脑、膝上型便携计算机和台式计算机等。It should be emphasized that, the computing terminal in the embodiments of the present disclosure may be a personal computer, a laptop portable computer, a desktop computer, or the like.
实施例1Example 1
图1为本发明实施例1提供的粮仓仓容测量方法的流程示意图,参阅图1,一种粮仓粮食体积测量方法,包括:1 is a schematic flowchart of a method for measuring the volume of a granary provided in Embodiment 1 of the present invention. Referring to FIG. 1 , a method for measuring the volume of grain in a granary includes:
S10、计算终端3接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;S10. The computing terminal 3 receives the first IMU data, the first position data, the second IMU data and the second position data, and calculates the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix ;
其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1,pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
S11、计算终端3分别获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2’;S11. The computing terminal 3 obtains the first point cloud data and the second point cloud data respectively, and obtains the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtains the first coordinate P1' relative to the granary through the second The rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2' relative to the granary;
S12、计算终端3判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;S12. The computing terminal 3 determines whether the first coordinate P1' and the second coordinate P2' are located in the granary, excludes the coordinates outside the granary, and deletes the noise data in the first point cloud data and the second point cloud data, and the remaining The first coordinate P1' and the second coordinate P2' are combined and registered to generate a grain simulation map;
若不位于粮仓内,则将处于粮仓外的坐标排除,再将位于粮仓内的坐标;If it is not located in the granary, the coordinates outside the granary will be excluded, and then the coordinates located in the granary will be excluded;
S13、计算终端3将粮食模拟图划分成若干个网格,对所有网格体积求和,即可得到粮仓所有粮食的体积。S13. The computing terminal 3 divides the grain simulation graph into several grids, and sums the volumes of all grids to obtain the volume of all grains in the granary.
在步骤S10中,第一IMU数据、第二IMU数据分别由安装于粮仓内壁上方的第一激光雷达设备1、第二激光雷达设备2采集。In step S10, the first IMU data and the second IMU data are collected by the first laser radar device 1 and the second laser radar device 2 installed above the inner wall of the granary, respectively.
参阅图3,图3为本发明实施例1提供的粮仓仓容测量方法的中第一激光雷达设备、第二激光雷达设备、计算终端的部署示意图,第一激光雷达 设备1、第二激光雷达设备2、计算终端3,所述第一激光雷达设备1、第二激光雷达设备2分别螺栓或者螺钉等方式安装在粮仓内部上方两端对角线位置处,所述第一激光雷达设备1、第二激光雷达设备2中心指向粮仓中心,且水平方向调平,.在粮仓园区办公区域部署一台计算终端3,第一激光雷达设备1、第二激光雷达设备2、计算终端3处于同一个局域网内。Referring to FIG. 3, FIG. 3 is a schematic diagram of the deployment of the first laser radar device, the second laser radar device, and the computing terminal in the method for measuring the capacity of a granary provided in Embodiment 1 of the present invention, the first laser radar device 1, and the second laser radar device. 2. Computing terminal 3, the first laser radar device 1 and the second laser radar device 2 are respectively installed at the diagonal positions of the upper two ends of the interior of the granary by means of bolts or screws. The center of the second laser radar device 2 points to the center of the granary, and the horizontal direction is leveled. A computing terminal 3 is deployed in the office area of the granary park. The first laser radar device 1, the second laser radar device 2, and the computing terminal 3 are in the same local area network. Inside.
对第一IMU数据、第二IMU数据的计算过程是相同的,下面以第一IMU数据(或者第二IMU数据)计算过程为例:The calculation process of the first IMU data and the second IMU data is the same. The following takes the calculation process of the first IMU data (or the second IMU data) as an example:
第一IMU数据(或者第二IMU数据)为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数。The first IMU data (or the second IMU data) are N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, where n is any positive integer.
一般来说,第一激光雷达设备中的IMU传感器主要包括三轴陀螺仪、三轴加速度计、三轴磁力计,所以n可以为1或者2或者3。Generally speaking, the IMU sensor in the first lidar device mainly includes a three-axis gyroscope, a three-axis accelerometer, and a three-axis magnetometer, so n can be 1 or 2 or 3.
将N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz代入Madgwick算法计算出一个四元数q=[q0,q1,q2、q3],该四元数用于三轴陀螺仪或者三轴加速度计或者三轴磁力计旋转后的位置。Substitute N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz into the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3], which is used for a three-axis gyroscope or The rotated position of the triaxial accelerometer or triaxial magnetometer.
其中,Madgwick算法为现有的算法,此处不再对该算法进行详细描述。Among them, the Madgwick algorithm is an existing algorithm, and the algorithm will not be described in detail here.
具体的,当N为1的时候,此时以N1x、N1y、N1z代表三轴陀螺仪、三轴加速度计、三轴磁力计三者中任意一个在x,y,z三个方向上的输出数据(即运动时相应的三个方向的角加速度)。Specifically, when N is 1, N1x, N1y, and N1z represent the output of any one of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in the three directions of x, y, and z. data (that is, the angular acceleration in the corresponding three directions during motion).
其中,当N为2的时候,此时以N1x、N1y、N1z,N2x、N2y、N2z代表了三轴陀螺仪、三轴加速度计、三轴磁力计中任意两个在x,y,z三个方向上的输出数据。Among them, when N is 2, at this time, N1x, N1y, N1z, N2x, N2y, N2z represent any two of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in x, y, z three output data in each direction.
其中,当N为3的时候,此时以N1x、N1y、N1z,N2x、N2y、N2z, N3x、N3y、N3z分别代表了三轴陀螺仪、三轴加速度计、三轴磁力计在x,y,z三个方向上的输出数据;(其中具体N1x、N1y、N1z,N2x、N2y、N2z,N3x、N3y、N3z与三轴陀螺仪、三轴加速度计、三轴磁力计对应关系可以更改的)。Among them, when N is 3, N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z represent the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer at x, y respectively. , the output data in the three directions of z; (the specific correspondence between N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z and the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer can be changed ).
将基于第一IMU数据或者第二IMU数据计算得到对应的四元数代入公式(1),通过公式(1)获取第一激光雷达设备1的第一旋转矩阵R1(或者第二激光雷达设备2的第二旋转矩阵R2);公式(1)如下:Substitute the corresponding quaternion calculated based on the first IMU data or the second IMU data into formula (1), and obtain the first rotation matrix R1 of the first lidar device 1 (or the second lidar device 2) through formula (1). The second rotation matrix R2); formula (1) is as follows:
Figure PCTCN2020140861-appb-000005
Figure PCTCN2020140861-appb-000005
通过公式(2)将R1(或者R2)转化为R1’(R2’),公式(2)如下:Convert R1 (or R2) to R1' (R2') by formula (2), formula (2) is as follows:
Figure PCTCN2020140861-appb-000006
Figure PCTCN2020140861-appb-000006
得到
Figure PCTCN2020140861-appb-000007
get
Figure PCTCN2020140861-appb-000007
其中,R1’中的R1、R2…R3分别对应了R中的数据。Among them, R1, R2...R3 in R1' correspond to the data in R respectively.
本公开实施例的方案中,第一IMU数据或者第二IMU数据为6个一组,分别为N1x、N1y、N1z,N2x、N2y、N2z,代表三轴陀螺仪和三轴加速度计在x,y,z三个方向上的输出数据,使用这6个值和Madgwick算法计算出一个四元数q=[q0,q1,q2,q3];通过q计算出具体的旋转矩阵R,In the solution of the embodiment of the present disclosure, the first IMU data or the second IMU data is a group of 6, which are respectively N1x, N1y, N1z, N2x, N2y, and N2z, representing the three-axis gyroscope and the three-axis accelerometer at x, For the output data in the three directions of y and z, use these 6 values and the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3]; calculate the specific rotation matrix R through q,
其中,陀螺仪、加速度计、三轴磁力计为激光雷达里面的组件,而所以此处不再进行详细说明其位置关系。Among them, the gyroscope, accelerometer, and three-axis magnetometer are components in the lidar, so their positional relationship will not be described in detail here.
同样,第二激光雷达设备2的第二旋转矩阵R2也通过相同方法即可获 得,将第二旋转矩阵R2转换为R 2': Similarly, the second rotation matrix R2 of the second lidar device 2 can also be obtained by the same method, by converting the second rotation matrix R2 into R 2 ':
Figure PCTCN2020140861-appb-000008
Figure PCTCN2020140861-appb-000008
在步骤S11中,第一点云数据、第二点云数据中包括若干个点,对于第一点云数据中任意一点的坐标为P1=(x1,y1,z1)、第二点云数据中任意一点P2=(x2,y2,z2),则第一激光雷达设备1在粮仓内的坐标相对于粮仓的第一坐标P1’=P1*R 1'-第一位置数据; In step S11, the first point cloud data and the second point cloud data include several points, and the coordinates of any point in the first point cloud data are P1=(x1, y1, z1), and the second point cloud data Any point P2=(x2, y2, z2), then the coordinates of the first lidar device 1 in the granary are relative to the first coordinates of the granary P1'=P1*R 1 '-first position data;
第二激光雷达设备2在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据,得到公式(3)和公式(4):P1’=(x*R 1+y*R 4+z*R 7-px1,x*R 2+y*R 5+z*R 8-py1,x*R 3+y*R 6+z*R 9-pz1)(3)P2’=(x2*R 21+y2*R 24+z2*R 27-px1,x2*R 22+y2*R 25+z2*R 28-py1,x2*R 23+y2*R 36+z2*R 29-pz1)(4); The coordinates of the second lidar device 2 in the granary are relative to the second coordinates of the granary P2'=P2*R 2 '-second position data, formulas (3) and (4) are obtained: P1'=(x*R 1 +y*R 4 +z*R 7 -px1, x*R 2 +y*R 5 +z*R 8 -py1, x*R 3 +y*R 6 +z*R 9 -pz1)(3 )P2'=(x2*R 21 +y2*R 24 +z2*R 27 -px1, x2*R 22 +y2*R 25 +z2*R 28 -py1, x2*R 23 +y2*R 36 +z2 *R 29 -pz1)(4);
通过公式(3)、公式(4),实现将粮食相对于雷达的第一坐标P1、第二坐标P2转换成了粮食相对于粮仓的第一坐标P1’、第二坐标P2’。Through formula (3) and formula (4), the first coordinate P1 and the second coordinate P2 of the grain relative to the radar are converted into the first coordinate P1' and the second coordinate P2' of the grain relative to the granary.
在步骤S12中;云离群点去除算法为现有的算法,而云离群点去除算法为:基于输入数据集(即第一点云数据、第二点云数据)中点到它的邻居距离的分布。对于点云中的每个点,计算出它到所有相邻点的平均距离,通过假设结果分布是具有均值和标准差的高斯分布,可以将其平均距离在由全局距离均值和标准差定义的区间之外的所有点视为离群点并从数据集中进行删除,最后将去噪后的第一IMU数据、第二IMU数据合并配准生成粮食模拟图。In step S12; the cloud outlier removal algorithm is an existing algorithm, and the cloud outlier removal algorithm is: based on the input data set (ie the first point cloud data, the second point cloud data), the point to its neighbors distribution of distances. For each point in the point cloud, calculate its average distance to all neighboring points, by assuming that the resulting distribution is a Gaussian distribution with mean and standard deviation, its mean distance can be calculated as defined by the global mean and standard deviation of distances All points outside the interval are regarded as outliers and deleted from the dataset. Finally, the denoised first IMU data and the second IMU data are combined and registered to generate a grain simulation map.
在步骤S13中,本公开实施例的方案中,将粮食模拟图按照x*y划分 网格,并计算终端可统计每个网格的粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求和,得到粮仓中所有粮食的体积,x、y为任意大于0的整数。In step S13, in the solution of the embodiment of the present disclosure, the grain simulation graph is divided into grids according to x*y, and the calculation terminal can count the grain of each grid relative to the height h of the granary, and calculate the grain volume of each grid After x*y*h, sum up to get the volume of all grains in the granary, where x and y are any integers greater than 0.
其中,任意的P1=(x1,y1,z1)就是一个x1,y1,z1数据,其中z1为粮食相对于第一激光雷达的坐标高度,再与第一激光雷达的旋转矩阵相乘后,得到粮食相对应粮仓高度h(公式(3)中的x1*R 3+y1*R 6+z1*R 9),也就是说,h=x1*R 3+y1*R 6+z1*R 9Among them, any P1=(x1, y1, z1) is a data of x1, y1, z1, where z1 is the coordinate height of the grain relative to the first lidar, and then multiplied by the rotation matrix of the first lidar, we get The grain corresponds to the granary height h (x1*R 3 +y1*R 6 +z1*R 9 in the formula (3)), that is, h=x1*R 3 +y1*R 6 +z1*R 9 .
示例性的,将粮食模拟图按0.1米*0.1米划分网格,基于合并后的粮食模拟图统计每个网格的粮食高度。如果网格内没有第一点云数据、第二点云数据使用插值算法基于附近点云进行插值处理;并按0.1*0.1*高度计算每个网格粮食体积,再对所有网格体积求和,计算出粮仓内所有粮食体积。Exemplarily, the grain simulation map is divided into grids of 0.1m*0.1m, and the grain height of each grid is counted based on the combined grain simulation map. If there is no first point cloud data and second point cloud data in the grid, use the interpolation algorithm to interpolate based on the nearby point clouds; and calculate the grain volume of each grid according to 0.1*0.1* height, and then sum all grid volumes , calculate the volume of all grains in the granary.
其中,所述插值算法主要用于求平均值,可以根据实际情况选择插值算法,插值算法为本领域常规技术手段,此处不再对插值算法的具体过程进行说明。The interpolation algorithm is mainly used for calculating the average value, and the interpolation algorithm can be selected according to the actual situation. The interpolation algorithm is a conventional technical means in the field, and the specific process of the interpolation algorithm will not be described here.
实施例2Example 2
参阅图2,图2为本发明实施例1提供的粮仓仓容测量系统的流程示意图,一种粮仓仓容测量系统,包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a granary silo capacity measurement system provided in Embodiment 1 of the present invention, a granary silo capacity measurement system, including:
计算模块501,用于接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;The calculation module 501 is used to receive the first IMU data and the first position data, the second IMU data and the second position data, and respectively calculate the first IMU data and the second IMU data to obtain the corresponding first rotation matrix and second rotation matrix. matrix;
其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1, pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
获取模块502,用于获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2’;The acquisition module 502 is used to acquire the first point cloud data and the second point cloud data, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtain the first coordinate P1' relative to the granary through the second The rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2' relative to the granary;
判断模块503,用于判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;The judgment module 503 is used to judge whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, and delete the noise data in the first point cloud data and the second point cloud data, The remaining first coordinates P1' and second coordinates P2' are combined and registered to generate a grain simulation map;
若不位于粮仓内,则将处于粮仓外的坐标排除,再将位于粮仓内的坐标;If it is not located in the granary, the coordinates outside the granary will be excluded, and then the coordinates located in the granary will be excluded;
求和模块504,用于将粮食模拟图划分成若干个网格,对所有网格体积求和,得到粮仓所有粮食的体积。The summation module 504 is used for dividing the grain simulation graph into several grids, and summing the volumes of all grids to obtain the volume of all grains in the granary.
在计算模块中,第一IMU数据、第二IMU数据分别由安装于粮仓内部的第一激光雷达设备1、第二激光雷达设备2采集。In the computing module, the first IMU data and the second IMU data are collected by the first laser radar device 1 and the second laser radar device 2 installed inside the granary, respectively.
对第一IMU数据、第二IMU数据的计算过程是相同的,下面以第一IMU数据(或者第二IMU数据)计算过程为例:The calculation process of the first IMU data and the second IMU data is the same. The following takes the calculation process of the first IMU data (or the second IMU data) as an example:
第一IMU数据(或者第二IMU数据)为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数。The first IMU data (or the second IMU data) are N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, where n is any positive integer.
一般来说,激光雷达中的IMU传感器主要包括三轴陀螺仪、三轴加速度计、三轴磁力计,所以n可以为1或者2或者3。Generally speaking, the IMU sensors in lidar mainly include three-axis gyroscopes, three-axis accelerometers, and three-axis magnetometers, so n can be 1 or 2 or 3.
将N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz代入Madgwick 算法计算出一个四元数q=[q0,q1,q2、q3],其中q0、q1、q2、q3分别代表。Substitute N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz into Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3], where q0, q1, q2, q3 represent respectively.
其中,Madgwick算法为现有的算法,此处不再对该算法进行详细描述。Among them, the Madgwick algorithm is an existing algorithm, and the algorithm will not be described in detail here.
具体的,当N为1的时候,此时以N1x、N1y、N1z代表三轴陀螺仪、三轴加速度计、三轴磁力计三者中任意一个在x,y,z三个方向上的输出数据(即运动时相应的三个方向的角加速度)。Specifically, when N is 1, N1x, N1y, and N1z represent the output of any one of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in the three directions of x, y, and z. data (that is, the angular acceleration in the corresponding three directions during motion).
其中,当N为2的时候,此时以N1x、N1y、N1z,N2x、N2y、N2z代表了三轴陀螺仪、三轴加速度计、三轴磁力计中任意两个在x,y,z三个方向上的输出数据。Among them, when N is 2, at this time, N1x, N1y, N1z, N2x, N2y, N2z represent any two of the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer in x, y, z three output data in each direction.
其中,当N为3的时候,此时以N1x、N1y、N1z,N2x、N2y、N2z,N3x、N3y、N3z分别代表了三轴陀螺仪、三轴加速度计、三轴磁力计在x,y,z三个方向上的输出数据;(其中具体N1x、N1y、N1z,N2x、N2y、N2z,N3x、N3y、N3z与三轴陀螺仪、三轴加速度计、三轴磁力计对应关系可以更改的)。Among them, when N is 3, N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z represent the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer at x, y respectively. , the output data in the three directions of z; (the specific correspondence between N1x, N1y, N1z, N2x, N2y, N2z, N3x, N3y, N3z and the three-axis gyroscope, three-axis accelerometer, and three-axis magnetometer can be changed ).
将四元数代入公式(1),通过公式(1)获取第一激光雷达设备1的第一旋转矩阵R1(或者第二激光雷达设备2的第二旋转矩阵R2),公式(1)如下:Substitute the quaternion into formula (1), and obtain the first rotation matrix R1 of the first lidar device 1 (or the second rotation matrix R2 of the second lidar device 2) through formula (1), formula (1) is as follows:
Figure PCTCN2020140861-appb-000009
Figure PCTCN2020140861-appb-000009
通过公式(2)将R1(或者R2)转化为R1’(R2’),公式(2)如下:Convert R1 (or R2) to R1' (R2') by formula (2), formula (2) is as follows:
Figure PCTCN2020140861-appb-000010
Figure PCTCN2020140861-appb-000010
其中,R1’中的R1、R2…R3分别对应了R中的数据。Among them, R1, R2...R3 in R1' correspond to the data in R respectively.
本公开实施例的方案中,第一IMU数据或者第二IMU数据为6个一组,分别为N1x、N1y、N1z,N2x、N2y、N2z,代表三轴陀螺仪和三轴加速度计在x,y,z三个方向上的输出数据,使用这6个值和Madgwick算法计算出一个四元数q=[q0,q1,q2,q3];通过q计算出具体的旋转矩阵R。In the solution of the embodiment of the present disclosure, the first IMU data or the second IMU data is a group of 6, which are respectively N1x, N1y, N1z, N2x, N2y, and N2z, representing the three-axis gyroscope and the three-axis accelerometer at x, For the output data in the three directions of y and z, use these 6 values and the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3]; calculate the specific rotation matrix R through q.
其中,陀螺仪、加速度计、三轴磁力计为激光雷达里面的组件,而所以此处不再进行详细说明其位置关系。Among them, the gyroscope, accelerometer, and three-axis magnetometer are components in the lidar, so their positional relationship will not be described in detail here.
同样,第二激光雷达设备2的旋转矩阵也通过相同方法即可获得。Likewise, the rotation matrix of the second lidar device 2 can also be obtained by the same method.
在获取模块中,第一点云数据、第二点云数据中包括若干个点,对于第一点云数据中任意一点的坐标为P1=(x1,y1,z1)、第二点云数据中任意一点P2=(x2,y2,z2),则第一激光雷达设备1在粮仓内的坐标相对于粮仓的第一坐标P1’=P1*R 1'-第一位置数据; In the acquisition module, the first point cloud data and the second point cloud data include several points, and the coordinates of any point in the first point cloud data are P1=(x1, y1, z1), and the second point cloud data Any point P2=(x2, y2, z2), then the coordinates of the first lidar device 1 in the granary are relative to the first coordinates of the granary P1'=P1*R 1 '-first position data;
第二激光雷达设备2在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据,得到公式(3)和公式(4):P1’=(x*R 1+y*R 4+z*R 7-px1,x*R 2+y*R 5+z*R 8-py1,x*R 3+y*R 6+z*R 9-pz1)(3)P2’=(x2*R 21+y2*R 24+z2*R 27-px1,x2*R 22+y2*R 25+z2*R 28-py1,x2*R 23+y2*R 36+z2*R 29-pz1)(4); The coordinates of the second lidar device 2 in the granary are relative to the second coordinates of the granary P2'=P2*R 2 '-second position data, formulas (3) and (4) are obtained: P1'=(x*R 1 +y*R 4 +z*R 7 -px1, x*R 2 +y*R 5 +z*R 8 -py1, x*R 3 +y*R 6 +z*R 9 -pz1)(3 )P2'=(x2*R 21 +y2*R 24 +z2*R 27 -px1, x2*R 22 +y2*R 25 +z2*R 28 -py1, x2*R 23 +y2*R 36 +z2 *R 29 -pz1)(4);
通过公式(3)、公式(4),实现将粮食相对于雷达的第一坐标P1、第二坐标P2转换成了粮食相对于粮仓的第一坐标P1’、第二坐标P2’。Through formula (3) and formula (4), the first coordinate P1 and the second coordinate P2 of the grain relative to the radar are converted into the first coordinate P1' and the second coordinate P2' of the grain relative to the granary.
在判断模块中;云离群点去除算法为现有的算法,而云离群点去除算法为:基于输入数据集(即第一点云数据、第二点云数据)中点到它的邻居距离的分布。对于点云中的每个点,计算出它到所有相邻点的平均距离, 通过假设结果分布是具有均值和标准差的高斯分布,可以将其平均距离在由全局距离均值和标准差定义的区间之外的所有点视为离群点并从数据集中进行删除,最后将去噪后的第一IMU数据、第二IMU数据合并配准生成粮食模拟图。In the judgment module; the cloud outlier removal algorithm is an existing algorithm, and the cloud outlier removal algorithm is: based on the input data set (ie, the first point cloud data, the second point cloud data) point to its neighbors distribution of distances. For each point in the point cloud, calculate its average distance to all neighboring points, by assuming that the resulting distribution is a Gaussian distribution with mean and standard deviation, its mean distance can be defined by the global distance mean and standard deviation All points outside the interval are regarded as outliers and deleted from the dataset. Finally, the denoised first IMU data and the second IMU data are combined and registered to generate a grain simulation map.
在求和模块中,本公开实施例的方案中,将粮食模拟图按照x*y划分网格,并统计每个网格的粮食粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求和,得到粮仓中所有粮食的体积,x、y为任意大于0的整数。In the summation module, in the solution of the embodiment of the present disclosure, the grain simulation graph is divided into grids according to x*y, and the grains of each grid are counted relative to the height h of the granary, and the grain volume x of each grid is calculated. After *y*h, sum up to get the volume of all grains in the granary, where x and y are any integers greater than 0.
其中,任意的P1=(x1,y1,z1)就是一个x1,y1,z1数据,其中z1为粮食相对于第一激光雷达的坐标高度,再与第一激光雷达的旋转矩阵相乘后,得到粮食相对应粮仓高度h(公式(3)中的x1*R 3+y1*R 6+z1*R 9),也就是说,h=x1*R 3+y1*R 6+z1*R 9Among them, any P1=(x1, y1, z1) is a data of x1, y1, z1, where z1 is the coordinate height of the grain relative to the first lidar, and then multiplied by the rotation matrix of the first lidar, we get The grain corresponds to the granary height h (x1*R 3 +y1*R 6 +z1*R 9 in the formula (3)), that is, h=x1*R 3 +y1*R 6 +z1*R 9 .
示例性的,将粮食模拟图按0.1米*0.1米划分网格,基于合并后的粮食模拟图统计每个网格的粮食高度。如果网格内没有第一点云数据、第二点云数据使用插值算法基于附近点云进行插值处理;并按0.1*0.1*高度计算每个网格粮食体积,再对所有网格体积求和,计算出粮仓所有粮食体积。Exemplarily, the grain simulation map is divided into grids of 0.1m*0.1m, and the grain height of each grid is counted based on the combined grain simulation map. If there is no first point cloud data and second point cloud data in the grid, use the interpolation algorithm to interpolate based on the nearby point clouds; and calculate the grain volume of each grid according to 0.1*0.1* height, and then sum all grid volumes , calculate the volume of all grains in the granary.
其中,所述插值算法主要用于求平均值,可以根据实际情况选择插值算法,插值算法为本领域常规技术手段,此处不再对插值算法的具体过程进行说明。The interpolation algorithm is mainly used for calculating the average value, and the interpolation algorithm can be selected according to the actual situation. The interpolation algorithm is a conventional technical means in the field, and the specific process of the interpolation algorithm will not be described here.
图4示出根据本公开一实施方式的设备的结构框图。FIG. 4 shows a structural block diagram of a device according to an embodiment of the present disclosure.
前述实施例描述了计算终端3的内部功能和结构,在一个可能的设计中,前述计算终端3的结构可实现为电子设备,如图3中所示,该电子设 备900可以包括处理器901和存储器902。The foregoing embodiment describes the internal function and structure of the computing terminal 3. In a possible design, the foregoing structure of the computing terminal 3 may be implemented as an electronic device. As shown in FIG. 3, the electronic device 900 may include a processor 901 and a memory 902.
所述存储器902用于存储支持处理器执行上述任一实施例中粮仓粮食体积测量方法的程序,所述处理器901被配置为用于执行所述存储器902中存储的程序。The memory 902 is configured to store a program that supports the processor to execute the method for measuring the grain volume of a granary in any of the above embodiments, and the processor 901 is configured to execute the program stored in the memory 902 .
所述存储器902用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器901执行以实现如实施例1所述的步骤。The memory 902 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 901 to implement the steps described in Embodiment 1.
图5是适于用来实现根据本公开一实施方式的粮仓粮食体积测量方法的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing a method for measuring grain volume in a granary according to an embodiment of the present disclosure.
如图5所示,计算机系统1000包括处理器(CPU、GPU、FPGA等)1001,其可以根据存储在只读存储器(ROM)1002中的程序或者从存储部分1008加载到随机访问存储器(RAM)1003中的程序而执行上述附图所示的实施方式中的部分或全部处理。在RAM1003中,还存储有系统1000操作所需的各种程序和数据。处理器1001、ROM1002以及RAM1003通过总线1004彼此相连。输入/输出(I/O)接口1005也连接至总线1004。As shown in FIG. 5, a computer system 1000 includes a processor (CPU, GPU, FPGA, etc.) 1001 that can be loaded into a random access memory (RAM) according to a program stored in a read only memory (ROM) 1002 or from a storage section 1008 The program in 1003 executes part or all of the processing in the embodiments shown in the above drawings. In the RAM 1003, various programs and data necessary for the operation of the system 1000 are also stored. The processor 1001 , the ROM 1002 and the RAM 1003 are connected to each other through a bus 1004 . An input/output (I/O) interface 1005 is also connected to the bus 1004 .
以下部件连接至I/O接口1005:包括键盘、鼠标等的输入部分1006;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1007;包括硬盘等的存储部分1008;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1009。通信部分1009经由诸如因特网的网络执行通信处理。驱动器1010也根据需要连接至I/O接口1005。可拆卸介质1011,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1010上,以便于从其上读出的计算机程序根据需要被安装入存储部分1008。The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc. ; and a communication section 1009 including a network interface card such as a LAN card, a modem, and the like. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.
特别地,根据本公开的实施方式,上文参考附图描述的方法可以被实现为计算机软件程序。例如,本公开的实施方式包括一种计算机程序产品,其包括有形地包含在及其可读介质上的计算机程序,所述计算机程序包含用于执行附图中的方法的程序代码。在这样的实施方式中,该计算机程序可以通过通信部分1009从网络上被下载和安装,和/或从可拆卸介质1011被安装。In particular, according to embodiments of the present disclosure, the methods described above with reference to the accompanying drawings may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a readable medium thereof, the computer program containing program code for performing the methods of the accompanying drawings. In such an embodiment, the computer program may be downloaded and installed from the network through the communication section 1009, and/or installed from the removable medium 1011.
附图中的流程图和框图,图示了按照本公开各种实施方式的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,路程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the diagram or block diagram may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function. executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施方式中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present disclosure can be implemented in software or hardware. The described units or modules may also be provided in the processor, and the names of these units or modules do not constitute a limitation on the units or modules themselves in certain circumstances.
作为另一方面,本公开还提供了一种存储介质,该存储介质为计算机 可读存储介质,该计算机可读存储介质可以是上述实施方式中所述计算终端中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,所述程序被一个或者一个以上的处理器用来执行描述于本公开的方法。As another aspect, the present disclosure also provides a storage medium, where the storage medium is a computer-readable storage medium, and the computer-readable storage medium may be a computer-readable storage medium included in the computing terminal described in the foregoing embodiments ; or a computer-readable storage medium that exists alone, not assembled into the device. The computer-readable storage medium stores one or more programs used by one or more processors to perform the methods described in the present disclosure.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (16)

  1. 一种粮仓粮食体积测量方法,其特征在于,包括以下步骤:A method for measuring the volume of grain in a granary, comprising the following steps:
    接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;Receive the first IMU data and the first position data, the second IMU data and the second position data, and calculate the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix;
    其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1,pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
    分别获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2’;Obtain the first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data. The position data and the second point cloud data obtain the second coordinate P2' relative to the granary;
    判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;Determine whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, delete the noise data in the first point cloud data and the second point cloud data, and the remaining first coordinate P1 ', the second coordinate P2' is combined and registered to generate a grain simulation map;
    将粮食模拟图划分成若干个网格,对所有网格体积求和,得到粮仓所有粮食的体积。The grain simulation graph is divided into several grids, and the volume of all grids is summed to obtain the volume of all grains in the granary.
  2. 根据权利要求1所述的粮仓粮食体积测量方法,其特征在于,所述第一IMU数据、第二IMU数据分别由安装于粮仓内部的第一激光雷达设备、第二激光雷达设备采集。The method for measuring grain volume in a granary according to claim 1, wherein the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
  3. 根据权利要求2所述的粮仓粮食体积测量方法,其特征在于,granary grain volume measurement method according to claim 2, is characterized in that,
    将第一IMU数据或者第二IMU数据利用Madgwick算法计算出一个四元数q=[q0,q1,q2、q3];Using the Madgwick algorithm to calculate a quaternion q=[q0, q1, q2, q3] from the first IMU data or the second IMU data;
    将基于第一IMU数据或者第二IMU数据计算得到对应的四元数代入公式(1),通过公式(1)获取第一旋转矩阵R1或者第一旋转矩阵R2;Substitute the corresponding quaternion calculated based on the first IMU data or the second IMU data into formula (1), and obtain the first rotation matrix R1 or the first rotation matrix R2 by formula (1);
    第一IMU数据或者第二IMU数据为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数;The first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
    Figure PCTCN2020140861-appb-100001
    Figure PCTCN2020140861-appb-100001
    通过公式(2)将R1或者R2对应转化为R1’或者R2’,公式(2)如下:Convert R1 or R2 to R1' or R2' correspondingly by formula (2), formula (2) is as follows:
    Figure PCTCN2020140861-appb-100002
    Figure PCTCN2020140861-appb-100002
  4. 根据权利要求3所述的粮仓粮食体积测量方法,其特征在于,通过第一旋转矩阵与第一点云数据获取相对于粮仓的第一坐标P1’包括:所述第一点云数据、第二点云数据中包括若干个点,P1=(x1,y1,z1),则第一激光雷达设备在粮仓内的坐标相对于粮仓的第一坐标P1’=P1*R 1'-第一位置数据。 The method for measuring the grain volume of a granary according to claim 3, wherein obtaining the first coordinate P1' relative to the granary through the first rotation matrix and the first point cloud data comprises: the first point cloud data, the second The point cloud data includes several points, P1=(x1, y1, z1), then the coordinates of the first lidar device in the granary are relative to the first coordinates of the granary P1'=P1*R 1 '-first position data .
  5. 根据权利要求3所述的粮仓粮食体积测量方法,其特征在于,通过第二旋转矩阵与第二点云数据获取相对于粮仓的第二坐标P2’包括:The granary grain volume measurement method according to claim 3, wherein obtaining the second coordinate P2' relative to the granary through the second rotation matrix and the second point cloud data comprises:
    第二点云数据中包括若干个点,对于任意一点的坐标为P2=(x2,y2,z2),第二激光雷达设备在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据。 The second point cloud data includes several points, the coordinates of any point are P2=(x2, y2, z2), the coordinates of the second lidar device in the granary are relative to the second coordinates of the granary P2'=P2*R 2 ' - Second position data.
  6. 根据权利要求1所述的粮仓粮食体积测量方法,其特征在于,所述将粮食模拟图划分成若干个网格包括:将粮食模拟图按照x*y划分网格,x、y为任意大于0的整数。The method for measuring grain volume in a granary according to claim 1, wherein the dividing the grain simulation graph into several grids comprises: dividing the grain simulation graph into grids according to x*y, where x and y are any greater than 0 the integer.
  7. 根据权利要求6所述的粮仓粮食体积测量方法,其特征在于,对所 有网格体积求和包括:计算终端统计每个网格的粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求和。The method for measuring the grain volume of a granary according to claim 6, wherein the summation of the volumes of all grids comprises: the computing terminal counts the grain of each grid relative to the height h of the granary, and calculates the grain volume x of each grid Sum after *y*h.
  8. 一种粮仓仓容测量系统,其特征在于,包括:A granary storage capacity measurement system, characterized in that it includes:
    计算模块,用于接收第一IMU数据与第一位置数据、第二IMU数据与第二位置数据,并分别计算第一IMU数据、第二IMU数据得到对应的第一旋转矩阵、第二旋转矩阵;The calculation module is used to receive the first IMU data and the first position data, the second IMU data and the second position data, and calculate the first IMU data and the second IMU data respectively to obtain the corresponding first rotation matrix and second rotation matrix ;
    其中,第一位置数据为粮食相对于第一雷达设备1的坐标(px1,py1,pz1),第二位置数据为粮食相对于第二激光雷达设备的坐标(px2,py2,pz2);Wherein, the first position data is the coordinates (px1, py1, pz1) of the grain relative to the first radar device 1, and the second position data is the coordinates (px2, py2, pz2) of the grain relative to the second lidar device;
    获取模块,用于分别获取第一点云数据、第二点云数据,并通过第一旋转矩阵、第一位置数据与第一点云数据获取相对于粮仓的第一坐标P1’,通过第二旋转矩阵、第二位置数据与第二点云数据获取相对于粮仓的第二坐标P2;The obtaining module is used to obtain the first point cloud data and the second point cloud data respectively, and obtain the first coordinate P1' relative to the granary through the first rotation matrix, the first position data and the first point cloud data, and obtain the first coordinate P1' relative to the granary through the second The rotation matrix, the second position data and the second point cloud data obtain the second coordinate P2 relative to the granary;
    判断模块,用于判断第一坐标P1’、第二坐标P2’是否位于粮仓内,将处于粮仓外的坐标排除,并将第一点云数据、第二点云数据中的噪点数据删除,剩余的第一坐标P1’、第二坐标P2’合并配准生成粮食模拟图;The judgment module is used to judge whether the first coordinate P1' and the second coordinate P2' are located in the granary, exclude the coordinates outside the granary, and delete the noise data in the first point cloud data and the second point cloud data, and the remaining The first coordinate P1' and the second coordinate P2' are combined and registered to generate a grain simulation map;
    求和模块,用于将粮食模拟图划分成若干个网格,对所有网格体积求和,得到粮仓所有粮食的体积。The summation module is used to divide the grain simulation graph into several grids, and sum the volumes of all grids to obtain the volume of all grains in the granary.
  9. 根据权利要求7所述的粮仓粮食体积测量系统,其特征在于,所述第一IMU数据、第二IMU数据分别由安装于粮仓内部的第一激光雷达设备、第二激光雷达设备采集。The granary grain volume measurement system according to claim 7, wherein the first IMU data and the second IMU data are collected by a first laser radar device and a second laser radar device installed inside the granary, respectively.
  10. 根据权利要求8所述的粮仓粮食体积测量系统,其特征在于,;The granary grain volume measurement system according to claim 8, wherein:
    将第一IMU数据或者第二IMU数据利用Madgwick算法计算出一个四 元数q=[q0,q1,q2、q3];Using the first IMU data or the second IMU data to calculate a quaternion q=[q0, q1, q2, q3] by using the Madgwick algorithm;
    将基于第一IMU数据或者第二IMU数据计算得到对应的四元数代入公式(1),通过公式(1)获取第一旋转矩阵R1或者第一旋转矩阵R2;Substitute the corresponding quaternion calculated based on the first IMU data or the second IMU data into formula (1), and obtain the first rotation matrix R1 or the first rotation matrix R2 by formula (1);
    第一IMU数据或者第二IMU数据为N1x、N1y、N1z,N2x、N2y、N2z…Nnx、Nny、Nnz,n为任意正整数;The first IMU data or the second IMU data is N1x, N1y, N1z, N2x, N2y, N2z...Nnx, Nny, Nnz, and n is any positive integer;
    Figure PCTCN2020140861-appb-100003
    Figure PCTCN2020140861-appb-100003
    通过公式(2)将R1或者R2对应转化为R1’或者R2’,如公式(2)所示:Convert R1 or R2 to R1' or R2' by formula (2), as shown in formula (2):
    Figure PCTCN2020140861-appb-100004
    Figure PCTCN2020140861-appb-100004
  11. 根据权利要求11所述的粮仓粮食体积测量系统,其特征在于,通过第一旋转矩阵与第一点云数据获取相对于粮仓的第一坐标P1’包括:所述第一点云数据、第二点云数据中包括若干个点,P1=(x1,y1,z1),则第一激光雷达设备在粮仓内的坐标相对于粮仓的第一坐标P1’=P1*R 1'-第一位置数据。 The granary grain volume measurement system according to claim 11, wherein obtaining the first coordinate P1' relative to the granary through the first rotation matrix and the first point cloud data comprises: the first point cloud data, the second The point cloud data includes several points, P1=(x1, y1, z1), then the coordinates of the first lidar device in the granary are relative to the first coordinates of the granary P1'=P1*R 1 '-first position data .
  12. 根据权利要求11所述的粮仓粮食体积测量系统,其特征在于,通过第二旋转矩阵与第二点云数据获取相对于粮仓的第二坐标P2’包括:第二点云数据中包括若干个点,对于任意一点的坐标为P2=(x2,y2,z2),第二激光雷达设备在粮仓内的坐标相对于粮仓的第二坐标P2’=P2*R 2'-第二位置数据。 The granary grain volume measurement system according to claim 11, wherein obtaining the second coordinate P2' relative to the granary through the second rotation matrix and the second point cloud data comprises: the second point cloud data includes several points , the coordinates of any point are P2=(x2, y2, z2), the coordinates of the second lidar device in the granary are relative to the second coordinates of the granary P2'=P2*R 2 '-second position data.
  13. 根据权利要求7所述的粮仓粮食体积测量系统,其特征在于,所 述将粮食模拟图划分成若干个网格包括:将粮食模拟图按照x*y划分网格,x、y为任意大于0的整数。The granary grain volume measurement system according to claim 7, wherein the dividing the grain simulation graph into several grids comprises: dividing the grain simulation graph into grids according to x*y, where x and y are any greater than 0 the integer.
  14. 根据权利要求13所述的粮仓粮食体积测量系统,其特征在于,对所有网格体积求和包括:计算终端统计每个网格的粮食相对于粮仓高度h,计算出每个网格粮食体积x*y*h后求和。The granary grain volume measurement system according to claim 13, wherein summing the volumes of all grids comprises: the computing terminal counts the grain of each grid relative to the granary height h, and calculates the grain volume x of each grid Sum after *y*h.
  15. 一种电子设备,包括存储器和处理器;其中,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行以实现如权利要求1~7任一项所述的方法。An electronic device, comprising a memory and a processor; wherein, the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement claims 1-7 The method of any one.
  16. 一种存储介质,其上存储有计算机指令,该计算机指令被处理器执行时实现如权利要求1~7任一项所述的方法。A storage medium having computer instructions stored thereon, the computer instructions implementing the method according to any one of claims 1 to 7 when executed by a processor.
PCT/CN2020/140861 2020-12-29 2020-12-29 Method and system for measuring volume of grain in granary, electronic device and storage medium WO2022141055A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/140861 WO2022141055A1 (en) 2020-12-29 2020-12-29 Method and system for measuring volume of grain in granary, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/140861 WO2022141055A1 (en) 2020-12-29 2020-12-29 Method and system for measuring volume of grain in granary, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2022141055A1 true WO2022141055A1 (en) 2022-07-07

Family

ID=82258741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/140861 WO2022141055A1 (en) 2020-12-29 2020-12-29 Method and system for measuring volume of grain in granary, electronic device and storage medium

Country Status (1)

Country Link
WO (1) WO2022141055A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115824052A (en) * 2023-02-14 2023-03-21 长沙空维激光技术服务有限公司 Stockpile volume measurement method based on laser radar point cloud data
CN116755088A (en) * 2023-08-09 2023-09-15 中国科学院空天信息创新研究院 Granary depth and foreign matter detection and imaging method based on radar
CN117647791A (en) * 2023-12-12 2024-03-05 西安因诺航空科技有限公司 3D point cloud point-by-point infinitesimal earth and stone volume measurement method based on unmanned aerial vehicle aerial photography

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202102110U (en) * 2011-03-30 2012-01-04 戴学思 Phased array radar apparatus for measuring stacked diffuse solid material
CN103307976A (en) * 2013-04-16 2013-09-18 杭州先临三维科技股份有限公司 Monitoring method for grain stock in barn
US20150022640A1 (en) * 2013-07-22 2015-01-22 Hexagon Technology Center Gmbh Method and system for volume determination using a structure from motion algorithm
RU2553714C1 (en) * 2013-12-19 2015-06-20 Общество С Ограниченной Ответственностью "Квинта" Method of measuring roundwood cubic contents
CN106097318A (en) * 2016-06-06 2016-11-09 北京理工大学 A kind of grain volume measuring system and method
CN106643494A (en) * 2016-12-22 2017-05-10 上海华测导航技术股份有限公司 Mine windrow volume measurement method and system
CN111561908A (en) * 2020-05-14 2020-08-21 中国矿业大学 Combined measurement method of three-dimensional laser scanning and GPS-PPK

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202102110U (en) * 2011-03-30 2012-01-04 戴学思 Phased array radar apparatus for measuring stacked diffuse solid material
CN103307976A (en) * 2013-04-16 2013-09-18 杭州先临三维科技股份有限公司 Monitoring method for grain stock in barn
US20150022640A1 (en) * 2013-07-22 2015-01-22 Hexagon Technology Center Gmbh Method and system for volume determination using a structure from motion algorithm
RU2553714C1 (en) * 2013-12-19 2015-06-20 Общество С Ограниченной Ответственностью "Квинта" Method of measuring roundwood cubic contents
CN106097318A (en) * 2016-06-06 2016-11-09 北京理工大学 A kind of grain volume measuring system and method
CN106643494A (en) * 2016-12-22 2017-05-10 上海华测导航技术股份有限公司 Mine windrow volume measurement method and system
CN111561908A (en) * 2020-05-14 2020-08-21 中国矿业大学 Combined measurement method of three-dimensional laser scanning and GPS-PPK

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HU YANWEI;WANG JIANJUN;FAN YUANYUAN;LU YUNPENG;BAI CHONGYUE;ZHANG JIYUN: "LiDAR-Based Three-Dimensional Modeling and Volume Calculation for Space Objects", CHINESE JOURNAL OF LASERS, vol. 47, no. 5, 10 January 2020 (2020-01-10), pages 496 - 505, XP055947103, ISSN: 0258-7025, DOI: 10.3788/cjl202047.0510001 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115824052A (en) * 2023-02-14 2023-03-21 长沙空维激光技术服务有限公司 Stockpile volume measurement method based on laser radar point cloud data
CN116755088A (en) * 2023-08-09 2023-09-15 中国科学院空天信息创新研究院 Granary depth and foreign matter detection and imaging method based on radar
CN116755088B (en) * 2023-08-09 2023-11-17 中国科学院空天信息创新研究院 Granary depth and foreign matter detection and imaging method based on radar
CN117647791A (en) * 2023-12-12 2024-03-05 西安因诺航空科技有限公司 3D point cloud point-by-point infinitesimal earth and stone volume measurement method based on unmanned aerial vehicle aerial photography

Similar Documents

Publication Publication Date Title
WO2022141055A1 (en) Method and system for measuring volume of grain in granary, electronic device and storage medium
Dorninger et al. 3D segmentation of unstructured point clouds for building modelling
Mosbrucker et al. Camera system considerations for geomorphic applications of SfM photogrammetry
JP6932163B2 (en) 3D data processing method, equipment, equipment and storage medium
Schneider Terrestrial laser scanning for area based deformation analysis of towers and water dams
US8300048B2 (en) Three-dimensional shape data recording/display method and device, and three-dimensional shape measuring method and device
Yakar et al. Performance of photogrammetric and terrestrial laser scanning methods in volume computing of excavtion and filling areas
CN112629415A (en) Granary grain volume measurement system
CN116152306B (en) Method, device, apparatus and medium for determining masonry quality
GB2553363B (en) Method and system for recording spatial information
Bula et al. Dense point cloud acquisition with a low-cost Velodyne VLP-16
CN107393004A (en) A kind of method and device for obtaining building amount of demolition in power transmission line corridor
Zhang et al. Lidar-based fast 3d stockpile modeling
CN112862966B (en) Method, device, equipment and storage medium for constructing surface three-dimensional model
CN112154394A (en) Terrain detection method, movable platform, control device, system and storage medium
Murtiyoso et al. Technical considerations in Low-Cost heritage documentation
CN115797256B (en) Method and device for processing tunnel rock mass structural plane information based on unmanned aerial vehicle
CN113281777A (en) Dynamic measuring method and device for cargo volume
JP2014514682A (en) Merge 3D models based on confidence scores
CN115825067A (en) Geological information acquisition method and system based on unmanned aerial vehicle and electronic equipment
CN111006645A (en) Unmanned aerial vehicle surveying and mapping method based on motion and structure reconstruction
Stark et al. From consumer to enterprise grade: How the choice of four UAS impacts point cloud quality
EP3475653B1 (en) Integrating point cloud scans, image data, and total station data from a surveying instrument into one adjustment
Deliry et al. Accuracy evaluation of UAS photogrammetry and structure from motion in 3D modeling and volumetric calculations
Siriba et al. Improvement of volume estimation of stockpile of earthworks using a concave hull-footprint

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20967403

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20967403

Country of ref document: EP

Kind code of ref document: A1