Bare soil detection method, device and electronic equipment

Through the combination of the spherical camera and the image segmentation model, efficient and accurate automated monitoring of the bare soil coverage on the construction site is achieved, solving the problems of low efficiency and high cost in the existing technology.

CN117576076BActive Publication Date: 2024-09-27HUZHOU YUFAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311714673.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-09-27
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

Existing bare soil detection methods have low efficiency, high cost and low degree of automation, making it difficult to accurately monitor the bare soil coverage of large-area construction sites.

Method used

A spherical camera is used for 360-degree rotation monitoring, and the image segmentation and training model are combined to correct the preliminary segmentation results. The region growing algorithm and confidence judgment processing are used to achieve accurate detection of bare soil areas.

Benefits of technology

It improves detection accuracy and speed, reduces costs, realizes fully automated monitoring of large-area construction sites, and improves the monitoring accuracy of bare soil coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117576076B
    Figure CN117576076B
Patent Text Reader

Abstract

The present application provides a bare soil detection method, device and electronic device. It includes: obtaining an image to be detected, the image to be detected includes a captured image of the area to be detected; performing preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, the preliminary image segmentation result includes a background area image, a bare soil area image and a felt cloth image; inputting the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, the corrected preliminary image segmentation result includes a bare soil detection result. Based on the method of the embodiment of the present disclosure, only fewer cameras are needed to monitor the entire construction site, and the overall detection accuracy can be improved, and then the bare soil coverage rate is calculated. The present invention can monitor large-area construction sites at a relatively low cost, and is also highly accurate, fast and fully automated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of artificial intelligence, Internet of Things, intelligent manufacturing and digital multimedia technology, and specifically to a bare soil detection method, device and electronic equipment. Background Art

[0002] In recent years, the country has set higher and higher requirements for the construction environment, and has formulated strict requirements for dust, noise, sewage treatment, and construction waste treatment. Among them, in terms of dust, bare soil at the construction site must be covered with felt cloth. If it is not covered or not completely covered, it will be considered a violation. Fine-grained building materials that are easy to fly at the construction site should be stored in a closed manner. Bare soil that has been piled up for more than 8 hours without being disturbed at the construction site should be covered, and piled soil that has been unused for more than three months should be greened, and abandoned soil should be removed in a timely manner.

[0003] The current common bare soil cover detection methods mainly include the following: 1. Manual inspection, which refers to personnel going to the site for inspection, or inspecting through monitoring to check whether there is a large area of ​​bare soil without coverage. This method is slow and inefficient; 2. Drone inspection, personnel use the images sent back by the drone to determine whether there is any uncovered area. This method has the problems of high cost and low degree of automation; 3. Surveillance camera + AI automatic identification of bare soil coverage, but this method can identify a small area each time and the identification accuracy is limited. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a bare soil detection method, which at least partially solves the problems existing in the prior art. Based on the method of the embodiments of the present disclosure, a spherical camera is used to monitor the construction site, and the pictures of the spherical camera rotated 360 degrees are processed. Only fewer cameras are needed to monitor the entire construction site, and the overall detection accuracy can be improved, and then the bare soil coverage rate is calculated. The present invention can monitor a large area of ​​construction sites at a relatively low cost, and is also highly accurate, fast, and fully automated.

[0005] On the one hand, the bare soil detection method provided in this embodiment includes: acquiring an image to be detected, wherein the image to be detected includes a captured image of the area to be detected; performing preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image, and a felt cloth image; inputting the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0006] Specifically, the preliminary image segmentation result is input into the trained segmentation result correction model to obtain the corrected preliminary image segmentation result, including: obtaining an untrusted image and a trusted image in the preliminary image segmentation result, wherein the untrusted image includes an image whose confidence level is lower than a preset confidence threshold; inputting the untrusted image into the trained segmentation result correction model to obtain a segmentation correction result of the untrusted image; and generating the corrected preliminary image segmentation result based on the segmentation correction result of the untrusted image and the trusted image.

