A method, system, device and medium for intelligent inspection of granary

Intelligent machines use lidar and image enhancement technology to conduct full-coverage inspections of grain silos, identify surface anomalies and generate safety risk values, solving the problems of low efficiency and high cost of existing inspection methods, and improving the safety and management efficiency of grain silos. .

CN118379640BActive Publication Date: 2024-09-20SHANDONG GUANGAN INTELLIGENT TECH CO LTD
View PDF 20 Cites 0 Cited by

Patent Information

Application Number
CN202410831497.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing granary inspection methods have low efficiency, limited coverage, and are prone to missed inspections. They also rely on manual labor or fixed mechanical equipment, have high maintenance costs, and are difficult to ensure the safety and management efficiency of granaries.

Method used

The intelligent machine automatic inspection method is adopted, using lidar to obtain granary point cloud data, and conducting full-coverage inspection through target detection and path planning. It combines image enhancement and sliding window technology to identify surface anomalies, generate safety risk values, and automatically optimize the maintenance sequence.

Benefits of technology

It achieves comprehensive and accurate identification of surface anomalies in the granary, improves inspection efficiency and stability, reduces strain on inspection resources and maintenance costs, and ensures the safety of the granary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_1
    Figure QLYQS_1
Patent Text Reader

Abstract

The present application relates to the technical field of grain silo inspection in a control or regulation system of non-electric variables, and specifically to a method, system, equipment, and medium for intelligent grain silo inspection. In order to solve the problems of low efficiency and poor stability of grain silo inspection in the prior art, and high cost caused by the use of a large number of fixed mechanical equipment, the present application first obtains a grain silo identification result based on lidar data, and performs path planning to obtain an inspection path. Then, in the process of inspection according to the inspection path, an initial image to be inspected with a comprehensive coverage range of each grain silo is obtained, and after image enhancement processing and grain silo surface abnormality recognition processing, grain silo surface abnormality data is obtained. Finally, the safety risk value of the safety degree of each grain silo is obtained, and different maintenance procedures are executed according to the size of the safety risk value and the risk threshold. The method is applied in the field of grain silo inspection, has high efficiency, high recognition accuracy, good stability, low cost, and can alleviate the problem of tight maintenance resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of granary inspection in a control or regulation system of non-electrical variables, and in particular to a granary intelligent inspection method, system, equipment and medium. Background Art

[0002] There are many granaries for storing grain in the granary management area. Affected by time, environment, building materials and human factors, the surface of the granary will be deformed (uneven walls) and damaged (wall peeling and wall cracks), affecting the stability of the granary itself and the safety of the grain in the granary. Therefore, it is necessary to conduct continuous inspections of the granaries in the granary management area and repair them in time when abnormalities are found in the granaries to ensure grain quality, improve management efficiency, save costs and ensure safety.

[0003] The current methods of grain silo inspection include: (1) manual inspection, which relies on staff to regularly enter the grain silo for visual inspection and manual recording. However, manual inspection is time-consuming and has limited coverage, making it difficult to achieve comprehensive and timely inspections. It is inefficient, and manual inspections rely too much on personal experience, which can easily lead to missed inspections or misjudgments, and poor inspection stability. (2) fixed mechanical equipment inspection, such as the use of special equipment, such as installing several cameras near each grain silo for monitoring. Once one of these devices has a problem, it will lead to incomplete inspection coverage and missed inspections. In addition, these devices require regular maintenance and calibration, which increases operating costs. Summary of the invention

[0004] The purpose of the present invention is to provide a granary management area with a method, system, equipment and medium for intelligent inspection of granaries, which utilizes intelligent machines for automatic inspection, has full inspection coverage, accurately identifies abnormalities on the surface of granaries, has good identification stability, and can both ensure the safety of granaries and alleviate the problem of tight maintenance resources.

[0005] The technical solution of the present invention is as follows:

[0006] A method for intelligent inspection of granaries, comprising the following operations:

[0007] S1. Obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain the point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain the granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain the inspection path;

[0008] S2. Perform inspections along the inspection path. During the inspection process, obtain images of a circle outside each granary in turn, splice the images of a circle outside each granary, and obtain the initial image to be inspected of each granary; perform image enhancement processing on the initial image to be inspected of each granary to obtain the enhanced image to be inspected of each granary; perform granary surface anomaly recognition processing on the enhanced image to be inspected of each granary to obtain the surface anomaly data of each granary;

[0009] The specific operations of granary surface abnormality identification and processing are as follows:

[0010] Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and determine whether the sliding window image at the current position has an abnormality based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; if there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, execute step 2;

[0011] Step 2: Based on the pixel change information, identify the abnormality type in the sliding window image at the current position and obtain a preliminary abnormality type; if the preliminary abnormality type is surface deformation, use the surface deformation as the surface abnormality type of the sliding window image at the current position; if the preliminary abnormality type is surface damage, execute step 3;

[0012] Step 3: Based on the pixel distribution information, obtain the subdivision category of the surface damage, and use the subdivision category as the surface abnormality category of the sliding window image at the current position;

[0013] In the current enhanced image to be inspected, all the sliding window images at all positions execute step 1, step 2 and step 3 to obtain the surface anomaly type information of the current granary; the surface anomaly type information of the current granary and the number of each surface anomaly type form the surface anomaly data of the current granary;

[0014] S3. Obtain the safety risk value of each granary based on the surface abnormality data, granary location and granary usage time of each granary;

[0015] The granaries with safety risk values ​​greater than the risk threshold will be inspected and repaired in order of safety risk values ​​from large to small;

