Truck compartment loading rate detection method based on point cloud data
By constructing a 3D model of the cargo compartment and aligning it with point cloud data, the problem of large errors in manual judgment of cargo loading rate is solved, realizing efficient and low-cost loading rate detection, which is suitable for intelligent detection systems in unloading areas.
Patent Information
- Application Number
- CN202310488388.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2024-11-05
AI Technical Summary
In existing technologies, the determination of cargo loading rate mainly relies on manual judgment, which is prone to human error and increases labor costs, and cannot meet the needs of a digital logistics system.
A point cloud-based approach is adopted. By collecting 3D point cloud data of the carriage, a 3D model of the carriage interior is constructed. The point cloud data is aligned with the model through a pose transformation matrix, and the loading rate of the carriage is calculated. The loading rate is determined by the volume occupied by the 3D point cloud data in the model.
It achieves high-precision cargo loading rate detection without human intervention, reduces costs, is suitable for intelligent detection systems in unloading areas, and reduces the need for human resources.
Smart Images

Figure CN118898641A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of carriage detection, and in particular to a method and system for detecting a loading rate of a truck carriage based on point cloud data. Background Art
[0002] In unloading areas such as docks and storage centers, especially where regulatory agencies have special requirements, trucks need to be inspected after unloading to ensure that the goods have been unloaded and there are no entrained or leftover goods; at the same time, the loading rate of goods in the cargo compartment can also be determined through inspection. In order to cooperate with the construction of a digital logistics system and promote the development of the industry, it is necessary to build a complete intelligent detection system for the cargo loading rate of trucks entering and leaving the regulatory area, increase vehicle digital data, and provide more basis for supervision.
[0003] Currently, the cargo loading rate is usually judged manually, that is, at the import and export of each regulatory area, logistics-related staff are hired to unpack and inspect each truck compartment and record the loading status of the cargo. This judgment method not only increases labor costs, but also manual judgment may be subject to human errors and inaccurate judgment. Summary of the invention
[0004] The object of the present invention is to provide a method and system for detecting the loading rate of a truck compartment based on point cloud data.
[0005] In an embodiment of the present invention, a method for detecting a loading rate of a truck compartment based on point cloud data is provided, which includes:
[0006] Collect point cloud data of the empty truck compartment, extract the geometric features of the compartment, and construct a 3D model of the interior space of the compartment;
[0007] When detecting the loading rate of the carriage, the three-dimensional point cloud data inside the carriage is collected, the three-dimensional point cloud data inside the carriage is aligned with the three-dimensional model, and the loading rate of the carriage is calculated based on the volume occupied by the three-dimensional point cloud data inside the carriage in the three-dimensional model.
[0008] In the embodiment of the present invention, aligning the three-dimensional point cloud data of the interior of the carriage with the three-dimensional model of the carriage includes:
[0009] Calculate the geometric features of the three-dimensional point cloud data of the carriage;
[0010] Matching the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, finding the door frame position in the three-dimensional point cloud data, and calculating the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model;
[0011] The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
[0012] In the embodiment of the present invention, a coordinate system is constructed with a corner point of the door frame of the carriage as the origin, and a three-dimensional model of the interior space of the carriage is constructed based on the coordinate system.
[0013] In the embodiment of the present invention, the geometric features of the three-dimensional point cloud data of the carriage are calculated, including:
[0014] The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n}, select part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k} As the points used to calculate feature information, k points are required to be evenly distributed in the point cloud data P;
[0015] Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k}(k≤n);
[0016] Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、n j , in P_0 i Construct the vuw coordinate system and polar coordinate system, and calculate the angle and length eigenvectors in the above coordinate systems
[0017] α=cos -1 (v·n j )
[0018]
[0019]
[0020] d=||P_0 i -P_0 j ||2;
[0021] The eigenvectors of k*(k+1) point pairs Put it into a histogram, divide each feature into x intervals, and count how many points fall in each interval;
[0022] According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
[0023] In the embodiment of the present invention, the method of calculating the loading rate of the carriage is as follows:
[0024] The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i};
[0025] Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
[0026]
[0027] In an embodiment of the present invention, a truck compartment loading rate detection system based on point cloud data is also provided, which includes:
[0028] The acquisition module is used to collect point cloud data of the truck compartment when it is empty;
[0029] A feature extraction module, used to extract geometric features of the carriage based on point cloud data of the carriage;
[0030] A modeling module is used to construct a three-dimensional model of the interior space of the carriage according to the geometric features of the carriage door frame;
[0031] The detection module is used to align the three-dimensional point cloud data of the current carriage with the three-dimensional model when detecting the loading rate of the carriage, and calculate the loading rate of the carriage according to the amount of space occupied by the three-dimensional point cloud data in the three-dimensional model.
[0032] In the embodiment of the present invention, the detection module aligns the three-dimensional point cloud data inside the carriage with the three-dimensional model of the carriage, including:
[0033] Calculate the geometric features of the three-dimensional point cloud data of the carriage;
[0034] Matching the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, finding the door frame position in the three-dimensional point cloud data, and calculating the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model;
[0035] The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
[0036] In the embodiment of the present invention, the modeling module constructs a coordinate system with a corner point of the door frame of the carriage as the origin, and constructs a three-dimensional model of the interior space of the carriage based on the coordinate system.
[0037] In the embodiment of the present invention, the feature extraction module calculates the geometric features of the three-dimensional point cloud data of the carriage, including:
[0038] The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n}, select part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k} As the points used to calculate feature information, k points are required to be evenly distributed in the point cloud data P;
[0039] Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k}(k≤n);
[0040] Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、n j , in P_0 i Construct the vuw coordinate system and polar coordinate system, and calculate the angle and length eigenvectors in the above coordinate systems
[0041] α=cos -1 (v·n j )
[0042]
[0043]
[0044] d=||P_0 i -P_0 j ||2;
[0045] The eigenvectors of k*(k+1) point pairs Put it into a histogram, divide each feature into x intervals, and count how many points fall in each interval;
[0046] According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
[0047] In the embodiment of the present invention, the detection module calculates the loading rate of the carriage in the following manner:
[0048] The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i};
[0049] Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
[0050]
[0051] Compared with the prior art, the method for detecting the loading rate of a truck compartment based on point cloud data of the present invention collects three-dimensional point cloud data inside the compartment when detecting the loading rate of the compartment, aligns the three-dimensional point cloud data inside the compartment with the three-dimensional model of the compartment, and calculates the loading rate of the compartment according to the amount of occupation of the three-dimensional point cloud data in the three-dimensional model of the compartment. It does not require manual participation, nor does it require additional equipment or modification of the trucks entering and exiting. It only requires the modification of the entrances and exits and the installation of the equipment at the entrances and exits, thereby greatly reducing the cost of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a flow chart of a method for detecting a truck compartment loading rate based on point cloud data provided by an embodiment of the present invention.
[0053] Figure 2 It is a schematic diagram of the positional relationship between the acquisition device and the carriage in an embodiment of the present invention.
[0054] Figure 3 It is a schematic diagram of constructing a coordinate system for collected point cloud data in an embodiment of the present invention.
[0055] Figure 4 It is a schematic diagram of aligning the three-dimensional model of the carriage with the carriage in the collected point cloud data in an embodiment of the present invention.
[0056] FIG. 5( a ) and FIG. 5( b ) are respectively a schematic diagram of a car compartment point cloud imaging and a schematic diagram of a three-dimensional region construction in scenario 1 in an embodiment of the present invention.
[0057] FIG. 6( a ) and FIG. 6( b ) are respectively a schematic diagram of a car point cloud imaging and a schematic diagram of a three-dimensional region construction in scenario 1 in an embodiment of the present invention.
[0058] Figure 7 Schematic diagram of the structure of a truck compartment loading rate detection system based on point cloud data in an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and optimal pixel points of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0060] The implementation of the present invention is described in detail below in conjunction with specific embodiments.
[0061] like Figure 1 As shown, in an embodiment of the present invention, a method for detecting a loading rate of a truck compartment based on point cloud data is provided, which includes step S1, step S2 and step S3. They are described below respectively.
[0062] Step S1: Collect point cloud data of the truck compartment when it is empty, extract the geometric features of the compartment based on the point cloud data of the compartment, and construct a three-dimensional model of the interior space of the compartment.
[0063] It should be noted that the equipment for collecting point cloud data of truck compartments can use laser radar and 3D cameras. The requirements for data collection equipment are as follows:
[0064] 1. The shooting angle is large, the HFOV parameter should be greater than 120 degrees, and the VFOV parameter should be greater than 90 degrees;
[0065] 2. The irradiation distance is large, and the maximum detection distance should be greater than or equal to 15 meters.
[0066] like Figure 2 As shown in the figure, the installation location requirements of the acquisition equipment are as follows:
[0067] Outside the truck compartment, at the rear end of the compartment, not higher than the highest position of the compartment, not lower than the lowest position of the compartment, and not exceeding the left and right sides of the compartment.
[0068] In the embodiment of the present invention, the geometric features of the carriage are extracted according to the point cloud data of the carriage, including:
[0069] The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n}, select (manually or automatically select under set conditions) part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k} As the points used to calculate feature information, k points are required to be evenly distributed in the point cloud data P;
[0070] Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k}(k≤n);
[0071] Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、nj , in P_0 i Construct the vuw coordinate system and polar coordinate system (such as Figure 3 As shown), and calculate the angle and length feature vectors in the above coordinate system
[0072] α=cos -1 (v·n j )
[0073]
[0074]
[0075] d=||P_0 i -P_0 j ||2;
[0076] The eigenvectors of k*(k+1) point pairs Put it in a histogram and count the specific distribution, that is, divide each feature into x intervals and count how many points fall in each interval;
[0077] According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
[0078] It should be noted that, in the embodiment of the present invention, for the convenience of calculation, a coordinate system is constructed with a corner point of the car door frame as the origin, and a three-dimensional model of the interior space of the car is constructed based on this coordinate system. The coordinate system can be constructed by selecting the lower left corner, lower right corner, upper left corner or upper right corner of the car door frame as the origin, and the present invention does not impose any restrictions on this.
[0079] It should be noted that, in the embodiment of the present invention, different three-dimensional models are established for different types of carriages.
[0080] Step S2: When detecting the loading rate of the carriage, the three-dimensional point cloud data inside the carriage is collected, and the three-dimensional point cloud data inside the carriage is aligned with the three-dimensional model.
[0081] In the embodiment of the present invention, aligning the three-dimensional point cloud data of the interior of the carriage with the three-dimensional model of the carriage includes:
[0082] Calculate the geometric features of the three-dimensional point cloud data of the carriage;
[0083] Matching the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, finding the door frame position in the three-dimensional point cloud data, and calculating the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model;
[0084] The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
[0085] In the embodiment of the present invention, the ICP algorithm is used to calculate the posture transformation matrix.
[0086] Step S3: Calculate the loading rate of the carriage according to the volume occupied by the three-dimensional point cloud data inside the carriage in the three-dimensional model.
[0087] like Figure 4 As shown, the three-dimensional model of the carriage constructed based on the door frame template is aligned with the carriage in the collected point cloud data through the pose transformation matrix, so that the lower left corner of the door frame in the three-dimensional model of the carriage is aligned with the lower left corner of the door frame in the point cloud data. Since the origin of the three-dimensional model of the carriage and the length, width and height of the carriage are known, the environmental data of the non-carriage data is removed according to the aligned coordinate origin and the length, width and height of the three-dimensional model of the carriage, and only the point cloud data of the data carriage is retained, and then the loading rate of the carriage is calculated.
[0088] The method for calculating the loading rate of the carriage is as follows:
[0089] The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i};
[0090] Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
[0091]
[0092] It should be noted that the 3D digital model is divided into fixed-size cubic volume elements. Generally, in order to ensure the calculation accuracy, the size of the volume elements is usually not larger than 1cm*1cm*1cm. The compartment is divided into H parts from the top to the bottom, L parts from the compartment door to the opposite side of the compartment door, and W parts from the left side to the right side of the compartment. After the division, the compartment area is divided into W*H*L volume elements, and the total number is recorded as N, that is:
[0093] N=W*H*L.
[0094] Depending on the amount of cargo in the carriage, two scenarios can be divided.
[0095] Scenario 1:
[0096] If there is not much cargo in the carriage, only a part of the point cloud at the bottom of the carriage is blocked by the cargo, and the other point clouds will be scattered at the bottom of the carriage. At this time, the simulated imaging is shown in Figure 5(a), where the black part is the area blocked by the cargo, the blank transparent area is the area where the laser point cloud is scattered at the bottom of the carriage, and the gray area is the laser point cloud scattered on the cargo surface.
[0097] At this point, we can find the top laser point G of the cargo and the projection point A on the bottom of the carriage corresponding to the top laser point, as shown in Figure 5(b). A three-dimensional region can be constructed through the points ABCDEFGHIJ in the figure above. The number of volume elements in this three-dimensional region is K.
[0098] Scenario 2:
[0099] If there are a lot of cargo in the carriage, as shown in Figure 6(a), the point cloud map simulated and drawn in the carriage is shown in Figure 6(b), which includes the point cloud distribution of the innermost surface of the carriage and the floor of the carriage.
[0100] According to the top point of the cargo and the point of the cargo projection surface, a three-dimensional area can be determined by linking them in sequence, as shown in the area formed by ABCDEFG in 6(a). At this time, the number of volume elements in this three-dimensional area can be counted as K.
[0101] like Figure 7 As shown, in an embodiment of the present invention, a truck compartment loading rate detection system based on point cloud data is also provided, which includes a collection module 1, a feature extraction module 2, a modeling module 3 and a detection module 4. They are described below respectively.
[0102] The acquisition module 1 is used to acquire point cloud data of the compartment when the compartment is empty. The acquisition module 1 may use a laser radar or a 3D camera, which is not limited in the present invention.
[0103] The feature extraction module 2 is used to extract the geometric features of the carriage based on the point cloud data of the carriage.
[0104] In the embodiment of the present invention, the feature extraction module 2 calculates the geometric features of the three-dimensional point cloud data of the carriage, including:
[0105] The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n}, select (manually or automatically select under set conditions) part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k As the points used to calculate feature information, k points are required to be evenly distributed in the point cloud data P, and the interval between any two points is greater than a certain value;
[0106] Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k}(k≤n);
[0107] Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、n j , in P_0 i Construct the vuw coordinate system and polar coordinate system, and calculate the angle and length characteristics in the above coordinate systems:
[0108] α=cos -1 (v·n j )
[0109]
[0110]
[0111] d=||P_0 i -P_0 j ||2;
[0112] The eigenvectors of k*(k+1) point pairs Put it in a histogram and count the specific distribution. The specific operation is to divide each feature into x intervals and count how many points fall in the corresponding interval;
[0113] According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
[0114] The modeling module 3 is used to construct a coordinate system according to the geometric features of the door frame of the carriage and take a corner point of the door frame of the carriage as the origin, and to construct a three-dimensional model of the interior space of the carriage based on the coordinate system.
[0115] The detection module 4 is used to align the three-dimensional point cloud data of the current compartment with the three-dimensional model when detecting the loading rate of the compartment, and calculate the loading rate of the compartment according to the amount of the three-dimensional point cloud data occupied in the three-dimensional model.
[0116] The detection module 4 aligns the three-dimensional point cloud data inside the carriage with the three-dimensional model of the carriage, including:
[0117] Calculate the geometric features of the three-dimensional point cloud data of the carriage;
[0118] Match the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, find the door frame position in the three-dimensional point cloud data, and calculate the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model. The pose transformation matrix can be calculated using the ICP algorithm;
[0119] The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
[0120] The three-dimensional point cloud data of the interior of the carriage is aligned with the three-dimensional model of the carriage, and the detection module 4 calculates the loading rate of the carriage in the following manner:
[0121] The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i};
[0122] Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
[0123]
[0124] To summarize, the method for detecting the loading rate of a truck compartment based on point cloud data of the present invention, when detecting the loading rate of the compartment, collects the three-dimensional point cloud data inside the compartment, aligns the three-dimensional point cloud data inside the compartment with the three-dimensional model of the compartment, and calculates the loading rate of the compartment according to the amount of occupation of the three-dimensional point cloud data in the three-dimensional model of the compartment. It does not require manual participation, nor does it require the installation of additional devices or modification of vehicles on trucks entering and exiting. It only requires the modification of the entrances and exits, and the installation of the equipment at the entrances and exits, thereby greatly reducing the cost of use.
[0125] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting the loading rate of a truck compartment based on point cloud data, characterized in that: include: Collect point cloud data of the empty truck compartment, extract the geometric features of the compartment, and construct a 3D model of the interior space of the compartment; When detecting the loading rate of the carriage, the three-dimensional point cloud data inside the carriage is collected, the three-dimensional point cloud data inside the carriage is aligned with the three-dimensional model, and the loading rate of the carriage is calculated based on the volume occupied by the three-dimensional point cloud data inside the carriage in the three-dimensional model.
2. The method for detecting the loading rate of a truck compartment based on point cloud data according to claim 1, characterized in that: Align the 3D point cloud data of the interior of the car with the 3D model of the car, including: Calculate the geometric features of the three-dimensional point cloud data inside the car; Matching the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, finding the door frame position in the three-dimensional point cloud data, and calculating the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model; The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
3. The method for detecting the loading rate of a truck compartment based on point cloud data according to claim 1, characterized in that: A coordinate system is constructed with a corner point of the door frame of the carriage as the origin, and a three-dimensional model of the interior space of the carriage is constructed based on this coordinate system.
4. The method for detecting the loading rate of a truck compartment based on point cloud data according to claim 1, characterized in that: Calculate the geometric features of the 3D point cloud data of the carriage, including: The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n }, select part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k } as points for calculating feature information, the k points are evenly distributed in the point cloud data P; Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k }(k≤n); Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、n j , in P_0 i Construct the vuw coordinate system and polar coordinate system, and calculate the angle and length characteristic feature vectors in the above coordinate systems α=cos -1 (v·n i ) d=||P_0 i -P_0 j ||2; The eigenvectors of k*(k+1) point pairs Put it into a histogram, divide each feature into x intervals, and count how many points fall in each interval; According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
5. The method for detecting the loading rate of a truck compartment based on point cloud data according to claim 1, characterized in that: The method to calculate the loading rate of the carriage is as follows: The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i }; Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
6. A truck compartment loading rate detection system based on point cloud data, characterized in that: include: The acquisition module is used to collect point cloud data of the truck compartment when it is empty; A feature extraction module, used to extract geometric features of the carriage based on point cloud data of the carriage; A modeling module is used to construct a three-dimensional model of the interior space of the carriage according to the geometric features of the carriage door frame; The detection module is used to align the three-dimensional point cloud data of the current carriage with the three-dimensional model when detecting the loading rate of the carriage, and calculate the loading rate of the carriage according to the amount of space occupied by the three-dimensional point cloud data in the three-dimensional model.
7. The truck compartment loading rate detection system based on point cloud data according to claim 6, characterized in that: The detection module aligns the three-dimensional point cloud data inside the carriage with the three-dimensional model of the carriage, including: Calculate the geometric features of the three-dimensional point cloud data of the carriage; Matching the calculated geometric features of the car compartment with the geometric features of the door frame of the corresponding car model, finding the door frame position in the three-dimensional point cloud data, and calculating the pose transformation matrix according to the door frame position and the door frame position in the three-dimensional model; The three-dimensional point cloud data inside the car is aligned with the three-dimensional model of the car according to the posture transformation matrix.
8. The truck compartment loading rate detection system based on point cloud data according to claim 7, characterized in that: The modeling module constructs a coordinate system with a corner point of the door frame of the carriage as the origin, and constructs a three-dimensional model of the interior space of the carriage based on the coordinate system.
9. The truck compartment loading rate detection system based on point cloud data according to claim 6, characterized in that: The feature extraction module calculates the geometric features of the three-dimensional point cloud data of the carriage, including: The obtained three-dimensional point cloud data of the carriage is recorded as P, and the number is n, that is, {p0,p1,p2,....,p n }, select part of the point cloud data P_0, the number is k (k≤n), that is, {p00,p01,p01,....,p0 k As the points used to calculate feature information, k points are required to be evenly distributed in the point cloud data P, and the interval between any two points is greater than a certain value; Traverse the point cloud data P_0, and calculate P_0 based on the neighborhood with radius h in the point cloud data P i The normal vector n i (i≤k), that is, we get the normal vector set {n0,n1,n2,...,n k }(k≤n); Traverse and select two points P_0 in the point cloud data P_0 i , P_0 j , and the corresponding normal vector n i 、n j , in P_0 i Construct the vuw coordinate system and polar coordinate system, and calculate the angle and length eigenvectors in the above coordinate systems α=cos -1 (v·n i ) d=||P_0 i -P_0 j ||2; The eigenvectors of k*(k+1) point pairs Put it into a histogram, divide each feature into x intervals, and count how many points fall in each interval; According to the above operation, the geometric features of the current point cloud data are obtained, and the dimension of the feature is x*4.
10. The truck compartment loading rate detection system based on point cloud data according to claim 6, characterized in that: The detection module calculates the loading rate of the carriage as follows: The constructed three-dimensional model of the carriage is divided into N small squares of the same size, and the coordinates of each small square are {x i ,y i ,z i }; Traverse each point in the point cloud data of the currently collected carriage, mark the small square corresponding to each point and all the points below the point as cargo points, and count the number of cargo points as K. The cargo loading rate is:
