A method and device for dynamically measuring cargo volume

Through the combination of lidar and depth cameras, three-dimensional reconstruction and attitude calibration are performed, which solves the problem of fast, simple and efficient cargo volume measurement in the logistics industry, achieves accurate cargo volume measurement and large-scale measurement, and improves resolution accuracy.

CN113281777BActive Publication Date: 2024-10-22深圳市异方科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110370457.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-07
Publication Date
2024-10-22
Estimated Expiration
2041-04-07

AI Technical Summary

Technical Problem

In the logistics industry, existing technology is difficult to measure the volume of goods quickly, simply and efficiently, especially when there are insufficient solutions to determine whether goods can be loaded during warehousing, transportation and loading.

Method used

Three lidars are used for attitude calibration. The depth camera and lidar are combined to perform three-dimensional reconstruction to obtain the cargo point cloud model. The vtk library is used to calculate the cargo volume, and the detection light curtain is combined to determine the presence of the cargo to achieve dynamic measurement.

Benefits of technology

It realizes fast, simple, efficient and accurate measurement of cargo volume, expands the measurement range, improves the resolution accuracy in the vertical direction, and solves the problems of dimensional error and measurement range limitation in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113281777B_ABST
    Figure CN113281777B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method for dynamically measuring the volume of cargo, which includes turning on three laser radars and calibrating the three laser radars according to their relative postures, so that the data collected by the three laser radars are unified into the same coordinate system; judging whether there is cargo on the forklift, and if so, the three laser radars measure the cargo to obtain measurement data; performing three-dimensional reconstruction based on the measurement data to obtain a cargo point cloud model; and measuring the cargo volume based on the cargo point cloud model. Therefore, compared with the prior art, the embodiment of the present invention is fast, simple, efficient, has a large measurement range, and can accurately measure the cargo volume. The embodiment of the present invention also provides a device for dynamically measuring the volume of cargo, which also has the above-mentioned effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of surveying and mapping technology, and in particular to a cargo volume dynamic measurement method and a measuring device thereof. Background Art

[0002] In the logistics industry, sometimes it is necessary to charge according to the volume of the object, so the volume of the collected goods needs to be measured; or when the goods are stored in the warehouse or loaded for transportation, it is necessary to know whether the warehouse or the carriage can load the next batch of goods, so the volume of the goods needs to be measured. Summary of the invention

[0003] In view of the above technical problems, an embodiment of the present invention provides a method and a device for dynamically measuring the volume of cargo.

[0004] A first aspect of an embodiment of the present invention provides a method for dynamically measuring cargo volume, comprising the following steps:

[0005] Turn on the three laser radars and calibrate them according to their relative postures, so that the data collected by the three laser radars are unified in the same coordinate system;

[0006] Determine whether there is cargo on the forklift, and if so, measure the cargo using the three laser radars to obtain measurement data;

[0007] Performing three-dimensional reconstruction based on the measurement data to obtain a cargo point cloud model;

[0008] The cargo volume is measured according to the cargo point cloud model.

[0009] Optionally, the cargo volume dynamic measurement method further includes:

[0010] Turn on the depth camera and the laser radar to collect data;

[0011] Each of the laser radars is converted to the same coordinates through the depth camera and the collected data.

[0012] Optionally, the step of converting the data collected by each laser radar through the depth camera to the same coordinate includes:

[0013] Fix the depth camera and calculate the transformation matrix from the single lidar coordinate system to the depth camera coordinate system;

[0014] The transformation matrices from the two laser radars to the depth camera are calibrated in sequence, and then the data collected by the three laser radars are unified into the same coordinate system.

[0015] Optionally, the transformation matrix is

[0016]

[0017] The upper left corner of the matrix is ​​a 3×3 rotation matrix, the upper right corner is a 3×1 displacement vector, and the lower left corner is a 1×3 scaling vector.

[0018] Optionally, the step of determining whether there is cargo on the forklift includes:

[0019] The laser radar is used to detect whether the light curtain is blocked. If the light curtain is blocked, it is determined that there are goods.

[0020] Optionally, the valid data is that the distance from the cargo to the farthest of the three laser radars is less than 10 meters.

[0021] Optionally, the step of performing three-dimensional reconstruction according to the measurement data to obtain a cargo point cloud model comprises:

[0022] The data detected by the two laser radars establish two-dimensional coordinates x, y;

[0023] Another lidar acquires the position and speed of the cargo in real time to establish the z-axis and form three-dimensional point cloud data.

[0024] Optionally, after the step of performing three-dimensional reconstruction according to the calibration data to obtain a cargo point cloud model, the step further includes:

[0025] After the point cloud of the boundary part of the cargo point cloud model is projected onto a plane, the size of the cargo bottom surface is obtained, and the point cloud of the cargo range in the plane is filled to make the point cloud closed to obtain a complete cargo point cloud model.

[0026] Optionally, the step of measuring the volume of cargo according to the cargo point cloud model includes:

[0027] Use the vtkTriangleFilter class of the vtk library to triangulate the cargo point cloud model;

[0028] The GetVolume method provided by the vtkMassProperties class is used to obtain the volume of the cargo point cloud model.

[0029] A second aspect of an embodiment of the present invention provides a dynamic measurement device for cargo volume, which includes a detection frame, a gantry and a light curtain arranged in a detection area, wherein two laser radars with acute angles of detection light are arranged on the detection frame, and another laser radar and a depth camera are arranged on the gantry; wherein the three laser radars, the depth camera and the light curtain cooperate with each other to perform the dynamic measurement method for cargo volume as described above.

[0030] An embodiment of the present invention provides a method for dynamically measuring the volume of cargo, which includes turning on three laser radars and calibrating the three laser radars according to their relative postures, so that the data collected by the three laser radars are unified into the same coordinate system; judging whether there is cargo on the forklift, and if so, the three laser radars measure the cargo to obtain measurement data; performing three-dimensional reconstruction based on the measurement data to obtain a cargo point cloud model; and measuring the cargo volume based on the cargo point cloud model. Therefore, compared with the prior art, the embodiment of the present invention is fast, simple, efficient, has a large measurement range, and can accurately measure the cargo volume. The embodiment of the present invention also provides a device for dynamically measuring the volume of cargo, which also has the above-mentioned effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a schematic diagram of the structure of a device for dynamically measuring cargo volume in one embodiment of the present invention;

[0032] Figure 2 It is a schematic diagram of a flow chart of a method for dynamically measuring cargo volume in one embodiment of the present invention;

[0033] Figure 3 It is a schematic diagram of a flow chart of a method for dynamically measuring cargo volume in another embodiment of the present invention;

[0034] Figure 4 The figure is a flow chart of a method for dynamically measuring cargo volume in another embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0036] See also Figure 1 , a cargo volume dynamic measurement device in an embodiment of the present invention. The cargo volume dynamic measurement device 1 includes a detection frame 11, a gantry 12 and a light curtain 13 arranged in the detection area, two laser radars 111 and 112 with acute angles of detection light are arranged on the detection frame 11, and another laser radar 113 and a depth camera 121 are arranged on the gantry 12; wherein the three laser radars 111, 112, 113, the depth camera 121 and the light curtain 13 cooperate with each other to perform the above cargo volume dynamic measurement method. Among them, the depth camera 121 is arranged in the middle of the gantry 12, and the laser radar 113 is arranged close to the depth camera 121. The three laser radars 111, 112, 113 and the depth camera 121 are arranged at approximately the same horizontal position.

[0037] In an embodiment of the present invention, a cargo volume dynamic measurement method and a cargo volume dynamic measurement device are provided, wherein the device is used to cooperate in executing the cargo volume dynamic measurement method.

[0038] Specifically, the cargo volume dynamic measurement device 1 includes a detection frame 11, a gantry 12 and a light curtain 13 arranged in the detection area. Two laser radars 111 and 112 with acute angles of detection light are arranged on the detection frame 11. The two laser radars collect the distances from different positions of the cargo to the laser radars from different angles. Another laser radar 113 and a depth camera 121 are arranged on the gantry 12. The laser radar on the gantry obtains data from other positions of the cargo to the laser radar from another angle. Among them, the three laser radars 111, 112, 113, the depth camera 121 and the light curtain 13 cooperate with each other to perform the above cargo volume dynamic measurement method. Among them, the depth camera 121 is arranged in the middle of the gantry 12, and the laser radar 113 is arranged close to the depth camera 121. Specifically, during the inspection process, the forklift first passes under the gantry 12 and then passes under the detection frame 11. During the driving process of the forklift, the three laser radars and the depth camera have completed the measurement of the cargo volume on the forklift, realizing the cargo volume dynamic measurement method.