[0016] The granaries whose safety risk values ​​are not greater than the risk threshold are regarded as granaries to be inspected. The deferral time of the granaries to be inspected is obtained based on the surface abnormality data of the granaries to be inspected and the matching with the historical deferral case database of the granaries. When the deferral time expires, the corresponding granaries to be inspected are inspected.

[0017] The operations for obtaining the preliminary abnormality type in step 2 are specifically as follows: grayscale processing is performed on the sliding window image at the current position and the standard image of the corresponding granary part respectively to obtain the sliding window grayscale image at the current position and the standard grayscale image of the granary part; the grayscale difference between the sliding window grayscale image at the current position and the standard grayscale image of the granary part at the corresponding position is obtained to obtain a grayscale difference image; it is determined whether the grayscale difference mean of the grayscale difference image is less than the first mean threshold; if it is less than the first mean threshold, the initial abnormality type of the sliding window image at the current position is surface deformation; if it is not less than the first mean threshold, the initial abnormality type of the sliding window image at the current position is surface damage.

[0018] The specific operation of obtaining the subdivision type of surface damage in step three is as follows: grayscale processing and denoising processing are performed on the sliding window image at the current position to obtain the sliding window denoised image at the current position; pixels whose grayscale values ​​in the sliding window denoised image at the current position are greater than the grayscale threshold are regarded as abnormal pixels; the maximum distance between abnormal pixels is obtained as the damage height; in the vertical direction of the line connecting the two abnormal pixels corresponding to the maximum distance, the farthest distance between the abnormal pixels is obtained as the damage width; it is determined whether the ratio of the damage height to the damage width is greater than the aspect ratio threshold; if it is greater than the aspect ratio threshold, the subdivision type of surface damage is wall cracks; if it is not greater than the aspect ratio threshold, the subdivision type of surface damage is wall peeling.

[0019] The path planning operation in S1 is specifically as follows: projecting the point cloud map of the granary management area into a two-dimensional plane map, and performing grid division to obtain a granary grid map consisting of several grid areas, each of which contains point cloud projection information; marking the granary location in the granary grid map based on the corresponding position information of all granary recognition results, and marking the granary location from small to large according to the distance between the granary and the inspection starting point, to obtain a granary sequence grid map consisting of several grid areas, each of which contains point cloud projection information and granary sequence number information; performing partial path planning in sequence according to the order of the granary location numbers from small to large in the granary sequence grid map, to obtain several partial paths; connecting all partial paths to obtain an inspection path.

[0020] The specific operation of partial path planning is as follows: obtain several candidate paths from the starting point to the target point in the granary sequence grid map, which are connected by grids without point cloud projection information and without granary sequence information, and use the candidate path corresponding to the minimum length as the partial path from the starting point to the target point; the starting point is the inspection starting point or the granary location point, and the target point is the granary location point.

[0021] The operations of the image enhancement processing in S2 are specifically as follows: obtaining the image color temperature difference between the initial image to be tested and the standard image to be tested, and based on the image color temperature difference, obtaining the gain values ​​of different color channels of each pixel in the initial image to be tested; based on the gain values ​​of different color channels of each pixel, obtaining the color temperature balance coefficient of each pixel; taking the ratio of the pixel value of each pixel in the initial image to be tested to the respective color temperature balance coefficients as the pixel enhancement value of each pixel; based on the pixel enhancement value of each pixel, performing pixel update processing on each pixel in the initial image to be tested to obtain an enhanced image to be tested.

[0022] The security risk value in S3 is obtained by the following formula:

[0023] ,

[0024] F is the current safety risk value of the granary, W p is the location weight of the current granary location, w i It is the first in the current granary i The weights of the surface anomaly types, p i It is the first in the current granary i The location weight mean of all locations corresponding to the surface anomaly type, n i It is the first in the current granary i The number of surface anomaly types, I is the total number of surface anomalies in the current granary, T is the current granary usage time, α It is the coefficient of granary usage time.

[0025] A system for implementing an intelligent inspection method for a granary, comprising:

[0026] The inspection path generation module is used to obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain the point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain the granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain the inspection path;

[0027] The granary surface abnormality data generation module is used to perform inspections according to the inspection path. During the inspection process, the images of the outer circle of each granary are obtained in turn, and the images of the outer circle of each granary are spliced ​​to obtain the initial image to be inspected of each granary; the initial image to be inspected of each granary is subjected to image enhancement processing to obtain the enhanced image to be inspected of each granary; the enhanced image to be inspected of each granary is subjected to granary surface abnormality recognition processing to obtain the surface abnormality data of each granary; the specific operations of granary surface abnormality recognition processing are as follows:

[0028] Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and judge whether the sliding window image at the current position has an abnormality based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; if there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, execute step 2; Step 2: Based on the pixel change information, identify the type of abnormality in the sliding window image at the current position to obtain a preliminary abnormality type; if the preliminary abnormality type is surface deformation, use the surface deformation as the surface abnormality type of the sliding window image at the current position; if the preliminary abnormality type is surface damage, execute step 3; Step 3: Based on the pixel distribution information, obtain the subdivision type of surface damage, and use the subdivision type as the surface abnormality type of the sliding window image at the current position; In the current enhanced image to be inspected, all the sliding window images at all positions execute steps 1, 2 and 3 to obtain the surface abnormality type information of the current granary; the surface abnormality type information of the current granary and the number of each surface abnormality type form the surface abnormality data of the current granary;

