Rockfall detection method and device, terminal equipment and storage medium

By constructing a size filtering curve, the problem that unmanned vehicles cannot accurately identify small-sized rockfalls during rockfall detection is solved, work efficiency and safety are improved, and large-sized rockfalls are accurately detected and avoided.

CN118628776AActive Publication Date: 2024-09-10CHANGSHA INTELLIGENT DRIVING INST CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310233691.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

Existing technology cannot accurately identify and filter small-sized rockfalls near the end of the image during rockfall detection, resulting in unnecessary sudden braking and frequent obstacle avoidance of unmanned vehicles, which reduces work efficiency.

Method used

By constructing a size filtering curve to represent the correspondence between the size statistics of the rockfall detection frame and the ordinate of the image pixels, small-sized rockfalls in the image are filtered out to avoid unnecessary sudden braking and frequent obstacle avoidance of unmanned vehicles.

Benefits of technology

It improves the working efficiency of unmanned vehicles, ensures accurate detection and avoidance of large-sized rockfalls, and reduces unnecessary parking and obstacle avoidance operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628776A
    Figure CN118628776A
Patent Text Reader

Abstract

The invention relates to the technical field of environment perception, and provides a rockfall detection method and device, terminal equipment and a storage medium. The method comprises the following steps: acquiring a target image of a to-be-detected area; performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image; filtering each rockfall detection frame in the target image by using the constructed size filtering curve; wherein the size filtering curve is used for representing the corresponding relation between the size statistical value of the rockfall detection frame and the vertical coordinate of the pixel point of the image. By adopting the method, the small-size rockfall in the image can be accurately filtered, so that unnecessary sudden brake and frequent obstacle avoidance of the unmanned vehicle are avoided, and the working efficiency of the unmanned vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of environmental perception technology, and in particular to a rockfall detection method, apparatus, terminal device and storage medium. Background Art

[0002] In special places such as mining areas or mountainous areas, falling rocks are extremely harmful to passing vehicles. At the least, they can scratch tires and cause economic losses, and at the worst, they can cause vehicles to roll over and cause safety accidents. For unmanned vehicles, how to accurately detect and avoid falling rocks has become a key issue. At present, the existing technology has proposed a method of using deep learning networks to detect falling rocks in images. However, for the same falling rock, its size displayed at the far end of the image is smaller, and its size displayed at the near end of the image is larger. Since the deep learning network is fuzzy in the recognition of the size of the falling rock, this will cause small-sized falling rocks at the near end of the image to be detected. In fact, the small-sized falling rocks at the near end of the image will not affect the safe driving of the unmanned vehicle. When these small-sized falling rocks are detected, they will cause the unmanned vehicle to brake suddenly and frequently bypass obstacles, reducing the working efficiency of the unmanned vehicle. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a rockfall detection method, apparatus, terminal device and storage medium, which can more accurately filter out small-sized rocks in images, thereby avoiding unnecessary emergency braking and frequent obstacle avoidance of unmanned vehicles, and improving the work efficiency of unmanned vehicles.

[0004] A first aspect of an embodiment of the present application provides a rockfall detection method, comprising:

[0005] Acquire a target image of the area to be tested;

[0006] Performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image;

[0007] The constructed size filtering curve is used to filter each rockfall detection frame in the target image; wherein the size filtering curve is used to represent the corresponding relationship between the size statistics of the rockfall detection frame and the vertical coordinate of the pixel point of the image.

[0008] In an embodiment of the present application, a target image of the area to be tested is first acquired, and rockfall detection processing is performed on the target image to obtain various rockfall detection frames; then, the constructed size filter curve is used to filter the various rockfall detection frames in the target image. Since the size filter curve can represent the correspondence between the size statistics of the rockfall detection frame and the ordinate of the pixel point of the image, when filtering the various rockfall detection frames in the target image according to the size filter curve, a suitable size filter threshold can be found from the size filter curve according to the ordinate position of the rockfall detection frame, so as to more accurately filter small-sized rocks in the image, thereby avoiding unnecessary emergency braking and frequent detours of the unmanned vehicle, and improving the working efficiency of the unmanned vehicle.

