Vertical plane detection method based on unmanned engineering machinery operation vehicle and medium
By using the plane coordinate extraction and fine extraction method of lidar point cloud in unmanned construction machinery operating vehicles, combined with Hough line detection, the problems of low multi-plane detection efficiency and low accuracy in the existing technology are solved, and the More efficient vertical plane detection.
Patent Information
- Application Number
- CN202410817581.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, point cloud plane fitting methods based on optimized Bayesian sampling consistency and point cloud plane fitting methods based on region growing have low efficiency, high false detection rate, and low computational efficiency in multi-plane detection. It is impossible to effectively improve the accuracy and efficiency of vertical plane detection of unmanned construction machinery operating vehicles.
Under the preset vehicle body coordinate system, by obtaining the target vehicle coordinates and map area, the lidar point cloud is used to extract and refine the plane coordinates, and combined with the Hough line detection method to determine whether there is a vertical plane and improve the accuracy of detection. and efficiency.
It improves the accuracy and efficiency of vertical plane detection of unmanned construction machinery operating vehicles, reduces detection costs, and solves the problems of low efficiency, low accuracy and high time cost in the existing technology.
Smart Images

Figure CN118731897A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a vertical plane detection method and medium based on an unmanned engineering mechanical operation vehicle. Background Art
[0002] In the field of unmanned construction machinery, vehicles need to work in different areas. In the perception of working objects, most of the working objects of construction machinery contain vertical planes. For example, the vertical walls on the left and right sides of the silo and the partitions on the left and right of the unloading funnel. Therefore, the detection of vertical planes is an important means of sensing working objects. In addition, LiDAR, as one of the most important sensors in the unmanned driving industry, has the characteristics of being unaffected by light and having high ranging accuracy.
[0003] In the process of realizing the present invention, the inventors found that the prior art has the following defects: At present, the point cloud plane fitting method that optimizes the Bayesian sampling consistency is generally used. The Bayesian sampling consistency method is based on the random sampling consistency method and takes into account the prior probability of each point in the model. However, this method takes a long time to detect multiple planes and depends on the number of iterations. The more iterations, the longer the detection time and the lower the efficiency. In addition, only the plane with the most fitting points is output, so there is a possibility of false detection. In addition, there is also a point cloud plane fitting method based on regional growth. Since this method needs to calculate the normal angle difference between each neighboring point and the current seed point, the calculation efficiency is low when the point cloud density is high, and the error at the connection between the planes is large, and the accuracy is not high. Summary of the invention
[0004] The present invention provides a vertical plane detection method and medium based on an unmanned engineering mechanical operation vehicle, so as to improve the accuracy and efficiency of the vertical plane detection of the unmanned engineering mechanical operation vehicle.
[0005] According to one aspect of the present invention, a vertical plane detection method based on an unmanned engineering mechanical operation vehicle is provided, which includes:
[0006] In a preset vehicle coordinate system, the target vehicle coordinates and each map area to be calculated are obtained, and the target map area is determined according to the target vehicle coordinates;
[0007] Among them, the target vehicle is an unmanned engineering machinery operation vehicle;
[0008] Obtain and obtain a point cloud bird's-eye view based on the laser radar point cloud corresponding to the target vehicle, extract the point cloud bird's-eye view through a plane coordinate extraction method, and determine the first line segment output result based on the target map area;
[0009] Processing the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result;
[0010] By parsing the second line segment output result, it is determined whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
[0011] According to another aspect of the present invention, a vertical plane detection device based on an unmanned engineering mechanical operation vehicle is provided, which includes:
[0012] A target map area determination module is used to obtain the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determine the target map area according to the target vehicle coordinates;
[0013] Among them, the target vehicle is an unmanned engineering machinery operation vehicle;
[0014] The first line segment output result determination module is used to obtain and obtain a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extract the point cloud bird's-eye view by a plane coordinate extraction method, and determine the first line segment output result according to the target map area;
[0015] A second line segment output result determination module, configured to process the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by means of a plane fine extraction method, so as to obtain a second line segment output result;
[0016] The second line segment output result parsing module is used to determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
[0017] According to another aspect of the present invention, there is provided 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 computer program, the vertical plane detection method based on an unmanned engineering machinery working vehicle as described in any embodiment of the present invention is implemented.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vertical plane detection method based on an unmanned engineering machinery working vehicle described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention obtains the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determines the target map area according to the target vehicle coordinates; wherein the target vehicle is an unmanned engineering machinery operation vehicle; obtains and obtains a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extracts the point cloud bird's-eye view by a plane coordinate extraction method, and determines the first line segment output result according to the target map area; processes the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result; and determines whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result. The problem of low efficiency, low accuracy and high time cost of plane detection in the prior art is solved, the accuracy and efficiency of vertical plane detection of unmanned engineering machinery operation vehicles are improved, and the cost of vertical plane detection is reduced.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a vertical plane detection method based on an unmanned engineering mechanical operation vehicle provided according to the first embodiment of the present invention;
[0023] Figure 2 is a structural schematic diagram of a vertical plane detection device based on an unmanned engineering mechanical operation vehicle provided according to Embodiment 2 of the present invention;
[0024] Figure 3 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "target", "current", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 A flowchart of a vertical plane detection method based on an unmanned engineering machinery working vehicle is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where a vertical plane is detected in an unmanned engineering machinery working vehicle. The method can be performed by a vertical plane detection device based on an unmanned engineering machinery working vehicle. The vertical plane detection device based on an unmanned engineering machinery working vehicle can be implemented in the form of hardware and / or software.
[0029] Correspondingly, such as Figure 1 As shown, the method includes:
[0030] S110. In a preset vehicle body coordinate system, the target vehicle coordinates and each map area to be calculated are obtained, and the target map area is determined according to the target vehicle coordinates.
[0031] Among them, the target vehicle is an unmanned engineering machinery operation vehicle.
[0032] The target vehicle coordinates may be coordinates used to describe the current position of the target vehicle in a vehicle body coordinate system.
[0033] The map area to be calculated may be a plurality of map areas to be calculated collected by a plurality of laser radars of the target vehicle. Specifically, the map area to be calculated is a quadrilateral. In addition, the laser radar point cloud may be collected by the laser radar. The laser radar point cloud may be a point cloud composed of data points of the surrounding environment collected by the laser radar on the target vehicle. The laser radar point cloud is a three-dimensional data point.
[0034] The target map area may be a map area of a target that needs to be calculated currently determined in the map area to be calculated.
[0035] Optionally, determining the target map area based on the target vehicle coordinates includes: calculating the center points of the map areas to be calculated corresponding to each map area to be calculated; using the target vehicle coordinates to calculate the distances from the center points of each map area to be calculated to obtain distance values for each vehicle area; determining the minimum vehicle area distance value among the vehicle area distance values, and determining the target map area based on the minimum vehicle area distance value.
[0036] The center point of the map area to be calculated may be the position of the center point corresponding to each map area to be calculated. The vehicle area distance value may be the size of the distance value describing the center point of the map area to be calculated to the target vehicle.
[0037] For example, assuming that the target vehicle coordinates are A, and each map area to be calculated is M (respectively m0, m1, ..., m n , including n+1 map areas to be calculated), the center point of the map area to be calculated is O (each different M corresponds to a different O). The distance between the target vehicle coordinates and the center point of each map area to be calculated is calculated to obtain the distance value D of each vehicle area (respectively d0, d1, ..., d n ).
[0038] Furthermore, among the vehicle area distance values, the minimum vehicle area distance value can be determined to be d0, and thus the target map area can be determined to be m0={p0, p1, p2, p3}.
[0039] S120, obtaining and obtaining a point cloud bird's-eye view based on the laser radar point cloud corresponding to the target vehicle, extracting the point cloud bird's-eye view through a plane coordinate extraction method, and determining a first line segment output result based on the target map area.
[0040] Among them, the point cloud bird's-eye view can be a two-dimensional data point obtained by projecting the three-dimensional data points corresponding to the laser radar point cloud, that is, the laser radar point cloud projection points, and a picture composed of the laser radar point cloud projection points.
[0041] Among them, the first line segment output result can be an output result composed of two line segments closest to the center point of the target map area. After obtaining the first line segment output result, it is also necessary to obtain the second line segment output result through a plane fine extraction method to determine whether there is a vertical plane.
[0042] Optionally, the method of acquiring and obtaining a point cloud bird's-eye view based on a laser radar point cloud corresponding to the target vehicle, extracting the point cloud bird's-eye view through a plane coordinate extraction method, and determining a first line segment output result based on the target map area includes: acquiring a laser radar point cloud corresponding to the target vehicle, and downwardly projecting the laser radar point cloud to obtain laser radar point cloud projection points and a point cloud bird's-eye view; gridding the point cloud bird's-eye view through a preset grid extraction accuracy corresponding to the plane coordinate extraction method to obtain a point cloud bird's-eye view grid division result; wherein the point cloud bird's-eye view grid division result includes a plurality of point cloud bird's-eye view division grids; determining at least one target point cloud projection grid point based on each laser radar point cloud projection point and each point cloud bird's-eye view division grid; respectively determining whether each of the target point cloud projection grid points is located in the target map area, and if so, converting each of the target point cloud projection grid points according to a pre-constructed map coordinate system to obtain each of the target point cloud projection grid map points; and processing each of the target point cloud projection grid map points through a preset Hough line detection method to determine a first line segment output result.
[0043] The grid extraction accuracy may be a pre-set accuracy at which the point cloud bird's-eye view image needs to be extracted according to different grid accuracies. For example, the grid accuracy may be set to 10 cm, 20 cm, or 50 cm.
[0044] The grid division result of the point cloud bird's eye view may be a grid division result obtained by grid division of the point cloud bird's eye view. The grid division grid of the point cloud bird's eye view may be a grid used to describe different point cloud bird's eye view divisions. Generally speaking, the grid division result of the point cloud bird's eye view includes multiple point cloud bird's eye view division grids.
[0045] The target point cloud projection grid point may be a point cloud projection grid point used to describe that the laser radar point cloud projection point falls in different point cloud bird's eye view division grids. The target point cloud projection grid map point may be a point cloud projection grid map point obtained by converting the target point cloud projection grid point in the vehicle body coordinate system through the map coordinate system.
[0046] Optionally, the method of determining at least one target point cloud projection grid point based on each laser radar point cloud projection point and each point cloud bird's-eye view division grid includes: matching each laser radar point cloud projection point with each point cloud bird's-eye view division grid, determining the point cloud projection grid point corresponding to each point cloud bird's-eye view division grid, and counting the number of point cloud projection grid points and the point cloud projection grid point height corresponding to the point cloud projection grid point; obtaining a pre-set point cloud projection grid point number threshold and a point cloud projection grid point height threshold; judging whether the number of point cloud projection grid points is greater than the point cloud projection grid point number threshold, and whether the point cloud projection grid point height is greater than the point cloud projection grid point height threshold, and if so, determining at least one target point cloud bird's-eye view division grid; and determining at least one target point cloud projection grid point in each of the target point cloud bird's-eye view division grids.
[0047] The number of point cloud projection grid points may be used to describe the number of point cloud projection grid points in each point cloud bird's-eye view division grid.
[0048] Among them, the point cloud projection grid point height can be obtained by obtaining the laser radar point cloud corresponding to the laser radar point cloud projection point, thereby calculating the maximum height difference of each laser radar point cloud projection point in each point cloud bird's-eye view grid division.
[0049] Exemplarily, assume that there are three lidar point cloud projection points in a point cloud bird's-eye view division grid. Specifically, obtain the lidar point clouds corresponding to the lidar point cloud projection points. The lidar point clouds can be B1(x1, y1, z1), B2(x2, y2, z2) and B3(x3, y3, z3). Assuming |z3-z1|>|z2-z1|>|z3-z2|, the height of the point cloud projection grid point can be determined to be |z3-z1|.
[0050] For example, assuming that the point cloud projection grid point number threshold N min And the point cloud projection grid point height threshold h th , it is necessary to further determine whether the number of point cloud projection grid points is greater than the point cloud projection grid point number threshold N min , and whether the point cloud projection grid point height is greater than the point cloud projection grid point height threshold h th If all of them are satisfied, then at least one target point cloud bird's-eye view division grid needs to be determined. Assuming there are two target point cloud bird's-eye view division grids, one or more target point cloud projection grid points can be determined in each target point cloud bird's-eye view division grid.
[0051] Furthermore, it is also necessary to determine whether each target point cloud projection grid point is located in the target map area. Specifically, the directionality of the cross product is used to determine whether the two cross product vectors are in the same direction. If they are in the same direction, it can be determined that the target point cloud projection grid point is located in the target map area. Furthermore, each target point cloud projection grid point can be converted according to a pre-constructed map coordinate system to obtain each target point cloud projection grid map point.
[0052] For example, assuming that the target point cloud projection grid point p i , the target map area is m0 = {p0, p1, p2, p3}, which can be calculated by the cross product formula: To determine whether the target point cloud projection grid point is located in the target map area.
[0053] In addition, if the directions are different, it can be determined that the target point cloud projection grid point is not located in the target map area, and the target point cloud projection grid point can be deleted.
[0054] Optionally, the method of processing each of the target point cloud projection grid map points by a preset Hough line detection method to determine a first line segment output result includes: processing each of the target point cloud projection grid map points by a preset Hough line detection method to determine at least one target point cloud projection grid map line segment; obtaining a preset line segment filtering slope threshold, and determining whether each of the target point cloud projection grid map line segments meets the requirements of the line segment filtering slope threshold, and if so, determining a normal point cloud projection grid map line segment; obtaining a target map area center point corresponding to the target map area; and among the normal point cloud projection grid map line segments, selecting and determining the two line segments closest to the target map area center point as the first line segment output result.
[0055] In this embodiment, the Hough line detection method can be used to connect the target point cloud projection grid map points in pairs to obtain different line segments, namely, the target point cloud projection grid map line segments.
[0056] Furthermore, the line segment filtering slope threshold range can be set to (K min ,K max ), that is, it is necessary to filter the slopes corresponding to the target point cloud projection grid map segments to obtain the segments with satisfied slopes, which are also normal point cloud projection grid map segments.
[0057] Correspondingly, it is necessary to select two line segments closest to the center point of the target map area from each normal point cloud projection grid map line segment, so as to determine the first line segment output result.
[0058] S130. Process the first line segment output result according to the laser radar point cloud corresponding to the target vehicle through a plane fine extraction method to obtain a second line segment output result.
[0059] In this embodiment, after obtaining the first line segment output result, it is necessary to perform precision extraction again using a plane fine extraction method to obtain a second line segment output result in order to better determine whether a vertical plane exists.
[0060] The second line segment output result may be a result obtained by reprocessing the first line segment output result.
[0061] Optionally, the first line segment output result is processed according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result, including: obtaining a preset plane fine extraction accuracy; determining a line segment distance range corresponding to the first line segment output result according to the plane fine extraction accuracy; determining a point cloud within at least one line segment distance range according to the laser radar point cloud and the line segment distance range; and performing plane fitting on the point clouds within each line segment distance range by a preset sampling consistency method to obtain a second line segment output result.
[0062] The plane fine extraction accuracy may be an accuracy set for further fine extraction of the plane, and the line segment distance range may be a size of a range of line segment distances determined according to the plane fine extraction accuracy.
[0063] In this embodiment, the plane fine extraction accuracy may be set to D1, and the range of the plane fine extraction accuracy may be further determined. Assume that the plane fine extraction accuracy range is D1±0.1, that is, the line segment distance range is D1±0.1.
[0064] Furthermore, after determining the line segment distance range, it is also necessary to determine at least one point cloud of each laser radar point cloud that falls within the line segment distance range. Accordingly, each point cloud can be plane-fitted to the point cloud within each line segment distance range by using a sampling consistency method, and the distance threshold can be determined according to the plane fine extraction accuracy, thereby obtaining a line segment with an accuracy of D1 to obtain the second line segment output result.
[0065] S140: Determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
[0066] Optionally, the method of parsing the second line segment output result to determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates includes: parsing the second line segment output result, if it is determined that two line segments are included in the second line segment output result, then determining that a vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
[0067] In this embodiment, if it is determined that two line segments are included in the second line segment output result, it is determined that a vertical plane is detected in the target map area corresponding to the target vehicle coordinates. If it is determined that one line segment or four line segments are included in the second line segment output result, it is determined that no vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
[0068] It can be understood that, assuming that the second line segment output result includes four line segments, it means that a plane can be detected, but the plane is not a vertical plane.
[0069] The technical solution of the embodiment of the present invention obtains the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determines the target map area according to the target vehicle coordinates; wherein the target vehicle is an unmanned engineering machinery operation vehicle; obtains and obtains a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extracts the point cloud bird's-eye view by a plane coordinate extraction method, and determines the first line segment output result according to the target map area; processes the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result; and determines whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result. The problem of low efficiency, low accuracy and high time cost of plane detection in the prior art is solved, the accuracy and efficiency of vertical plane detection of unmanned engineering machinery operation vehicles are improved, and the cost of vertical plane detection is reduced.
[0070] Embodiment 2
[0071] Figure 2 This is a schematic diagram of the structure of a vertical plane detection device based on an unmanned engineering machinery operation vehicle provided in the second embodiment of the present invention. The vertical plane detection device based on an unmanned engineering machinery operation vehicle provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal device or server to implement a vertical plane detection method based on an unmanned engineering machinery operation vehicle in the embodiment of the present invention. Figure 2 As shown, the device includes: a target map area determination module 210, a first line segment output result determination module 220, a second line segment output result determination module 230 and a second line segment output result parsing module 240.
[0072] The target map area determination module 210 is used to obtain the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determine the target map area according to the target vehicle coordinates;
[0073] Among them, the target vehicle is an unmanned engineering machinery operation vehicle;
[0074] The first line segment output result determination module 220 is used to obtain and obtain a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extract the point cloud bird's-eye view by a plane coordinate extraction method, and determine the first line segment output result according to the target map area;
[0075] A second line segment output result determination module 230 is used to process the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result;
[0076] The second line segment output result parsing module 240 is used to determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
[0077] The technical solution of the embodiment of the present invention obtains the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determines the target map area according to the target vehicle coordinates; wherein the target vehicle is an unmanned engineering machinery operation vehicle; obtains and obtains a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extracts the point cloud bird's-eye view by a plane coordinate extraction method, and determines the first line segment output result according to the target map area; processes the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result; and determines whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result. The problem of low efficiency, low accuracy and high time cost of plane detection in the prior art is solved, the accuracy and efficiency of vertical plane detection of unmanned engineering machinery operation vehicles are improved, and the cost of vertical plane detection is reduced.
[0078] On the basis of the above-mentioned embodiments, the target map area determination module 210 can be specifically used to: calculate the center points of the map areas to be calculated corresponding to the map areas to be calculated; use the target vehicle coordinates to calculate the distances with the center points of the map areas to be calculated to obtain the distance values of each vehicle area; determine the minimum vehicle area distance value among the vehicle area distance values, and determine the target map area according to the minimum vehicle area distance value.
[0079] On the basis of the above embodiments, the first line segment output result determination module 220 can be specifically used to: obtain the laser radar point cloud corresponding to the target vehicle, and project the laser radar point cloud downward to obtain the laser radar point cloud projection points and the point cloud bird's-eye view; grid-divide the point cloud bird's-eye view through the pre-set grid extraction accuracy corresponding to the plane coordinate extraction method to obtain the point cloud bird's-eye view grid division result; wherein the point cloud bird's-eye view grid division result includes multiple point cloud bird's-eye view division grids; determine at least one target point cloud projection grid point according to each laser radar point cloud projection point and each point cloud bird's-eye view division grid; respectively determine whether each of the target point cloud projection grid points is located in the target map area, and if so, convert each target point cloud projection grid point according to the pre-constructed map coordinate system to obtain each target point cloud projection grid map point; process each of the target point cloud projection grid map points through the pre-set Hough line detection method to determine the first line segment output result.
[0080] On the basis of the above embodiments, the first line segment output result determination module 220 can also be specifically used to: match each laser radar point cloud projection point with each point cloud bird's-eye view division grid, determine the point cloud projection grid points corresponding to each point cloud bird's-eye view division grid, and count the number of point cloud projection grid points and the point cloud projection grid point height corresponding to the point cloud projection grid point; obtain a pre-set point cloud projection grid point number threshold and a point cloud projection grid point height threshold; determine whether the point cloud projection grid point number is greater than the point cloud projection grid point number threshold, and whether the point cloud projection grid point height is greater than the point cloud projection grid point height threshold, and if so, determine at least one target point cloud bird's-eye view division grid; and determine at least one target point cloud projection grid point in each of the target point cloud bird's-eye view division grids.
[0081] On the basis of the above embodiments, the first line segment output result determination module 220 can also be specifically used to: process each of the target point cloud projection grid map points through a preset Hough line detection method to determine at least one target point cloud projection grid map line segment; obtain a preset line segment filtering slope threshold, and respectively determine whether each of the target point cloud projection grid map line segments meets the requirements of the line segment filtering slope threshold, and if so, determine a normal point cloud projection grid map line segment; obtain the target map area center point corresponding to the target map area; and among the normal point cloud projection grid map line segments, select and determine the two line segments closest to the target map area center point as the first line segment output result.
[0082] Based on the above embodiments, the second line segment output result determination module 230 can be specifically used to: obtain a preset plane fine extraction accuracy; determine the line segment distance range corresponding to the first line segment output result according to the plane fine extraction accuracy; determine at least one point cloud within the line segment distance range according to the laser radar point cloud and the line segment distance range; and perform plane fitting on the point clouds within each of the line segment distance ranges through a preset sampling consistency method to obtain the second line segment output result.
[0083] Based on the above embodiments, the second line segment output result parsing module 240 can be specifically used to: by parsing the second line segment output result, if it is determined that two line segments are included in the second line segment output result, it is determined that a vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
[0084] The vertical plane detection device based on an unmanned engineering machinery working vehicle provided in an embodiment of the present invention can execute the vertical plane detection method based on an unmanned engineering machinery working vehicle provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0085] Embodiment 3
[0086] Figure 3 A schematic diagram of the structure of an electronic device 10 that can be used to implement the third embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0087] like Figure 3As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0088] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0089] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a vertical plane detection method based on an unmanned engineering machinery operation vehicle.
[0090] In some embodiments, the vertical plane detection method based on the unmanned engineering machinery working vehicle can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the vertical plane detection method based on the unmanned engineering machinery working vehicle described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the vertical plane detection method based on the unmanned engineering machinery working vehicle by any other appropriate means (for example, by means of firmware).
[0091] The method includes: obtaining the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determining the target map area according to the target vehicle coordinates; wherein the target vehicle is an unmanned engineering machinery operation vehicle; obtaining and obtaining a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, and extracting the point cloud bird's-eye view by a plane coordinate extraction method, and determining a first line segment output result according to the target map area; processing the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result; and determining whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
[0092] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0094] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0096] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0097] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0098] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0099] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0100] Embodiment 4
[0101] Embodiment 4 of the present invention also provides a computer-readable storage medium, wherein the computer-readable instructions are used to execute a vertical plane detection method based on an unmanned engineering machinery working vehicle when executed by a computer processor, the method comprising: obtaining the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determining the target map area according to the target vehicle coordinates; wherein the target vehicle is an unmanned engineering machinery working vehicle; obtaining and obtaining a point cloud bird's-eye view based on the laser radar point cloud corresponding to the target vehicle, and extracting the point cloud bird's-eye view through a plane coordinate extraction method, and determining a first line segment output result based on the target map area; processing the first line segment output result through a plane fine extraction method based on the laser radar point cloud corresponding to the target vehicle to obtain a second line segment output result; and determining whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
[0102] Of course, the computer-readable storage medium provided in an embodiment of the present invention has computer executable instructions that are not limited to the method operations described above, and can also execute related operations in the vertical plane detection method based on an unmanned engineering machinery working vehicle provided in any embodiment of the present invention.
[0103] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0104] It is worth noting that in the above-mentioned embodiment of the vertical plane detection device based on the unmanned engineering machinery operation vehicle, the various units and modules included are only divided according to the functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the scope of protection of the present invention.
[0105] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A vertical plane detection method based on an unmanned engineering mechanical operation vehicle, characterized in that: include: In a preset vehicle coordinate system, the target vehicle coordinates and each map area to be calculated are obtained, and the target map area is determined according to the target vehicle coordinates; Among them, the target vehicle is an unmanned engineering machinery operation vehicle; Obtain and obtain a point cloud bird's-eye view based on the laser radar point cloud corresponding to the target vehicle, extract the point cloud bird's-eye view through a plane coordinate extraction method, and determine the first line segment output result based on the target map area; Processing the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by a plane fine extraction method to obtain a second line segment output result; By parsing the second line segment output result, it is determined whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
2. The method according to claim 1, characterized in that: Determining the target map area according to the target vehicle coordinates includes: Calculate the center point of the map area to be calculated corresponding to each map area to be calculated; The target vehicle coordinates are used to calculate the distances with the center points of the map areas to be calculated, to obtain the distance values of the vehicle areas; Among the vehicle area distance values, a minimum vehicle area distance value is determined, and a target map area is determined according to the minimum vehicle area distance value.
3. The method according to claim 2, characterized in that The step of obtaining a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extracting the point cloud bird's-eye view by a plane coordinate extraction method, and determining a first line segment output result according to the target map area includes: Obtain the laser radar point cloud corresponding to the target vehicle, and project the laser radar point cloud downward to obtain the laser radar point cloud projection points and the point cloud bird's-eye view; The point cloud bird's-eye view image is grid-divided by a preset grid extraction accuracy corresponding to the plane coordinate extraction method to obtain a grid division result of the point cloud bird's-eye view image; The point cloud bird's-eye view grid division result includes a plurality of point cloud bird's-eye view division grids; Divide the grid according to each laser radar point cloud projection point and each point cloud bird's-eye view to determine at least one target point cloud projection grid point; Determine respectively whether each of the target point cloud projection grid points is located in the target map area, and if so, transform each of the target point cloud projection grid points according to a pre-constructed map coordinate system to obtain each of the target point cloud projection grid map points; Each of the target point cloud projection grid map points is processed by a preset Hough line detection method to determine a first line segment output result.
4. The method according to claim 3, characterized in that The method of dividing the grid according to each laser radar point cloud projection point and each point cloud bird's eye view to determine at least one target point cloud projection grid point includes: Match each laser radar point cloud projection point with each point cloud bird's eye view grid, determine the point cloud projection grid point corresponding to each point cloud bird's eye view grid, and count the number of point cloud projection grid points and the height of the point cloud projection grid point corresponding to the point cloud projection grid point; Get the preset point cloud projection grid point quantity threshold and point cloud projection grid point height threshold; Determine whether the number of point cloud projection grid points is greater than a point cloud projection grid point number threshold, and whether the point cloud projection grid point height is greater than a point cloud projection grid point height threshold, and if so, determine at least one target point cloud bird's-eye view division grid; In each of the target point cloud bird's-eye view division grids, at least one target point cloud projection grid point is determined.
5. The method according to claim 4, characterized in that The method of processing each of the target point cloud projection grid map points by a preset Hough line detection method to determine a first line segment output result includes: Processing each of the target point cloud projection grid map points by a preset Hough line detection method to determine at least one target point cloud projection grid map line segment; Obtaining a preset line segment filtering slope threshold, and determining whether each of the target point cloud projection grid map line segments meets the line segment filtering slope threshold requirement, and if so, determining a normal point cloud projection grid map line segment; Obtaining the center point of the target map area corresponding to the target map area; Among the normal point cloud projection grid map line segments, two line segments closest to the center point of the target map area are selected and determined as the first line segment output result.
6. The method according to claim 5, characterized in that The method of fine plane extraction is used to process the first line segment output result according to the laser radar point cloud corresponding to the target vehicle to obtain the second line segment output result, including: Get the preset plane fine extraction accuracy; Determining a line segment distance range corresponding to the first line segment output result according to the plane fine extraction accuracy; Determine at least one point cloud within a line segment distance range according to the laser radar point cloud and the line segment distance range; The second line segment output result is obtained by performing plane fitting on the point clouds within the distance range of each line segment through a preset sampling consistency method.
7. The method according to claim 6, characterized in that The step of analyzing the second line segment output result to determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates includes: By parsing the second line segment output result, if it is determined that two line segments are included in the second line segment output result, it is determined that a vertical plane is detected in the target map area corresponding to the target vehicle coordinates.
8. A vertical plane detection device based on an unmanned engineering mechanical operation vehicle, characterized in that: include: A target map area determination module is used to obtain the target vehicle coordinates and each map area to be calculated in a preset vehicle body coordinate system, and determine the target map area according to the target vehicle coordinates; Among them, the target vehicle is an unmanned engineering machinery operation vehicle; The first line segment output result determination module is used to obtain and obtain a point cloud bird's-eye view according to the laser radar point cloud corresponding to the target vehicle, extract the point cloud bird's-eye view by a plane coordinate extraction method, and determine the first line segment output result according to the target map area; A second line segment output result determination module, configured to process the first line segment output result according to the laser radar point cloud corresponding to the target vehicle by means of a plane fine extraction method, so as to obtain a second line segment output result; The second line segment output result parsing module is used to determine whether a vertical plane is detected in the target map area corresponding to the target vehicle coordinates by parsing the second line segment output result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the vertical plane detection method based on the unmanned engineering mechanical working vehicle as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a vertical plane detection method based on an unmanned engineering mechanical working vehicle as described in any one of claims 1 to 7 when executed.