[0029] The safety risk value generation and maintenance module is used to obtain the safety risk value of each granary based on the surface abnormality data, granary location and granary usage time of each granary; granaries with safety risk values ​​greater than the risk threshold are inspected in descending order of safety risk values; granaries with safety risk values ​​not greater than the risk threshold are regarded as granaries to be inspected; the deferral time of the granary to be inspected is obtained based on the matching of the surface abnormality data of the granary to be inspected with the historical deferral case database of the granary; when the deferral time expires, the corresponding granary to be inspected is inspected.

[0030] A granary intelligent inspection device comprises a processor and a memory, wherein the processor implements the above-mentioned granary intelligent inspection method when executing a computer program stored in the memory.

[0031] A computer-readable storage medium is used to store a computer program, wherein the computer program implements the above-mentioned intelligent granary inspection method when executed by a processor.

[0032] The beneficial effects of the present invention are:

[0033] The present invention provides an intelligent inspection method for granaries. First, target detection processing is performed on a point cloud map of a granary management area obtained based on laser radar data to obtain a granary recognition result. Path planning is performed based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results to obtain an inspection path that is convenient for improving inspection efficiency. Then, in the process of inspection according to the inspection path, an initial image to be inspected with a comprehensive coverage range of each granary is obtained to prevent missed inspections. The quality of the enhanced image to be inspected of each granary is improved through image enhancement processing. The enhanced image to be inspected of each granary is respectively subjected to granary surface abnormality recognition processing to identify surface deformation and surface damage, and further identify the details of surface damage. By classifying the types and combining them with the corresponding positions, comprehensive and accurate surface anomaly data can be obtained; finally, according to the types of surface anomalies, corresponding positions and quantities in the surface anomaly data of the granary, as well as the granary position and the length of time the granary is in use, a safety risk value that can accurately reflect the safety level of each granary is obtained, and different maintenance procedures are performed according to the size of the safety risk value and the risk threshold, so as to alleviate the problem of tight maintenance resources on the basis of ensuring the safety of the granary; this method has full inspection coverage, and can automatically perform inspections and identify surface anomalies of granaries, and give a maintenance order, with high efficiency, high recognition accuracy, and good stability, which can alleviate the problem of tight maintenance resources, and uses a small amount of fixed mechanical equipment and has low maintenance costs. DETAILED DESCRIPTION

[0034] This embodiment provides a method for intelligent inspection of a granary, including the following operations:

[0035] S1. Obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain the point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain the granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain the inspection path;

[0036] S2. Perform inspections along the inspection path. During the inspection process, obtain images of a circle outside each granary in turn, splice the images of a circle outside each granary, and obtain the initial image to be inspected of each granary; perform image enhancement processing on the initial image to be inspected of each granary to obtain the enhanced image to be inspected of each granary; perform granary surface anomaly recognition processing on the enhanced image to be inspected of each granary to obtain the surface anomaly data of each granary;

[0037] The specific operations of granary surface abnormality identification and processing are as follows:

[0038] Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and determine whether the sliding window image at the current position has an abnormality based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; if there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, execute step 2;

[0039] Step 2: Based on the pixel change information, identify the abnormality type in the sliding window image at the current position and obtain a preliminary abnormality type; if the preliminary abnormality type is surface deformation, use the surface deformation as the surface abnormality type of the sliding window image at the current position; if the preliminary abnormality type is surface damage, execute step 3;

[0040] Step 3: Based on the pixel distribution information, the subdivision category of the surface damage is obtained, and the subdivision category is used as the surface abnormality category of the sliding window image at the current position;

[0041] In the current enhanced image to be inspected, all the sliding window images at all positions execute step 1, step 2 and step 3 to obtain the surface anomaly type information of the current granary; the surface anomaly type information of the current granary and the number of each surface anomaly type form the surface anomaly data of the current granary;

[0042] S3. Obtain the safety risk value of each granary based on the surface abnormality data, granary location and granary usage time of each granary;

[0043] The granaries with safety risk values ​​greater than the risk threshold will be inspected and repaired in order of safety risk values ​​from large to small;

[0044] The granaries whose safety risk values ​​are not greater than the risk threshold are regarded as granaries to be inspected. The deferral time of the granaries to be inspected is obtained based on the surface abnormality data of the granaries to be inspected and the matching with the historical deferral case database of the granaries. When the deferral time expires, the corresponding granaries to be inspected are inspected.

[0045] S1. Obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain the point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain the granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain the inspection path.

[0046] The point cloud map of the granary management area obtained based on the lidar data is processed for target detection, the granaries are identified, and the granary recognition results are obtained. Path planning is performed based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results to obtain an inspection path that is convenient for improving inspection efficiency.

[0047] First, obtain the laser radar data in the granary management area. Specifically, use a robot equipped with a laser radar to drive in the granary management area to obtain real-time radar reflection data at each location in the granary management area. The radar reflection data can reflect the distance between the robot and the object. After driving through the entire granary management area, obtain the laser radar data that can reflect the location distribution information of the objects in the granary management area.

[0048] Then, the laser radar data is converted into point cloud data to obtain a point cloud map of the granary management area. Specifically, the laser radar data of polar coordinate data (angle, distance) is converted into three-dimensional points in a Cartesian coordinate system and then converted into a 3D point cloud to obtain a point cloud map of the granary management area.

[0049] Next, the point cloud map of the granary management area is processed by target detection, and the granary is identified in the granary management area to obtain the granary identification result, which is convenient for the subsequent acquisition of the accurate granary location for inspection route planning.

[0050] The specific operation of target detection processing is to perform BEV encoding on the point cloud map of the granary management area to obtain a two-dimensional BEV feature map; perform edge enhancement processing on the two-dimensional BEV feature map to obtain an enhanced feature map; use the real frame corresponding to the minimum distance between the center point and the center point of each preset detection frame on the enhanced feature map as the target frame corresponding to each preset detection frame; use the classification label of the target frame corresponding to each preset detection frame as the recognition result of each preset detection frame; extract the recognition result of the granary from the recognition results of all preset detection frames to obtain the granary recognition result. The real frame is obtained by training the neural network to process the standard BEV feature map.