[0009] In one implementation of the embodiment of the present application, the size filtering curve can be constructed in the following manner:

[0010] Obtain sample images of completed rockfall detection;

[0011] Dividing the sample image into multiple regions horizontally;

[0012] For each area, the size statistics of all rockfall detection frames in the area are detected respectively;

[0013] The size filtering curve is constructed by curve fitting using the pixel ordinates of the sample image and the size statistics as elements of two coordinate axes.

[0014] In an implementation of the embodiment of the present application, performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image may include:

[0015] Inputting the target image into a trained neural network model for processing to obtain each rockfall detection frame in the target image;

[0016] The neural network model is trained in the following way:

[0017] Acquire a plurality of consecutive frames of rockfall images, each frame of which is marked with a rockfall detection frame;

[0018] Deduplication processing of rockfall detection frames is performed on the continuous multiple frames of rockfall images;

[0019] For each frame of the rockfall image after deduplication processing, the rockfall image is longitudinally divided into a left image and a right image; the left image and the middle image are fused to obtain a first sample image, and the right image and the middle image are fused to obtain a second sample image; wherein the middle image is an image area in the rockfall image obtained by extending the dividing line between the left image and the right image in the left and right directions by a specified length as a reference;

[0020] The neural network model is trained by taking the first sample image and the second sample image corresponding to each frame of the rockfall image as training sets.

[0021] Furthermore, assuming that the first image and the second image are any two adjacent frames in the continuous multiple frames of rockfall images, the deduplication processing of the rockfall detection frames on the continuous multiple frames of rockfall images may include:

[0022] Detecting the center point of each rockfall detection frame in the first image, and detecting the center point of each rockfall detection frame in the second image;

[0023] The rockfall detection frame whose center point in the second image is at a distance less than a first threshold from the center point of any rockfall detection frame in the first image is deleted.

[0024] In an implementation of the embodiment of the present application, after filtering each rockfall detection frame in the target image using the constructed size filtering curve, the following method may also be included:

[0025] If the number of the remaining rockfall detection frames in the target image is greater than a second threshold, the rockfall pile in the target image is detected by a cluster fitting method.

[0026] Furthermore, the detecting and obtaining the rock pile in the target image by using a cluster fitting method may include:

[0027] Using a clustering algorithm to perform clustering processing on the remaining rockfall detection frames of the target image to obtain clusters;

[0028] The boundaries of each cluster are fitted using an adaptive fitting algorithm as the boundaries of each rock pile in the target image.

[0029] In an implementation of the embodiment of the present application, filtering each rockfall detection frame in the target image using the constructed size filtering curve may include:

[0030] For each rockfall detection frame in the target image, the corresponding target size statistic is obtained from the size filtering curve according to the vertical coordinate of the center point of the rockfall detection frame; if the size of the rockfall detection frame is smaller than the target size statistic, the rockfall detection frame is filtered out.

[0031] A second aspect of an embodiment of the present application provides a rockfall detection device, comprising:

[0032] A target image acquisition module is used to acquire a target image of the area to be tested;

[0033] A rockfall detection module, used to perform rockfall detection processing on the target image to obtain each rockfall detection frame in the target image;

[0034] The rockfall filtering module is used to filter each rockfall detection frame in the target image using a constructed size filtering curve; wherein the size filtering curve is used to represent the correspondence between the size statistics of the rockfall detection frame and the vertical coordinates of the pixel points of the image.

[0035] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the rockfall detection method provided in the first aspect of the embodiment of the present application is implemented.

[0036] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the rockfall detection method provided in the first aspect of the embodiment of the present application is implemented.

[0037] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the rockfall detection method provided in the first aspect of the embodiments of the present application.

[0038] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of a rockfall detection method provided in an embodiment of the present application;

[0040] Figure 2 It is a schematic diagram of the operation flow of performing data deduplication on a rockfall image provided by an embodiment of the present application;

[0041] Figure 3 is a schematic diagram of a height filtration curve provided in an embodiment of the present application;