[0007] Specifically, obtaining the untrusted image and the trusted image in the preliminary image segmentation result includes: based on a preset function, performing preliminary segmentation confidence feature judgment processing on the preliminary image segmentation result to obtain a confidence feature image; performing a binarization operation on the confidence feature image to obtain a binarized preliminary image segmentation result, wherein the binarized preliminary image segmentation result includes an untrusted area with a confidence lower than a preset binarization threshold and a trusted area with a confidence higher than the preset binarization threshold; and using a region growing algorithm on the trusted area to obtain an untrusted image and a trusted image.

[0008] Specifically, the trusted area is subjected to a region growing algorithm to obtain an untrusted image and a trusted image, and the method further includes: obtaining a circumscribed rectangle of the untrusted image, and calculating a size of the circumscribed rectangle, an aspect ratio, and a proportion of points in the rectangle whose values ​​are lower than a preset binarization threshold; retaining the untrusted image whose area is greater than a preset circumscribed rectangle area threshold, whose aspect ratio is within a preset aspect ratio range, and whose points in the rectangle whose values ​​are lower than the preset binarization threshold account for a proportion greater than a preset proportion, and setting the untrusted image that is not retained as a trusted image.

[0009] Specifically, before inputting the preliminary image segmentation result into the trained segmentation result correction model, the method also includes: obtaining a segmentation result correction image set, wherein the segmentation result correction image set includes background area training images, bare soil area training images, and felt area training images; training an untrained segmentation result correction model based on the background area training images, bare soil area training images, and felt area training images to obtain the trained segmentation result correction model.

[0010] Specifically, performing preliminary image segmentation on the image to be detected includes: inputting the image to be detected into a trained image segmentation network model; before inputting the image to be detected into the trained image segmentation network model, the method also includes: obtaining a set of images to be detected, the images to be detected including unsegmented images to be detected and segmented images to be detected; classifying the set of images to be detected into a training set of images to be detected, a verification set of images to be detected and a test set of images to be detected; training the image segmentation network model to be trained based on the training set of images to be detected, the verification set of images to be detected and the test set of images to be detected to obtain a trained image segmentation network model.

[0011] Specifically, obtaining the image to be detected includes: obtaining an initial image set, wherein the initial image set includes a set of acquired images of the area to be detected; and performing image stitching processing on the initial image set to obtain the image to be detected.

[0012] Specifically, after obtaining the corrected preliminary image segmentation result, it also includes: calculating the felt cloth coverage rate based on the total number of pixel points of the felt cloth image and the total number of bare soil pixel points in the corrected preliminary image segmentation result; if the felt cloth coverage rate is lower than a preset felt cloth coverage rate threshold, an alarm is prompted.

[0013] On the other hand, an embodiment of the present disclosure provides a bare soil detection device, which can implement the above bare soil detection method, and the device includes:

[0014] The image acquisition module to be detected is used to acquire the image to be detected, and the image to be detected includes the collected image of the area to be detected.

[0015] A preliminary image segmentation module is used to perform preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image and a felt cloth image;

[0016] The segmentation result correction module inputs the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0017] Another aspect of an embodiment of the present application provides a computer device, including: a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps of the bare soil detection method are implemented.

[0018] In another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the bare soil detection method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 This is a schematic diagram of the process of the bare soil detection method in the embodiment of the present application;

[0021] Figure 2 Schematic diagram of confidence judgment of preliminary image segmentation results;

[0022] Figure 3 It is a schematic diagram of the segmentation correction result of the preliminary image segmentation result;

[0023] Figure 4 Schematic diagram of untrusted image judgment for preliminary image segmentation results;

[0024] Figure 5 Keep the result diagram for the untrusted image;

[0025] Figure 6a This is a schematic diagram before image stitching;

[0026] Figure 6b This is a schematic diagram after image stitching;

[0027] Figure 7 It is a schematic diagram of a specific embodiment of the bare soil detection method in the embodiment of the present application.

[0028] Figure 8 A schematic diagram of the structure of a bare soil detection device provided in an embodiment of the present application;

[0029] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0031] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0032] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0033] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0034] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, one skilled in the art will appreciate that aspects may be practiced without these specific details.

[0035] first, Figure 1 This is a flow chart of the bare soil detection method in the embodiment of this application, please refer to Figure 1 , bare soil detection method:

[0036] S101, obtaining an image to be detected, wherein the image to be detected includes a captured image of a region to be detected.