[0051] The edge enhancement processing operation is specifically as follows: perform Gaussian blur processing on the BEV feature map to obtain a smooth image; obtain the difference between the BEV feature map and the smooth image to obtain a high-frequency detail image; and superimpose the high-frequency detail image and the BEV feature map to obtain an enhanced feature map.

[0052] Finally, based on the point cloud map of the granary management area and the corresponding location information of all granary identification results, path planning is performed to obtain the inspection path.

[0053] Among them, the path planning operation is specifically as follows: project the point cloud map of the granary management area into a two-dimensional plane map, and divide it into grids to obtain a granary grid map consisting of several grid areas, each grid area contains point cloud projection information (that is, the grid area contains point cloud projection information or does not contain point cloud projection information); based on the corresponding position information of all granary recognition results, mark the granary location in the granary grid map, and according to the distance between the granary and the inspection starting point, the granary location is serialized from small to large (the closer to the inspection starting point, the smaller the serial number value), to obtain a granary serialized grid map consisting of several grid areas, each grid area contains point cloud projection information and granary serial number information; according to the order of the granary location serial numbers from small to large in the granary serialized grid map, partial path planning is carried out in sequence to obtain several partial paths; all partial paths are connected to obtain the inspection path.

[0054] The specific operation of partial path planning is as follows: obtain several candidate paths from the starting point to the target point in the granary sequence grid map, which are connected by grids without point cloud projection information and without granary sequence information, and use the candidate path corresponding to the minimum length as the partial path from the starting point to the target point; the starting point is the inspection starting point or the granary location point, and the target point is the granary location point.

[0055] S2. Carry out inspections along the inspection route. During the inspection process, obtain images of a circle around the outside of each granary in turn, splice the images of a circle around the outside of each granary to obtain the initial image to be inspected of each granary; perform image enhancement processing on the initial image to be inspected of each granary to obtain the enhanced image to be inspected of each granary; perform granary surface anomaly recognition processing on the enhanced image to be inspected of each granary to obtain the surface anomaly data of each granary.

[0056] During the inspection process according to the inspection route, an initial image of each granary covering the entire area is obtained to prevent missed inspections. The quality of the enhanced image of each granary to be inspected is improved through image enhancement processing, and the enhanced image of each granary to be inspected is processed for surface abnormality recognition to identify surface deformation and surface damage, as well as further identify the subdivided types of surface damage, and combined with the corresponding positions, obtain comprehensive and accurate surface abnormality data.

[0057] First, the inspection is carried out along the inspection route. During the inspection, images of a circle around the outside of each granary are obtained in turn, and the images of a circle around the outside of each granary are stitched together to obtain the initial image to be inspected that covers the entire area of ​​each granary to prevent missed inspections.

[0058] Then, due to lighting reasons, the quality of the obtained image may be poor, or the quality difference between images may be large, which is not conducive to the stability of subsequent abnormality identification processing. To solve this technical problem, this embodiment performs image enhancement processing on the initial image to be inspected of each granary to obtain an enhanced image to be inspected of each granary.

[0059] The operations of image enhancement processing are specifically as follows: obtaining the image color temperature difference between the initial image to be tested and the standard image to be tested, and based on the image color temperature difference, obtaining the gain values ​​of different color channels of each pixel in the initial image to be tested; based on the gain values ​​of different color channels of each pixel, obtaining the color temperature balance coefficient of each pixel; taking the ratio of the pixel value of each pixel in the initial image to be tested to the respective color temperature balance coefficients as the pixel enhancement value of each pixel; based on the pixel enhancement value of each pixel, performing pixel update processing on each pixel in the initial image to be tested to obtain an enhanced image to be tested.

[0060] In addition, the image enhancement processing of the initial image to be inspected can be performed after the initial image to be inspected of the current granary is obtained, or can be performed after the initial images to be inspected of all granaries are obtained.

[0061] Finally, the enhanced image to be inspected of each granary is processed by granary surface anomaly recognition to obtain the surface anomaly data of each granary.

[0062] The specific operations for identifying and processing abnormalities on the surface of a granary are as follows.

[0063] Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and determine whether there is an abnormality in the sliding window image at the current position based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; if there is no abnormality, perform recognition processing on the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, execute step 2.

[0064] Specifically, the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part is obtained, and it is determined whether the structural similarity is less than the structural similarity threshold; if it is not less than, there is no abnormality, and the recognition processing of the sliding window image at the next position in the current enhanced image to be inspected is performed; if it is less than, there is an abnormality, and step two is executed.

[0065] The structural similarity is based on the pixel standard deviation of the sliding window image at the current position and the pixel standard deviation of the standard image at the corresponding granary position. The structural similarity can be obtained by the following formula: S=(2σ i s j +b) / (s i 2 +sj 2 + b) , S is the structural similarity, s i is the pixel standard deviation of the sliding window image at the current position, s j is the pixel standard deviation of the standard image of the granary area, b is a constant.

[0066] Step 2: Based on the pixel change information, identify the type of anomaly in the sliding window image at the current position and obtain a preliminary anomaly type; if the preliminary anomaly type is surface deformation, use the surface deformation as the surface anomaly type of the sliding window image at the current position; if the preliminary anomaly type is surface damage, execute step 3.