[0042] Figure 4 is a schematic diagram of a width filtering curve provided in an embodiment of the present application;

[0043] Figure 5 It is a schematic diagram of the operation flow of the rockfall detection method provided by the embodiment of the present application in an actual application scenario;

[0044] Figure 6 It is a structural framework diagram of a rockfall detection device provided in an embodiment of the present application;

[0045] Figure 7 It is a schematic diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures, technologies, etc. are proposed, so as to thoroughly understand the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third" etc. are only used to distinguish the description, and cannot be interpreted as indicating or suggesting relative importance.

[0047] At present, the prior art has proposed to apply deep learning networks to rockfall detection for unmanned vehicles, which can obtain relatively accurate rockfall detection results. However, the deep learning network is fuzzy in identifying the size of the rockfall, and cannot accurately identify and filter small-sized rockfalls near the image, which can cause unnecessary emergency braking and frequent detours for the unmanned vehicle, reducing the working efficiency of the unmanned vehicle. To address this problem, the embodiments of the present application provide a rockfall detection method, device, terminal device, and storage medium, which can more accurately filter small-sized rockfalls in images, thereby avoiding unnecessary emergency braking and frequent detours for the unmanned vehicle, and improving the working efficiency of the unmanned vehicle. For more specific technical implementation details of the embodiments of the present application, please refer to the method embodiments described below.

[0048] It should be understood that the execution subjects of the various method embodiments of the present application are various types of terminal devices or servers, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), large-screen TVs, etc. The embodiments of the present application do not impose any restrictions on the specific types of the terminal devices and servers.

[0049] See also Figure 1 , shows a rockfall detection method provided by an embodiment of the present application, comprising:

[0050] 101. Acquire a target image of the area to be tested;

[0051] First, obtain the target image of the area to be tested. The area to be tested is an area where rockfall exists and rockfall detection is required, such as a mining area or a mountainous area. In actual operation, a camera can be installed on an unmanned vehicle. When the unmanned vehicle is driving in the area to be tested, the camera collects an image of the road ahead as the target image.

[0052] 102. Perform rockfall detection processing on the target image to obtain each rockfall detection frame in the target image;

[0053] After the target image is acquired, rockfall detection is then performed on the target image. Various rockfall detection algorithms in the prior art may be used to obtain various rockfall detection frames in the target image.

[0054] In an implementation of the embodiment of the present application, performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image may include:

[0055] The target image is input into the trained neural network model for processing to obtain each rockfall detection frame in the target image.

[0056] In an embodiment of the present application, a deep learning neural network model for detecting rockfalls can be pre-trained, and after the target image is input into the neural network model for processing, each rockfall detection frame present in the target image can be output. The neural network model can be trained in the following manner:

[0057] (1) Acquire multiple consecutive frames of rockfall images, each of which is marked with a rockfall detection frame;

[0058] (2) performing a deduplication process on the rockfall detection frames of the continuous multiple frames of rockfall images;

[0059] (3) for each frame of the rockfall image after deduplication processing, the rockfall image is longitudinally divided into a left image and a right image; the left image and the middle image are fused to obtain a first sample image, and the right image and the middle image are fused to obtain a second sample image; wherein the middle image is an image area in the rockfall image that is obtained by extending the dividing line between the left image and the right image in the left and right directions by a specified length as a reference;

[0060] (4) The first sample image and the second sample image corresponding to each frame of the rockfall image are used as training sets to train the neural network model.

[0061] When training a neural network model, a large number of image samples are required as training sets. In actual operation, multiple frames of rockfall images can be continuously collected by the camera of the unmanned vehicle, and then the rockfall detection frame in each frame of the rockfall image can be marked manually or by other means. Since the rockfall images collected by the unmanned vehicle during driving may contain a large amount of repeated and invalid data (i.e., repeated rockfall detection frames), it is necessary to perform deduplication processing on the rockfall detection frames of these rockfall images to remove duplicate data. Finally, a large number of deduplication-processed rockfall images are used as training sets to train the neural network model.

