Method for segmenting drivable area and related device
By combining the processing of image data and point cloud data, abnormal pixels in complex scenes are filtered out, which improves the segmentation accuracy of the drivable area of autonomous mobile devices, solves the problem of low accuracy in the existing technology, and ensures the effective path of the device. Planning and map building.
Patent Information
- Application Number
- CN202111531686.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-14
AI Technical Summary
In complex scenes, it is difficult for existing technologies to accurately determine drivable areas, resulting in low segmentation accuracy and affecting path planning and map construction of autonomous mobile devices.
By obtaining the image data and point cloud data of the target area, the image segmentation network is used to determine the initial drivable area, and the point cloud data is used to correct it and filter out abnormal pixels to obtain the final drivable area. The method includes three-dimensional coordinate conversion, classification and filtering of point cloud data, identifying abnormal pixels, sorting them according to vertical angles and preset directions, and correcting the initial drivable area.
It improves the availability of point cloud data and the segmentation accuracy of drivable areas, enhances the recognition ability of complex scenes, and ensures effective path planning and map construction for autonomous mobile devices.
Smart Images

Figure CN114445415B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method for segmenting a drivable area and related devices. Background Art
[0002] With the development of technology, autonomous mobile devices are being used in more and more scenarios. During the movement of each autonomous mobile device, it is necessary to determine the drivable area in advance or in real time.
[0003] The more complex the scene, the less accurate the method for determining the drivable area. Summary of the invention
[0004] In order to solve the above problems, the present application provides a method for segmenting a drivable area and related devices, which can improve the availability of point cloud data and improve the segmentation accuracy of the drivable area.
[0005] To solve the above technical problems, a technical solution adopted in the present application is: to provide a method for segmenting a drivable area, the method comprising: acquiring image data and point cloud data of a target area; segmenting the image data to determine an initial drivable area in the image data; and using the point cloud data to correct the initial drivable area to obtain a final drivable area.
[0006] The initial drivable area is corrected using point cloud data to obtain a final drivable area, including: using point cloud data to determine abnormal pixel points in the initial drivable area; filtering out abnormal pixel points in the initial drivable area to obtain a final drivable area.
[0007] Among them, the abnormal pixel points in the initial drivable area are determined by using the point cloud data, including: performing coordinate conversion on the three-dimensional coordinate information of the point cloud data to obtain the two-dimensional coordinate information of the corresponding image data; filtering the point cloud data based on the two-dimensional coordinate information and the initial drivable area to obtain the filtered point cloud data; and determining the abnormal pixel points in the initial drivable area using the filtered point cloud data.
[0008] Among them, the abnormal pixel points in the initial drivable area are determined using the filtered point cloud data, including: classifying the filtered point cloud data according to the vertical angle to obtain the first point set corresponding to each vertical angle, wherein the vertical angle is the emission angle of the laser beam in the radar component that collects the point cloud data; determining the target first point set in which the number of points in all first point sets is less than a preset number; and taking the pixel points corresponding to the target first point set as abnormal pixel points.
[0009] The method further includes: classifying the filtered point cloud data according to preset directions to obtain a second point set corresponding to each preset direction; wherein the preset direction is the projection direction of the laser beam in the radar component; and determining the edge pixel points of the initial drivable area based on the second point set.
[0010] Among them, based on the second point set, the edge of the initial drivable area is determined, including: obtaining the vertical angle of the points in the second point set; using the vertical angle as a serial number, and sorting the points in the second point set from small to large; if adjacent serial numbers are discontinuous, retaining the smaller serial number; and using the pixel point corresponding to the smaller serial number as the edge of the initial drivable area.
[0011] Among them, after the initial drivable area is corrected by using the point cloud data to obtain the final drivable area, it includes: constructing a grid map by using the point cloud data corresponding to the final drivable area.
[0012] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a drivable area segmentation device, the segmentation device includes a processor and a memory coupled to the processor; wherein the memory is used to store a computer program, and the processor is used to execute the computer program to implement the method provided by the above technical solution.
[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide an autonomous mobile device, which includes: an image acquisition component for collecting image data of the target area; a radar component for collecting point cloud data; a processor connected to the image acquisition component and the radar component, for segmenting the image data and determining the initial drivable area in the image data; and using the point cloud data to correct the initial drivable area to obtain the final drivable area.
[0014] To solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, which is used to store a computer program, and when the computer program is executed by a processor, it is used to implement the method provided by the above technical solution.
[0015] The beneficial effect of the embodiment of the present application is that, different from the prior art, the method for segmenting the drivable area provided by the present application includes: obtaining image data and point cloud data of the target area; segmenting the image data to determine the initial drivable area in the image data; and using the point cloud data to correct the initial drivable area to obtain the final drivable area. In the above manner, using the point cloud data to correct the initial drivable area can improve the availability of the point cloud data and improve the segmentation accuracy of the drivable area. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0017] Figure 1 It is a flowchart of the first embodiment of the method for segmenting a drivable area provided by the present application;
[0018] Figure 2 and Figure 3 This is a schematic diagram of an application scenario of a method for segmenting a drivable area provided in this application;
[0019] Figure 4 It is a flowchart of a second embodiment of the method for segmenting a drivable area provided by the present application;
[0020] Figure 5 It is a flowchart of an embodiment of step 43 provided by the present application;
[0021] Figure 6 It is a flowchart of an embodiment of step 433 provided by this application;
[0022] Figure 7 is a schematic diagram of an embodiment of a radar coordinate system provided by the present application;
[0023] Figure 8 and Fig. 9 This is a schematic diagram of another application scenario of the method for segmenting a drivable area provided in this application;
[0024] Fig.10 It is a flowchart of a third embodiment of the method for segmenting a drivable area provided by the present application;
[0025] Fig.11 is a schematic structural diagram of an embodiment of a radar assembly provided by the present application;
[0026] Fig.12 It is a flowchart of an embodiment of step 102 provided by the present application;
[0027] Fig.13 and Fig.14 This is a schematic diagram of another application scenario of the method for segmenting a drivable area provided in this application;
[0028] Fig.15 It is a structural schematic diagram of an embodiment of a device for dividing a drivable area provided by the present application;
[0029] Fig.16 It is a structural schematic diagram of an embodiment of an autonomous mobile device provided by the present application;
[0030] Fig.17 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0032] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0033] See also Figure 1 , Figure 1 : is a flow chart of the first embodiment of the method for segmenting the drivable area provided by the present application. The method comprises:
[0034] Step 11: Obtain image data and point cloud data of the target area.
[0035] The image data may be acquired based on an image acquisition component. The point cloud data may be acquired based on a radar component. The radar component may include a preset number of laser radars, such as a mechanical laser radar or a solid-state laser radar.
[0036] Among them, the image acquisition component and the radar component can be set on the same device.
[0037] In some embodiments, the device may be an autonomous mobile device, such as an autonomous mobile robot. The robot may move indoors or outdoors, such as in an office, hall, or park.
[0038] The robot determines the drivable area by acquiring image data and point cloud data of the target area, which facilitates the robot to plan the path and move. In outdoor environments, the scene complexity increases dramatically. The existence of many interference factors such as uneven roads, high and low slopes, and curbs results in low accuracy in related technologies to identify drivable areas.
[0039] For example, in addition to the drivable areas in the park, there are also non-drivable areas such as buildings, flower beds and lawn lights. These non-drivable areas need to be filtered out during map construction and path planning.
[0040] Step 12: Segment the image data to determine the initial drivable area in the image data.
[0041] In some embodiments, the image data may be segmented using a trained image segmentation network to obtain an initial drivable area in the image data.
[0042] like Figure 2 As shown, the image data is segmented using the trained image segmentation network to obtain the initial drivable area A in the image data.
[0043] Among them, the image segmentation network can be built based on FCN (Fully Convolutional Network), SegNet, void convolution, ENet, CRFasRNN, PSPNet, ParseNet, RefineNet, ReSeg, LSTM-CF or DeepMask.
[0044] Step 13: Use the point cloud data to correct the initial drivable area to obtain the final drivable area.
[0045] Due to the segmentation accuracy of the image segmentation network, there are often abnormal areas in the segmented area, that is, the area does not belong to the drivable area. Based on this, the application proposes to use point cloud data to correct the initial drivable area to filter out the abnormal area.
[0046] For example, the point cloud data can be projected to the initial drivable area, and the point cloud data corresponding to the pixel points of the initial drivable area can be determined first. Then, the point cloud data can be classified according to the coordinates of the point cloud data to determine the point cloud data in the horizontal direction based on the image data.
[0047] Since the drivable area is continuous in the horizontal direction, it has multiple continuous point cloud data. The points cloud data with less than the set number after classification can be determined as abnormal point cloud data, and the pixels corresponding to these point cloud data can be determined as abnormal pixels. These abnormal pixels can be filtered out to obtain the final drivable area.
[0048] Based on the above method, Figure 2 The initial drivable area A in is modified to obtain Figure 3 The final drivable area A' is shown.
[0049] In this embodiment, the initial drivable area is corrected using point cloud data to filter out erroneous pixels in the initial drivable area, which can not only improve the availability of point cloud data but also improve the segmentation accuracy of the drivable area.
[0050] See also Figure 4 , Figure 4 : is a flow chart of the second embodiment of the method for segmenting the drivable area provided by the present application. The method comprises:
[0051] Step 41: Acquire image data and point cloud data of the target area.
[0052] Step 42: Segment the image data to determine the initial drivable area in the image data.
[0053] Step 41 and step 42 have the same or similar technical solutions as those in the above embodiment, and will not be described in detail here.
[0054] Step 43: Use the point cloud data to determine abnormal pixel points in the initial drivable area.
[0055] In some embodiments, outliers may be determined based on geometric characteristics of the point cloud data.
[0056] Specifically, see Figure 5 , step 43 may be the following process:
[0057] Step 431: performing coordinate conversion on the three-dimensional coordinate information of the point cloud data to obtain the two-dimensional coordinate information of the corresponding image data.
[0058] In some embodiments, before processing the image data and the point cloud data, the image acquisition component for acquiring the image data is calibrated, and the positional relationship between the radar component and the image acquisition component is determined.
[0059] The checkerboard calibration method is used to calibrate the internal parameters of the image acquisition component to obtain the internal parameter matrix K and the distortion parameters. The internal parameter matrix K is expressed by the following formula:
[0060]
[0061] Among them, f x Indicates the focal length in the x direction of the coordinate system corresponding to the image acquisition component, f y Indicates the focal length in the y direction of the coordinate system corresponding to the image acquisition component, C x Indicates the principal point offset in the x direction of the coordinate system corresponding to the image acquisition component, C y Indicates the principal point offset in the y direction of the coordinate system corresponding to the image acquisition component.
[0062] The distortion parameters include k1, k2, k3, p1 and p2, wherein k1, k2 and k3 represent different radial distortion parameters, and p1 and p2 represent different tangential distortion parameters.
[0063] The following method is used for external parameter calibration. For example, before performing visual laser fusion, the image acquisition component and radar component must be calibrated. Here, the checkerboard calibration plate method is used. After the image acquisition component and the radar component are fixed, the image acquisition component uses the PnP (Perspective-n-Point) algorithm to detect the posture of the checkerboard calibration plate. After the radar component circles the area where the calibration plate is located in the collected laser point cloud, RANSAC (RANdom SAmple Consensus) fitting is performed to obtain the spatial position of the calibration plate under the coordinates of the radar component. Move the calibration plate, and after sampling several sets of data, calculate the external parameters of the image acquisition component and the radar component. And the corresponding external parameter relationship.
[0064] The external parameter relationship can be expressed by the following formula:
[0065]
[0066] Among them, P c Represents the spatial information in the collected image data, P L Represents the spatial information in the collected point cloud data, Represents the external parameter relationship, where L corresponds to the radar component and C corresponds to the image acquisition component.
[0067] Therefore, step 431 can be represented as follows:
[0068] First, determine the three-dimensional coordinate information of each point in the point cloud data, and use the following formula to perform coordinate conversion to obtain the three-dimensional coordinate information based on the image acquisition component.
[0069]
[0070] Where (xyz) represents the three-dimensional coordinate information of the point in the point cloud data in the coordinate system of the image acquisition component, (x * y * z * ) represents the three-dimensional coordinate information of the point in the point cloud data in the coordinate system of the radar component.
[0071] Then, the three-dimensional coordinate information of the points in the point cloud data in the coordinate system of the image acquisition component is projected onto the two-dimensional coordinate system of the image data to obtain the two-dimensional coordinate information of the corresponding image data. Specifically, the following formula is used:
[0072]
[0073] r 2 =x 2 +y 2 ;
[0074] d=1+k1*r 2 +k2*(r 2 ) 2 +k3*(r 2 ) 3 ;
[0075] P x =f x *(X*d+2*p1*X*Y+p2*(r 2 +2*X 2 ))+C x
[0076] P y =f y *(Y*d+2*p2*X*Y+p1*(r 2 +2*Y 2 )).
[0077] Among them, (P x ,P y ) represents the two-dimensional coordinate information of the corresponding image data.
[0078] After obtaining the two-dimensional coordinate information of each point in the point cloud data corresponding to the image data, the point cloud data may be filtered out based on the size of the image data.
[0079] Because the area of the point cloud data acquired by the radar component is much larger than the area corresponding to the image field of view of the image acquisition component, the points in the point cloud data that do not correspond to the image data are filtered out by filtering.
[0080] Step 432: Filter the point cloud data based on the two-dimensional coordinate information and the initial drivable area to obtain filtered point cloud data.
[0081] In some embodiments, since the initial drivable area has been determined, the point cloud data can be filtered out according to the coordinate information of the pixel points corresponding to the initial drivable area to obtain the filtered point cloud data. At this time, the points in the point cloud data that are not related to the initial drivable area can be directly filtered out.
[0082] Step 433: using the filtered point cloud data to determine abnormal pixel points in the initial drivable area.
[0083] In some embodiments, see Figure 6 , step 433 may be the following process:
[0084] Step 4331: Classify the filtered point cloud data according to the vertical angle to obtain the first point set corresponding to each vertical angle.
[0085] The vertical angle is the emission angle of the laser beam in the radar component that collects point cloud data.
[0086] Combination Figure 7 The radar coordinate system is used to illustrate: For example, the vertical angle in each point cloud data is determined using the following formula:
[0087]
[0088] Where V represents the vertical angle, that is, the emission angle of the laser beam in the radar component that collects point cloud data, (x * y * z * ) represents the three-dimensional coordinate information of the point in the point cloud data in the coordinate system of the radar component.
[0089] Based on this, each point in the point cloud data has a vertical angle. At this time, the points with the same vertical angle are taken as a set to obtain a plurality of first point sets with different vertical angles. That is, the points with the same vertical angle are collected by the same laser beam.
[0090] Step 4332: Determine a target first point set whose number of points in all first point sets is less than a preset number.
[0091] Based on the characteristics of the drivable area, the corresponding points collected by the radar components are almost on the same arc, and the number is large. That is, the laser beam in each radar component can collect multiple points. In the non-drivable area, due to image segmentation, the remaining points become fewer.
[0092] Based on this feature, a preset number is set to determine the first point set of vertical angles whose number is less than the preset number. For example, the preset number is set to 30, 40 or 50. Specifically, it needs to be set according to the actual performance of the radar component.
[0093] Step 4333: Take the pixel points corresponding to the first target point set as abnormal pixel points.
[0094] If the number of points in the first point set is less than a preset number, it means that these points do not have the characteristics of a drivable area, and the pixels corresponding to these points are regarded as abnormal pixels.
[0095] Combination Figure 8 To explain:
[0096] right Figure 8The image data shown is segmented to determine the initial drivable area B and the initial drivable area C in the image data. It can be seen that the initial drivable area C is not a drivable area, so the point cloud data corresponding to the initial drivable area B and the initial drivable area C are classified according to the vertical angle to obtain the first point set corresponding to each vertical angle.
[0097] Since the points in the point cloud data have three-dimensional coordinate information, the points with the same vertical angle can be determined by determining the vertical angle. In this way, points with the same distance from the radar component can be distinguished. Classification is performed according to the vertical angle, that is, classification is performed according to the laser beam of each radar component to obtain the first point set corresponding to each vertical angle.
[0098] Since segmentation errors usually occur when non-driving areas appear at the edge, the original point segmentation is filtered out, so the number of points in these areas that belong to the same vertical angle decreases. You can set the corresponding preset number to exclude.
[0099] Therefore, the points corresponding to the initial drivable area B are classified according to the vertical angles, and the obtained first point set can be roughly obtained according to the leaves, trunks and buildings in the area.
[0100] At this time, if the number of points in the point sets corresponding to leaves, trunks and buildings is less than a preset number, the pixel points corresponding to the points in these point sets are regarded as abnormal pixel points.
[0101] Step 44: Filter out abnormal pixels in the initial drivable area to obtain a final drivable area.
[0102] Combination Figure 8 and Fig. 9 To explain:
[0103] After determining that the initial drivable area B is an abnormal area, the abnormal pixels corresponding to the initial drivable area B are filtered out, and the following is obtained: Figure 8 The final drivable area C' is shown.
[0104] In this embodiment, the characteristics of the point cloud data are used to filter out the corresponding abnormal pixels in the initial drivable area, which can not only improve the availability of the point cloud data, but also improve the segmentation accuracy of the drivable area.
[0105] In other embodiments, see Fig.10 , this application may also include the following processes:
[0106] Step 101: Classify the filtered point cloud data according to preset directions to obtain a second point set corresponding to each preset direction; wherein the preset direction is the projection direction of the laser beam in the radar component.
[0107] Combination Fig.11 To explain:
[0108] exist Fig.11 The radar assembly includes laser radar a, laser radar b, laser radar c, laser radar d and laser radar e. Laser radar a, laser radar b, laser radar c, laser radar d and laser radar e are arranged along the z-axis direction. That is, the three-dimensional coordinate information of laser radar a, laser radar b, laser radar c, laser radar d and laser radar e is different only in the z-axis coordinate, and the x-axis coordinate and the y-axis coordinate are the same.
[0109] Based on this, the preset direction can be determined using the following formula.
[0110]
[0111] The angle represented by H can be used to characterize the laser points collected by all laser radars at the same time, that is, all laser radars scan in the same preset direction at the same time. * ,y * ) is based on Figure 7 The coordinates of the laser point in the radar coordinate system.
[0112] Laser radar a, laser radar b, laser radar c, laser radar d and laser radar e rotate and scan around the z-axis at the same time, then the laser beam a1 of laser radar a, the laser beam b1 of laser radar b, the laser beam c1 of laser radar c, the laser beam d1 of laser radar d and the laser beam e1 of laser radar e form a plane, that is, when laser beam a1, laser beam b1, laser beam c1, laser beam d1 and laser beam e1 are working, the projections of laser beam a1, laser beam b1, laser beam c1, laser beam d1 and laser beam e1 at the same time are facing the same direction.
[0113] In some embodiments, laser beam a1, laser beam b1 of laser radar b, laser beam c1 of laser radar c, laser beam d1 of laser radar d and laser beam e1 of laser radar e form a plane perpendicular to the plane formed by the x-axis and the y-axis.
[0114] Step 102: Based on the second point set, determine the edge of the initial drivable area.
[0115] See also Fig.12 , step 102 may be the following process:
[0116] Step 1021: Obtain the vertical angle of the point in the second point set.
[0117] The vertical angle can be calculated using the following formula:
[0118]
[0119] Get the y-axis coordinate of the point in the second point set.
[0120] Step 1022: Use the vertical angle as a serial number and sort the points in the second point set from small to large.
[0121] Use the vertical angle as the serial number and sort the points in the second point set from small to large.
[0122] In some embodiments, if the radar assembly includes 16 laser radars, 16 points can be collected in a preset direction at the same time during operation. That is, the point cloud data corresponding to the entire image data can be divided into second point sets corresponding to the scanning frequency according to the preset direction, that is, each second point set includes 16 points.
[0123] Due to image segmentation, some points in the point cloud data are filtered out, so there are no 16 points in the second point set of classification. In addition, since each point also has a vertical angle, the laser radar corresponding to the point can be determined. Sorting by vertical angle, a sequence is obtained.
[0124] Specifically, the laser radars are sorted according to their corresponding vertical angles, for example, 15 degrees corresponds to laser radar 1, 17 degrees corresponds to laser radar 2, 19 degrees corresponds to laser radar 3, etc. Thus, a sorted set is obtained.
[0125] Step 1023: If adjacent sequence numbers are not continuous, the smaller sequence number is retained.
[0126] If the adjacent sequence numbers are not continuous, the smaller sequence number is retained. For example, the sequence numbers include 1-40, 60-80. 40 and 60 are adjacent but not continuous, so 40 and all sequence numbers smaller than 40 are retained.
[0127] Take 16 laser radars as an example to explain:
[0128] For example, the first second point set has 16 points, and the corresponding order is laser radar 1-laser radar 16. The second second point set has 14 points, and the corresponding order is laser radar 1-laser radar 7, laser radar 10-laser radar 16. That is, laser radar 7 and laser radar 10 are adjacent but not continuous, so the points corresponding to laser radar 1-laser radar 7 are retained, and laser radar 10-laser radar 16 are deleted.
[0129] Step 1024: Pixel points corresponding to smaller serial numbers are used as edge pixel points of the initial drivable area.
[0130] At this time, the pixel point on the image data corresponding to the point corresponding to the laser radar 7 is used as the edge pixel point of the initial drivable area.
[0131] According to the above method, all second point sets can be processed to determine all edge pixel points of the initial drivable area.
[0132] In other embodiments, the point cloud data corresponding to the final drivable area may also be used to construct a grid map.
[0133] When building a raster map, you need to use Fig.10 In the described method, the invalid area is screened, and then a grid map is constructed based on the point cloud data corresponding to the final drivable area.
[0134] For example, the above-mentioned abnormal point filtering method can filter out the points that are wrongly segmented by the image, and then determine the point cloud data corresponding to the final drivable area by determining the edge pixel points. The grid map is constructed based on the points of the point cloud data corresponding to the final drivable area using the occupation probability method.
[0135] First, use the Bresenham algorithm to calculate which grids are occupied and which are idle in each direction. In the initial state, all are 1, the probability value of the occupied grid remains unchanged, and the probability value of the idle grid is 0, which can represent the current drivable area.
[0136] Combination Fig.13 To explain:
[0137] Fig.13 According to the above abnormal points, the point cloud data of drivable area D, drivable area E and drivable area F are obtained. The Bresenham algorithm is used to calculate whether the area is occupied. Because after direct projection, drivable area E and drivable area F obviously add areas that the algorithm considers not to be drivable roads. These are invalid areas. Therefore, the above method of determining edge pixels is used to directly filter out the invalid areas, and the following is obtained: Fig.14 The image data shown, and the final drivable area D'.
[0138] It can be understood that the invalid area belongs to the invalid area in the current image data, but due to the movement of the mobile robot, the invalid area may be a valid area in the next image data. Therefore, filtering out the invalid area of a single frame image does not affect the construction of the overall grid map.
[0139] See also Fig.15 , Fig.15 1 is a schematic diagram of a structure of an embodiment of a device for segmenting a drivable area provided in the present application. The segmentation device 150 includes a processor 151 and a memory 152 coupled to the processor 151; wherein the memory 152 is used to store a computer program, and the processor 151 is used to execute the computer program to implement the following method:
[0140] Acquire image data and point cloud data of the target area; segment the image data to determine the initial drivable area in the image data; and use the point cloud data to correct the initial drivable area to obtain the final drivable area.
[0141] It can be understood that the processor 151 is also used to execute computer programs to implement the technical solution of any of the above embodiments, which will not be elaborated here.
[0142] See also Fig.16 , Fig.16 1 is a schematic diagram of the structure of an embodiment of an autonomous mobile device provided by the present application. The autonomous mobile device 160 includes: an image acquisition component 161 , a radar component 162 and a processor 163 .
[0143] Among them, the image acquisition component 161 is used to collect image data of the target area; the radar component 162 is used to collect point cloud data; the processor 163 is connected to the image acquisition component 161 and the radar component 162, and is used to segment the image data and determine the initial drivable area in the image data; and use the point cloud data to correct the initial drivable area to obtain the final drivable area.
[0144] It can be understood that the processor 163 is also used to execute computer programs to implement the technical solution of any of the above embodiments, which will not be elaborated here.
[0145] In some embodiments, the autonomous mobile device 160 may be a mobile robot, wherein the processor 163 may use a common x86 architecture computer, run an Ubuntu operating system, and install a ROS robot operating system on the basis of the system. The radar component 162 uses a 16-line laser sensor, such as Velodyne16, Robosense16, etc., and the image acquisition component 161 uses a monocular camera. The camera calibration method is used to calibrate the camera's intrinsic parameters, and the laser-camera calibration method is used to calibrate the camera and laser radar's external parameters.
[0146] Among them, the laser SLAM method is run on the ROS robot operating system, and the image is semantically segmented at the same time. And according to the internal and external reference relationship between the laser and the camera, the information of the laser point cloud is projected onto the picture. Then, according to any of the above technical solutions proposed in this application, the laser point cloud that does not belong to the driving area is filtered out. The filtered laser point cloud is used to fit the drivable area under the frame.
[0147] See also Fig.17 , Fig.17 1 is a schematic diagram of a computer readable storage medium according to an embodiment of the present application. The computer readable storage medium 170 is used to store a computer program 171. When the computer program 171 is executed by a processor, it is used to implement the following method:
[0148] Acquire image data and point cloud data of the target area; segment the image data to determine the initial drivable area in the image data; and use the point cloud data to correct the initial drivable area to obtain the final drivable area.
[0149] It can be understood that when the computer program 171 is executed by the processor, it is also used to implement the technical solution of any of the above embodiments, which will not be elaborated here.
[0150] In conclusion, the present application provides a technical solution of any of the above embodiments, which uses point cloud data to correct the initial drivable area, thereby improving the usability of point cloud data and the segmentation accuracy of the drivable area. The technical solution of the present application can remove points that are obviously incorrectly segmented in the visual segmentation process, thereby improving the usability of point cloud data. By removing invalid areas, entering invalid areas can be avoided, and after screening, the drivable area can be filled or a two-dimensional grid map can be drawn directly by occupying the grid.
[0151] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the circuit or unit is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made according to the description and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for segmenting a drivable area, characterized in that: The method comprises: Acquire image data and point cloud data of the target area; Segmenting the image data to determine an initial drivable area in the image data; Performing coordinate conversion on the three-dimensional coordinate information of the point cloud data to obtain two-dimensional coordinate information corresponding to the image data; Filtering the point cloud data based on the two-dimensional coordinate information and the initial drivable area to obtain the filtered point cloud data; Classifying the filtered point cloud data according to vertical angles to obtain a first point set corresponding to each vertical angle; wherein the vertical angle is an emission angle of a laser beam in a radar component that collects point cloud data; Determine a target first point set having a number of points less than a preset number in all the first point sets; Taking the pixel points corresponding to the first target point set as abnormal pixel points; The abnormal pixels are filtered out in the initial drivable area to obtain a final drivable area.
2. The method according to claim 1, characterized in that The method further comprises: Classifying the filtered point cloud data according to preset directions to obtain a second point set corresponding to each preset direction; wherein the preset direction is a projection direction of the laser beam in the radar component; Based on the second point set, an edge of the initial drivable area is determined.
3. The method according to claim 2, characterized in that The step of determining the edge of the initial drivable area based on the second point set includes: Obtaining a vertical angle of a point in the second point set; Using the vertical angle as a sequence number, sorting the points in the second point set from small to large; If adjacent serial numbers are not continuous, the smaller serial number will be retained; The pixel points corresponding to the smaller serial numbers are used as edge pixel points of the initial drivable area.
4. The method according to claim 1, characterized in that After filtering out the abnormal pixel points in the initial drivable area to obtain the final drivable area, the method includes: A grid map is constructed using the point cloud data corresponding to the final drivable area.
5. A device for dividing a drivable area, characterized in that: The segmentation device includes a processor and a memory coupled to the processor; The memory is used to store a computer program, and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 4.
6. An autonomous mobile device, characterized in that: The autonomous mobile device comprises: An image acquisition component, used for acquiring image data of a target area; A radar component for collecting point cloud data; A processor, connected to the image acquisition component and the radar component, is used to implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the computer program is used to implement the method according to any one of claims 1 to 4.