[0037] It is easy to understand that before monitoring the bare soil coverage of the construction site, it is necessary to obtain an image to be detected, and the image to be detected is the current situation of the construction site. In a preferred embodiment, the construction site needs to include a background area, a bare soil area, and a felt cloth area.

[0038] In some embodiments, the image to be detected can be acquired by means of a camera, a video camera or aerial photography, and the area to be detected needs to be photographed with no blind spots, clarity and a large coverage area to obtain the image to be detected.

[0039] S102, performing preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image, and a felt cloth image.

[0040] In this embodiment, the image to be detected is firstly segmented preliminarily. It is easy to understand that the segmentation methods may include algorithms, AI, functions, manual classification methods, etc., and the image to be detected is roughly classified into types; the classification results may include background area images, bare soil area images, and felt cloth images.

[0041] S103, inputting the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0042] Since step S102 is to perform preliminary image segmentation on the image to be detected and obtain a preliminary image segmentation result, in order to improve the positioning accuracy of bare soil and felt cloth in the image, the preliminary image segmentation result is accurately classified again. In this embodiment, the trained segmentation result correction model is used for correction. It is easy to understand that the trained segmentation result correction model is trained in large quantities through uncorrected training sets and corrected validation sets, and the segmentation results that need to be corrected in the preliminary segmentation results can be corrected to obtain a segmentation result with higher positioning accuracy.

[0043] The segmentation result with higher positioning accuracy is used as the bare soil detection result.

[0044] In another embodiment, the preliminary image segmentation result is input into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, including: obtaining an untrusted image and a trusted image in the preliminary image segmentation result, wherein the untrusted image includes an image whose confidence level is lower than a preset confidence threshold; inputting the untrusted image into the trained segmentation result correction model to obtain a corrected segmentation result of the untrusted image; and generating the corrected preliminary image segmentation result based on the corrected segmentation result of the untrusted image and the trusted image.

[0045] It is easy to understand that in order to improve the accuracy and efficiency of the correction of the segmentation results, the preliminary image segmentation results can be first divided into a part with lower credibility and a part with higher credibility, that is, an untrusted image and a trusted image; the preliminary image segmentation results are processed by functions, and the confidence of each area is obtained, and then the confidence threshold is set to distinguish between a trusted image and a trusted image; then, by inputting the untrusted image into the segmentation result correction model, the untrusted image can be re-segmented and corrected to obtain the corrected segmentation result of the untrusted image, and then the corrected segmentation result of the untrusted image and the trusted image are used to modify the preliminary segmentation results to obtain the corrected preliminary image segmentation results. Figure 2 As shown, Figure 2 Schematic diagram of confidence judgment of preliminary image segmentation results. Figure 2 The darker area in the lower middle part is the area judged as bare soil with a confidence level higher than the preset confidence threshold, and the whiter area in the middle is the area with a confidence level lower than the preset confidence threshold. After operating the preliminary image segmentation result of size (512,512,3), the preliminary image segmentation result of size (512,512) and the schematic diagram of unconfident image judgment are obtained. Figure 3 As shown, Figure 3 This is a schematic diagram of the segmentation correction results of the preliminary image segmentation results.

[0046] In one of the embodiments, obtaining an unconfident image and a confident image in the preliminary image segmentation result includes: performing preliminary segmentation confidence feature judgment processing on the preliminary image segmentation result based on a preset function to obtain a confidence feature image; performing a binarization operation on the confidence feature image to obtain a binarized preliminary image segmentation result, wherein the binarized preliminary image segmentation result includes an unconfident area with a confidence lower than a preset binarization threshold and a confident area with a confidence higher than the preset binarization threshold; and using a region growing algorithm on the confident area to obtain an unconfident image and a confident image.

[0047] In this embodiment, by first performing a softmax function operation on the preliminary image segmentation result and then performing an argmax function operation, a size-corrected image with a confidence feature can be obtained. Then, the image with the confidence feature is binarized. In this embodiment, the point value with a confidence feature lower than 0.6 is classified as 1, and the point with a confidence feature higher than 0.6 is classified as 0, and a preliminary image after binarization can be obtained. Next, a Two-Pass region growing algorithm is used on the preliminary image after binarization to find the connected area of ​​all points with a value of 1, and the non-confident image portion can be obtained, and the rest is the confident image. Figure 4 As shown, Figure 4Schematic diagram of untrusted image judgment of preliminary image segmentation results. In this embodiment, the pixel value of the binary image is multiplied by 255. Figure 4 As shown in the figure, the white area is the area with a point value of 1, and the black area is the area with a point value of 0. The area with a point value of 1 is the area where the confidence of the segmentation network result is lower than 0.6, and the area with a point value of 0 is the area where the confidence of the segmentation network result is higher. The next step is to correct the results of the area with lower confidence and judge again whether the area is bare soil, felt cloth or background.