[0062] In addition, since the data resolution of the collected rockfall image is high (for example, it can be 1920*1020), and the pixel size of the rockfall in the image may be very small (for example, 5*5), if the rockfall image is directly input into the neural network for training, the features of the rockfall are likely to be submerged by the image background, resulting in the model failing to learn. To solve this problem, after the rockfall image is deduplicated, an image cutting step can be added. Specifically, the rockfall image can be longitudinally divided into a left image and a right image. For example, assuming that the size of the rockfall image is 1920*1020, it can be evenly divided into a left image (960*1020) and a right image (960*1020). It should be noted that the average segmentation here is only one of the implementation methods, and in fact, unequal image segmentation can also be performed. In addition, there may also be a rockfall detection frame in the image segmentation part. In order to ensure that this part of the rockfall detection frame is not affected, a specified length can be extended to the left and right directions at the image segmentation line of the rockfall image to obtain an image area, which is called the intermediate image. For example, the horizontal length can be extended by 10% in both the left and right directions at the image segmentation line of the rockfall image, thereby obtaining a 384*1020 intermediate image. Next, the left image and the intermediate image are fused according to the pixel position to obtain the first sample image, and the right image and the intermediate image are fused according to the pixel position to obtain the second sample image. An operation of adjusting the coordinate axis position can be added here. For example, assuming that the coordinate of the lower left corner of the left image is (0, 0), its coordinate axis position is accurate, so there is no need to adjust the coordinate axis position; and the coordinate of the lower left corner of the right image is (961, 0), and the coordinate axis position needs to be adjusted so that the coordinate of the lower left corner is changed to (0, 0). The same image segmentation and fusion processing is performed for each frame of the rockfall image to obtain the first sample image and the second sample image corresponding to each frame of the image. Finally, these sample images can be used as training sets to train the neural network model.

[0063] Furthermore, assuming that the first image and the second image are any two adjacent frames in the continuous multiple frames of rockfall images, the deduplication processing of the rockfall detection frames on the continuous multiple frames of rockfall images may include:

[0064] (1) detecting the center point of each rockfall detection frame in the first image, and detecting the center point of each rockfall detection frame in the second image;

[0065] (2) Delete the rockfall detection frames whose center point in the second image is less than a first threshold value from the center point of any rockfall detection frame in the first image.

[0066] When performing data deduplication on the front and back frame images, the center points of each rockfall detection frame in the front and back frame images can be detected respectively, and then the center point distance between the positioning target (i.e., rockfall detection frame) in the front frame image (first image) and the back frame image (second image) is calculated. If the distance between a rockfall detection frame A in the back frame image and a rockfall detection frame B in the front frame image is less than a set threshold, it can be considered that rockfall detection frame A and rockfall detection frame B belong to the same target. At this time, it is determined that rockfall detection frame A is duplicate data, so rockfall detection frame A in the back frame image can be deleted. By analogy, all rockfall images are traversed and processed to complete the data deduplication operation.

[0067] like Figure 2 The figure shows the operation flow of deduplication of rockfall images. First, the deep learning neural network model is used to detect the original rockfall images. The area where the rockfall detection frame is located is located according to the detected rockfall targets. Next, the coordinates of the center point of the rockfall detection frame are calculated. Assume that the coordinates of the two diagonal corners of the rockfall detection frame are (x min ,y min , x max ,y max ), then the coordinates of its center point are x center =(x min +x max ) / 2,y center =(y min +y max ) / 2. After that, the center point distance between each target in the previous and next frames is calculated. Here, the L2 norm can be used for calculation. If the center point distance between the two rockfall detection frames in the previous and next frames is greater than the set threshold, it is represented as valid data; conversely, if the center point distance between the two rockfall detection frames in the previous and next frames is less than the set threshold, it indicates data duplication, and the rockfall detection frame in the next frame image can be deleted.

[0068] 103. Use the constructed size filtering curve to filter each rockfall detection frame in the target image.

[0069] After obtaining each rockfall detection frame in the target image, the constructed size filter curve can be used to filter each rockfall detection frame in the target image, wherein the size filter curve is used to represent the corresponding relationship between the size statistics of the rockfall detection frame and the vertical coordinate of the pixel point of the image.

