A top-opening carriage identification and measurement system based on pan-tilt three-dimensional data

Through the three-dimensional data recognition system based on the pan-tilt, using lidar and rotating platforms to scan at equal angle intervals, combined with the clustering and fitting algorithms of the recognition measurement module, the problems of inaccurate carriage recognition and poor robustness in the existing technology are solved. , achieving high-precision and fast carriage identification and positioning, suitable for automatic loading requirements.

CN117420562BActive Publication Date: 2024-09-03GUANGZHOU SICK SENSOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311367342.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-21
Publication Date
2024-09-03
Estimated Expiration
2043-10-21

AI Technical Summary

Technical Problem

The existing top-opening carriage identification and measurement system has problems such as the inability to identify the interior features of the carriage, slow scanning rhythm, poor robustness to various vehicle models, inaccurate depth measurement and detection blind spots, etc., making it difficult to meet the accurate identification needs of automatic loading.

Method used

A three-dimensional data recognition system based on the pan-tilt is used, using laser radar and a rotating platform to perform scans at equal angle intervals, combined with the recognition measurement module to convert spherical data into Cartesian coordinates through formulas, and clustering and fitting algorithms are used to identify the carriage floor, side panels and Pull the rope to achieve high-precision identification and positioning of the carriage.

Benefits of technology

It achieves independent high-precision carriage recognition, with short scanning time, fast calculation speed, strong adaptability, and does not rely on the traveling mechanism. It can automatically identify various carriage types and floor types, improving robustness and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117420562B
    Figure CN117420562B
Patent Text Reader

Abstract

The present application discloses a top-opening carriage recognition and measurement system based on pan-tilt three-dimensional data, and relates to the technical field of top-opening carriage recognition. The present application discloses a top-opening carriage recognition and measurement system based on pan-tilt three-dimensional data, comprising a pan-tilt, a traveling mechanism and a recognition and measurement module; the pan-tilt comprises a laser radar and a rotating platform, the laser radar is used to scan a cross section of the carriage at equal angle intervals, the laser radar is installed on the rotating platform, and the rotating platform is used to drive the laser radar to rotate and accurately control the rotation angle, speed and motion mode of the laser radar, and the laser radar scanning plane is parallel to the rotation axis of the rotating platform; the pan-tilt is connected to the recognition and measurement module in communication; the pan-tilt is installed on the traveling mechanism directly above the rear carriage of the truck parked, and the carriage of the truck falls within the spherical scanning range of the pan-tilt. The use of this system can improve the accuracy and reliability of carriage recognition and measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of top-opening carriage identification, and in particular to a top-opening carriage identification and measurement system based on pan-tilt three-dimensional data. Background Art

[0002] In the logistics industry, there is a great demand for loading with open-top compartments. With the increasing aging of the domestic population and the decrease in population, fewer and fewer people are engaged in traditional manual loading / traditional mechanical loading. Among them, the main factors affecting loading are: high labor intensity, high dust concentration in the operation, cold winter and hot summer outdoors, high labor costs and difficulty in recruiting workers. Therefore, the use of street mechanism loading systems combined with industrial sensors to achieve automatic loading can not only help companies save costs, but also improve the working conditions of workers and improve loading efficiency. It is an inevitable trend in the development of industrial automation. Among them, the definition of an open-top compartment is a truck with a compartment, which has the following characteristics: a flat compartment floor, a compartment without a roof and exposed at the top, compartment side rails of different heights, and there may be pull ropes between the side rails.

[0003] The vehicle identification and measurement system of the top-opening carriage provides accurate vehicle model data for automated vehicle loading, and provides a source of prepared loading point data for the subsequent traveling mechanism and loading mechanism.