[0048] In another embodiment, the trusted area is subjected to a region growing algorithm to obtain an untrusted image and a trusted image, further comprising: obtaining a circumscribed rectangle of the untrusted image, calculating the size of the circumscribed rectangle, the aspect ratio, and the proportion of points in the rectangle whose values ​​are lower than the preset binarization threshold; retaining the untrusted image whose area is greater than the preset circumscribed rectangle area threshold, whose aspect ratio is within the preset aspect ratio range, and whose points in the rectangle whose values ​​are lower than the preset binarization threshold account for a proportion greater than a preset proportion, and setting the untrusted image that is not retained as a trusted image.

[0049] It is easy to understand that after adopting the region growing algorithm, it is also possible to remove areas with smaller areas, inappropriate aspect ratios, and lower non-confidence. In this embodiment, first find the circumscribed rectangles of all non-confident images, calculate the size of the circumscribed rectangle, the aspect ratio, and the proportion of points with a value of 1 in the rectangle, and then retain the non-confident images whose area is greater than the preset circumscribed rectangle area threshold, whose aspect ratio is within the preset aspect ratio range, and whose points with a value in the rectangle lower than the preset binarization threshold account for a proportion greater than the preset proportion. The preset circumscribed rectangle area threshold, aspect ratio, and the proportion of points with a value of 1 in the rectangle need to be modified according to the actual needs in different scenarios. Figure 5 As shown, Figure 5 Keep the resulting diagram for the unconfident image.

[0050] In one of the embodiments, before inputting the preliminary image segmentation result into the trained segmentation result correction model, the method also includes: obtaining a segmentation result correction image set, wherein the segmentation result correction image set includes background area training images, bare soil area training images, and felt area training images; training an untrained segmentation result correction model based on the background area training images, bare soil area training images, and felt area training images to obtain the trained segmentation result correction model.

[0051] In this embodiment, before correcting the segmentation result through the trained segmentation result correction model, it is necessary to train the segmentation result correction model. First, a training set needs to be established, that is, training images of the background area (labeled as 0), training images of the bare soil area (labeled as 1), and training images of the felt cloth area (labeled as 2) need to be obtained; then data enhancement and data pre-processing can be performed; and then the network backbone, loss and other structures are determined for parameter adjustment training, and a trained training segmentation result correction model can be obtained.

[0052] In another embodiment, performing preliminary image segmentation on the image to be detected includes: inputting the image to be detected into a trained image segmentation network model; before inputting the image to be detected into the trained image segmentation network model, the step also includes: obtaining a set of images to be detected, the images to be detected including unsegmented images to be detected and segmented images to be detected; classifying the set of images to be detected into a training set of images to be detected, a verification set of images to be detected and a test set of images to be detected; training the image segmentation network model to be trained based on the training set of images to be detected, the verification set of images to be detected and the test set of images to be detected to obtain a trained image segmentation network model.

[0053] In this embodiment, performing preliminary image segmentation on the image to be detected can be inputting the image to be detected into a trained image segmentation model to obtain a preliminary image segmentation result; the input process includes: configuring a deep learning image segmentation network, setting the backbone to segformer, then inputting an image of (1,3,512,512), and then setting the loss function to a cross entropy loss function, and then outputting a feature map of size (512,512,3), where 512 and 512 correspond to the input image size, and 3 corresponds to three categories (background, bare soil, and felt).

[0054] Also, before inputting into the trained image segmentation model, it is necessary to train the image segmentation model. In the present embodiment, it is necessary to collect a large number of training sets, that is, the image sets to be detected, including the unsegmented images to be detected, and the images to be detected that have been finely segmented by the algorithm and the bare soil area and the felt cloth area in the manually labeled images. Then, they are divided into a training set of images to be detected, a verification set of images to be detected, and a test set with detection questions. Based on this, the image segmentation network model is trained to obtain the trained image segmentation network model.