[0070] In one implementation of the embodiment of the present application, the size filtering curve can be constructed in the following manner:

[0071] (1) Obtain sample images of completed rockfall detection;

[0072] (2) Divide the sample image horizontally into multiple regions;

[0073] (3) For each area, the size statistics of all rockfall detection frames in the area are detected respectively;

[0074] (4) The pixel ordinates of the sample image and the size statistics are used as elements of two coordinate axes, respectively, and the size filtering curve is constructed by curve fitting.

[0075] The sample image obtained here can be any image of each rockfall detection frame obtained by completing rockfall detection. In particular, the sample image can also be the target image obtained in step 101. First, the sample image is divided into multiple regions along the horizontal direction. For example, assuming that the target image is a 1920*1020 image, the image can be divided into 102 horizontal regions at intervals of 10 pixels according to the longitudinal coordinates (0-1020). It should be noted that the embodiment of the present application does not limit the specific method, position, size and number of dividing the horizontal regions.

[0076] For each area obtained by segmentation, the size statistics of all rockfall detection frames in the area can be detected respectively. The size statistics here may include but are not limited to: the mean height, maximum height, minimum height, mean width, maximum width and minimum width of the detection frame. Specifically, the center point coordinates of each rockfall detection frame in the target image can be calculated respectively, and then for a certain area S, the size statistics of all rockfall detection frames whose center point coordinates fall into the area S can be counted. Obviously, each area can calculate its own corresponding size statistics, and the size statistics of the rockfall detection frame obtained by statistics in the area at the far end of the image are smaller, and the size statistics of the rockfall detection frame obtained by statistics in the area at the near end of the image are larger.

[0077] Next, the pixel ordinates of the sample image and the size statistics are used as the elements of the two coordinate axes, and the corresponding size filtering curve can be constructed by curve fitting. For example, the X-axis can be set as the pixel ordinates of the sample image, and the Y-axis can be set as the size statistics. According to the size statistics corresponding to each area, each two-dimensional coordinate point can be plotted, and then these two-dimensional coordinate points are fitted into a curve by curve fitting (such as cubic polynomial fitting), so as to obtain the size filtering curve.

[0078] In actual operation, the size filter curve may include a height filter curve and a width filter curve. Figure 3 A schematic diagram of a height filtering curve provided in an embodiment of the present application, Figure 4 A schematic diagram of a width filtering curve provided in an embodiment of the present application. Figure 3In the figure, the X-axis represents the vertical coordinate of the pixel, which ranges from 0 to 1020, where 0 represents the farthest end of the image and 1020 represents the closest end of the image; the Y-axis represents the height of the detection box in cm. Figure 3 There are three curves in , where the top curve represents the maximum height, the middle curve represents the average height, and the bottom curve represents the minimum height. Figure 4 In the figure, the X-axis represents the vertical coordinate of the pixel point, and the Y-axis represents the width of the detection box. Figure 4 There are also three curves in the image. The top curve represents the maximum width, the middle curve represents the average width, and the bottom curve represents the minimum width. When using the size filter curve to filter the rockfall detection frame of the target image, you can select Figure 3 ( Figure 4 ), for example, the size mean, which is the middle curve, can usually be selected.

[0079] In an implementation of the embodiment of the present application, filtering each rockfall detection frame in the target image using the constructed size filtering curve may include:

[0080] For each rockfall detection frame in the target image, the corresponding target size statistic is obtained from the size filtering curve according to the ordinate of the center point of the rockfall detection frame; if the size of the rockfall detection frame is smaller than the target size statistic, the rockfall detection frame is filtered out.