[0004] For example, a Chinese patent application number CN201710294600.7 discloses a non-contact detection device and method for the state of a rail vehicle compartment. The following technical disadvantages exist: the three-dimensional scanning solution is a fixed scanner solution, that is, the scanner does not move while the vehicle moves. Therefore, the solution can only scan the external features of the compartment and cannot identify the internal features of the compartment, such as whether there are foreign objects or pull ropes inside the compartment; the scanning equipment is fixed, and its scanning rhythm is limited by the vehicle's driving speed. Therefore, the scanning rhythm of the solution is slow, that is, the scanning takes a long time; the compartment identification measurement adopts a deep learning solution, which requires a large number of training samples for each vehicle model, and therefore has poor robustness to multiple vehicle models.

[0005] For example, the Chinese patent application number CN202111349714.X discloses a visual system for identifying and locating carriages from a top-down perspective based on a depth camera, and the Chinese patent application number CN202010361420.8 discloses a carriage posture measurement system and method for automated loading. The technical disadvantages include: it is difficult to perform effective data measurement on vehicles at a depth of 4 meters using a binocular structured light depth camera; binocular structured light, due to its limited horizontal opening angle, results in a smaller detectable plane area the closer to the camera, resulting in a detection blind spot; the carriage recognition and measurement system uses a threshold value division method to measure the vehicle, and can only roughly identify the type of vehicle, but cannot provide the prepared vehicle characteristic dimension data, making it difficult to meet the requirements of automatic material loading operations in the carriage.

[0006] For example, a method and device for measuring the interior of a carriage disclosed in a Chinese patent with application number CN202210277297.0 have the following technical disadvantages: a laser scanner is installed on a bridge-type super-heavy machine (in the walking mechanism), and the cross-sectional data of the laser radar is fused with the angular position data of the bridge-type super-heavy machine through the movement of the bridge-type super-heavy machine to form a three-dimensional point cloud. In this mode, the movement of the bridge-type super-heavy machine needs to fully cover the scanning range of the entire carriage. Therefore, the scanning cycle of this method is relatively long, usually 3-4 minutes; the three-dimensional modeling method of the bridge-type super-heavy machine with a scanner, the accuracy of its movement direction will be directly superimposed on the accuracy of the three-dimensional point cloud. Usually, the vehicle will have a reinforcement device such as a pull rope, and the pull rope is about 10-50mm, so this mode is easy to ignore this feature. At the same time, the bridge-type super-heavy machine is prone to moving back and forth. It is easy to cause the accumulation of errors, resulting in poor accuracy; in the car segmentation algorithm, clustering is used for car segmentation, which requires good continuity of the car point cloud, and has a general effect on discontinuous data. For example, due to water or smooth surfaces, the data inside the car is missing, resulting in data loss, which affects the continuity of the point cloud. Therefore, the clustering method of "first model, then identify the vehicle" has limitations, and the uneven distribution of the point cloud will be significantly disturbed, thereby affecting the final recognition effect; among general vehicle types, it is common to have a car floor with one flat plate and two flat plates, and this scheme is for the identification and measurement of the car saddle, but does not effectively identify the two-flat plate vehicle. Therefore, the scheme is applied to the identification of general vehicle cars, and does not provide important result data for the identification of the number of car floors.

[0007] In summary, the vehicle identification and measurement system for the top-opening carriage in the prior art has some technical defects to a greater or lesser extent, and a more reliable identification and measurement system for the top-opening carriage is urgently needed. Summary of the invention

[0008] The purpose of the present application is to provide a top-opening compartment identification and measurement system based on pan-tilt three-dimensional data to solve at least one technical problem raised in the above-mentioned background technology.

[0009] To achieve the above-mentioned purpose, the present application discloses the following technical solutions: a top-opening carriage identification and measurement system based on pan-tilt three-dimensional data, comprising a pan-tilt, a walking mechanism and an identification and measurement module; the pan-tilt comprises a laser radar and a rotating platform, the laser radar is used to scan a cross section of the carriage at equal angle intervals, the laser radar is installed on the rotating platform, and the rotating platform is used to drive the laser radar to rotate and accurately control the rotation angle, speed and motion mode of the laser radar, the laser radar scanning plane is parallel to the rotation axis of the rotating platform; the pan-tilt is in communication connection with the identification and measurement module;