[0055] In one of the embodiments, acquiring the image to be detected includes: acquiring an initial image set, wherein the initial image set includes a set of acquired images of the area to be detected; and performing image stitching processing on the initial image set to obtain the image to be detected.

[0056] In this embodiment, considering the large construction site area and the monitoring cost, a spherical camera is used to monitor the construction site. The spherical camera is rotated 360 degrees to capture the image of the area to be detected as the initial image set; then the initial image set is stitched by the Stitcher_create function in the computer vision library OPENCV to obtain the image to be detected. The image stitching process is shown in Figure 6. Figure 6a and Figure 6b Schematic diagram of the image after stitching.

[0057] In another embodiment, after obtaining the corrected preliminary image segmentation result, the method further includes: calculating the felt coverage rate based on the total number of pixels of the felt image and the total number of pixels of bare soil in the corrected preliminary image segmentation result; and if the felt coverage rate is lower than a preset felt coverage rate threshold, an alarm is issued. The present invention also provides specific embodiments in actual operation for reference, such as Figure 7 shown. Figure 7 It is a schematic diagram of a specific embodiment of the bare soil detection method in the embodiment of the present application.

[0058] S701, place a spherical surveillance camera.

[0059] S702, capturing a plurality of initial image sets from multiple angles.

[0060] S703, using image stitching technology to stitch the above initial image set to obtain a stitched image a, which is the image to be detected.

[0061] S704, input the image to be detected into a semantic segmentation model S, that is, input it into a trained image segmentation model, and the segmentation categories include background, bare soil and felt cloth.

[0062] S705, obtaining a preliminary image segmentation result, and performing softmax and argmax operations to obtain a preliminary segmentation result with classification confidence features.

[0063] S706, binarization is performed on the preliminary segmentation result with classification confidence features to obtain a binarized image b, that is, a preliminary image after binarization.

[0064] S707, using a Two-Pass region growing algorithm on the initial image after binarization to find connected regions with all pixel values ​​of 1.

[0065] S708, retaining the connected area, where the area of ​​the circumscribed rectangle is greater than 400, the aspect ratio is in the range of [0.5, 1.5], and the proportion of pixels in the rectangle being 1 is greater than 80%.

[0066] S709: For the circumscribed graphics of the retained area, deduct the corresponding original image area, that is, the untrusted area.

[0067] S710, input the original image area into the bare soil classification model L, that is, the trained segmentation result correction model.

[0068] S7101, establish training set (bare soil, background, felt cloth); S7102, data enhancement and data pre-processing;

[0069] S7103, determine the network backbone, loss and other structures, and adjust parameters for training;

[0070] S7104, input the image of the untrusted area, give three category scores, the highest score is the category to which it belongs

[0071] S711, using the classification result of the region as the correct result, modifying the preliminary segmentation result.

[0072] S712, calculate the felt cloth coverage rate: felt cloth area / (felt cloth area+bare soil area).

[0073] S713: If the coverage rate is less than a preset value, an alarm is issued.

[0074] Figure 8 Please refer to the structural diagram of the bare soil detection device provided in the embodiment of the present application. Figure 8 , a bare soil detection device, the device comprising: an image acquisition module 810 to be detected, a preliminary image segmentation module 820, and a segmentation result correction module 830;

[0075] The image acquisition module 810 is used to perform preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image and a felt cloth image;

[0076] A preliminary image segmentation module 820 is used to perform preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image, and a felt cloth image;

[0077] The segmentation result correction module 830 is used to input the preliminary image segmentation result into the trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0078] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0079] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0080] Fig. 9 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Figure 7 The computer device includes: a memory 910 and a processor 920. The memory 910 stores a computer program that can be run on the processor 920. When the processor 920 executes the computer program, the steps of bare soil detection are implemented.

[0081] It should be noted that the computer device is the above-mentioned background computer device.

[0082] In another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the bare soil detection method are implemented.

[0083] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] In addition, each functional unit in each embodiment of the present invention 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 hardware plus software functional units.

[0086] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0087] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0088] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0089] Therefore, the embodiments of the present disclosure provide the following technical solutions:

[0090] 1. A bare soil detection method, comprising:

[0091] Acquire an image to be detected, wherein the image to be detected includes a captured image of a region to be detected;

[0092] Performing preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image, and a felt cloth image;

[0093] The preliminary image segmentation result is input into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0094] 2. In the bare soil detection method of 1, the preliminary image segmentation result is input into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result including:

[0095] Acquire an untrusted image and a trusted image in the preliminary image segmentation result, wherein the untrusted image includes an image whose confidence is lower than a preset confidence threshold;

[0096] Inputting the untrusted image into the trained segmentation result correction model to obtain an image segmentation result of the untrusted image;

[0097] The corrected preliminary image segmentation result is generated based on the image segmentation result of the untrusted image and the trusted image.

[0098] 3. In the bare soil detection method of 2, obtaining the untrusted image and the trusted image in the preliminary image segmentation result comprises:

[0099] Based on a preset function, performing preliminary segmentation confidence feature judgment processing on the preliminary image segmentation result to obtain a confidence feature image;

[0100] Performing a binarization operation on the confidence feature image to obtain a preliminary image segmentation result after binarization, wherein the preliminary image segmentation result after binarization includes a non-confident area whose confidence is lower than a preset binarization threshold and a confident area whose confidence is higher than the preset binarization threshold;

[0101] The confidence region is subjected to a region growing algorithm to obtain an unconfident image and a confidence image.

[0102] 4. In the bare soil detection method of 3, the confidence region is subjected to a region growing algorithm to obtain an unconfident image and a confidence image, and the method further comprises:

[0103] Obtaining a circumscribed rectangle of the untrusted image, and calculating the size, aspect ratio, and proportion of points in the rectangle whose values ​​are lower than a preset binarization threshold value;

[0104] The untrusted images whose area is greater than a preset circumscribed rectangle area threshold, whose aspect ratio is within a preset aspect ratio range, and whose points whose values ​​in the rectangle are lower than the preset binarization threshold account for a proportion greater than a preset proportion are retained, and the untrusted images that are not retained are set as trusted images.

[0105] 5. The bare soil detection method as in 2, further comprising: before inputting the preliminary image segmentation result into the trained segmentation result correction model:

[0106] Acquire a segmentation result correction image set, wherein the segmentation result correction image set includes a background area training image, a bare soil area training image, and a felt cloth area training image;

[0107] The untrained segmentation result correction model is trained based on the background area training image, the bare soil area training image, and the felt cloth area training image to obtain the trained segmentation result correction model.

[0108] 6. In the bare soil detection method of 1, performing preliminary image segmentation on the image to be detected comprises:

[0109] Inputting the image to be detected into a trained image segmentation network model;

[0110] Before inputting the image to be detected into the trained image segmentation network model, the method further includes:

[0111] Acquire a set of images to be detected, wherein the images to be detected include unsegmented images to be detected and segmented images to be detected;

[0112] Classifying the to-be-detected image set into a to-be-detected image training set, a to-be-detected image verification set, and a to-be-detected image test set;

[0113] The image segmentation network model to be trained is trained based on the image training set to be detected, the image verification set to be detected and the image test set to be detected to obtain a trained image segmentation network model.

[0114] 7. In the bare soil detection method of 1, obtaining the image to be detected includes:

[0115] Acquire an initial image set, wherein the initial image set includes a collection image set of the area to be detected;

[0116] Perform image stitching processing on the initial image set to obtain the image to be detected.

[0117] 8. The bare soil detection method of 1, after obtaining the corrected preliminary image segmentation result, further includes:

[0118] Calculating the felt coverage rate based on the total number of pixels of the felt image and the total number of pixels of bare soil in the corrected preliminary image segmentation result;

[0119] If the felt coverage is lower than a preset felt coverage threshold, an alarm is triggered.

[0120] 9. A bare soil detection device, which is applied to the bare soil detection method according to any one of items 1 to 8, and comprises:

[0121] The image acquisition module to be detected is used to acquire the image to be detected, and the image to be detected includes the collected image of the area to be detected.

[0122] A preliminary image segmentation module is used to perform preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image and a felt cloth image;

[0123] The segmentation result correction module is used to input the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

[0124] 10. A computer device, comprising: a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of any one of methods 1 to 8 are implemented.