[0039] See also Figure 1 and 2 , the cargo volume dynamic measurement method comprises the following steps:

[0040] S100: Turn on three laser radars and calibrate them according to the relative postures between the three laser radars, so that the data collected by the three laser radars are unified into the same coordinate system.

[0041] Specifically, the three laser radars are single-line laser radars, and are calibrated according to the relative postures between the three laser radars, in order to prepare for the subsequent measurement of the goods by the three laser radars.

[0042] It is understandable that the three laser radars are in different positions and postures relative to the goods, and thus can collect relevant data of the goods from three different angles. However, the data initially collected by the three laser radars are not in the same coordinate system, so calibration is required to convert the data collected by the three laser radars to the same coordinate system in preparation for subsequent steps.

[0043] S110: Determine whether there is cargo on the forklift. If so, three laser radars measure the cargo to obtain measurement data.

[0044] It can be understood that when a forklift passes under the gantry, it is first determined whether there is cargo on the forklift. If so, the subsequent steps are performed. If not, the test result can be given directly, that is, the capacity of the carriage is the volume that can accommodate more cargo.

[0045] Specifically, a light emitting device is arranged at the bottom of the cargo volume dynamic measuring device, and the light emitting device emits light to form a light curtain. When the forklift passes through the gantry and the detection frame, the light curtain shines on the objects.

[0046] Furthermore, the step of determining whether there is cargo on the forklift includes detecting whether the light curtain is blocked by the laser radar. If the light curtain is blocked, it is determined that there is cargo. If the light curtain is not blocked, it means that there is no cargo and no further detection is required.

[0047] Furthermore, in one embodiment, the distance from the goods to the farthest of the three laser radars is less than 10 meters as valid data, so as to eliminate some interference data and ensure the authenticity and validity of the data. It is understandable that the distance from the goods to the farthest of the three laser radars is less than 10 meters, such as any natural number such as 1 meter, 2 meters, 3 meters, 5 meters, 7 meters, 8 meters, 9 meters, etc. The laser radar set in front of the goods can calculate the position of the goods. When goods pass through the laser radar measurement area, the laser radar can collect data from the set measurement area. In order to increase the stability of the system, a light curtain installed on the ground can be used to know whether there are goods passing through the detection area. When the light emitted by the light curtain is blocked, it proves that there is something in the light curtain area, so it can be known that there are goods in the measurement area. For example, the set collection distance data is valid data within 10m from the laser radar, so the valid data of the goods can be collected when the goods are less than 10 meters away from the laser radar, and then it can be known that there are goods in the measurement area.

[0048] S120: Perform three-dimensional reconstruction according to the measurement data to obtain a cargo point cloud model.

[0049] It can be understood that the three lidars obtain relevant data of the goods from different angles, and then obtain data of different dimensions of the goods, and then construct a three-dimensional point cloud model of the goods.

[0050] Specifically, in one embodiment, the step of performing three-dimensional reconstruction based on the measurement data to obtain a cargo point cloud model includes: establishing two-dimensional coordinates x, y using data detected by two laser radars. It can be understood that when the forklift is moving, three laser radars collect data at the same time, and another laser radar obtains the position and speed of the cargo in real time to establish the z axis, forming three-dimensional point cloud data.

[0051] Furthermore, the laser radar 113 arranged in front of the cargo can calculate the position of the cargo. For example, as the forklift carrying the cargo moves, the laser radar 113 can obtain the position and speed of the cargo in real time. The two laser radars 111 and 112 arranged on the detection frame 11 can convert the original two-dimensional information of the single-line laser radar into a three-dimensional point cloud of the cargo based on the cargo position information given by the front laser radar 113 and the data collected by itself, and complete the three-dimensional reconstruction process of the entire cargo. At this time, the two laser radars 111 and 112 arranged above the detection frame 11 give the x and y axis coordinates of the point cloud's own coordinate system. In addition, the cargo position information given by the laser radar 113 arranged in front of the cargo is used as the z-axis coordinate, so that the 3D point cloud of the above two laser radars in their respective coordinate systems can be obtained. In the calibration steps described above, we can obtain the transformation matrix of each laser radar to each other's coordinate system. At this time, the corresponding transformation matrix needs to be multiplied by the point cloud data obtained by one of the laser radars, so that the point cloud data can be unified to the same coordinate system through the point cloud transformation formula. The point cloud transformation formula:

[0052]

[0053] S130: Measure the volume of the cargo according to the cargo point cloud model.

[0054] Specifically, after knowing that the cargo point cloud model is established, the volume of the cargo can be obtained according to the cargo point cloud model using a corresponding algorithm. After the volume of the cargo is accumulated, the volume ratio of the carriage can be obtained, and then the re-cargo capacity of the carriage can be determined. Furthermore, the step of measuring the volume of the cargo according to the cargo point cloud model includes triangulating the cargo point cloud model using the vtkTriangleFilter class of the vtk library; and obtaining the volume of the cargo point cloud model using the GetVolume method provided by the vtkMassProperties class.

[0055] See also Figure 3 , a method for dynamically measuring cargo volume in an embodiment of the present invention. The method for dynamically measuring cargo volume also includes:

[0056] S200: Turn on the depth camera and lidar to collect data.

[0057] Specifically, the depth camera and the laser radar are turned on for data collection. The depth camera and the laser radar can be turned on for data collection at the same time when the three laser radars are calibrated with each other. The depth camera can also be turned on for data collection after the three laser radars are calibrated with each other, which is not particularly limited here.

[0058] S210: Each laser radar is converted to the same coordinate through the depth camera and the collected data.

[0059] Specifically, the step of converting the data collected by each laser radar through the depth camera to the same coordinate system includes fixing the depth camera to calculate the transformation matrix from the single laser radar coordinate system to the depth camera coordinate system; calibrating the transformation matrix from the two laser radars to the depth camera in sequence, and then unifying the data collected by the three laser radars into the same coordinate system.

[0060] The transformation matrix is

[0061]

[0062] The upper left corner of the transformation matrix is ​​a 3×3 rotation matrix, the upper right corner is a 3×1 displacement vector, and the lower left corner is a 1×3 scaling vector. The lower left corner is a 1×3 scaling vector. Since the coordinate system transformation is a rigid body transformation, there is no scaling, and the scaling vector is all zero.

[0063] Repeat the above steps to calibrate the three laser radars and the depth camera respectively, and obtain the transformation matrix from the three laser radar coordinate systems to the depth camera coordinate system. According to the transformation matrix from each laser radar to the camera obtained by calibration, the transformation matrix between each laser radar can be calculated. Therefore, the data of the three laser radars can be unified into the same coordinate system.

[0064] See also Figure 4 In an embodiment of the present invention, a method for dynamic measurement of cargo volume, after the step of performing three-dimensional reconstruction according to calibration data to obtain a cargo point cloud model, further comprises:

[0065] S300: After projecting the point cloud of the boundary part of the cargo point cloud model onto a plane, the size of the cargo bottom surface is obtained, and the point cloud of the cargo range in the plane is filled to make the point cloud closed to obtain a complete cargo point cloud model.

[0066] Understandably, the cargo point cloud model constructed using data collected by three lidars is only preliminary, and the bottom of the model is still missing. Specifically, the cargo point cloud obtained after three-dimensional reconstruction is a point cloud that lacks the bottom surface of the cargo, and the volume measurement needs to be completed after the bottom surface point cloud is supplemented. The light curtain installed at the bottom of the gantry can obtain the height of the cargo from the ground. A plane parallel to the ground is established at this height, which is the plane where the bottom surface of the cargo is located. By projecting the point cloud of the edge of the cargo onto the plane, the size of the specific bottom surface of the cargo can be obtained, and the point cloud of the cargo range in the plane is supplemented to obtain a closed point cloud.