[0067] The operation of obtaining the preliminary abnormality type can be: grayscale processing the sliding window image at the current position and the standard image of the corresponding granary part respectively to obtain the sliding window grayscale image at the current position and the standard grayscale image of the granary part; obtaining the grayscale difference between the sliding window grayscale image at the current position and the standard grayscale image of the granary part at the corresponding position to obtain a grayscale difference image that can reflect the pixel value change of the abnormal area on the granary surface; judging whether the grayscale difference mean of the grayscale difference image is less than the first mean threshold; if it is less than the first mean threshold, it proves that the sliding window image at the current position exhibits reflective characteristics, and its pixels are not much different from normal pixels, and belong to surface depressions or surface protrusions with insignificant pixel value changes, then the initial abnormality type of the sliding window image at the current position is surface deformation; if it is not less than the first mean threshold, it proves that the sliding window image at the current position exhibits light absorption characteristics (wall cracks absorb light) or the internal structure of the wall is exposed, and the pixel value changes are relatively obvious, which may be wall cracks or wall peeling, then the initial abnormality type of the sliding window image at the current position is surface damage.

[0068] The operation for obtaining the preliminary abnormality type can also be: grayscale processing the sliding window image at the current position to obtain the sliding window grayscale map at the current position; according to the preset gradient calculation direction, the grayscale value difference between the previous position point and the current position point in the sliding window grayscale map at the current position is used as the pixel change value of the current position point; the pixel change values ​​of all pixels form the current pixel change map; if the mean of the pixel change values ​​in the current pixel change map does not exceed the second mean threshold, the initial abnormality type of the sliding window image at the current position is surface deformation; if the mean of the pixel change values ​​in the current pixel change map exceeds the second mean threshold, the initial abnormality type of the sliding window image at the current position is surface damage.

[0069] Step 3: Based on the pixel distribution information, obtain the subdivision category of surface damage, and use the subdivision category as the surface anomaly category of the sliding window image at the current position.

[0070] The specific operation of obtaining the subdivision type of surface damage is as follows: grayscale processing and denoising processing are performed on the sliding window image at the current position to obtain the sliding window denoised image at the current position; pixels whose grayscale values ​​in the sliding window denoised image are greater than the grayscale threshold are regarded as abnormal pixels; the maximum distance between abnormal pixels is obtained as the damage height; in the vertical direction of the line connecting the two abnormal pixels corresponding to the maximum distance, the farthest distance between the abnormal pixels is obtained as the damage width; it is determined whether the ratio of the damage height to the damage width is greater than the aspect ratio threshold; if it is greater than the aspect ratio threshold, the subdivision type of surface damage is a thin and long wall crack; if it is not greater than the aspect ratio threshold, the subdivision type of surface damage is flaky wall peeling.

[0071] In the current enhanced image to be inspected, all sliding window images at all positions execute steps one, two and three to obtain the surface anomaly type information of the current granary (including the surface anomaly type and the corresponding position); the surface anomaly type information of the current granary and the number of each surface anomaly type form the surface anomaly data of the current granary.

[0072] S3. Based on the surface abnormality data, location and usage time of each granary, obtain the safety risk value of each granary; inspect and repair the granaries in order of safety risk values ​​from large to small.

[0073] Based on the surface anomaly types, corresponding positions and quantities in the surface anomaly data of the granary, as well as the granary location and the length of time the granary has been used, a safety risk value that can accurately reflect the safety level of each granary is obtained; then, based on the size of the safety risk value and the risk threshold, different maintenance procedures are performed to alleviate the problem of tight maintenance resources while ensuring the safety of the granary.

[0074] First, the safety risk value of each granary can be obtained by the following formula:

[0075] ,

[0076] F is the current safety risk value of the granary, W p is the location weight of the current granary location (relative to the importance of the entire granary management area), w i It is the first in the current granary i The weights of the surface anomaly types, p i It is the first in the current granary i The location weight mean of all locations corresponding to the surface anomaly type, n i It is the first in the current granary iThe number of surface anomaly types, in units of pieces, I is the total number of surface anomalies in the current granary, T is the current granary usage time, in years, α It is the coefficient of granary usage time.

[0077] Then, determine the size of each granary's safety risk value and risk threshold.

[0078] If the safety risk value is greater than the risk threshold, it proves that the granary is relatively dangerous at this time. Therefore, the granaries with safety risk values ​​greater than the risk threshold will be inspected and repaired in order from large to small safety risk values.

[0079] If the safety risk value is not greater than the risk threshold, it proves that the granary is less dangerous at this time. In order to alleviate resource tension, the granary with a safety risk value not greater than the risk threshold will be used as a granary to be inspected. The deferral time of the granary to be inspected is obtained based on the surface abnormality data of the granary to be inspected and the matching with the historical deferral case database of the granary. When the deferral time expires, the corresponding granary to be inspected will be inspected.

[0080] The specific operation of obtaining the deferred repair time of the granary to be repaired is as follows: the actual deferred repair time corresponding to the granary historical deferred repair case in the granary historical deferred repair case database whose difference with the weighted sum of the surface anomaly types (the sum of the products of different surface anomaly types and the corresponding numbers and the corresponding weights) of the current granary to be repaired is less than the difference threshold is used as the deferred repair time of the current granary to be repaired. If there is more than one granary historical deferred repair case with a difference less than the difference threshold, the actual deferred repair time corresponding to the granary historical deferred repair case with the longest actual deferred repair time is used as the deferred repair time of the current granary to be repaired.

[0081] This embodiment also provides a system for implementing a method for intelligent inspection of a granary, including:

[0082] The inspection path generation module is used to obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain the point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain the granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain the inspection path;