[0010] The pan-tilt head is installed on the traveling mechanism just above the rear compartment of the truck parked, and the compartment of the truck falls within the spherical scanning range of the pan-tilt head;

[0011] The identification and measurement module converts the three-dimensional on-site point cloud data of the pan / tilt into Cartesian coordinate data through Formula 1, which is: Wherein, r is the radius of the spherical coordinate model corresponding to the spherical scanning range of the gimbal, δ is the pitch angle of the spherical coordinate model, and φ is the rotation angle of the spherical coordinate model.

[0012] Preferably, the processing algorithm of the identification and measurement module for identifying and locating the compartment of the truck includes:

[0013] S0-calibrate the gimbal coordinate system of the gimbal and the coordinate system of the walking mechanism, including: recording the unit vector of each direction axis of the walking mechanism in the gimbal coordinate system, and obtaining the rotation matrix M 旋转 , and calculate the translation matrix T through the point pair 平移 , and finally the rotation matrix M 旋转 With the translation matrix T 平移 After synthesis, the transformation matrix M is obtained. Finally, a Cartesian coordinate system Oxyz is obtained. In the Cartesian coordinate system Oxyz, the x direction is the direction from the front of the vehicle to the rear of the vehicle, the y direction is the direction from the left side of the vehicle body to the right side of the vehicle body, and the z direction is the direction from the bottom of the vehicle to the top of the vehicle. The origin of the coordinate is located at the upper left of the front of the vehicle.

[0014] S1-rotate the transformation matrix M to obtain the coordinates of the walking mechanism, and filter and remove useless points according to the area range of the walking coordinate system; including: at the loading site, draw a parking area Ω, By limiting the area Ω, most useless points can be eliminated;

[0015] S2-Density-based clustering is performed on the point cloud after removing useless points. The clustering dimension is clustering in the XZ plane; including: defining the p point belongs to N by setting the maximum radius Eps of the field and the minimum number of points MinPts in the point field Eps (q), and the density of P points satisfies |N Eps (q)|≥MinPts, to realize the point cloud of the car floor, front and rear railings and roof;

[0016] S3- Perform Euclidean clustering on the point clouds of the car floor, front and rear rails, and roof, including: setting a fixed threshold to decluster different points and split them into different point cloud blocks, where the point cloud clusters with an average height of less than 2000 mm are marked as P1~P n ;

[0017] S4-point cloud cluster P1~P n Perform the least squares plane fitting respectively to obtain the normal vector (i, j, k) and standard deviation (δ i , δ j , δ k ), by calculation, the angle between the normal vector and the Z axis of the Cartesian coordinate system Oxyz is within the threshold range of 5°, δ k At threshold 2500mm 2 Points within the range are included in the car floor candidate point plane Plane1~Plane k ;

[0018] S5-For the candidate point plane Plane1~Plane k Combine the planes to merge the planes with an angle within 2°, adjacent boundary points less than 300mm and a height difference within 50mm into the same plane, and obtain multiple merged planes Pcmb1~Pcmb k ;

[0019] S6-Merge planes Pcmb1~Pcmb k Carry out positioning and identification of the carriage floor. When the normal vector angle between the two planes is within the range of 2° and the height difference between the planes is within the range of 150mm to 250mm, the type of the carriage floor is judged to be a raised platform car, which is a carriage floor composed of two flat plates; otherwise, find a combined plane that satisfies the requirements of being greater than 4000mm in the X direction and greater than 1800mm in the Z direction, and select the longest combined plane in the X direction as the carriage floor, and judge the type of the carriage floor to be a flatbed car, which is a carriage floor composed of one flat plate;

[0020] S7-Perform the least squares rectangular fitting on the point cloud cluster of the carriage floor to obtain the coordinates of the corner points, the horizontal deflection angle of the carriage, the length and width of the carriage, and realize the measurement of the carriage floor;