[0125] 11. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of methods 1 to 8 are implemented.

[0126] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A bare soil detection method, characterized in that: include: Acquire an image to be detected, wherein the image to be detected includes a captured image of a region to be detected; Performing preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image, and a felt cloth image; Inputting the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result; The step of inputting the preliminary image segmentation result into the trained segmentation result correction model to obtain the corrected preliminary image segmentation result comprises: Acquire an untrusted image and a trusted image in the preliminary image segmentation result, wherein the untrusted image includes an image whose confidence is lower than a preset confidence threshold; Inputting the untrusted image into the trained segmentation result correction model to obtain an image segmentation result of the untrusted image; Based on the image segmentation result of the untrusted image and the trusted image, generating the corrected preliminary image segmentation result; The obtaining of the untrusted image and the trusted image in the preliminary image segmentation result comprises: Based on a preset function, performing preliminary segmentation confidence feature judgment processing on the preliminary image segmentation result to obtain a confidence feature image; Performing a binarization operation on the confidence feature image to obtain a preliminary image segmentation result after binarization, wherein the preliminary image segmentation result after binarization includes a non-confident area whose confidence is lower than a preset binarization threshold and a confident area whose confidence is higher than the preset binarization threshold; The confidence region is subjected to a region growing algorithm to obtain an unconfident image and a confidence image; The performing preliminary image segmentation on the image to be detected comprises: Inputting the image to be detected into a trained image segmentation network model; Before inputting the image to be detected into the trained image segmentation network model, the method further includes: Acquire a set of images to be detected, wherein the images to be detected include unsegmented images to be detected and segmented images to be detected; Classifying the to-be-detected image set into a to-be-detected image training set, a to-be-detected image verification set, and a to-be-detected image test set; The image segmentation network model to be trained is trained based on the training set of images to be detected, the verification set of images to be detected and the test set of images to be detected to obtain a trained image segmentation network model.

2. The bare soil detection method according to claim 1, wherein the step of using a region growing algorithm to obtain an untrusted image and a trusted image further comprises: Obtaining a circumscribed rectangle of the untrusted image, and calculating the size, aspect ratio, and proportion of points in the rectangle whose values ​​are lower than a preset binarization threshold value; The untrusted images whose areas are larger than the preset circumscribed rectangle area threshold, whose aspect ratios are within the preset aspect ratio range, and whose points whose values ​​in the rectangles are lower than the preset binarization threshold account for a proportion greater than a preset proportion are retained, and the untrusted images that are not retained are set as trusted images.

3. The bare soil detection method according to claim 1, before inputting the preliminary image segmentation result into the trained segmentation result correction model, further comprising: Acquire a segmentation result correction image set, wherein the segmentation result correction image set includes a background area training image, a bare soil area training image, and a felt cloth area training image; The untrained segmentation result correction model is trained based on the background area training image, the bare soil area training image, and the felt cloth area training image to obtain the trained segmentation result correction model.

4. The bare soil detection method according to claim 1, characterized in that: The acquiring of the image to be detected comprises: Acquire an initial image set, wherein the initial image set includes a collection image set of the area to be detected; Perform image stitching processing on the initial image set to obtain the image to be detected.

5. The bare soil detection method according to claim 1, characterized in that: After obtaining the corrected preliminary image segmentation result, the following steps are further included: Calculating the felt coverage rate based on the total number of pixels of the felt image and the total number of pixels of bare soil in the corrected preliminary image segmentation result; If the felt coverage is lower than a preset felt coverage threshold, an alarm is triggered.

6. A bare soil detection device, characterized in that: The device is applied to the bare soil detection method according to any one of claims 1 to 5, and the device comprises: The image acquisition module to be detected is used to acquire the image to be detected, and the image to be detected includes the collected image of the area to be detected. A preliminary image segmentation module, used to perform preliminary image segmentation on the image to be detected to obtain a preliminary image segmentation result, wherein the preliminary image segmentation result includes a background area image, a bare soil area image and a felt cloth image; The segmentation result correction module is used to input the preliminary image segmentation result into a trained segmentation result correction model to obtain a corrected preliminary image segmentation result, wherein the corrected preliminary image segmentation result includes a bare soil detection result.

7. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.