Method, device and equipment for identifying travelable area under mine and storage medium
By collecting data from the front-view camera of the mine car and using semantic segmentation and camera models, the drivable area under the mine is determined, which solves the problem of missed and false detections in road detection under the mine and improves detection accuracy and efficiency.
Patent Information
- Application Number
- CN202410746660.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-13
AI Technical Summary
In the existing technology, it is easy to miss or misdetect the drivable area of underground mine roads, and due to the lack of standardized lane lines and unified road edges, detection becomes more difficult.
The image data of the road scene is collected through the mine car's front-view camera, semantic segmentation is performed, and a camera model is established to obtain the three-dimensional coordinates of the drivable area boundary in the world coordinate system to determine the drivable area under the mine. Specific steps include data collection, semantic segmentation and the establishment of camera models, using the Deeplabv3+ network framework for pixel-level segmentation, and determining the information of the road edge in the world coordinate system through perspective projection.
It effectively identifies smaller obstacles, avoids missed detections or false detections, quickly detects passing areas, reduces safety accidents in mining areas, and improves the accuracy and efficiency of identifying drivable areas under mines.
Smart Images

Figure CN118644835A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile automatic driving technology, and in particular to a method, device, equipment and storage medium for identifying a drivable area under a mine. Background Art
[0002] Unmanned mining trucks, as a sub-module of the smart mine, solve the transportation problems in the mine and are directly related to the mining efficiency of the mine. On the one hand, unmanned driving can reduce safety accidents in the mine, and on the other hand, it can improve the driver's working environment and reduce the driver's personnel costs.
[0003] Mining scenes are relatively closed, and mine trucks are mostly closed operations. The transportation routes of mine trucks are relatively fixed, and they basically carry out mechanical reciprocating operations in the loading, transportation, and unloading links. Under the mine, the detection of the drivable area is mainly to provide path planning assistance for the mine trucks, which can realize the entire road surface detection.
[0004] As a semi-structured road, underground roads are surrounded by obvious mine wall features. On the one hand, based on 3D spatial lidar point cloud, the plane grid method is applied to set the grid size to generate a grid map, and then the original point cloud is projected into the corresponding grid to extract features from the point set in each grid; on the other hand, there are two main types of drivable area segmentation based on 2D images. One is based on the traditional image processing method, which uses threshold processing to segment the image to obtain the drivable area. The other is a drivable area detection method based on deep learning. The drivable area data set of the mine is trained by a neural network, and the underground road information is segmented on the image.
[0005] The purpose of the drivable area detection is to detect the drivable area of the mine car under the current state.
[0006] When using 3D spatial laser point cloud projection to extract roads in the drivable area under the mine, it is more dependent on the laser radar hardware parameters. When there are relatively few laser radar beams, missed detections or false detections may occur. For example, when using a 16-line laser radar to collect road data, the number of laser points that can be hit is relatively small. When the height information is used for point set classification later, relatively small obstacles are easily filtered out as ground.
[0007] When using 2D images for semantic segmentation, traditional image processing methods are more suitable for structured roads that follow certain standards for the structural layer, with uniform surface color and material and a single pavement structure. Compared with regular urban scene roads, underground mine scene roads are complex and changeable. Underground mine roads do not have standardized lane lines and uniform road edges. They are semi-structured roads, and the detection of drivable areas is more difficult. Summary of the invention
[0008] The main purpose of the present invention is to provide a method, device, equipment and storage medium for identifying the drivable area under a mine, aiming to solve the technical problems in the prior art that the drivable area detection of underground mine roads is prone to missed detection or false detection, the underground mine roads do not have standardized lane lines and unified road edges, and the drivable area detection is difficult.
[0009] In a first aspect, the present invention provides a method for identifying a drivable area under a mine, the method comprising the following steps:
[0010] The image dataset of underground road scenes is collected through the front-view camera of the mine car;
[0011] Performing semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds;
[0012] A camera model is established, the segmentation result is solved according to the camera model, the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are obtained, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0013] Optionally, the image dataset of the underground mine road scene collected by the mine car front-view camera includes:
[0014] The video data of the underground road scene is collected through the forward-looking camera fixed on the mine car;
[0015] The video data is cut into image data, the image data is marked, and an image data set is generated according to the marked image data.
[0016] Optionally, cutting the video data into image data, marking the image data, and generating an image data set according to the marked image data includes:
[0017] Cutting the video data into image data, and marking the image data using a picture marking tool to obtain marked image data;
[0018] The labeled image data is formatted uniformly, and the formatted image data is divided into a training set, a validation set, and a test set according to a preset data set ratio, and the training set, the validation set, and the test set are used as image data sets.
[0019] Optionally, performing semantic segmentation on the image dataset to obtain a segmentation result of the road and the background includes:
[0020] According to the Deeplabv3+ network framework, pixel-level semantic segmentation is performed on the image dataset to obtain the segmentation results of the road and background.
[0021] Optionally, performing pixel-level semantic segmentation on the image dataset according to the Deeplabv3+ network framework to obtain the segmentation results of the road and the background includes:
[0022] Capturing the image context information in the image dataset according to the backbone network Backbone part and the hole space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework;
[0023] The underground mine road scene is subjected to pixel-level semantic segmentation according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background.
[0024] Optionally, performing pixel-level semantic segmentation on the underground road scene according to the decoder of the Deeplabv3+ network framework and the image context information to obtain a segmentation result of the road and the background includes:
[0025] According to the decoder of the Deeplabv3+ network framework, the low-level feature map of the middle layer of the Backbone part is received, and the multi-scale information output by the ASPP part is received, and the low-level feature map and the multi-scale information are fused to obtain a fusion result;
[0026] The edge of the underground road in the underground road scene is semantically segmented at the pixel level according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
[0027] Optionally, the establishing of a camera model, solving the segmentation result according to the camera model, obtaining the three-dimensional coordinates of the boundary of the drivable area in a world coordinate system, and determining the drivable area under the mine according to the three-dimensional coordinates include:
[0028] When it is detected that the mine car is in a horizontal state, a camera model is established;
[0029] Acquire a camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain a target coordinate system;
[0030] Perspectively projecting the segmentation result into bird's-eye view data through a target coordinate system, solving the bird's-eye view data, and obtaining edge coordinate information of the road edge in a world coordinate system;
[0031] The three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are determined according to the edge coordinate information, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0032] In a second aspect, in order to achieve the above-mentioned purpose, the present invention further proposes a device for identifying a drivable area under a mine, the device comprising:
[0033] The data acquisition module is used to collect image data sets of underground road scenes through the front-view camera of the mine car;
[0034] A segmentation module, used to perform semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds;
[0035] The area determination module is used to establish a camera model, solve the segmentation result according to the camera model, obtain the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determine the drivable area under the mine according to the three-dimensional coordinates.
[0036] In the third aspect, in order to achieve the above-mentioned purpose, the present invention also proposes an underground drivable area identification device, the underground drivable area identification device comprising: a memory, a processor, and an underground drivable area identification program stored in the memory and executable on the processor, the underground drivable area identification program being configured to implement the steps of the underground drivable area identification method as described above.
[0037] In a fourth aspect, in order to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a program for identifying an underground drivable area is stored, and when the program for identifying an underground drivable area is executed by a processor, the steps of the method for identifying an underground drivable area are implemented as described above.
[0038] The method for identifying a drivable area under a mine proposed by the present invention collects a picture data set of an underground road scene through a mine car front-view camera; performs semantic segmentation on the picture data set to obtain a segmentation result of a road and a background; establishes a camera model, solves the segmentation result according to the camera model, obtains the three-dimensional coordinates of the boundary of the drivable area in a world coordinate system, and determines the drivable area under the mine according to the three-dimensional coordinates; the method can identify relatively small obstacles, avoids the situation that the detection of the drivable area of the underground road is prone to missed detection or false detection, can quickly detect the pass area, reduce safety accidents in the mining area, improve the accuracy of the identification of the drivable area under the mine, reduce the time consumed in the identification of the drivable area under the mine, and improve the identification speed and efficiency of the drivable area under the mine. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the method for identifying a drivable area under a mine according to the present invention;
[0041] Figure 3 It is a schematic flow chart of a second embodiment of the method for identifying a drivable area under a mine according to the present invention;
[0042] Figure 4 It is a schematic flow chart of a third embodiment of a method for identifying a drivable area under a mine according to the present invention;
[0043] Figure 5 It is a schematic flow chart of a fourth embodiment of a method for identifying a drivable area under a mine according to the present invention;
[0044] Figure 6 It is a schematic flow chart of a fifth embodiment of a method for identifying a drivable area under a mine according to the present invention;
[0045] Figure 7 It is a flow chart of a sixth embodiment of the method for identifying a drivable area under a mine according to the present invention;
[0046] Figure 8 It is a schematic diagram of the projection of the coordinate system in the method for identifying the drivable area under the mine of the present invention;
[0047] Fig. 9 This is a functional module diagram of the first embodiment of the device for identifying the drivable area in an underground mine according to the present invention.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0050] The solution of the embodiment of the present invention is mainly: collecting an image data set of underground road scenes through a mine car's front-view camera; performing semantic segmentation on the image data set to obtain a segmentation result of the road and the background; establishing a camera model, solving the segmentation result according to the camera model, obtaining the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determining the drivable area under the mine according to the three-dimensional coordinates; being able to identify relatively small obstacles, avoiding the situation where the drivable area detection of the underground road is easily missed or misdetected, being able to quickly detect the passable area, reducing safety accidents in the mining area, improving the accuracy of the identification of the underground drivable area, reducing the time spent on the identification of the underground drivable area, and improving the identification speed and efficiency of the underground drivable area, and solving the technical problems in the prior art that the drivable area detection of the underground road is easily missed or misdetected, the underground road has no standardized lane lines and unified road edges, and the drivable area detection is difficult.
[0051] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0052] like Figure 1As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (Non-Volatile Memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0054] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and an underground mine drivable area identification program.
[0055] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and performs the following operations:
[0056] The image dataset of underground road scenes is collected through the front-view camera of the mine car;
[0057] Performing semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds;
[0058] A camera model is established, the segmentation result is solved according to the camera model, the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are obtained, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0059] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0060] The video data of the underground road scene is collected through the forward-looking camera fixed on the mine car;
[0061] The video data is cut into image data, the image data is marked, and an image data set is generated according to the marked image data.
[0062] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0063] Cutting the video data into image data, and marking the image data using a picture marking tool to obtain marked image data;
[0064] The labeled image data is formatted uniformly, and the formatted image data is divided into a training set, a validation set, and a test set according to a preset data set ratio, and the training set, the validation set, and the test set are used as image data sets.
[0065] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0066] According to the Deeplabv3+ network framework, pixel-level semantic segmentation is performed on the image dataset to obtain the segmentation results of the road and background.
[0067] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0068] Capturing the image context information in the image dataset according to the backbone network Backbone part and the hole space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework;
[0069] The underground mine road scene is subjected to pixel-level semantic segmentation according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background.
[0070] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0071] According to the decoder of the Deeplabv3+ network framework, the low-level feature map of the middle layer of the Backbone part is received, and the multi-scale information output by the ASPP part is received, and the low-level feature map and the multi-scale information are fused to obtain a fusion result;
[0072] The edge of the underground road in the underground road scene is semantically segmented at the pixel level according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
[0073] The device of the present invention calls the mine drivable area identification program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0074] When it is detected that the mine car is in a horizontal state, a camera model is established;
[0075] Acquire a camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain a target coordinate system;
[0076] Perspectively projecting the segmentation result into bird's-eye view data through a target coordinate system, solving the bird's-eye view data, and obtaining edge coordinate information of the road edge in a world coordinate system;
[0077] The three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are determined according to the edge coordinate information, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0078] Through the above scheme, this embodiment collects a picture data set of the underground road scene through the front-view camera of the mine car; performs semantic segmentation on the picture data set to obtain the segmentation result of the road and the background; establishes a camera model, solves the segmentation result according to the camera model, obtains the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determines the drivable area under the mine according to the three-dimensional coordinates; can identify shorter obstacles, avoid the situation where the drivable area detection of the underground road is easily missed or misdetected, can quickly detect the pass area, reduce safety accidents in the mining area, improve the accuracy of the identification of the drivable area under the mine, reduce the time consumed in the identification of the drivable area under the mine, and improve the identification speed and efficiency of the drivable area under the mine.
[0079] Based on the above hardware structure, an embodiment of a method for identifying a drivable area under a mine according to the present invention is proposed.
[0080] Reference Figure 2 , Figure 2 It is a flowchart of the first embodiment of the method for identifying a drivable area in a mine according to the present invention.
[0081] In a first embodiment, the method for identifying a drivable area under a mine comprises the following steps:
[0082] Step S10: Collecting a picture data set of the underground mine road scene through the mine car's front-view camera.
[0083] It should be noted that the images of the underground road scenes can be collected through the front-view camera of the mine car to obtain image data sets corresponding to different images.
[0084] Step S20: performing semantic segmentation on the image data set to obtain segmentation results of the road and the background.
[0085] It should be understood that after semantic segmentation is performed on the image dataset, segmentation results of the road and background of the underground mine road scene can be obtained.
[0086] Step S30, establishing a camera model, solving the segmentation result according to the camera model, obtaining the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determining the drivable area under the mine according to the three-dimensional coordinates.
[0087] It is understandable that after the camera model is established, the segmentation result can be solved according to the camera model to obtain the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and the drivable area under the mine can be determined according to the three-dimensional coordinates.
[0088] Through the above scheme, this embodiment collects a picture data set of the underground road scene through the front-view camera of the mine car; performs semantic segmentation on the picture data set to obtain the segmentation result of the road and the background; establishes a camera model, solves the segmentation result according to the camera model, obtains the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determines the drivable area under the mine according to the three-dimensional coordinates; can identify shorter obstacles, avoid the situation where the drivable area detection of the underground road is easily missed or misdetected, can quickly detect the pass area, reduce safety accidents in the mining area, improve the accuracy of the identification of the drivable area under the mine, reduce the time consumed in the identification of the drivable area under the mine, and improve the identification speed and efficiency of the drivable area under the mine.
[0089] Further, Figure 3 FIG. 1 is a flow chart of a second embodiment of a method for identifying a drivable area under a mine according to the present invention. Figure 3 As shown, a second embodiment of the method for identifying a drivable area under a mine according to the present invention is proposed based on the first embodiment. In this embodiment, step S10 specifically includes the following steps:
[0090] Step S11, collecting video data of the underground mine road scene through a forward-looking camera fixed on the mine car.
[0091] It should be noted that the data set can first be collected by using the fixed forward-looking camera of the mine car to obtain video data of the underground road scene.
[0092] Step S12: cutting the video data into image data, marking the image data, and generating an image data set according to the marked image data.
[0093] It is understandable that the video data may be cut into image data, and then the image data may be marked, so as to generate a corresponding image data set according to the marked image data.
[0094] Through the above scheme, this embodiment collects video data of underground road scenes through a forward-looking camera fixed on a mine car; cuts the video data into image data, marks the image data, and generates an image data set based on the marked image data, which can quickly detect the pass area, reduce safety accidents in the mining area, and improve the accuracy of identifying the drivable area under the mine.
[0095] Further, Figure 4 FIG. 1 is a flow chart of a third embodiment of a method for identifying a drivable area under a mine according to the present invention. Figure 4 As shown, based on the second embodiment, a second embodiment of the method for identifying a drivable area under a mine of the present invention is proposed. In this embodiment, step S12 specifically includes the following steps:
[0096] Step S121: Cut the video data into image data, and use a picture annotation tool to mark the image data to obtain marked image data.
[0097] It should be noted that the video data is cut into image data, and then the image data is marked according to a picture marking tool, so as to obtain marked image data.
[0098] In a specific implementation, the traversable area detection dataset of this embodiment covers a variety of underground mine road scenes, generally including various scenes such as underground straight roads, curves, uphill and downhill, and loading and unloading areas, and is annotated in accordance with the cityscapes dataset. The fixed front-view camera of the mine car takes video data of the underground mine road scene and cuts it into an image dataset, which can be annotated using labelme. It is necessary to annotate all areas that all vehicles can drive to, including gravel, bricks on both sides (stones that are too high to affect driving are not marked), forks, and meeting areas, so as to avoid areas where vehicles cannot pass.
[0099] Step S122: unify the data format of the labeled image data, divide the image data after the format unification into a training set, a verification set and a test set according to a preset data set ratio, and use the training set, the verification set and the test set as image data sets.
[0100] It can be understood that after the data format of the labeled image data is unified, the image data with unified format can be divided into a training set, a verification set and a test set according to a preset data set ratio, and then the training set, the verification set and the test set are used as image data sets.
[0101] In a specific implementation, after the annotation is completed, the annotated image data can be converted into the cityscapes dataset format. Taking the preset dataset ratio of 8:1:1 as an example, the dataset can be finally divided into a training set, a validation set, and a test set in a ratio of 8:1:1.
[0102] Through the above scheme, this embodiment cuts the video data into image data, uses a picture annotation tool to mark the image data, and obtains marked image data; the data format of the marked image data is unified, and the image data with unified format is divided into a training set, a verification set, and a test set according to a preset data set ratio; the training set, the verification set, and the test set are used as image data sets, which can quickly detect the pass area, reduce safety accidents in the mining area, and improve the accuracy of identifying the drivable area under the mine.
[0103] Further, Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a method for identifying a drivable area under a mine according to the present invention. Figure 5 As shown, a fourth embodiment of the method for identifying a drivable area under a mine according to the present invention is proposed based on the first embodiment. In this embodiment, step S20 specifically includes the following steps:
[0104] Step S21, performing pixel-level semantic segmentation on the image dataset according to the Deeplabv3+ network framework to obtain the segmentation results of the road and the background.
[0105] It should be noted that road segmentation can be performed based on the improved DeepLabv3+, that is, the Deeplabv3+ network framework is used to perform pixel-level semantic segmentation on the image dataset to obtain the segmentation results of the road and the background.
[0106] Through the above scheme, this embodiment uses the Deeplabv3+ network framework to perform pixel-level semantic segmentation on the image data set to obtain the segmentation results of the road and the background; it can identify smaller obstacles, avoid the situation where the detection of the drivable area of the underground road is prone to missed detection or false detection, and can quickly detect the segmentation results.
[0107] Further, Figure 6 FIG. 5 is a flow chart of a fifth embodiment of a method for identifying a drivable area under a mine according to the present invention. Figure 6 As shown, a fifth embodiment of the method for identifying a drivable area under a mine according to the present invention is proposed based on the fourth embodiment. In this embodiment, step S21 specifically includes the following steps:
[0108] Step S211, capturing the image context information in the image dataset according to the backbone network Backbone part and the dilated spatial pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework.
[0109] It should be noted that the Deeplabv3 network framework is mainly composed of an encoder and a decoder. The encoder part mainly includes two parts: Backbone and Atrous Spatial Pyramid Pooling (ASPP). According to the backbone network Backbone part and the Atrous Spatial Pyramid Pooling ASPP part in the encoder of the Deeplabv3+ network framework, the image context information in the image dataset is captured. The ASPP module can be composed of 4 parallel atrous convolution modules (with different convolution rates) to obtain a larger receptive field and extract more context information.
[0110] Step S212: performing pixel-level semantic segmentation on the underground mine road scene according to the decoder of the Deeplabv3+ network framework and the image context information to obtain a segmentation result of the road and the background.
[0111] It can be understood that in the decoder part, the low-level feature map from the backbone middle layer and the output from the ASPP module can be received as input. According to the decoder of the Deeplabv3+ network framework and the image context information, the underground mine road scene can be semantically segmented at the pixel level to obtain the segmentation result of the road and the background.
[0112] Furthermore, the step S212 specifically includes the following steps:
[0113] According to the decoder of the Deeplabv3+ network framework, the low-level feature map of the middle layer of the Backbone part is received, and the multi-scale information output by the ASPP part is received, and the low-level feature map and the multi-scale information are fused to obtain a fusion result;
[0114] The edge of the underground road in the underground road scene is semantically segmented at the pixel level according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
[0115] In the specific implementation, the backbone network of the encoder part can be replaced, and the MobileNetV3 backbone network can be used preferentially to improve the reasoning and prediction speed of the model. The DeepLabv3+ model structure also has an ASPP module with a hole convolution block and a pooling module, which introduces multi-scale information and sends it to the decoder; in addition, the decoder module receives the low-level feature map from the middle layer of the backbone network and the multi-scale information from the ASPP module, further integrates the underlying features with the high-level features, and improves the accuracy of the segmentation boundary.
[0116] Through the above scheme, this embodiment captures the image context information in the picture dataset through the backbone network Backbone part and the atrous space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework; performs pixel-level semantic segmentation on the underground road scene according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background, which can identify smaller obstacles and avoid the occurrence of missed detection or false detection in the detection of the drivable area of the underground road, and can quickly detect the segmentation result.
[0117] Further, Figure 7 FIG. 6 is a flow chart of a sixth embodiment of a method for identifying a drivable area under a mine according to the present invention. Figure 7 As shown, a sixth embodiment of the method for identifying a drivable area under a mine according to the present invention is proposed based on the first embodiment. In this embodiment, step S30 specifically includes the following steps:
[0118] Step S31: When it is detected that the mining vehicle is in a horizontal state, a camera model is established.
[0119] It should be noted that the camera moves with the mine car, and when the mine tunnel is horizontal and has no slope, the following camera model is established, that is, the camera model can be established when it is detected that the mine car is in a horizontal state.
[0120] Step S32: Acquire the camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain the target coordinate system.
[0121] It can be understood that after the camera coordinate system of the camera model is obtained, the camera coordinate system can be overlapped with the world coordinate system to obtain the overlapped target coordinate system.
[0122] In the specific implementation, see Figure 8 , Figure 8 Schematic diagram of the projection of the coordinate system in the method for identifying the drivable area under the mine of the present invention; Figure 8 As shown, the camera coordinate system and the world coordinate system are both three-dimensional coordinate systems, and the transformation relationship only involves rotation and translation. Therefore, the two coordinate systems are overlapped here and both are represented by the O-XYZ coordinate system; the Z axis is perpendicular to the optical center of the camera, the Y axis is perpendicular to the ground, and the X axis follows the right-hand rule and is parallel to the ground; the Ou axis of the pixel coordinate system coincides with OX, and the Ov axis coincides with OY; where P G (X G , Y G , Z G ) is a point on the ground, P s(u, v) is a projection point of the point in the pixel coordinate system; within the camera's perception range, for any point in this world coordinate system, its corresponding projection point can be found in the pixel coordinate system. According to the camera imaging principle, their mapping relationship is:
[0123]
[0124] Where u is P s The coordinate of the point on the μ axis in the pixel coordinate system, x is P s The coordinates of the point on the x-axis in the image coordinate system, dx is how many mm each row of pixels represents, u0 is the coordinate of the camera optical center on the u-axis in the pixel coordinate system, and v is P s The coordinate of the point on the v axis in the pixel coordinate system, and y is P s The coordinate of the point on the y-axis in the image coordinate system, dy is how many mm each column of pixels represents, and v0 is the coordinate of the camera optical center on the v-axis in the pixel coordinate system.
[0125] in,
[0126]
[0127]
[0128] Among them, f x is the focal length in the x-axis direction, f y is the focal length in the y-axis direction, and f is the focal length of the camera.
[0129] Since the edges of the drivable area are all projection points of the ground on the image, Y is a fixed value of the camera height.
[0130]
[0131] Converted
[0132] Y=h
[0133]
[0134] Where Y is P G The coordinate of the point in the Y-axis direction in the world coordinate system, h is the height of the camera from the ground, and Z is P G The coordinate of the point in the Z-axis direction in the world coordinate system, f y is the focal length in the y-axis direction, v is P s The coordinate of the point on the v axis in the pixel coordinate system, c y is the coordinate of the camera optical center on the Y axis in the pixel coordinate system, X is P G The coordinate of the point in the X-axis direction in the world coordinate system, u is P s The coordinate of the point on the u axis in the pixel coordinate system, cx is the coordinate of the camera optical center on the X axis in the pixel coordinate system, f x is the focal length in the x-axis direction, It is the camera internal parameter, which can be obtained through chessboard calibration, thereby calculating the coordinates of the edge of the drivable area in the world coordinate system.
[0135] Step S33: perspective-projecting the segmentation result into bird's-eye view data through a target coordinate system, solving the bird's-eye view data, and obtaining edge coordinate information of the road edge in a world coordinate system.
[0136] It should be understood that the segmentation result is perspective projected into bird's-eye view data through the target coordinate system, and the segmented image is converted into a bird's-eye view / top view (Bird's-Eye-View, BEV) through perspective projection. The edges of mine roads are often irregular in shape compared to urban scene roads. Through the semantic segmentation method, the edges are converted into finer-grained pixel-level segmentation.
[0137] Step S34: determine the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system according to the edge coordinate information, and determine the drivable area under the mine according to the three-dimensional coordinates.
[0138] It can be understood that the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system can be determined according to the edge coordinate information, and the drivable area under the mine can be determined according to the three-dimensional coordinates.
[0139] Through the above scheme, this embodiment establishes a camera model when it is detected that the mine car is in a horizontal state; obtains the camera coordinate system of the camera model, overlaps the camera coordinate system with the world coordinate system, and obtains the target coordinate system; perspective projects the segmentation result into bird's-eye view data through the target coordinate system, solves the bird's-eye view data, and obtains the edge coordinate information of the road edge in the world coordinate system; determines the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system according to the edge coordinate information, and determines the drivable area under the mine according to the three-dimensional coordinates; can quickly detect the pass area, reduce safety accidents in the mining area, improve the accuracy of identifying the drivable area under the mine, reduce the time spent on identifying the drivable area under the mine, and improve the speed and efficiency of identifying the drivable area under the mine.
[0140] Accordingly, the present invention further provides a device for identifying a drivable area under a mine.
[0141] Reference Fig. 9 , Fig. 9 This is a functional module diagram of the first embodiment of the device for identifying the drivable area in an underground mine according to the present invention.
[0142] In a first embodiment of the device for identifying a drivable area under a mine according to the present invention, the device for identifying a drivable area under a mine comprises:
[0143] The data acquisition module 10 is used to collect image data sets of underground road scenes through the mine car's front-view camera.
[0144] The segmentation module 20 is used to perform semantic segmentation on the image data set to obtain segmentation results of the road and the background.
[0145] The area determination module 30 is used to establish a camera model, solve the segmentation result according to the camera model, obtain the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determine the drivable area under the mine according to the three-dimensional coordinates.
[0146] The data acquisition module 10 is also used to collect video data of underground road scenes through a forward-looking camera fixed on the mine car; cut the video data into image data, mark the image data, and generate an image data set based on the marked image data.
[0147] The data acquisition module 10 is also used to cut the video data into image data, mark the image data using a picture annotation tool to obtain marked image data; unify the data format of the marked image data, divide the image data with unified format into a training set, a verification set and a test set according to a preset data set ratio, and use the training set, the verification set and the test set as image data sets.
[0148] The segmentation module 20 is also used to perform pixel-level semantic segmentation on the image data set according to the Deeplabv3+ network framework to obtain segmentation results of the road and the background.
[0149] The segmentation module 20 is also used to capture the image context information in the picture data set according to the backbone network Backbone part and the void space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework; perform pixel-level semantic segmentation on the underground road scene according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background.
[0150] The segmentation module 20 is also used to receive the low-level feature map of the middle layer of the Backbone part and the multi-scale information output by the ASPP part according to the decoder of the Deeplabv3+ network framework, fuse the low-level feature map and the multi-scale information to obtain a fusion result; perform pixel-level semantic segmentation on the edge of the underground road of the underground road scene according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
[0151] The area determination module 30 is also used to establish a camera model when it is detected that the mine car is in a horizontal state; obtain the camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain the target coordinate system; perspective project the segmentation result into bird's-eye view data through the target coordinate system, solve the bird's-eye view data, and obtain the edge coordinate information of the road edge in the world coordinate system; determine the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system according to the edge coordinate information, and determine the drivable area under the mine according to the three-dimensional coordinates.
[0152] Among them, the steps implemented by each functional module of the device for identifying an underground drivable area can refer to the various embodiments of the method for identifying an underground drivable area of the present invention, and will not be repeated here.
[0153] In addition, an embodiment of the present invention further provides a storage medium, on which a mine drivable area identification program is stored. When the mine drivable area identification program is executed by a processor, the following operations are implemented:
[0154] The image dataset of underground road scenes is collected through the front-view camera of the mine car;
[0155] Performing semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds;
[0156] A camera model is established, the segmentation result is solved according to the camera model, the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are obtained, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0157] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0158] The video data of the underground road scene is collected through the forward-looking camera fixed on the mine car;
[0159] The video data is cut into image data, the image data is marked, and an image data set is generated according to the marked image data.
[0160] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0161] Cutting the video data into image data, and marking the image data using a picture marking tool to obtain marked image data;
[0162] The labeled image data is formatted uniformly, and the formatted image data is divided into a training set, a validation set, and a test set according to a preset data set ratio, and the training set, the validation set, and the test set are used as image data sets.
[0163] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0164] According to the Deeplabv3+ network framework, pixel-level semantic segmentation is performed on the image dataset to obtain the segmentation results of the road and background.
[0165] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0166] Capturing the image context information in the image dataset according to the backbone network Backbone part and the hole space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework;
[0167] The underground mine road scene is subjected to pixel-level semantic segmentation according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background.
[0168] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0169] According to the decoder of the Deeplabv3+ network framework, the low-level feature map of the middle layer of the Backbone part is received, and the multi-scale information output by the ASPP part is received, and the low-level feature map and the multi-scale information are fused to obtain a fusion result;
[0170] The edge of the underground road in the underground road scene is semantically segmented at the pixel level according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
[0171] Furthermore, when the mine drivable area identification program is executed by the processor, the following operations are also implemented:
[0172] When it is detected that the mine car is in a horizontal state, a camera model is established;
[0173] Acquire a camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain a target coordinate system;
[0174] Perspectively projecting the segmentation result into bird's-eye view data through a target coordinate system, solving the bird's-eye view data, and obtaining edge coordinate information of the road edge in a world coordinate system;
[0175] The three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are determined according to the edge coordinate information, and the drivable area under the mine is determined according to the three-dimensional coordinates.
[0176] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned implementation method can be accomplished by instructing related hardware through a program, and the program is stored in a storage medium, including a number of instructions for enabling a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each implementation method of the present application; and the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0177] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0178] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0179] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for identifying a drivable area in a mine, characterized in that: The method for identifying a drivable area under a mine comprises: The image dataset of underground road scenes is collected through the front-view camera of the mine car; Performing semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds; A camera model is established, the segmentation result is solved according to the camera model, the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are obtained, and the drivable area under the mine is determined according to the three-dimensional coordinates.
2. The method for identifying a drivable area under a mine according to claim 1, characterized in that: The image dataset of the underground road scene collected by the mine car front-view camera includes: The video data of the underground road scene is collected through the forward-looking camera fixed on the mine car; The video data is cut into image data, the image data is marked, and an image data set is generated according to the marked image data.
3. The method for identifying a drivable area under a mine according to claim 2, characterized in that: The step of cutting the video data into image data, marking the image data, and generating an image data set according to the marked image data includes: Cutting the video data into image data, and marking the image data using a picture marking tool to obtain marked image data; The labeled image data is formatted uniformly, and the formatted image data is divided into a training set, a validation set, and a test set according to a preset data set ratio, and the training set, the validation set, and the test set are used as image data sets.
4. The method for identifying a drivable area under a mine according to claim 1, characterized in that: The performing semantic segmentation on the image data set to obtain the segmentation result of the road and the background includes: According to the Deeplabv3+ network framework, pixel-level semantic segmentation is performed on the image dataset to obtain the segmentation results of the road and background.
5. The method for identifying a drivable area under a mine according to claim 4, characterized in that: The pixel-level semantic segmentation of the image dataset is performed according to the Deeplabv3+ network framework to obtain the segmentation results of the road and the background, including: Capturing the image context information in the image dataset according to the backbone network Backbone part and the hole space pyramid pooling ASPP part in the encoder of the Deeplabv3+ network framework; The underground mine road scene is subjected to pixel-level semantic segmentation according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background.
6. The method for identifying a drivable area under a mine according to claim 5, characterized in that: The pixel-level semantic segmentation of the underground road scene is performed according to the decoder of the Deeplabv3+ network framework and the image context information to obtain the segmentation result of the road and the background, including: According to the decoder of the Deeplabv3+ network framework, the low-level feature map of the middle layer of the Backbone part is received, and the multi-scale information output by the ASPP part is received, and the low-level feature map and the multi-scale information are fused to obtain a fusion result; The edge of the underground road in the underground road scene is semantically segmented at the pixel level according to the image context information and the fusion result to obtain a segmentation result of the road and the background.
7. The method for identifying a drivable area under a mine according to claim 1, characterized in that: The step of establishing a camera model, solving the segmentation result according to the camera model, obtaining the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determining the drivable area under the mine according to the three-dimensional coordinates includes: When it is detected that the mine car is in a horizontal state, a camera model is established; Acquire a camera coordinate system of the camera model, overlap the camera coordinate system with the world coordinate system, and obtain a target coordinate system; Perspectively projecting the segmentation result into bird's-eye view data through a target coordinate system, solving the bird's-eye view data, and obtaining edge coordinate information of the road edge in a world coordinate system; The three-dimensional coordinates of the boundary of the drivable area in the world coordinate system are determined according to the edge coordinate information, and the drivable area under the mine is determined according to the three-dimensional coordinates.
8. A device for identifying a drivable area in a mine, characterized in that: The mine drivable area identification device comprises: The data acquisition module is used to collect image data sets of underground road scenes through the front-view camera of the mine car; A segmentation module, used to perform semantic segmentation on the image data set to obtain segmentation results of roads and backgrounds; The area determination module is used to establish a camera model, solve the segmentation result according to the camera model, obtain the three-dimensional coordinates of the boundary of the drivable area in the world coordinate system, and determine the drivable area under the mine according to the three-dimensional coordinates.
9. A device for identifying drivable areas in a mine, characterized in that: The underground drivable area identification device includes: a memory, a processor, and an underground drivable area identification program stored in the memory and executable on the processor, wherein the underground drivable area identification program is configured to implement the steps of the underground drivable area identification method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a program for identifying an underground drivable area. When the program for identifying an underground drivable area is executed by a processor, the steps of the method for identifying an underground drivable area according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Road surface detection method and system based on RGB image, and intelligent terminal
CN113011255A
Travelable area detection method based on semantic segmentation
CN114332823A
Undermine roadway travelable area detection method and system based on visual semantic segmentation
CN118015578A
Vehicle travelable area detection method and device, electronic equipment and storage medium
CN118038409A
Automatic Robotic Lawn Mowing Boundary Detection Using 3D Semantic Segmentation
US20230206647A1
Cited By
Lane line detection method and device, electronic equipment and storage medium
CN119049006A
Method for detecting drivable area matched with mine scene
CN121415364A
A method for detecting drivable areas adapted to mining scenarios
CN121415364B