[0021] S8- Extract the height average of the four sides of the rectangle corresponding to the carriage floor, obtain the height average of each side, and use the height average as the height of the corresponding carriage guardrail;

[0022] S9-For the calibrated point cloud, regional filtering is used to remove the points of the carriage railing from the point cloud without constraints in the Z direction within the entire carriage floor range, and the point cloud Pstiffener of the carriage rope is obtained. Euclidean clustering is performed on Pstiffener in the XYZ direction, and different points with a distance greater than the preset threshold are divided into different point cloud clusters PT1~PT k , calculate the directional variance (δT i , δT j , δT k ), satisfying δT i <4*10 2 And δT k >2.5*10 3 The point cloud is determined to be the point cloud PT1~PT corresponding to the pull rope k , for point cloud PT1~PT k The minimum outer rectangle processing is performed to obtain the position information of the pull rope, thereby realizing the identification and positioning of the pull rope.

[0023] Preferably, in S0, the step of obtaining the conversion matrix M specifically includes:

[0024] (1) With the Y and Z coordinates of the traveling mechanism unchanged, calibrate points A1 to An;

[0025] (2) With the X and Z coordinates of the walking mechanism unchanged, calibrate points B1 to Bn;

[0026] (3) Using the least squares method, calculate the direction vectors (α1, α2, α3) of A1 to An and the direction vectors (β1, β2, β3) of B1 to Bn;

[0027] (4) Use vector cross product to obtain the Z direction vector (γ1, γ2, γ3), (γ1, γ2, γ3) = (α1, α2, α3) × (β1, β2, β3);

[0028] (5) Obtain the rotation matrix based on the coordinates (α1, α2, α3), (β1, β2, β3) and (γ1, γ2, γ3)

[0029] (6) According to the coordinates of the preset fixed point in the gimbal coordinate system and its corresponding coordinates in the walking mechanism coordinate system, the translation vector T is obtained. 平移 =[t1 t2 t3] T ;

[0030] (7) Get the transformation matrix Realize the calibration between the gimbal and the walking coordinate system.

[0031] Compared with the prior art, the top-opening carriage identification and measurement system based on pan-tilt three-dimensional data of the present application has the following beneficial effects:

[0032] 1. This system is developed based on the PTZ. It is an independent system that does not rely on the walking mechanism and realizes independent autonomous scanning, control and installation;

[0033] 2. The calculation result of this system is based on the point cloud in the global coordinate system of the gimbal itself, without relying on external walking machinery. Therefore, it has independent error stability and is not disturbed by other mechanisms, so it has high stability;

[0034] 3. The calibration method of this system is simple, clear and easy to understand. It can well associate the travel mechanism coordinate system with the pan / tilt coordinate system, making it easier for personnel to understand and maintain.

[0035] 4. This system uses a pan-tilt method to obtain three-dimensional point clouds, which has the advantage of short scanning time and is conducive to high-beat production conditions on site;

[0036] 5. The identification and measurement method of the carriage has the advantages of fast calculation speed, no need for pre-training, short time consumption and fast cycle, which is conducive to the high-beat production conditions on site;

[0037] 6. The identification and measurement method of the carriage has excellent adaptability to various open-top empty carriages, and can automatically identify the type of open-top empty carriages, can identify and locate high railings, low railings, and no railings, and can also identify and locate whether the carriage floor is a flat plate or a convex platform, and can also identify and locate whether there is a pull rope. It does not require complicated pre-training, and does not require external input of the vehicle model;

[0038] 7. The carriage identification and measurement method does not make any requirements on the front of the car, which increases the robustness of carriage identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 It is a schematic diagram of the layout of the top-opening carriage recognition and measurement system based on the pan-tilt three-dimensional data in the embodiment of the present application;

[0041] Figure 2 This is a schematic diagram of a spherical coordinate model corresponding to the spherical scanning range in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a gimbal coordinate system in an embodiment of the present application;

[0043] Figure 4 This is a schematic diagram of point cloud data of a spherical coordinate model in an embodiment of the present application;

[0044] Figure 5 This is a schematic diagram of density-based clustering of point clouds in an embodiment of the present application;

[0045] Figure 6 It is a schematic diagram of the operation process of the top-opening carriage recognition and measurement system based on the pan-tilt three-dimensional data in the embodiment of the present application;

[0046] Figure 7 It is a schematic diagram of the algorithm flow in the top-opening compartment identification and measurement system based on the pan-tilt three-dimensional data in the embodiment of the present application. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0048] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0049] refer to Figure 1A top-opening carriage identification and measurement system based on pan-tilt three-dimensional data is shown, including a pan-tilt, a walking mechanism and an identification and measurement module. In the figure, the parking range of the installation height is R, and the horizontal parking range in the vehicle width direction is W. At the same time, the parking range of the vehicle length (R, W) is related to the vehicle width and length, the pan-tilt rotation speed, the installation height of the pan-tilt and the equipment selection. The pan-tilt includes a laser radar and a rotating platform. The laser radar is used to scan a cross section of the carriage at equal angle intervals. The laser radar is installed on the rotating platform, and the rotating platform is used to drive the laser radar to rotate and accurately control the rotation angle, speed and motion mode of the laser radar. The laser radar scanning plane is parallel to the rotation axis of the rotating platform; the pan-tilt is communicatively connected to the identification and measurement module. The pan-tilt is fixedly installed just above the truck compartment, and the truck compartment falls within the spherical scanning range of the pan-tilt. The advantages of using a fixed pan-tilt installation are: the pan-tilt is an independent closed-loop system with its own complete set of hardware and is not restricted by other on-site systems; the scanning direction of the pan-tilt is from one side of the car width to the other side of the car width, achieving the smallest scanning range, which is more conducive to shortening the scanning cycle of the car scanning; the pan-tilt adopts a polar coordinate scanning model to effectively control its own precision error without being disturbed by other external system errors.

[0050] Combination Figure 2 and Figure 3 As shown, the identification and measurement module converts the three-dimensional on-site point cloud data of the pan / tilt into Cartesian coordinate data through Formula 1, and Formula 1 is: Wherein, r is the radius of the spherical coordinate model corresponding to the spherical scanning range of the gimbal, δ is the pitch angle of the spherical coordinate model, and φ is the rotation angle of the spherical coordinate model.

[0051] Furthermore, combined with Figure 3-7 The processing algorithm of the identification and measurement module for identifying and locating the compartment of the truck includes:

[0052] S0-calibrate the gimbal coordinate system of the gimbal and the coordinate system of the walking mechanism, including: recording the unit vector of each direction axis of the walking mechanism in the gimbal coordinate system, and obtaining the rotation matrix M 旋转 , and calculate the translation matrix T through the point pair 平移 , and finally the rotation matrix M 旋转 With the translation matrix T 平移 After synthesis, the transformation matrix M is obtained. Finally, a Cartesian coordinate system Oxyz is obtained. In the Cartesian coordinate system Oxyz, the x direction is the direction from the front of the vehicle to the rear of the vehicle, the y direction is the direction from the left side of the vehicle body to the right side of the vehicle body, and the z direction is the direction from the bottom of the vehicle to the top of the vehicle. The origin of the coordinate is located at the upper left of the front of the vehicle.

[0053] S1-rotate the transformation matrix M to obtain the coordinates of the walking mechanism, and filter and remove useless points according to the area range of the walking coordinate system; including: at the loading site, draw a parking area Ω, By limiting the area Ω, most useless points can be eliminated;

[0054] S2-Density-based clustering is performed on the point cloud after removing useless points. The clustering dimension is clustering in the XZ plane; including: defining the p point belongs to N by setting the maximum radius Eps of the field and the minimum number of points MinPts in the point field Eps (q), and the density of P points satisfies |N Eps (q)|≥MinPts, to realize the point cloud of the car floor, front and rear railings and roof;

[0055] S3- Perform Euclidean clustering on the point clouds of the car floor, front and rear rails, and roof, including: setting a fixed threshold to decluster different points and split them into different point cloud blocks, where the point cloud clusters with an average height of less than 2000 mm are marked as P1~P n ;

[0056] S4-point cloud cluster P1~P n Perform the least squares plane fitting respectively to obtain the normal vector (i, j, k) and standard deviation (δ i ,δ j ,δ k ), by calculation, the angle between the normal vector and the Z axis of the Cartesian coordinate system Oxyz is within the threshold range of 5°, δ k At threshold 2500mm 2 Points within the range are included in the car floor candidate point plane Plane1~Plane k ;

[0057] S5-For the candidate point plane Plane1~Plane k Combine the planes to merge the planes with an angle within 2°, adjacent boundary points less than 300mm and a height difference within 50mm into the same plane, and obtain multiple merged planes Pcmb1~Pcmb k ;

[0058] S6-Merge planes Pcmb1~Pcmb kCarry out positioning and identification of the carriage floor. When the normal vector angle between the two planes is within the range of 2° and the height difference between the planes is within the range of 150mm to 250mm, the type of the carriage floor is judged to be a raised platform car, which is a carriage floor composed of two flat plates; otherwise, find a combined plane that satisfies the requirements of being greater than 4000mm in the X direction and greater than 1800mm in the Z direction, and select the longest combined plane in the X direction as the carriage floor, and judge the type of the carriage floor to be a flatbed car, which is a carriage floor composed of one flat plate;

[0059] S7-Perform the least squares rectangular fitting on the point cloud cluster of the carriage floor to obtain the coordinates of the corner points, the horizontal deflection angle of the carriage, the length and width of the carriage, and realize the measurement of the carriage floor;

[0060] S8- Extract the height average of the four sides of the rectangle corresponding to the carriage floor, obtain the height average of each side, and use the height average as the height of the corresponding carriage guardrail;

[0061] S9-For the calibrated point cloud, regional filtering is used to remove the points of the carriage railing from the point cloud without constraints in the Z direction within the entire carriage floor range, and the point cloud Pstiffener of the carriage rope is obtained. Euclidean clustering is performed on Pstiffener in the XYZ direction, and different points with a distance greater than the preset threshold are divided into different point cloud clusters PT1~PT k , calculate the directional variance (δT i ,δT j ,δT k ), satisfying δT i <4*10 2 And δT k >2.5*10 3 The point cloud is determined to be the point cloud PT1~PT corresponding to the pull rope k , for point cloud PT1~PT k The minimum outer rectangle processing is performed to obtain the position information of the pull rope, thereby realizing the identification and positioning of the pull rope.

[0062] Among them, in S0, the step of obtaining the conversion matrix M specifically includes:

[0063] (1) With the Y and Z coordinates of the traveling mechanism unchanged, calibrate points A1 to An;

[0064] (2) With the X and Z coordinates of the walking mechanism unchanged, calibrate points B1 to Bn;

[0065] (3) Using the least squares method, calculate the direction vectors (α1, α2, α3) of A1 to An and the direction vectors (β1, β2, β3) of B1 to Bn;

[0066] (4) Use vector cross product to obtain the Z direction vector (γ1,γ2,γ3), (γ1,γ2,γ3) = (α1,α2,α3) × (β1,β2,β3);

[0067] (5) Obtain the rotation matrix based on the coordinates (α1, α2, α3), (β1, β2, β3) and (γ1, γ2, γ3)

[0068] (6) According to the coordinates of the preset fixed point in the gimbal coordinate system and its corresponding coordinates in the walking mechanism coordinate system, the translation vector T is obtained. 平移 =[t1 t2 t3] T ;

[0069] (7) Get the transformation matrix Realize the calibration between the gimbal and the walking coordinate system.

[0070] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.

[0071] In summary, the top-opening carriage identification and measurement system based on pan-tilt three-dimensional data of the present application has the following characteristics:

[0072] 1. This system is developed based on the PTZ. It is an independent system that does not rely on the walking mechanism and realizes independent autonomous scanning, control and installation;

[0073] 2. The calculation result of this system is based on the point cloud in the global coordinate system of the gimbal itself, without relying on external walking machinery. Therefore, it has independent error stability and is not disturbed by other mechanisms, so it has high stability;

[0074] 3. The calibration method of this system is simple, clear and easy to understand. It can well associate the travel mechanism coordinate system with the pan / tilt coordinate system, making it easier for personnel to understand and maintain.

[0075] 4. This system uses a pan-tilt method to obtain three-dimensional point clouds, which has the advantage of short scanning time and is conducive to high-beat production conditions on site;

[0076] 5. The identification and measurement method of the carriage has the advantages of fast calculation speed, no need for pre-training, short time consumption and fast cycle, which is conducive to the high-beat production conditions on site;

[0077] 6. The identification and measurement method of the carriage has excellent adaptability to various open-top empty carriages, and can automatically identify the type of open-top empty carriages, can identify and locate high railings, low railings, and no railings, and can also identify and locate whether the carriage floor is a flat plate or a convex platform, and can also identify and locate whether there is a pull rope. It does not require complicated pre-training, and does not require external input of the vehicle model;

[0078] 7. The carriage identification and measurement method does not make any requirements on the front of the car, which increases the robustness of carriage identification.