[0081] During specific filtering, for each rockfall detection frame in the target image, the corresponding target size statistics can be first found from the size filtering curve according to the ordinate of the center point of the rockfall detection frame. If the size of the rockfall detection frame is smaller than the found target size statistics, the rockfall detection frame is considered as a small-sized rockfall and filtered out. For example, a rockfall detection frame is at the near end of the image, assuming that the ordinate of its center point is 900, and the size statistics corresponding to 900 found from the size filtering curve is 30cm. If the size (length and / or width) of the rockfall detection frame is less than 30cm, the rockfall detection frame is considered as a small-sized rockfall and filtered out. For another example, a rockfall detection frame is at the far end of the image, assuming that the ordinate of its center point is 50, and the size statistics corresponding to 50 found from the size filtering curve is 10cm. If the size (length and / or width) of the rockfall detection frame is less than 10cm, the rockfall detection frame is considered as a small-sized rockfall and filtered out. Obviously, by doing this, it is possible to find a suitable size filtering threshold from the size filtering curve according to the ordinate position of the rockfall detection frame, so as to more accurately filter small-sized rocks in the image.

[0082] In an implementation of the embodiment of the present application, after filtering each rockfall detection frame in the target image using the constructed size filtering curve, the following method may also be included:

[0083] If the number of the remaining rockfall detection frames in the target image is greater than the second threshold, the rockfall pile in the target image is detected by a cluster fitting method.

[0084] In some unmanned vehicle driving scenarios, in order to facilitate planning and decision-making, it is also possible to further detect the pile of fallen rocks in the target image, that is, multiple fallen rocks piled together. First, the number of rockfall detection frames remaining after filtering in the target image is counted. If the number exceeds a set threshold (for example, 10), it means that there is a high probability of a rockfall pile in the target image. At this time, the rockfall pile in the target image can be detected by the cluster fitting method. On the contrary, if the number of remaining rockfall detection frames does not exceed the set threshold, it means that there is basically no rockfall pile in the target image. At this time, the rockfall detection result (that is, the remaining rockfall detection frame) can be directly output.

[0085] Furthermore, the detecting and obtaining the rock pile in the target image by the cluster fitting method may include:

[0086] (1) Use a clustering algorithm to cluster the remaining rockfall detection frames in the target image to obtain clusters;

[0087] (2) Use an adaptive fitting algorithm to fit the boundaries of each cluster as the boundaries of each rock pile in the target image.

[0088] When detecting rock piles, firstly, various clustering algorithms can be used to cluster the remaining rock detection frames of the target image. For example, clustering algorithms such as k-means or DBSCAN can be used to cluster to obtain clusters. The number of clusters can represent the number of rock piles. Next, various existing adaptive fitting algorithms (such as logarithmic function fitting, multiple polynomial fitting, etc.) can be used to fit the boundaries of each cluster. The boundaries of these clusters can be regarded as the boundaries of each rock pile detected. Finally, the rock detection results and rock pile detection results are output to plan the driving path of the unmanned vehicle.

[0089] like Figure 5As shown, it is a schematic diagram of the operation flow of the rockfall detection method provided by the embodiment of the present application in the actual application scenario. First, data collection is performed, specifically, multiple frames of continuous rockfall images can be collected through a camera, and then these rockfall images are subjected to data deduplication processing; then, data segmentation and fusion are performed, that is, the rockfall image is segmented into a left image and a right image, and the intermediate image is fused to obtain a sample image; then, the coordinate axis position of the sample image is adjusted, and then a deep learning neural network is obtained based on the sample image training; next, the collected real-time image data is input into the neural network model for rockfall detection to obtain each rockfall detection frame; small-sized rocks are filtered out by linear regression of the detection frame, that is, the size filtering curve method described above; finally, the remaining rockfall detection frames after filtering can also be subjected to cluster fitting processing to detect rockfall piles.

[0090] In an embodiment of the present application, a target image of the area to be tested is first acquired, and rockfall detection processing is performed on the target image to obtain various rockfall detection frames; then, the constructed size filter curve is used to filter the various rockfall detection frames in the target image. Since the size filter curve can represent the correspondence between the size statistics of the rockfall detection frame and the ordinate of the pixel point of the image, when filtering the various rockfall detection frames in the target image according to the size filter curve, a suitable size filter threshold can be found from the size filter curve according to the ordinate position of the rockfall detection frame, so as to more accurately filter small-sized rocks in the image, thereby avoiding unnecessary emergency braking and frequent detours of the unmanned vehicle, and improving the working efficiency of the unmanned vehicle.