[0083] The granary surface abnormality data generation module is used to perform inspections according to the inspection path. During the inspection process, the images of the outer circle of each granary are obtained in turn, and the images of the outer circle of each granary are spliced ​​to obtain the initial image to be inspected of each granary; the initial image to be inspected of each granary is subjected to image enhancement processing to obtain the enhanced image to be inspected of each granary; the enhanced image to be inspected of each granary is subjected to granary surface abnormality recognition processing to obtain the surface abnormality data of each granary; the specific operations of granary surface abnormality recognition processing are as follows:

[0084] Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and judge whether the sliding window image at the current position has an abnormality based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; if there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, execute step 2; Step 2: Based on the pixel change information, identify the type of abnormality in the sliding window image at the current position to obtain a preliminary abnormality type; if the preliminary abnormality type is surface deformation, use the surface deformation as the surface abnormality type of the sliding window image at the current position; if the preliminary abnormality type is surface damage, execute step 3; Step 3: Based on the pixel distribution information, obtain the subdivision type of surface damage, and use the subdivision type as the surface abnormality type of the sliding window image at the current position; In the current enhanced image to be inspected, all the sliding window images at all positions execute steps 1, 2 and 3 to obtain the surface abnormality type information of the current granary; The surface abnormality type information of the current granary and the number of each surface abnormality type form the surface abnormality data of the current granary;

[0085] The safety risk value generation and maintenance module is used to obtain the safety risk value of each granary based on the surface abnormality data, granary location and granary usage time of each granary; granaries with safety risk values ​​greater than the risk threshold are inspected in descending order of safety risk values; granaries with safety risk values ​​not greater than the risk threshold are regarded as granaries to be inspected; the deferral time of the granary to be inspected is obtained based on the matching of the surface abnormality data of the granary to be inspected with the historical deferral case database of the granary; when the deferral time expires, the corresponding granary to be inspected is inspected.

[0086] This embodiment also provides a granary intelligent inspection device, including a processor and a memory, wherein the processor implements the above-mentioned granary intelligent inspection method when executing a computer program stored in the memory.

[0087] This embodiment also provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the above-mentioned intelligent inspection method of the granary when executed by a processor.

[0088] To facilitate those skilled in the art to understand the present embodiment, specific examples are given as follows.

[0089] Step 1: First, use a robot equipped with AT128 automotive-grade ultra-high-definition long-range laser radar, Hairui Technology Ruitong AI high-definition camera and other advanced sensors to measure in the granary management area containing 20 granaries. The laser radar in the robot can achieve a long-range measurement of 210 meters without splicing, 120-degree ultra-wide field of view, and can capture rich and complete object details. It is a forward-facing laser radar with performance, cost and reliability advantages; and drive along the driving route to obtain the granary terrain once or several times to obtain the laser radar data covering the terrain of the entire granary management area; then, process the laser radar data into three-dimensional point cloud data, obtain the point cloud map of the granary management area, and then convert it into a two-dimensional BEV feature map, and perform edge enhancement processing on the BEV feature map to highlight the outline of the ground object in order to obtain the accurate position of the granary. By laying a preset detection frame on the enhanced feature map, and based on the distance between the preset detection frame and the real frame obtained by neural network processing, the most appropriate classification label of the real frame is selected as the recognition result of the detection frame. After all the preset detection frames have performed the above operations, the granary recognition result is obtained; finally, according to the corresponding position of the granary in the granary recognition result, the positions of 20 granaries are marked in the point cloud map of the granary management area, and then the Gmapping_Slam algorithm can be used to convert the point cloud map of the granary management area marked with the granary position into a two-dimensional plane map that is easy to analyze and process, and the two-dimensional plane map is gridded. According to the distance information between the 20 granaries and the inspection starting point (the starting point selected for the planned path), the 20 granaries are marked and the path planning is performed to obtain the subsequent inspection path for detecting and identifying abnormalities on the granary surface.

[0090] Step 2: In order to identify the surface condition of each of the 20 granaries in the granary management area and determine whether the wall surface is damaged, first use a robot equipped with a Hairui Technology Ruitong AI high-definition camera to drive along the inspection path. After arriving at the designated granary location, look around the granary within a certain distance to obtain images of the granary, and then form a complete initial image of the granary to be inspected after splicing; then, perform image enhancement processing on the initial image to be inspected to eliminate the light influence caused by weather; finally, use the sliding window traversal method to analyze whether there is a surface abnormality in each part of the enhanced image to be inspected; in the process of sliding window traversal, judge whether there is an abnormality in each part of the granary surface, the initial type and subdivided type of the abnormality according to the structural similarity between the image and the standard image, the pixel change information of the image, and the pixel distribution information of the image, thereby obtaining the surface abnormality data of the granary; after the 20 granaries are executed according to the above operations, the surface abnormality data of the 20 granaries are obtained.

[0091] Step 3: Based on the surface anomaly data of the 20 granaries containing abnormal information of each part, the locations of the 20 granaries in the granary management area, and their respective service life (construction years), the safety risk values ​​of the 20 granaries are calculated according to the safety risk value calculation formula, and according to the size of the safety risk value and the risk threshold, a maintenance plan is set that can both ensure the safety of the granaries and alleviate the problem of tight maintenance resources; among them, the sum of the position weights of the 20 granaries is 1, the sum of the position weights of all positions corresponding to all surface anomaly types in each granary is 1, the granary service life coefficient is a linear function of the granary location and the granary service life, and the maximum safety risk value is 10, which can be customized according to actual needs; in the example, the safety risks of the 20 granaries are: No. 1 6.97, No. 2 7.83, No. 3 7.62, No. 4 6. 11, No. 5 5.98, No. 6 4.32, No. 7 3.72, No. 8 4.38, No. 9 4.26, No. 10 4.48, No. 11 4.37, No. 12 4.18, No. 13 7.15, No. 14 6.23, No. 15 6.39, No. 16 5.17, No. 17 4.82, No. 18 3.65, No. 19 4.78, No. 20 3.97; take the experience value of 6.44 as the risk threshold Value, No. 1, No. 2, No. 3, and No. 13 granaries with safety risk values ​​greater than 6.44 will be overhauled in descending order of safety risk value; for the remaining 16 granaries with safety risk values ​​not greater than 6.44, deferral time will be allocated for the remaining 16 granaries according to the deferral situation of previous granaries in the granary historical deferral case database, and when the deferral time expires, the corresponding granaries to be overhauled will be overhauled.