[0079] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A top-opening carriage identification and measurement system based on pan-tilt three-dimensional data, characterized in that: It includes a pan-tilt platform, a walking mechanism and an identification and measurement module; the pan-tilt platform includes a laser radar and a rotating platform, the laser radar is used to scan a cross section of the carriage at equal angle intervals, the laser radar is installed on the rotating platform, and the rotating platform is used to drive the laser radar to rotate and accurately control the rotation angle, speed and movement mode of the laser radar, the laser radar scanning plane is parallel to the rotation axis of the rotating platform; the pan-tilt platform is in communication connection with the identification and measurement module; The pan-tilt head is installed on the traveling mechanism just above the rear compartment of the truck parked, and the compartment of the truck falls within the spherical scanning range of the pan-tilt head; The identification and measurement module converts the three-dimensional on-site point cloud data of the pan / tilt into Cartesian coordinate data through Formula 1, which is: Wherein, r is the radius of the spherical coordinate model corresponding to the spherical scanning range of the gimbal, δ is the pitch angle of the spherical coordinate model, and φ is the rotation angle of the spherical coordinate model; The processing algorithm of the identification and measurement module for identifying and locating the compartment of the truck includes: S0-calibrate the gimbal coordinate system of the gimbal and the coordinate system of the walking mechanism, including: recording the unit vector of each direction axis of the walking mechanism in the gimbal coordinate system, and obtaining the rotation matrix M 旋转 , and calculate the translation matrix T through the point pair 平移 , and finally the rotation matrix M 旋转 With the translation matrix T 平移 After synthesis, the transformation matrix M is obtained. Finally, a Cartesian coordinate system Oxyz is obtained. In the Cartesian coordinate system Oxyz, the x direction is the direction from the front of the vehicle to the rear of the vehicle, the y direction is the direction from the left side of the vehicle body to the right side of the vehicle body, and the z direction is the direction from the bottom of the vehicle to the top of the vehicle. The origin of the coordinate is located at the upper left of the front of the vehicle. S1-rotate the transformation matrix M to obtain the coordinates of the walking mechanism, and filter and remove useless points according to the area range of the walking coordinate system; including: at the loading site, draw a parking area Ω, By limiting the area Ω, most useless points can be eliminated; S2-Density-based clustering is performed on the point cloud after removing useless points. The clustering dimension is clustering in the XZ plane; including: defining the p point belongs to N by setting the maximum radius Eps of the field and the minimum number of points MinPts in the point field Eps (q), and the density of P points satisfies |N Eps (q)|≥MinPts, to realize the point cloud of the car floor, front and rear railings and roof; S3- Perform Euclidean clustering on the point clouds of the car floor, front and rear rails, and roof, including: setting a fixed threshold to decluster different points and split them into different point cloud blocks, where the point cloud clusters with an average height of less than 2000 mm are marked as P1~P n ; S4-point cloud cluster P1~P n Perform the least squares plane fitting respectively to obtain the normal vector (i, j, k) and standard deviation (δ i ,δ j ,δ k ), by calculation, the angle between the normal vector and the Z axis of the Cartesian coordinate system Oxyz is within the threshold range of 5°, δ k At threshold 2500mm 2 Points within the range are included in the car floor candidate point plane Plane1~Plane k ; S5-For the candidate point plane Plane1~Plane k Combine the planes to merge the planes with an angle within 2°, adjacent boundary points less than 300mm and a height difference within 50mm into the same plane, and obtain multiple merged planes Pcmb1~Pcmb k ; S6-Merge planes Pcmb1~Pcmb k Carry out positioning and identification of the carriage floor. When the normal vector angle between the two planes is within the range of 2° and the height difference between the planes is within the range of 150mm to 250mm, the type of the carriage floor is judged to be a raised platform car, which is a carriage floor composed of two flat plates; otherwise, find a combined plane that satisfies the requirements of being greater than 4000mm in the X direction and greater than 1800mm in the Z direction, and select the longest combined plane in the X direction as the carriage floor, and judge the type of the carriage floor to be a flatbed car, which is a carriage floor composed of one flat plate; S7-Perform the least squares rectangular fitting on the point cloud cluster of the carriage floor to obtain the coordinates of the corner points, the horizontal deflection angle of the carriage, the length and width of the carriage, and realize the measurement of the carriage floor; S8- Extract the height average of the four sides of the rectangle corresponding to the carriage floor, obtain the height average of each side, and use the height average as the height of the corresponding carriage guardrail; S9-For the calibrated point cloud, regional filtering is used to remove the points of the carriage railing from the point cloud without constraints in the Z direction within the entire carriage floor range, and the point cloud Pstiffener of the carriage rope is obtained. Euclidean clustering is performed on Pstiffener in the XYZ direction, and different points with distances greater than the preset threshold are divided into different point cloud clusters PT1~PT k , calculate the directional variance (δT i ,δT j ,δT k ), satisfying δT i <4*10 2 And δT k >2.5*10 3 The point cloud is determined to be the point cloud PT1~PT corresponding to the pull rope k , for point cloud PT1~PT k Perform minimum outer rectangle processing to obtain the position information of the pull rope, and realize the identification and positioning of the pull rope; In S0, the step of obtaining the conversion matrix M specifically includes: (1) With the Y and Z coordinates of the traveling mechanism unchanged, calibrate points A1 to An; (2) With the X and Z coordinates of the walking mechanism unchanged, calibrate points B1 to Bn; (3) Using the least squares method, calculate the direction vectors (α1, α2, α3) of A1 to An and the direction vectors (β1, β2, β3) of B1 to Bn; (4) Use vector cross product to obtain the Z direction vector (γ1,γ2,γ3), (γ1,γ2,γ3) = (α1,α2,α3) × (β1,β2,β3); (5) Obtain the rotation matrix based on the coordinates (α1, α2, α3), (β1, β2, β3) and (γ1, γ2, γ3) (6) According to the coordinates of the preset fixed point in the gimbal coordinate system and its corresponding coordinates in the walking mechanism coordinate system, the translation vector T is obtained. 平移 =[t1 t2 t3] T ; (7) Get the transformation matrix Realize the calibration between the gimbal and the walking coordinate system.