Hoisting object point cloud segmentation method and device, storage medium and electronic equipment
By obtaining the frame point cloud and suspension point position of the hanging object in the intelligent tower crane, filtering and segmenting the point cloud of the hanging object, the problem of difficulty in identifying the size of the hanging object in the intelligent tower crane is solved, and high-accuracy identification and identification of the hanging object are achieved. Improved security.
Patent Information
- Application Number
- CN202410665626.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-20
AI Technical Summary
Existing technology makes it difficult to accurately identify the size of hanging objects in smart tower cranes, resulting in inaccurate trajectory planning and collision detection, which increases the risk of safety accidents.
By obtaining the frame point cloud where the hanging object is located and the suspension point position of the steel cable, the point cloud collection of the hanging object interference and suspected objects is screened out, and the hanging point cloud segmentation method is used to segment point clouds that are not connected to the interference point cloud to achieve Accurate identification of hanging objects.
It improves the accuracy and safety of hanging object identification, is suitable for various types of hanging objects, reduces the dependence on deep learning models and manual calibration, and saves labor costs.
Smart Images

Figure CN118674729A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of building construction technology, and in particular relates to a method, device, storage medium, electronic equipment and computer program product for segmenting a suspended object point cloud. Background Art
[0002] A tower crane is an important engineering facility. Through lifting, luffing, and rotation, a tower crane can move and transport large materials in vertical and horizontal directions, so it is widely used in scenes such as construction sites. However, traditional tower cranes require drivers to drive in the operating cabin. During the operation, the avoidance of some obstacles (such as stacked materials, buildings, etc.) and trajectory planning mainly rely on the skills and experience of the driver, which can easily lead to safety accidents. Therefore, smart tower cranes came into being.
[0003] An intelligent tower crane is an intelligent tower crane that integrates multiple engineering technologies such as advanced electronic technology, automatic control technology, and sensor technology. It is capable of unmanned driving and autonomous operation. For intelligent tower cranes, trajectory planning, collision detection, and obstacle avoidance are three very important research topics. In the process of lifting objects by intelligent tower cranes, it is necessary to know the size information of the objects in order to provide safe and reliable trajectory planning, which is also a necessary condition for automatic collision detection and obstacle avoidance during the lifting process. However, due to the variety of objects hoisted by the tower crane, it is difficult for existing technologies to accurately identify the objects when determining their size, which in turn causes difficulties or inaccuracies in calculating the size of the objects. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a method, device, storage medium, electronic device and computer program product for segmenting a hanging object point cloud, which can accurately segment point clouds of various hanging objects and have a high hanging object recognition accuracy.
[0005] In a first aspect, the present application provides a method for segmenting a suspended object point cloud, comprising:
[0006] In the process of hoisting an object by an engineering machinery with a hoisting function, a frame point cloud of a collection area where the object is located and a suspension point position of a steel cable are obtained, wherein the engineering machinery includes a hook for hoisting the object and the steel cable for hanging the hook;
[0007] Determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable;
[0008] According to the position of the hanging point, determining an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects from the point cloud set to be screened;
[0009] Point clouds that are not connected to the interference point cloud set are segmented from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
[0010] In some embodiments, determining the interference point cloud set of the suspended object interference object and the suspended object candidate point cloud set of the suspended object suspected object from the point cloud set to be screened according to the suspension point position includes:
[0011] Determining the hanging direction of the steel cable and the bottom point position of the hook;
[0012] Determine a reference plane and a reference straight line according to the suspension point position and the bottom point position;
[0013] Determining a point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane;
[0014] According to the hanging direction, the reference plane and the point cloud set of interest, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects are determined from the point cloud set to be screened.
[0015] In some embodiments, determining a reference plane and a reference line according to the suspension point position and the bottom point position includes:
[0016] Determine a straight line passing through the suspension point and extending along the suspension direction as a reference straight line;
[0017] A plane passing through the bottom point and having the hanging direction as a normal is determined as a reference plane.
[0018] In some embodiments, determining the point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane includes:
[0019] Determine the distance between each point cloud in the to-be-screened point cloud set and the reference straight line;
[0020] All point clouds whose distance is less than a preset distance and are located on and below the reference plane are extracted from the point cloud set to be screened to obtain a point cloud set of interest, wherein the preset distance is set according to a maximum length threshold of the hook or the hanging object on a horizontal plane.
[0021] In some embodiments, determining the interference point cloud set of the suspended object interference object and the suspended object candidate point cloud set of the suspended object suspected object from the point cloud set to be screened according to the hanging direction, the reference plane and the point cloud set of interest includes:
[0022] Determine the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane;
[0023] According to the hanging seed points, a hanging object candidate point cloud set of suspected hanging objects is grown in the point cloud set to be screened;
[0024] According to the reference plane and the point cloud set of interest, an interference point cloud set of the suspended object interference is determined from the point cloud set to be screened.
[0025] In some embodiments, determining the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane includes:
[0026] Dividing the point cloud in the point cloud set of interest into a plurality of point cloud segments arranged in sequence along the hanging direction;
[0027] Determine the maximum projection length of each point cloud segment on the reference plane;
[0028] According to the maximum projection length, the maximum length threshold of the hanging object on the horizontal plane and the maximum effective length threshold of the hanging rope, the hanging seed point is determined from the cloud set of points of interest, and the hanging object is hung on the hook via the hanging rope.
[0029] In some embodiments, determining the maximum projection length of each segment of the point cloud on the reference plane includes:
[0030] Cluster the point clouds in each segment of the point cloud to obtain multiple clustering results;
[0031] Projecting all the clustering results onto the reference plane to obtain a plurality of projection points;
[0032] The maximum distance between two of the projection points among all the projection points corresponding to each segment of the point cloud is calculated as the maximum projection length of the corresponding segment of the point cloud on the reference plane.
[0033] In some embodiments, determining the interference point cloud set of the suspended object interference object from the to-be-screened point cloud set according to the reference plane and the interest point cloud set includes:
[0034] Acquire a preset number of point clouds farthest from the reference plane from the set of point clouds of interest as ground seed points;
[0035] According to the ground seed points, all point clouds of the ground and ground objects are grown in the point cloud set to be screened, and an interference point cloud set of the suspended object interference objects is obtained.
[0036] In some embodiments, the engineering machinery further includes a boom and a mobile trolley mounted on the boom, the steel cable is fixed on the mobile trolley, and the step of obtaining the suspension point position of the steel cable includes:
[0037] Obtaining the amplitude change value of the mobile trolley, the rotation angle of the boom and the lowest height of the boom relative to the ground;
[0038] Determine the center point position of the mobile vehicle according to the amplitude variation value, the rotation angle and the minimum height;
[0039] The suspension point position of the steel cable is determined according to the center point position and the preset calibration value.
[0040] In a second aspect, the present application provides a method and device for segmenting a suspended object point cloud, comprising:
[0041] An acquisition unit, used for acquiring a frame point cloud of a collection area where the object is located and a position of a suspension point of a steel cable during a process in which an engineering machinery with a lifting function lifts an object, wherein the engineering machinery comprises a hook for lifting the object and the steel cable for hanging the hook;
[0042] A first determining unit is used to determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable;
[0043] A second determining unit is used to determine, according to the position of the hanging point, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects from the point cloud set to be screened;
[0044] The third determining unit is used to segment the point cloud that is not connected to the interference point cloud set from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
[0045] In some embodiments, the second determining unit is specifically configured to:
[0046] Determining the hanging direction of the steel cable and the bottom point position of the hook;
[0047] Determine a reference plane and a reference straight line according to the suspension point position and the bottom point position;
[0048] Determining a point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane;
[0049] According to the hanging direction, the reference plane and the point cloud set of interest, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects are determined from the point cloud set to be screened.
[0050] In some embodiments, the second determining unit is specifically configured to:
[0051] Determine a straight line passing through the suspension point and extending along the suspension direction as a reference straight line;
[0052] A plane passing through the bottom point and having the hanging direction as a normal is determined as a reference plane.
[0053] In some embodiments, the second determining unit is specifically configured to:
[0054] Determine the distance between each point cloud in the to-be-screened point cloud set and the reference straight line;
[0055] All point clouds whose distance is less than a preset distance and are located on and below the reference plane are extracted from the point cloud set to be screened to obtain a point cloud set of interest, wherein the preset distance is set according to a maximum length threshold of the hook or the hanging object on a horizontal plane.
[0056] In some embodiments, the second determining unit is specifically configured to:
[0057] Determine the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane;
[0058] According to the hanging seed points, a hanging object candidate point cloud set of suspected hanging objects is grown in the point cloud set to be screened;
[0059] According to the reference plane and the point cloud set of interest, an interference point cloud set of the suspended object interference is determined from the point cloud set to be screened.
[0060] In some embodiments, the second determining unit is specifically configured to:
[0061] Dividing the point cloud in the point cloud set of interest into a plurality of point cloud segments arranged in sequence along the hanging direction;
[0062] Determine the maximum projection length of each point cloud segment on the reference plane;
[0063] According to the maximum projection length, the maximum length threshold of the hanging object on the horizontal plane and the maximum effective length threshold of the hanging rope, the hanging seed point is determined from the cloud set of points of interest, and the hanging object is hung on the hook via the hanging rope.
[0064] In some embodiments, the second determining unit is specifically configured to:
[0065] Cluster the point clouds in each segment of the point cloud to obtain multiple clustering results;
[0066] Projecting all the clustering results onto the reference plane to obtain a plurality of projection points;
[0067] The maximum distance between two of the projection points among all the projection points corresponding to each segment of the point cloud is calculated as the maximum projection length of the corresponding segment of the point cloud on the reference plane.
[0068] In some embodiments, the second determining unit is specifically configured to:
[0069] Acquire a preset number of point clouds farthest from the reference plane from the set of point clouds of interest as ground seed points;
[0070] According to the ground seed points, all point clouds of the ground and ground objects are grown in the point cloud set to be screened, and an interference point cloud set of the suspended object interference objects is obtained.
[0071] In some embodiments, the acquisition unit is specifically used to:
[0072] Obtaining the amplitude change value of the mobile trolley, the rotation angle of the boom and the lowest height of the boom relative to the ground;
[0073] Determine the center point position of the mobile vehicle according to the amplitude variation value, the rotation angle and the minimum height;
[0074] The suspension point position of the steel cable is determined according to the center point position and the preset calibration value.
[0075] In a third aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for segmenting a suspended object point cloud described in any one of the above items is implemented.
[0076] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods for segmenting a suspended object point cloud when executing the program.
[0077] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for segmenting a suspended object point cloud.
[0078] The method, device, storage medium, electronic device and computer program product provided by the embodiments of the present application obtain the frame point cloud and the suspension point position of the steel cable in the collection area where the suspended object is located during the process of lifting the suspended object by an engineering machinery with a lifting function, wherein the engineering machinery includes a hook for lifting the suspended object and a steel cable for hanging the hook; determine a set of point clouds to be screened from the frame point cloud according to the suspension point position, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable; determine the interference point cloud set of the suspended object and the suspended object from the set of point clouds to be screened according to the suspension point position. A set of candidate point clouds of suspected hanging objects; point clouds that are not connected to the interference point cloud set are segmented from the candidate point cloud set of hanging objects to obtain the point cloud of the hanging object, that is, by screening out the point clouds of hanging object interference objects and hanging object suspected objects, and based on the characteristics that the hanging objects are suspended in the air and have no contact with the hanging object interference objects, the point clouds of the hanging objects are further screened out from the suspected hanging objects. Therefore, not only the accuracy of hanging object point cloud segmentation is high and the hanging object recognition effect is good, but also it is suitable for point cloud segmentation of various types of hanging objects, with a wide range of applications, and does not require the use of deep learning models, and does not require manual point cloud calibration, effectively saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0080] Figure 1 It is a flow chart of a method for segmenting a suspended object point cloud provided in an embodiment of the present application;
[0081] Figure 2 It is a structural schematic diagram of a tower crane provided in an embodiment of the present application;
[0082] Figure 3 It is another schematic diagram of the flow chart of the method for segmenting the suspended object point cloud provided in an embodiment of the present application;
[0083] Figure 4 It is a structural schematic diagram of a method and device for segmenting a suspended object point cloud provided in an embodiment of the present application;
[0084] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0085] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0086] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0087] In the process of lifting objects by intelligent tower cranes, it is necessary to know the size information of the objects in order to provide safe and reliable trajectory planning, which is also a necessary condition for automatic collision detection and obstacle avoidance during the lifting process. In the prior art, the size of the objects can be obtained by manual measurement. This method not only has manual measurement errors, but also increases labor costs. In other embodiments, the size measurement of the objects can also be realized based on a deep learning model, specifically: first, a deep learning model for identifying the point cloud of the objects is trained through a large number of point cloud samples and annotation labels of the objects, and the point cloud collected in the working area of the tower crane is segmented by the deep learning model, and then the size of the objects is calculated according to the segmented point cloud of the objects. Although this method can realize the automatic measurement of the size of the objects, due to the variety of objects, it is difficult to obtain comprehensive training point cloud samples when training the deep learning model, which leads to the feature learning of the deep learning model is not comprehensive enough, and the learning model obtained by training cannot accurately segment various point clouds of objects, the scope of application of the model is relatively limited, and the accuracy of the object recognition is not high, which leads to the problem of difficulty or inaccuracy in calculating the size of the objects.
[0088] In order to solve at least one of the above technical problems, the embodiments of the present application provide a method, device, storage medium, electronic device and computer program product for segmenting a suspended object point cloud.
[0089] See also Figure 1 , Figure 1 1 is a flow chart of a method for segmenting a suspended object point cloud provided in an embodiment of the present application. The method for segmenting a suspended object point cloud is applied to an electronic device, which can be implemented as a user terminal or a server, and the user terminal includes a laptop, a tablet computer, a desktop computer, a mobile device (such as a mobile phone, a personal digital assistant, a dedicated messaging device), etc. Specifically, the method for segmenting a suspended object point cloud may include the following steps 101-104, wherein:
[0090] 101. During the process of hoisting an object by an engineering machinery with a hoisting function, a frame point cloud of a collection area where the object is located and a position of a hanging point of a steel cable are obtained. The engineering machinery includes a hook for hoisting the object and a steel cable for hanging the hook.
[0091] Among them, engineering machinery with lifting function includes but is not limited to lifting machinery, tower cranes, gantry cranes, etc. This application will take the engineering machinery as a tower crane as an example to introduce the automatic measurement method of the size of the hoisted object. Figure 2 , Figure 2It is a structural schematic diagram of a tower crane provided in an embodiment of the present application, and the tower crane 20 includes a base 21, a tower body 22 vertically fixed on the base 21, a boom 23 and a balance arm 24, a hook 25 and a moving trolley 26 arranged on the tower body 22. The moving trolley 26 is arranged on the boom 23, and the moving trolley 26 is provided with a motor, and the motor drives the moving trolley 26 to move left and right along the boom 23. The top of the steel cable 27 is suspended on the moving trolley 26, and the suspension point position of the steel cable 27 can be regarded as the center point position of the top of the steel cable 27. The hook 25 is suspended at the bottom of the steel cable 27. When the moving trolley 26 moves left and right, it will drive the hook 25 to move left and right, so as to adjust the position of the hook 25 at any time, so as to facilitate the lifting of heavy objects and lift the heavy objects to the required position. It should be noted that Figure 2 Only one structure of the tower crane 20 is simply shown, and the tower crane 20 may also have other structures, which is not limited here.
[0092] When a tower crane is hoisting objects, point cloud acquisition devices such as laser radar or binocular cameras can be used to collect continuous frame point clouds in the collection area where the objects are located. The collected point cloud data includes the geometric position and attribute data of the point cloud, such as color information, reflection intensity information, etc. The point cloud acquisition device can be installed on a mobile trolley and move with the mobile trolley, or it can be fixed around the tower crane, and there is no restriction here.
[0093] In some embodiments, after each frame point cloud is collected, the frame point cloud can be preprocessed first. The preprocessing includes filtering processing such as denoising and outlier removal, as well as downsampling processing, etc., to improve the quality and accuracy of the point cloud data and facilitate subsequent point cloud analysis and processing.
[0094] In some embodiments, the engineering machinery further includes a boom and a mobile trolley mounted on the boom, the steel cable is fixed on the mobile trolley, and the "obtaining the suspension point position of the steel cable at the current acquisition moment" in the above step 101 may specifically include:
[0095] (11) Obtaining the amplitude change value of the mobile vehicle at the current acquisition time, as well as the rotation angle of the boom and the lowest height of the boom relative to the ground;
[0096] (12) determining the center point position of the mobile vehicle according to the amplitude value, the rotation angle and the minimum height at the current acquisition time;
[0097] (13) According to the center point position and the preset calibration value, the suspension point position of the steel cable at the current acquisition time is determined.
[0098] The amplitude variation of the mobile trolley is the turning radius or working radius of the tower crane. For different acquisition moments, any one of the turning angle of the boom and the minimum height of the boom relative to the ground may change, resulting in the suspension point position (x q ,y q , z q ) changes, and needs to be calculated in real time. The specific calculation formula is as follows:
[0099]
[0100] Among them, (x m ,y m , z m ) is the center point of the mobile trolley, R is the amplitude of the mobile trolley, α is the rotation angle of the boom, H is the height of the bottom of the boom (that is, the lowest height relative to the ground), and (x0, y0, z0) is the calibration value from the suspension point Q to the center point of the mobile trolley (that is, the preset calibration value mentioned above).
[0101] In an embodiment of the present application, when determining the position of the steel cable suspension point, the real-time movement of the mobile trolley and the boom is determined, and the position of the steel cable suspension point is calculated according to their real-time movement conditions, thereby enabling accurate estimation of the position of the steel cable suspension point. Subsequently, when the steel cable point cloud and the hook point cloud are segmented based on the steel cable suspension point position, it is beneficial to improve the accuracy of the segmentation of the steel cable point cloud and the hook point cloud.
[0102] 102. Determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed that of the steel cable.
[0103] Among them, the three-dimensional position coordinates of each point cloud and the height coordinate value of the suspension point position of the steel cable (for example, the z-axis coordinate value Z q ), extract all point clouds whose height relative to the ground does not exceed the position of the suspension point from the frame point cloud, that is, filter out the point cloud of the boom and the objects above the boom, leaving only the point cloud with a height not greater than Z q The point cloud of the remaining structure on the upper part of the cable is removed to obtain the point cloud set to be screened {R e}.
[0104] 103. According to the position of the hanging point, determine the interference point cloud set of the hanging object interference object and the hanging object candidate point cloud set of the hanging object suspected object from the point cloud set to be screened.
[0105] Among them, the suspected hanging objects can be considered as all possible objects suspected of hanging objects in the area from the hanging point position to the ground in the acquisition area, and the suspected hanging objects include hanging objects and may also include other objects. Hanging object interference objects are some objects that interfere with the segmentation of hanging object point cloud, mainly objects on the ground and on the ground (ground objects).
[0106] In some embodiments, see Figure 3 , Figure 3 1 is another flow chart of the method for segmenting the suspended object point cloud provided in an embodiment of the present application. The above step 103 may specifically include the following steps 1031-1034, wherein:
[0107] 1031. Determine the hanging direction of the steel cable and the bottom point position of the hook.
[0108] Among them, the bottom point position and hanging direction of the hook can be determined in a relatively simple way. For example, the hanging direction is regarded as the direction of gravity, and the bottom point position of the hook can be roughly estimated according to the hanging point position of the steel cable, the length of the steel cable and the height of the hook.
[0109] In some embodiments, the hanging direction and the bottom point position of the hook can also be determined based on the point cloud of the steel cable and the point cloud of the hook to improve the accuracy. In this case, the above step 1031 "determining the hanging direction of the steel cable" can specifically include:
[0110] Determine a steel cable point cloud set of the steel cable according to the suspension point position and the point cloud set to be screened;
[0111] Determine the hanging direction of the steel cable according to the steel cable point cloud set and the hanging point position;
[0112] Among them, the region growing method can be used to segment the steel cable point cloud set from the point cloud set to be screened, and then the minimum bounding box of the steel cable point cloud set can be calculated, and the first straight line passing through the point cloud farthest from the suspension point position in the steel cable point cloud set and the suspension point position can be found. After that, the angle between the first straight line and the second straight line in the three directions of the length, width and height of the minimum bounding box is calculated, and the second straight line with the smallest angle is selected as the suspension direction of the steel cable.
[0113] Specifically, the basic idea of the region growing method is to merge points with similar properties together. For each region, a seed point is first specified as the starting point of growth, and then the points in the area around the seed point are compared with the seed point, and points with similar properties are merged and continue to grow outward until no points that meet the conditions are included. In this way, the growth of a region is completed. The application in this scheme is as follows: First, establish a point cloud set R to be screened eA kd tree (a kd tree is a tree data structure for storing and retrieving points in a K-dimensional space) is used to search for a point (such as point A) in the kd tree that is closest to the suspension point position (point Q position) and does not exceed a first preset distance d1 (default empirical value) as a seed point on the cable (i.e., the cable seed point). Then, based on the cable seed point A, it is determined whether the point cloud in the nearby search range meets the point cloud growth standard. Specifically, with the cable seed point A as the center, first find the point cloud {S} in the search range near point A in the kd tree (the coverage area of the preset search radius r), and then determine whether {S} meets the point cloud growth standard. If so, point cloud growth is performed, and the search for the next point cloud in the next range is continued until all point clouds in the kd tree are searched. The point cloud growth process using the cable seed point is terminated, and the next cable seed point is selected. If it is not satisfied, the next point (such as point B) closest to point Q and not exceeding d1 is searched in the kd tree as the next cable seed point, and the above operation is repeated until no cable seed point with a distance not exceeding d1 is found, and the entire point cloud growth is terminated. Through the region growing method, all the point clouds of the cables in the kd tree can be found to obtain the cable point cloud set {T}.
[0114] After that, we can first determine the minimum bounding box of {T} and determine the straight lines {L j}, j is the subscript of the three lines, and find the point farthest from point Q in {T} (for example, point cloud P1), and determine the line passing through points Q and P1 as L. Then, from {L j}, select the straight line with the smallest angle with L as the straight line parallel to the cable direction, that is, the cable suspension direction is obtained. generally, The angle between the direction and the vector from point Q to point P1 is an acute angle.
[0115] In the embodiment of the present application, when segmenting the point cloud of the steel cable, the frame point cloud from the steel cable hanging point position to the ground is first screened out to preliminarily narrow the segmentation range, and then the steel cable seed points are selected according to the steel cable hanging point position, and the steel cable point cloud is segmented based on the regional growing method. Therefore, even if there are problems such as uneven density of the point cloud itself and shaking of the steel cable, the segmentation of the steel cable point cloud can be achieved quickly and effectively with high segmentation accuracy. Subsequently, when the segmentation of the hook point cloud is achieved based on the steel cable point cloud, it is beneficial to improve the segmentation accuracy of the hook point cloud.
[0116] In some embodiments, the “determining the bottom point position of the hook” in the above step 1031 may specifically include:
[0117] Determine a hook candidate point cloud set according to the suspension direction, the suspension point position, the steel cable point cloud set and the point cloud set to be screened at the current acquisition moment;
[0118] Determine the height coordinate interval of the hook according to the hanging direction at the current acquisition moment and the candidate point cloud set of the hook;
[0119] According to the height coordinate range, all point clouds of the hook are segmented from the candidate point cloud set of the hook to obtain the hook point cloud set of the hook at the current acquisition moment, and the three-dimensional position coordinates of the point cloud corresponding to the hook center or the hook bottom in the hook point cloud set are used as the target point position.
[0120] For example, when determining the candidate point cloud set of the hook, first fit the plane equation of the cable point cloud set {T}, and determine the plane passing through the suspension point Q and the suspension direction Then, from the point cloud set R to be screened e In the example, the point cloud whose distance from the cable plane is less than the second preset distance d2 and whose distance from the third straight line F is less than the third preset distance d3 is segmented out, that is, the hook candidate point cloud set {G roi}, these point clouds are the point clouds in the estimated hook appearance area. Usually, the values of d2 and d3 depend on the actual size of the hook. The user can measure the maximum length and maximum width of the hook on the horizontal plane (such as the XY plane) in advance. d2 is generally greater than the maximum width, and d3 is greater than the maximum length. For example, the value of d3 can be 50% greater than the maximum length.
[0121] Through the limitations of the above-mentioned second preset distance d2 and the third preset distance d3, the finally estimated area where the hook appears can be considered to be a coordinate area where the X-axis coordinate value is slightly larger than the maximum length value of the hook, the Y-axis coordinate value is slightly larger than the maximum width value of the hook, and the Z-axis coordinate value is not higher than the coordinate of the steel cable suspension point Q in the three-dimensional space coordinate system of the point cloud (for example, the XYZ coordinate system), thereby effectively narrowing the point cloud segmentation range of the hook.
[0122] Afterwards, when the hook candidate point cloud set {G roi}After that, you can adjust the hanging direction and the hook candidate point cloud set {G roi}, divide a plurality of coordinate intervals on a two-dimensional plane, and determine the height coordinate interval of the hook according to the maximum distance of each coordinate interval, the actual length value of the top surface of the hook, and the actual length value of the bottom surface of the hook. Specifically, the following steps may be included:
[0123] According to the hanging direction, each point cloud in the candidate point cloud set of the hook is converted into a plane coordinate point in a two-dimensional plane to obtain a plane coordinate point set, wherein the coordinate system of the two-dimensional plane includes a first coordinate axis and a second coordinate axis;
[0124] Dividing the two-dimensional position coordinates corresponding to the set of plane coordinate points into a plurality of coordinate intervals along the direction of the first coordinate axis, and clustering the plane coordinate points in each coordinate interval to obtain a plurality of clusters;
[0125] According to the maximum distance of each cluster in the direction of the second coordinate axis, determine the maximum distance of the corresponding sub-coordinate interval;
[0126] Determine the top boundary position coordinates and the bottom boundary position coordinates of the hook on the two-dimensional plane according to the maximum interval distance of each coordinate interval, the actual length value of the top surface of the hook, and the actual length value of the bottom surface of the hook;
[0127] Determine the height coordinate range of the hook based on the top boundary position coordinates and the bottom boundary position coordinates.
[0128] For example, first change the hanging direction and the hook candidate point cloud set {G roi} projected onto the same two-dimensional plane, we get Direction in a 2D plane and {G roi}The projection point set on the two-dimensional plane (i.e., the plane coordinate point set {D 2}), and can be directed The first coordinate axis X1 of the two-dimensional plane is perpendicular to the direction Directions As the second coordinate axis Y1 of the two-dimensional plane, each projection point {D 2 The three-dimensional position coordinates of the point cloud corresponding to {G} are converted from the point cloud space coordinate system (such as the XYZ coordinate system) into the two-dimensional position coordinates under the two-dimensional plane coordinate system X1Y1, thereby realizing {G roi} to {D 2}. Then, first transform {D 2} is filtered to remove noise and outliers, and then along the first coordinate axis X1 direction, {D 2 The coordinate area corresponding to} (that is, the coordinate area with the minimum X1 coordinate value and the maximum X1 coordinate value as the endpoints) is divided into m equally spaced coordinate intervals. Then, the plane coordinate points are clustered in each coordinate interval, and the number of clusters in each cluster is calculated. The maximum distance in the direction, the maximum distance with the largest value is taken as the maximum distance of the corresponding coordinate interval.
[0129] Then, the top boundary position coordinate S1 and the bottom boundary position coordinate S2 of the hook on the two-dimensional plane (that is, the two-dimensional position coordinates in the two-dimensional plane coordinate system X1Y1) are determined based on the maximum distance of each coordinate interval. For example, The maximum interval distances of each coordinate interval are compared in order from front to back, and the sorting position of the coordinate interval (first target coordinate interval) whose maximum interval distance is greater than the fifth preset distance d5, such as the second coordinate interval, is used as the top boundary b1 of the hook. At this time, the coordinates of the end point in the first target coordinate interval can be used as the coordinates of the top boundary b1 of the hook (i.e., the top boundary position coordinate S1). Then continue to compare the maximum interval distances of subsequent coordinate intervals, and the sorting position of the coordinate interval (second target coordinate interval) whose first distance is less than the sixth preset distance d6, such as the fifth coordinate interval, is used as the bottom boundary b2 of the hook. At this time, the coordinates of the end point in the second target coordinate interval can be used as the coordinates of the bottom boundary b2 of the hook (i.e., the top boundary position coordinate S2). Among them, the value of the fifth preset distance d5 depends on the actual length value of the top surface of the hook, and the value of the sixth preset distance d6 depends on the actual length value of the bottom surface of the hook, both of which are empirical values. For the first target coordinate interval and the second target coordinate interval, their respective end point coordinates can be determined by the following formula:
[0130]
[0131] Wherein, d4 is the fourth preset distance, that is, the interval distance between the coordinate intervals, d min is a set of plane coordinate points {D 2 The first coordinate axis in Minimum coordinate component in direction.
[0132] Afterwards, the two-dimensional S1 and S2 are projected onto the vertical coordinate axis (i.e., Z axis) in the three-dimensional point cloud space coordinate system XYZ, respectively, to obtain the minimum height coordinate h1 corresponding to S1 and the maximum height coordinate h2 corresponding to S2, and then the height coordinate interval [h1, h2] is obtained.
[0133] Finally, the hook candidate point cloud set {G roi The point cloud whose Z-axis coordinate component is within the height coordinate interval [h1,h2] is used as the point cloud of the hook to achieve the point cloud segmentation of the hook. After that, the point cloud position of the bottom of the hook or the center of the hook in the hook point cloud set is used as the target point position.
[0134] In the embodiment of the present application, when segmenting the hook point cloud, a hook candidate point cloud set is screened out from the frame point cloud from the cable suspension point position to the ground according to the cable suspension direction and the cable point cloud set; the height coordinate interval of the hook is determined according to the cable suspension direction and the hook candidate point cloud set; all point clouds of the hook are segmented from the hook candidate point cloud set according to the height coordinate interval, that is, the hook point cloud is segmented according to the actual cable point cloud and cable suspension conditions, so that the hook point cloud can be accurately segmented even when the cable shakes, the point cloud is uneven, the hook is deformed, etc., and the hook point cloud segmentation effect is good.
[0135] 1032. Determine the reference plane and reference straight line based on the position of the suspension point and the position of the bottom point.
[0136] In some embodiments, the above step 1032 may specifically include:
[0137] Determine a straight line passing through the suspension point and extending along the suspension direction as a reference straight line;
[0138] A plane passing through the bottom point and having the hanging direction as a normal is determined as a reference plane.
[0139] That is, assuming that the reference line is l1 and the reference plane is PK, the reference line l1 passes through the suspension point Q, and the extension direction and the suspension direction are The reference plane PK passes through the bottom point position P of the hook, and the plane normal is consistent with the hanging direction. Consistent.
[0140] 1033. According to the reference straight line and the reference plane, determine a point cloud set of interest from the point cloud set to be screened.
[0141] In some embodiments, the above step 1033 may specifically include:
[0142] Determine the distance between each point cloud in the point cloud set to be screened and the reference straight line;
[0143] All point clouds whose distance is less than a preset distance and are located on and below the reference plane are extracted from the point cloud set to be screened to obtain a point cloud set of interest. The preset distance is set according to a maximum length threshold of the hook or the hanging object on a horizontal plane.
[0144] For example, a preset distance g is set according to the maximum length threshold of the hook or the hanging object on the horizontal plane (which can be regarded as an empirical value). g can be slightly larger than the maximum length threshold with the largest value between the two to ensure that at least a part of the point cloud of the hanging object can be intercepted. For example, g can be 2 meters or 3 meters. Specifically, the point cloud in the point cloud set of interest is the point cloud of the estimated hanging object appearance area. Usually, the hanging object appearance area is an area located below the steel cable and extending outward around the hanging direction of the steel cable. In the vertical direction, this area is located between the bottom of the hook and the ground. In the horizontal direction, the maximum extension radius will not exceed the maximum length threshold of the hook or the hanging object on the horizontal plane. That is, with the straight line l1 and the plane PK as reference, from the point cloud set to be screened {R e} extract all point clouds whose distance from the straight line l1 is less than the preset distance g and are located above and below the plane PK (the suspension point position Q is defined to be above the plane PK), and the point cloud set of interest is obtained
[0145] 1034. According to the hanging direction, the reference plane and the point cloud set of interest, determine the interference point cloud set of the hanging object interference objects and the hanging object candidate point cloud set of the hanging object suspected objects from the point cloud set to be screened.
[0146] In some embodiments, the above step 1034 may specifically include:
[0147] (11) Determine the hanging seed point from the point cloud set of interest based on the hanging direction and the reference plane.
[0148] Specifically, the above step (11) includes:
[0149] Dividing the point cloud in the point cloud set of interest into a plurality of point clouds arranged in sequence along the hanging direction;
[0150] Determine the maximum projection length of each point cloud segment on the reference plane;
[0151] According to the maximum projection length, the maximum length threshold of the hanging object on the horizontal plane and the maximum effective length threshold of the hanging rope, the hanging seed point is determined from the cloud set of points of interest, and the hanging object is hung on the hook via the hanging rope.
[0152] That is, first along the hanging direction The point clouds of interest are grouped according to the interval d2 (default empirical value) Divided into several segments, denoted as {S i}, i represents the sequence number of the segment, the jth point cloud and nth i The relationship between the segments is calculated as follows:
[0153] Among them, D jis the distance from the jth point cloud to the plane PK, D1 is a hyperparameter (for example, the value is 0), It is the top symbol.
[0154] After that, calculate {S i The maximum projection length M of each point cloud segment to the reference plane PK i , and set the threshold g3 according to the maximum length threshold of the hanging object on the horizontal plane, and then calculate the maximum projection length M of each segment point cloud in order from small to large i. i Compare with g3, if the first point cloud segment not less than g3 is recorded as n f , then take [0,n f ] as the seed points of the suspected hanging objects; if they are all less than g3, the threshold g4 is set according to the maximum effective length threshold of the hanging rope, for example, g4 can be 3 meters, 5 meters, etc., and then the point cloud of interest is collected All point clouds whose distance to plane PK is less than or equal to g4 are recorded as seed points of suspected hanging objects.
[0155] In some embodiments, the above step of “determining the maximum projection length of each point cloud segment on the reference plane” includes:
[0156] Cluster the point clouds in each segment of the point cloud to obtain multiple clustering results;
[0157] Projecting all the clustering results onto the reference plane to obtain multiple projection points;
[0158] The maximum distance between two of the projection points among all the projection points corresponding to each segment of the point cloud is calculated as the maximum projection length of the corresponding segment of the point cloud on the reference plane.
[0159] That is, for {S i} to cluster the single segment point cloud and obtain several clustering results (clustering clusters), recorded as k represents the serial number of the clustering result, and for a single segment of point cloud, each clustering result is projected onto the reference plane PK, and the maximum distance between the projection points is calculated to obtain k maximum distances, from which the maximum distance with the largest value is selected as the maximum projection length M of the segment of point cloud on the reference plane PK i .
[0160] (12) Based on the hanging seed point, a hanging object candidate point cloud set of suspected hanging objects is grown in the point cloud set to be screened.
[0161] Among them, based on the hanging seed points, the region growing method (the specific implementation principle can be found in the step of cable point cloud segmentation in the above step 1031, which will not be repeated here) can be used to select the point cloud set {R e} to grow (segment) a complete point cloud of suspected hanging objects and obtain a set of candidate point clouds of hanging objects
[0162] (13) According to the reference plane and the point cloud set of interest, an interference point cloud set of the suspended object is determined from the point cloud set to be screened.
[0163] In some embodiments, the above step (13) may specifically include:
[0164] Obtaining a preset number of point clouds farthest from the reference plane from the point cloud set of interest as ground seed points;
[0165] According to the ground seed point, all point clouds of the ground and ground objects are grown in the point cloud set to be screened, and an interference point cloud set of the suspended object interference object is obtained.
[0166] For example, considering that the hanging objects are generally close to the reference plane PK, while the ground and objects are far away from the reference plane PK, the point cloud of interest can be collected The m points farthest from the reference plane PK (for example, m is 3 or 5) are used as ground seed points. Then, based on the ground seed points, the region growing method is used to select the point cloud set {R e}, point clouds of ground objects such as the ground and buildings (hanging object interference) are grown.
[0167] 104. Segment the point cloud that is not connected to the interference point cloud set from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
[0168] That is, considering that hanging objects are generally suspended in the air and do not touch the ground or objects, the candidate point cloud set of the suspected hanging objects can be All point clouds connected to the ground and objects are eliminated to obtain a more accurate point cloud of the hanging object.
[0169] As can be seen from the above, the method for segmenting the point cloud of a suspended object provided in the embodiment of the present application obtains the frame point cloud of the collection area where the suspended object is located and the position of the suspension point of the steel cable during the process of the construction machinery with a lifting function lifting the suspended object, wherein the construction machinery includes a hook for lifting the suspended object and a steel cable for hanging the hook; a set of point clouds to be screened is determined from the frame point cloud according to the position of the suspension point, and the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable; a set of interference point clouds of suspended object interference objects and suspended object candidates of suspected suspended objects are determined from the set of point clouds to be screened according to the position of the suspension point Point cloud set; segment the point clouds that are not connected to the interference point cloud set from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object, that is, by screening out the point clouds of the hanging object interference objects and the suspected hanging object, and based on the characteristics that the hanging object is suspended in the air and has no contact with the hanging object interference objects, further screen out the point cloud of the hanging object from the suspected hanging object. Therefore, not only the accuracy of the hanging object point cloud segmentation is high, the hanging object recognition effect is good, and it is suitable for the point cloud segmentation of various types of hanging objects, with a wide range of applications, and there is no need to rely on deep learning models, and no manual point cloud calibration is required, which effectively saves labor costs.
[0170] According to the method described in the above embodiment, the present application embodiment also provides a method and device for segmenting a suspended object point cloud, which is used to execute the steps in the above method for segmenting a suspended object point cloud. Figure 4 , Figure 4 300 is a schematic diagram of the structure of a method for segmenting a suspended object point cloud provided in an embodiment of the present application. The method for segmenting a suspended object point cloud 300 is applied to an electronic device, which can be implemented as a user terminal or a server, and the user terminal includes a laptop, a tablet computer, a desktop computer, a mobile device (such as a mobile phone, a personal digital assistant, a dedicated messaging device), etc.
[0171] Specifically, the hanging object point cloud segmentation method device 300 includes an acquisition unit 301, a first determination unit 302, a second determination unit 303 and a third determination unit 304, wherein:
[0172] The acquisition unit 301 is used to acquire the frame point cloud of the collection area where the object is located and the position of the hanging point of the steel cable during the process of the engineering machinery with a lifting function lifting the object, and the engineering machinery includes a hook for lifting the object and the steel cable hanging the hook;
[0173] A first determining unit 302 is used to determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable;
[0174] The second determining unit 303 is used to determine, according to the position of the hanging point, an interference point cloud set of the hanging object interference object and a hanging object candidate point cloud set of the hanging object suspected object from the point cloud set to be screened;
[0175] The third determining unit 304 is used to segment the point cloud that is not connected to the interference point cloud set from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
[0176] In some embodiments, the second determining unit 303 is specifically configured to:
[0177] Determine the hanging direction of the steel cable and the bottom point position of the hook;
[0178] Determine a reference plane and a reference straight line according to the position of the suspension point and the position of the bottom point;
[0179] Determine a point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane;
[0180] According to the hanging direction, the reference plane and the point cloud set of interest, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects are determined from the point cloud set to be screened.
[0181] In some embodiments, the second determining unit 303 is specifically configured to:
[0182] Determine a straight line passing through the suspension point and extending along the suspension direction as a reference straight line;
[0183] A plane passing through the bottom point and having the hanging direction as a normal is determined as a reference plane.
[0184] In some embodiments, the second determining unit 303 is specifically configured to:
[0185] Determine the distance between each point cloud in the point cloud set to be screened and the reference straight line;
[0186] All point clouds whose distance is less than a preset distance and are located on and below the reference plane are extracted from the point cloud set to be screened to obtain a point cloud set of interest. The preset distance is set according to a maximum length threshold of the hook or the hanging object on a horizontal plane.
[0187] In some embodiments, the second determining unit 303 is specifically configured to:
[0188] Determine the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane;
[0189] According to the hanging seed point, a hanging object candidate point cloud set of suspected hanging objects is grown in the point cloud set to be screened;
[0190] According to the reference plane and the point cloud set of interest, an interference point cloud set of the suspended object interference is determined from the point cloud set to be screened.
[0191] In some embodiments, the second determining unit 303 is specifically configured to:
[0192] Dividing the point cloud in the point cloud set of interest into a plurality of point clouds arranged in sequence along the hanging direction;
[0193] Determine the maximum projection length of each point cloud segment on the reference plane;
[0194] According to the maximum projection length, the maximum length threshold of the hanging object on the horizontal plane and the maximum effective length threshold of the hanging rope, the hanging seed point is determined from the cloud set of points of interest, and the hanging object is hung on the hook via the hanging rope.
[0195] In some embodiments, the second determining unit 303 is specifically configured to:
[0196] Cluster the point clouds in each segment of the point cloud to obtain multiple clustering results;
[0197] Projecting all the clustering results onto the reference plane to obtain multiple projection points;
[0198] The maximum distance between two of the projection points among all the projection points corresponding to each segment of the point cloud is calculated as the maximum projection length of the corresponding segment of the point cloud on the reference plane.
[0199] In some embodiments, the second determining unit 303 is specifically configured to:
[0200] Obtaining a preset number of point clouds farthest from the reference plane from the point cloud set of interest as ground seed points;
[0201] According to the ground seed point, all point clouds of the ground and ground objects are grown in the point cloud set to be screened, and an interference point cloud set of the suspended object interference object is obtained.
[0202] In some embodiments, the acquisition unit 301 is specifically used to:
[0203] Obtaining the amplitude change value of the mobile trolley, the rotation angle of the boom and the lowest height of the boom relative to the ground;
[0204] Determine the center point position of the mobile vehicle according to the amplitude change value, the rotation angle and the minimum height;
[0205] The suspension point position of the steel cable is determined based on the center point position and the preset calibration value.
[0206] It should be noted that the specific details of each module unit in the above-mentioned hanging object point cloud segmentation method device 300 have been described in detail in the embodiment of the above-mentioned hanging object point cloud segmentation method, and will not be repeated here.
[0207] In some embodiments, the device for the method of segmenting the hanging object point cloud in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal device. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.
[0208] In some embodiments, Figure 5 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the program is executed by the processor 401, each process of the above-mentioned hanging object point cloud segmentation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0209] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0210] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0211] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509 and a processor 510.
[0212] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0213] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0214] The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 509 may include a volatile memory or a non-volatile memory, or the memory 509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0215] The processor 510 may include one or more processing units; the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 510.
[0216] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned hanging object point cloud segmentation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0217] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0218] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned hanging object point cloud segmentation method when executed by a processor.
[0219] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0220] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the 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 further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0221] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0222] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0223] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0224] In the description of the present application, “plurality” means two or more.
[0225] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0226] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A method for segmenting a suspended object point cloud, characterized in that: include: In the process of hoisting an object by an engineering machinery with a hoisting function, a frame point cloud of a collection area where the object is located and a position of a hanging point of a steel cable are obtained, wherein the engineering machinery includes a hook for hoisting the object and the steel cable for hanging the hook; Determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable; According to the position of the hanging point, determining an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects from the point cloud set to be screened; Point clouds that are not connected to the interference point cloud set are segmented from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
2. The method for segmenting a suspended object point cloud according to claim 1, characterized in that: The step of determining, from the point cloud set to be screened according to the suspension point position, an interference point cloud set of suspended object interference objects and a suspended object candidate point cloud set of suspended object suspected objects, comprises: Determining the hanging direction of the steel cable and the bottom point position of the hook; Determine a reference plane and a reference straight line according to the suspension point position and the bottom point position; Determining a point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane; According to the hanging direction, the reference plane and the point cloud set of interest, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects are determined from the point cloud set to be screened.
3. The method for segmenting a suspended object point cloud according to claim 2, characterized in that: Determining the reference plane and the reference straight line according to the suspension point position and the bottom point position includes: Determine a straight line passing through the suspension point and extending along the suspension direction as a reference straight line; A plane passing through the bottom point and having the hanging direction as a normal is determined as a reference plane.
4. The method for segmenting a suspended object point cloud according to claim 2, characterized in that: The step of determining a point cloud set of interest from the point cloud set to be screened according to the reference straight line and the reference plane comprises: Determine the distance between each point cloud in the to-be-screened point cloud set and the reference straight line; All point clouds whose distance is less than a preset distance and are located on and below the reference plane are extracted from the point cloud set to be screened to obtain a point cloud set of interest, wherein the preset distance is set according to a maximum length threshold of the hook or the hanging object on a horizontal plane.
5. The method for segmenting a suspended object point cloud according to claim 2, characterized in that: The step of determining, from the point cloud set to be screened according to the hanging direction, the reference plane and the point cloud set of interest, an interference point cloud set of suspended object interference objects and a candidate point cloud set of suspended object suspected objects, comprises: Determine the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane; According to the hanging seed points, a hanging object candidate point cloud set of suspected hanging objects is grown in the point cloud set to be screened; According to the reference plane and the point cloud set of interest, an interference point cloud set of the suspended object interference is determined from the point cloud set to be screened.
6. The method for segmenting a suspended object point cloud according to claim 5, characterized in that: The step of determining the hanging seed point from the interest point cloud set according to the hanging direction and the reference plane comprises: Dividing the point cloud in the point cloud set of interest into a plurality of point cloud segments arranged in sequence along the hanging direction; Determine the maximum projection length of each point cloud segment on the reference plane; According to the maximum projection length, the maximum length threshold of the hanging object on the horizontal plane and the maximum effective length threshold of the hanging rope, the hanging seed point is determined from the cloud set of points of interest, and the hanging object is hung on the hook via the hanging rope.
7. The method for segmenting a suspended object point cloud according to claim 6, characterized in that: The determining of the maximum projection length of each segment of the point cloud on the reference plane comprises: Cluster the point clouds in each segment of the point cloud to obtain multiple clustering results; Projecting all the clustering results onto the reference plane to obtain a plurality of projection points; The maximum distance between two of the projection points among all the projection points corresponding to each segment of the point cloud is calculated as the maximum projection length of the corresponding segment of the point cloud on the reference plane.
8. The method for segmenting a suspended object point cloud according to claim 5, characterized in that: The step of determining the interference point cloud set of the suspended object interference object from the point cloud set to be screened according to the reference plane and the point cloud set of interest includes: Acquire a preset number of point clouds farthest from the reference plane from the set of point clouds of interest as ground seed points; According to the ground seed points, all point clouds of the ground and ground objects are grown in the point cloud set to be screened, and an interference point cloud set of the suspended object interference objects is obtained.
9. The method for segmenting a suspended object point cloud according to any one of claims 1 to 8, characterized in that: The engineering machinery further includes a boom and a mobile trolley mounted on the boom, the steel cable is fixed on the mobile trolley, and the step of obtaining the suspension point position of the steel cable includes: Obtaining the amplitude change value of the mobile trolley, the rotation angle of the boom and the lowest height of the boom relative to the ground; Determine the center point position of the mobile vehicle according to the amplitude variation value, the rotation angle and the minimum height; The suspension point position of the steel cable is determined according to the center point position and the preset calibration value.
10. A method and device for segmenting a suspended object point cloud, characterized in that: include: An acquisition unit, used for acquiring a frame point cloud of a collection area where the object is located and a position of a suspension point of a steel cable during a process in which an engineering machinery with a lifting function lifts an object, wherein the engineering machinery comprises a hook for lifting the object and the steel cable for hanging the hook; A first determining unit is used to determine a set of point clouds to be screened from the frame point cloud according to the position of the suspension point, wherein the height of each point cloud in the set of point clouds to be screened relative to the ground does not exceed the steel cable; A second determining unit is used to determine, according to the position of the hanging point, an interference point cloud set of hanging object interference objects and a hanging object candidate point cloud set of hanging object suspected objects from the point cloud set to be screened; The third determining unit is used to segment the point cloud that is not connected to the interference point cloud set from the candidate point cloud set of the hanging object to obtain the point cloud of the hanging object.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for segmenting a suspended object point cloud as described in any one of claims 1 to 9 is implemented.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the suspended object point cloud segmentation method as described in any one of claims 1-9.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for segmenting a suspended object point cloud as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Target detection positioning method and device, equipment and storage medium
CN116342899A
Tower crane control method and system based on camera and laser radar
CN116395567A
Method, device and equipment for identifying contour of hanging object and readable storage medium
CN116503850A
Method and device for identifying sling of tower crane, electronic equipment and storage medium
CN117522964A
Method and system for detecting size of hoisted object of tower crane based on multi-sensor fusion and tower crane
CN117819386A