[0067] The technical solution of the present application can collect a large number of point clouds. Since the laser radar frame rate can reach 50Hz and the angular resolution is 0.36°, more point cloud data can be collected and generated. The measurement range is large, and the depth distance information of the depth camera is relatively poor after exceeding 3 meters. However, due to the resolution problem of the existing solid-state laser radar, the size error will increase when the measured cargo size is too large. The measurement method of three single-line laser radars used in the technical solution of the present application can solve these two problems well. The laser radar measurement distance of the present application can reach tens of meters, and even hundreds of meters can also obtain relatively high accuracy. The existing solid-state laser radar has insufficient resolution accuracy in the vertical direction. The system composed of three single-line laser radars in the present application is determined by the movement speed of the cargo and the laser radar frame rate. Therefore, the resolution accuracy of the technical solution of the present application in the vertical direction is much higher than that of the solid-state laser radar. Therefore, compared with the prior art, the embodiment of the present invention is fast, simple, efficient, has a large measurement range, and accurately measures the volume of cargo.

[0068] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for dynamic measurement of cargo volume, characterized in that: The following steps are involved: Turn on the three laser radars and calibrate them according to their relative postures, so that the data collected by the three laser radars are unified in the same coordinate system; Determine whether there is cargo on the forklift, and if so, measure the cargo using the three laser radars to obtain measurement data; Performing three-dimensional reconstruction based on the measurement data to obtain a cargo point cloud model; measuring the volume of the cargo according to the cargo point cloud model; Turn on the depth camera and the laser radar to collect data; Each of the laser radars is converted into the same coordinate system through the depth camera and the collected data; The step of converting the data collected by each laser radar into the same coordinate system through the depth camera includes: Calibrate the transformation matrix from the two laser radars to the depth camera in sequence, and then unify the data collected by the three laser radars into the same coordinate system; The cargo volume dynamic measurement device (1) comprises a detection frame (11), a gantry (12) and a light curtain (13) arranged in a detection area. Two laser radars (111) and (112) with acute angles of detection light are arranged on the detection frame (11). The two laser radars collect distances from different positions of the cargo to the laser radars from different angles. Another laser radar (113) and a depth camera (121) are arranged on the gantry (12). The three laser radars (111), (112), (113), the depth camera (121) and the light curtain (13) cooperate with each other to perform the above cargo volume dynamic measurement method. The depth camera (121) is arranged in the middle of the gantry (12), the laser radar (113) is arranged close to the depth camera (121), and the three laser radars (111), (112), (113) and the depth camera (121) are arranged at the same horizontal position.

2. The method for dynamic measurement of cargo volume according to claim 1, characterized in that: The transformation matrix is , The upper left corner of the matrix is ​​a 3 × 3 rotation matrix, the upper right corner is a 3 × 1 displacement vector, and the lower left corner is a 1 × 3 scaling vector.

3. The method for dynamic measurement of cargo volume according to claim 1, characterized in that: The step of determining whether there is cargo on the forklift comprises: The laser radar is used to detect whether the light curtain is blocked. If the light curtain is blocked, it is determined that there are goods.

4. The method for dynamic measurement of cargo volume according to claim 3, characterized in that: The valid data is when the distance between the cargo and the farthest of the three laser radars is less than 10 meters.

5. The method for dynamic measurement of cargo volume according to claim 1, characterized in that: The step of performing three-dimensional reconstruction according to the measurement data to obtain a cargo point cloud model comprises: The data detected by the two laser radars establish two-dimensional coordinates x and y.

6. The method for dynamic measurement of cargo volume according to claim 5, characterized in that: The step of performing three-dimensional reconstruction according to the measurement data to obtain a cargo point cloud model also includes: Another lidar acquires the position and speed of the cargo in real time to establish the z-axis and form three-dimensional point cloud data.

7. The method for dynamic measurement of cargo volume according to claim 1, characterized in that: After the step of performing three-dimensional reconstruction according to the measurement data to obtain a cargo point cloud model, the following step is further performed: After the point cloud of the boundary part of the cargo point cloud model is projected onto a plane, the size of the cargo bottom surface is obtained, and the point cloud of the cargo range in the plane is filled to make the point cloud closed to obtain a complete cargo point cloud model.

8. The method for dynamic measurement of cargo volume according to claim 1, characterized in that: The step of measuring the volume of cargo according to the cargo point cloud model comprises: Using the vtkTriangleFilter class of the vtk library to triangulate the cargo point cloud model; The GetVolume method provided by the vtkMassProperties class is used to obtain the volume of the cargo point cloud model.