[0092] The present embodiment provides an intelligent inspection method for granaries. First, target detection is performed on a point cloud map of a granary management area obtained based on laser radar data to obtain a granary recognition result. Path planning is performed based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results to obtain an inspection path that is convenient for improving inspection efficiency. Then, in the process of inspection according to the inspection path, an initial image to be inspected with a comprehensive coverage range of each granary is obtained to prevent missed inspections. The quality of the enhanced image to be inspected of each granary is improved through image enhancement processing. The enhanced image to be inspected of each granary is subjected to surface abnormality recognition processing to identify surface deformation and surface damage, and further identify surface damage. By subdividing the types and combining them with the corresponding positions, comprehensive and accurate surface anomaly data can be obtained; finally, according to the surface anomaly types, corresponding positions and quantities in the surface anomaly data of the granary, as well as the granary location and the length of time the granary was in use, a safety risk value that can accurately reflect the safety level of each granary is obtained, and different maintenance procedures are performed according to the size of the safety risk value and the risk threshold, so as to alleviate the problem of tight maintenance resources on the basis of ensuring the safety of the granary; this method has full inspection coverage, and can automatically perform inspections and identify surface anomalies of granaries, and give a maintenance order, with high efficiency, high recognition accuracy, and good stability, which can alleviate the problem of tight maintenance resources, and uses a small amount of fixed mechanical equipment and has low maintenance costs.

Claims

1. A method for intelligent inspection of granaries, characterized in that: The following operations are included: S1. Obtain laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain a point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain a granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain an inspection path; S2, performing inspection according to the inspection path, during the inspection process, sequentially obtaining images of a circle outside each granary, splicing the images of a circle outside each granary, and obtaining an initial image to be inspected of each granary; performing image enhancement processing on the initial image to be inspected of each granary, and obtaining an enhanced image to be inspected of each granary; performing granary surface anomaly recognition processing on the enhanced image to be inspected of each granary, and obtaining surface anomaly data of each granary; The specific operations of granary surface abnormality identification and processing are as follows: Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and determine whether there is an abnormality in the sliding window image at the current position based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; If there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, perform step 2; Step 2: Based on the pixel change information, identify the abnormal type in the sliding window image at the current position and obtain the preliminary abnormal type; specifically: grayscale processing is performed on the sliding window image at the current position and the standard image of the corresponding granary part to obtain the sliding window grayscale image at the current position and the standard grayscale image of the granary part; the grayscale difference between the sliding window grayscale image at the current position and the standard grayscale image of the granary part at the corresponding position is obtained to obtain a grayscale difference image; determine whether the grayscale difference mean of the grayscale difference image is less than the first mean threshold; If it is less than the first mean value threshold, the initial abnormality type of the sliding window image at the current position is surface deformation; If it is not less than the first mean value threshold, the initial abnormality type of the sliding window image at the current position is surface damage; if the initial abnormality type is surface deformation, the surface deformation is taken as the surface abnormality type of the sliding window image at the current position; If the preliminary abnormality type is surface damage, proceed to step 3; Step 3: Based on the pixel distribution information, obtain the subdivision category of the surface damage, and use the subdivision category as the surface abnormality category of the sliding window image at the current position; The operation of obtaining the subdivision type of surface damage is specifically as follows: grayscale processing and denoising processing are performed on the sliding window image at the current position to obtain the sliding window denoised image at the current position; pixels whose grayscale values ​​are greater than the grayscale threshold in the sliding window denoised image at the current position are regarded as abnormal pixels; the maximum distance between abnormal pixels is obtained as the damage height; in the vertical direction of the line connecting the two abnormal pixels corresponding to the maximum distance, the farthest distance between the abnormal pixels is obtained as the damage width; it is determined whether the ratio of the damage height to the damage width is greater than the aspect ratio threshold; if it is greater than the aspect ratio threshold, the subdivision type of surface damage is wall cracks; If it is not greater than the aspect ratio threshold, the subdivision category of surface damage is wall peeling; In the current enhanced image to be inspected, all the sliding window images at all positions execute step 1, step 2 and step 3 to obtain the surface anomaly type information of the current granary; the surface anomaly type information of the current granary and the number of each surface anomaly type form the surface anomaly data of the current granary; S3. Obtain the safety risk value of each granary based on the surface abnormality data, granary location and granary usage time of each granary; The granaries with safety risk values ​​greater than the risk threshold will be inspected and repaired in order of safety risk values ​​from large to small; The granaries whose safety risk values ​​are not greater than the risk threshold are regarded as granaries to be inspected. The deferral time of the granaries to be inspected is obtained based on the surface abnormality data of the granaries to be inspected and the matching with the historical deferral case database of the granaries. When the deferral time expires, the corresponding granaries to be inspected are inspected.