[0091] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0092] A rockfall detection method is mainly described above, and a rockfall detection device will be described below.

[0093] See also Figure 6 , an embodiment of a rockfall detection device in the embodiment of the present application includes:

[0094] The target image acquisition module 601 is used to acquire the target image of the area to be tested;

[0095] A rockfall detection module 602 is used to perform rockfall detection processing on the target image to obtain each rockfall detection frame in the target image;

[0096] The rockfall filtering module 603 is used to filter each rockfall detection frame in the target image using a constructed size filtering curve; wherein the size filtering curve is used to represent the correspondence between the size statistics of the rockfall detection frame and the vertical coordinates of the pixel points of the image.

[0097] In one implementation of the embodiment of the present application, the rockfall detection device may further include:

[0098] A sample image acquisition module is used to acquire sample images of completed rockfall detection;

[0099] A horizontal segmentation module, used for horizontally segmenting the sample image into multiple regions;

[0100] A size statistics module is used to detect the size statistics of all rockfall detection frames in each area.

[0101] The size filtering curve construction module is used to construct the size filtering curve by curve fitting using the vertical coordinates of the pixel points of the sample image and the size statistical value as elements of two coordinate axes.

[0102] In one implementation of the embodiment of the present application, the rockfall detection module may include:

[0103] A rockfall detection unit, used for inputting the target image into a trained neural network model for processing to obtain each rockfall detection frame in the target image;

[0104] A rockfall image acquisition unit, used to acquire a plurality of consecutive frames of rockfall images, each frame of the rockfall image being marked with a rockfall detection frame;

[0105] A data deduplication unit, used for performing a deduplication process on the rockfall detection frames of the continuous multiple frames of rockfall images;

[0106] An image segmentation and fusion unit is used to segment each frame of the rockfall image after deduplication processing into a left image and a right image; fuse the left image and the middle image to obtain a first sample image, and fuse the right image and the middle image to obtain a second sample image; wherein the middle image is an image area in the rockfall image that is extended to a specified length in both left and right directions with a segmentation line between the left image and the right image as a reference;

[0107] The model training unit is used to train the neural network model by using the first sample image and the second sample image corresponding to each frame of the rockfall image as training sets.

[0108] Furthermore, assuming that the first image and the second image are any two adjacent frames in the continuous multiple frames of rockfall images, the data deduplication unit may include:

[0109] a center point detection subunit, configured to detect the center point of each rockfall detection frame in the first image, and to detect the center point of each rockfall detection frame in the second image;

[0110] The data deduplication subunit is used to delete the rockfall detection frame whose center point in the second image is at a distance less than a first threshold from the center point of any rockfall detection frame in the first image.

[0111] In one implementation of the embodiment of the present application, the rockfall detection device may further include:

[0112] The rock pile detection module is used to detect the rock pile in the target image by a cluster fitting method if the number of rock pile detection frames remaining in the target image is greater than a second threshold.

[0113] Furthermore, the rock pile detection module may include:

[0114] A clustering processing unit, used for performing clustering processing on the remaining rockfall detection frames of the target image using a clustering algorithm to obtain clusters;

[0115] The fitting processing unit is used to use an adaptive fitting algorithm to fit the boundaries of each cluster as the boundaries of each rock pile in the target image.

[0116] In one implementation of the embodiment of the present application, the rockfall filtering module may include:

[0117] A rockfall filtering unit is used to obtain, for each rockfall detection frame in the target image, a corresponding target size statistic from the size filtering curve according to the vertical coordinate of the center point of the rockfall detection frame; if the size of the rockfall detection frame is smaller than the target size statistic, the rockfall detection frame is filtered out.

[0118] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the rockfall detection method described in any of the above embodiments is implemented.

[0119] An embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the rockfall detection method described in any of the above embodiments.

[0120] Figure 7 Schematic diagram of a terminal device provided by an embodiment of the present application. Figure 7 As shown, the terminal device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, the steps in the above-mentioned embodiments of the rockfall detection method are implemented, for example Figure 1 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 6 Functions of modules 601 to 603 are shown.

[0121] The computer program 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7.