2. The intelligent inspection method for granary according to claim 1 is characterized in that: The path planning operation in S1 is specifically as follows: Projecting the granary management area point cloud map into a two-dimensional plane map, and performing grid division to obtain a granary grid map consisting of a plurality of grid areas, each grid area containing point cloud projection existence information; Based on the corresponding position information of all granary identification results, the granary positions are marked in the granary grid map, and the granary positions are numbered from small to large according to the distance between the granary and the inspection starting point, so as to obtain a granary number grid map consisting of several grid areas, each of which contains point cloud projection existence information and granary number existence information; According to the order of the granary position numbers in the granary sequence grid diagram from small to large, partial path planning is carried out in sequence to obtain several partial paths; all partial paths are connected to obtain the inspection path.

3. The intelligent inspection method for granary according to claim 2 is characterized in that: The operations of the partial path planning are specifically as follows: Obtain a number of candidate paths from the starting point to the target point in the granary sequence grid map, which are formed by connecting grids without point cloud projection information and without granary sequence information, and use the candidate path corresponding to the minimum length as a partial path from the starting point to the target point; The starting point is the inspection starting point or the granary location point, and the target point is the granary location point.

4. The intelligent inspection method for granary according to claim 1 is characterized in that: The image enhancement processing operation in S2 is specifically as follows: Obtaining the image color temperature difference between the initial image to be inspected and the standard image to be inspected, and obtaining the gain value of different color channels of each pixel in the initial image to be inspected based on the image color temperature difference; Based on the gain values ​​of different color channels of each pixel, the color temperature balance coefficient of each pixel is obtained; The ratio of the pixel value of each pixel point in the initial image to be inspected to the respective color temperature balance coefficient is used as the pixel enhancement value of each pixel point; Based on the pixel enhancement value of each pixel, pixel update processing is performed on each pixel in the initial image to be inspected to obtain an enhanced image to be inspected.

5. The intelligent inspection method for granary according to claim 1 is characterized in that: In S3, the security risk value is obtained by the following formula: , F is the current safety risk value of the granary, W p is the location weight of the current granary location, w i It is the first in the current granary i The weights of the surface anomaly types, p i It is the first in the current granary i The location weight mean of all locations corresponding to the surface anomaly type, n i It is the first in the current granary i The number of surface anomaly types, I is the total number of surface anomalies in the current granary, T is the current granary usage time, α It is the coefficient of granary usage time.

6. A granary intelligent inspection system, used to implement the granary intelligent inspection method according to claim 1, characterized in that: include: The inspection path generation module is used to obtain the laser radar data in the granary management area, convert the laser radar data into point cloud data, and obtain a point cloud map of the granary management area; the point cloud map of the granary management area is processed by target detection to obtain a granary recognition result; based on the point cloud map of the granary management area and the corresponding position information of all granary recognition results, path planning is performed to obtain an inspection path; The granary surface abnormality data generation module is used to perform inspection according to the inspection path. During the inspection process, the images of a circle outside each granary are sequentially obtained, and the images of a circle outside each granary are spliced ​​to obtain the initial image to be inspected of each granary; the initial image to be inspected of each granary is subjected to image enhancement processing to obtain the enhanced image to be inspected of each granary; the enhanced image to be inspected of each granary is subjected to granary surface abnormality recognition processing to obtain the surface abnormality data of each granary; the specific operation of the granary surface abnormality recognition processing is as follows: Step 1: Use a sliding window of a fixed size to traverse the current enhanced image to be inspected, and determine whether there is an abnormality in the sliding window image at the current position based on the structural similarity between the sliding window image at the current position and the standard image of the corresponding granary part; If there is no abnormality, perform recognition processing of the sliding window image at the next position in the current enhanced image to be inspected; if there is an abnormality, perform step 2; step 2, based on the pixel change information, identify the type of abnormality in the sliding window image at the current position to obtain a preliminary abnormality type; If the preliminary abnormality type is surface deformation, the surface deformation is used as the surface abnormality type of the sliding window image at the current position; If the preliminary abnormality type is surface damage, execute step three; step three, based on the pixel distribution information, obtain the subdivided type of surface damage, and use the subdivided type as the surface abnormality type of the sliding window image at the current position; In the current enhanced image to be inspected, all the sliding window images at all positions execute step 1, step 2 and step 3 to obtain the surface anomaly type information of the current granary; the surface anomaly type information of the current granary and the number of each surface anomaly type form the surface anomaly data of the current granary; A safety risk value generation and inspection module is used to obtain the safety risk value of each granary based on the surface abnormality data of each granary, the location of the granary, and the length of time the granary has been used; The granaries with safety risk values ​​greater than the risk threshold will be inspected and repaired in order of safety risk values ​​from large to small; The granaries whose safety risk values ​​are not greater than the risk threshold are regarded as granaries to be inspected. The deferral time of the granaries to be inspected is obtained based on the surface abnormality data of the granaries to be inspected and the matching with the historical deferral case database of the granaries. When the deferral time expires, the corresponding granaries to be inspected are inspected.

7. An intelligent inspection device for granaries, characterized in that: It comprises a processor and a memory, wherein when the processor executes the computer program stored in the memory, the intelligent inspection method for granary as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: Used to store computer programs, wherein when the computer program is executed by a processor, the intelligent granary inspection method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Adaptive image quality objective evaluation method

    CN103338380A

  • Locomotive running gear fault detection method and device based on time sequence images and storage medium

    CN112037182A

  • Wall surface anomaly detection method and device

    CN112258474A

  • Granary dangerous source safety monitoring method and system based on artificial intelligence

    CN113591711A

  • Wall surface quality detection robot and method, electronic equipment and storage medium

    CN114995414A