[0122] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0123] The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store the computer program and other programs and data required by the terminal device. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0124] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0127] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0128] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. 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. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components displayed 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 embodiments of the present application.

[0130] 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.

[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0132] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A rockfall detection method, characterized in that: include: Acquire a target image of the area to be tested; Performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image; The constructed size filtering curve is used to filter each rockfall detection frame in the target image; wherein the size filtering curve is used to represent the corresponding relationship between the size statistics of the rockfall detection frame and the vertical coordinate of the pixel point of the image.

2. The rockfall detection method according to claim 1, characterized in that: The size filtering curve is constructed in the following way: Obtain sample images of completed rockfall detection; Dividing the sample image into multiple regions horizontally; For each area, the size statistics of all rockfall detection frames in the area are detected respectively; The size filtering curve is constructed by curve fitting using the pixel ordinates of the sample image and the size statistics as elements of two coordinate axes.

3. The rockfall detection method according to claim 1, characterized in that: The performing rockfall detection processing on the target image to obtain each rockfall detection frame in the target image includes: Inputting the target image into a trained neural network model for processing to obtain each rockfall detection frame in the target image; The neural network model is trained in the following way: Acquire a plurality of consecutive frames of rockfall images, each frame of which is marked with a rockfall detection frame; Deduplication processing of rockfall detection frames is performed on the continuous multiple frames of rockfall images; For each frame of the rockfall image after deduplication processing, the rockfall image is longitudinally divided into a left image and a right image; the left image and the middle image are fused to obtain a first sample image, and the right image and the middle image are fused to obtain a second sample image; wherein the middle image is an image area in the rockfall image obtained by extending the dividing line between the left image and the right image in the left and right directions by a specified length as a reference; The neural network model is trained by taking the first sample image and the second sample image corresponding to each frame of the rockfall image as training sets.

4. The rockfall detection method according to claim 3, characterized in that: The first image and the second image are any two consecutive adjacent images in the continuous multiple frames of rockfall images, and the deduplication processing of the rockfall detection frames of the continuous multiple frames of rockfall images includes: Detecting the center point of each rockfall detection frame in the first image, and detecting the center point of each rockfall detection frame in the second image; The rockfall detection frame whose center point in the second image is at a distance less than a first threshold from the center point of any rockfall detection frame in the first image is deleted.

5. The rockfall detection method according to claim 1, characterized in that: After filtering each rockfall detection frame in the target image using the constructed size filtering curve, the method further includes: If the number of the remaining rockfall detection frames in the target image is greater than a second threshold, the rockfall pile in the target image is detected by a cluster fitting method.

6. The rockfall detection method according to claim 5, characterized in that: The method of detecting and obtaining the rock pile in the target image by using a cluster fitting method includes: Using a clustering algorithm to perform clustering processing on the remaining rockfall detection frames of the target image to obtain clusters; The boundaries of each cluster are fitted using an adaptive fitting algorithm as the boundaries of each rock pile in the target image.

7. The rockfall detection method according to any one of claims 1 to 6, characterized in that: The step of filtering each rockfall detection frame in the target image using the constructed size filtering curve includes: For each rockfall detection frame in the target image, the corresponding target size statistic is obtained from the size filtering curve according to the vertical coordinate of the center point of the rockfall detection frame; if the size of the rockfall detection frame is smaller than the target size statistic, the rockfall detection frame is filtered out.

8. A rockfall detection device, characterized in that: include: A target image acquisition module is used to acquire a target image of the area to be tested; A rockfall detection module, used to perform rockfall detection processing on the target image to obtain each rockfall detection frame in the target image; The rockfall filtering module is used to filter each rockfall detection frame in the target image using a constructed size filtering curve; wherein the size filtering curve is used to represent the correspondence between the size statistics of the rockfall detection frame and the vertical coordinates of the pixel points of the image.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the rockfall detection method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the rockfall detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Image-based railway dangerous rockfall size judgment method

    CN111626169A

  • Image recognition method for railway slope rockfall invasion detection

    CN111626170A

  • Systems and methods for dynamic image processing

    WO2022072754A1