A property intelligent inspection method based on community safety hazards
Using drones to collect point cloud data and three-dimensional reconstruction technology, automated community safety inspections solve the problem of low efficiency in existing technologies and achieve efficient and accurate community safety monitoring.
Patent Information
- Application Number
- CN202310560244.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-05-17
AI Technical Summary
The existing community safety inspection technology relies on manual inspection, which is inefficient and requires high physical strength and vision of the staff, making it difficult to effectively improve inspection efficiency.
UAVs are used to collect point cloud data, and semantic sets of inspection objects are generated through probabilistic filtering, object detection and semantic recognition, community models are reconstructed in three dimensions, and inspection paths are planned based on visual domain analysis to achieve automated inspection and safety analysis.
It improves the efficiency and accuracy of community safety inspections, reduces the burden on manual inspection personnel, and enhances the accuracy of inspection results.
Smart Images

Figure CN116543322B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent inspection technology, and in particular to a property intelligent inspection method based on community safety hazards. Background Art
[0002] A community is a living area where social groups live together. Community property is an organization and institution that manages, maintains and provides services for real estate buildings within the community. In the work of community property, the property needs to conduct regular safety inspections of the community to identify potential safety hazards in the community and protect the lives and property of community residents.
[0003] Existing community safety inspection technologies are mostly based on manual safety inspection technologies. Community workers are arranged to conduct safety inspections on public facilities such as building walls, street lights, gas and water pipelines in the community at fixed time periods, and record the inspection results. In actual applications, manual safety inspection technologies require workers to conduct long-term repetitive inspections, which have high requirements on the workers' physical strength, vision and judgment, and may lead to low efficiency in community safety inspections. Summary of the invention
[0004] The present invention provides a property intelligent inspection method and device based on community safety hazards, the main purpose of which is to solve the problem of low efficiency when conducting community safety inspections.
[0005] To achieve the above purpose, the present invention provides a property intelligent inspection method based on community safety hazards, comprising:
[0006] Acquire a community initial map and a drone collection parameter set, generate a coverage detection path of the community initial map according to the drone collection parameter set, control the drone to perform point cloud coverage collection along the coverage detection path, and obtain a community point cloud sequence;
[0007] Selecting community point clouds in the community point cloud sequence one by one as target community point clouds, performing probability filtering, object detection and semantic recognition operations on the target community point clouds in turn to obtain a patrol object semantic set, using the patrol object semantic set to annotate the target community point cloud into a target patrol point cloud, splicing all target patrol point clouds into a community patrol point cloud, and reconstructing the community patrol point cloud into a community patrol model in three dimensions;
[0008] According to the inspection period, the inspection objects in the community inspection model are divided into multiple inspection period object groups, and the visual field analysis is performed on each inspection period object group to obtain a period inspection point group set, and the path planning is performed on the period inspection point group set according to the community inspection model to obtain a set of inspection paths, wherein the visual field analysis is performed on each inspection period object group to obtain a period inspection point group set, including: selecting the inspection period object group as the target inspection object group one by one, and selecting the inspection objects in the target inspection object group as the target inspection objects one by one; generating the shooting space of the target inspection object according to the focal length interval of the drone, and selecting the shooting points in the shooting space as the target shooting points one by one; and calculating the offset occlusion coefficient of the target shooting point using the following occlusion field algorithm:
[0009]
[0010] Among them, O i refers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object; the target shooting point with the smallest offset occlusion coefficient is selected as the inspection point of the target inspection object, all the inspection points corresponding to the target inspection object group are aggregated into a time period inspection point group, and all the time period inspection point groups are aggregated into a time period inspection point group set;
[0011] According to the inspection time period, the inspection paths in the inspection path set are selected one by one as the target inspection path, the UAV is controlled to take point-by-point photos along the target inspection path to obtain a time period inspection map group, and all the time period inspection map groups are collected into an inspection map set;
[0012] Inspection pictures from the inspection atlas are selected one by one as target inspection pictures, and texture enhancement and multi-level feature extraction operations are performed on the target inspection pictures in turn to obtain enhanced feature groups. Security analysis is performed on the target inspection pictures based on the enhanced feature groups to obtain object safety semantics, and all object safety semantics are used to perform security annotation on the community inspection model to obtain community inspection results.
[0013] Optionally, generating a coverage detection path of the community initial map according to the drone collection parameter set includes:
[0014] The following coverage projection algorithm is used to calculate the acquisition length and acquisition width according to the UAV acquisition parameter set:
[0015]
[0016]
[0017] Among them, R 1 Refers to the acquisition width, R 2 refers to the acquisition length, ceiling is the rounding symbol, θ is the longitudinal point cloud acquisition angle in the UAV acquisition parameter set, α refers to the roll angle in the UAV acquisition parameter set, β refers to the lateral point cloud acquisition angle in the UAV acquisition parameter set, and d refers to the flight altitude in the UAV acquisition parameter set;
[0018] Generate a collection block according to the collection length and the collection width;
[0019] The community initial map is covered and scanned according to the preset overlapping step length and the collection block to obtain a coverage detection path.
[0020] Optionally, the sequentially performing probability filtering, object detection and semantic recognition operations on the target community point cloud to obtain a semantic set of inspection objects includes:
[0021] Probabilistically filtering the target community point cloud using a preset Gaussian density algorithm to obtain a target filtered point cloud;
[0022] Performing object detection and object segmentation operations on the target filtered point cloud in sequence to obtain an object point cloud set;
[0023] Semantic recognition operations are performed on the object point clouds in the object point cloud set one by one to obtain a semantic set of inspection objects.
[0024] Optionally, the using a preset Gaussian density algorithm to perform probability filtering on the target community point cloud to obtain a target filtered point cloud includes:
[0025] Performing median filtering on the target community point cloud to obtain a target denoised point cloud;
[0026] Extracting geometric features from the target denoised point cloud to obtain a point cloud geometric feature set;
[0027] The point cloud probability of each point cloud in the target denoised point cloud is calculated according to the point cloud geometric feature set using a preset Gaussian density algorithm:
[0028]
[0029] Wherein, N(x) refers to the point cloud probability of point cloud x in the target denoised point cloud, π is the circumference of pi, n is the feature dimension of each point cloud geometric feature in the point cloud geometric feature set, det() is the determinant symbol, Σ x is the Gaussian covariance matrix of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, exp is the exponential function symbol, μ x It refers to the Gaussian mean vector of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, and T is the transposition symbol;
[0030] The target denoised point cloud is subjected to probability threshold filtering according to the point cloud probability to obtain a target filtered point cloud.
[0031] Optionally, the three-dimensional reconstruction of the community inspection point cloud into a community inspection model includes:
[0032] triangulate the community inspection point cloud into a triangulated community model;
[0033] Extracting a triangle vertex set and a triangle face set from the triangle community model, matching and reorganizing the triangle vertex set and the triangle face set to obtain a triangle information set;
[0034] Calculate the reconstructed triangle vertices of each triangle face in the triangle community model according to the triangle information set;
[0035] Performing triangulation reconstruction on the triangular community model according to the reconstructed triangular vertices to obtain a reconstructed community model;
[0036] A surface smoothing operation is performed on the reconstructed community model to obtain a community inspection model.
[0037] Optionally, performing path planning on the time period inspection point group set according to the community inspection model to obtain an inspection path set includes:
[0038] Selecting one by one the time period inspection point groups in the time period inspection point group set as the target inspection point group, and generating the start inspection point and the end inspection point of the target inspection point group according to the inventory coordinates of the drone;
[0039] Calculating the inventory distance between each inspection point in the target inspection point group and the inventory coordinates;
[0040] Sorting the inspection points in the target inspection point group according to the order of the inventory distance from small to large to obtain an initial inspection point sequence;
[0041] Inserting the start inspection point into the head of the initial inspection point sequence, and inserting the end inspection point into the tail of the initial inspection point sequence, to obtain a target inspection point sequence;
[0042] Performing path planning for the target inspection point sequence according to the community inspection model to obtain an initial inspection path;
[0043] The initial inspection path is optimized to obtain a target inspection path, and all target inspection paths are aggregated into an inspection path set.
[0044] Optionally, the sequentially performing texture enhancement and multi-level feature extraction operations on the target inspection image to obtain an enhanced feature group includes:
[0045] Performing Gaussian filtering on the target inspection image to obtain a target filtered image;
[0046] Performing a texture erosion operation on the target filter image to obtain a target inspection texture, and performing an image segmentation operation on the target filter image using the target inspection texture to obtain a target texture image;
[0047] Generate a grayscale histogram of the target texture image, and use the grayscale histogram to perform grayscale enhancement on the target texture image to obtain a target enhanced image;
[0048] The texture features, color features and shape features of the target enhanced image are extracted respectively, and the texture features, the color features and the shape features are aggregated into an enhanced feature group.
[0049] Optionally, performing security analysis on the target inspection image according to the enhanced feature group to obtain object security semantics includes:
[0050] Using a preset attention fusion algorithm to fuse the enhanced feature group into a target inspection feature;
[0051] The inspection object semantics corresponding to the target inspection image is used as the target object semantics, and the object security model corresponding to the target object semantics is selected from a preset security recognition model library as the target object security model;
[0052] The target object security model is used to perform a normalization operation on the target inspection features to obtain a target security code, and the interval semantics of the target security code is used as the object security semantics of the target inspection picture.
[0053] Optionally, the using a preset attention fusion algorithm to fuse the enhanced feature group into a target inspection feature includes:
[0054] Performing a global dimensionality reduction operation on the texture features in the enhanced feature group to obtain standard texture features;
[0055] Performing a global dimensionality reduction operation on the color features in the enhanced feature group to obtain a standard color feature;
[0056] Performing a global dimensionality reduction operation on the shape features in the enhanced feature group to obtain a standard shape feature;
[0057] The standard texture features, the standard color features and the standard shape features are fused into target inspection features using the following attention fusion algorithm:
[0058]
[0059] Among them, A refers to the target inspection feature, softmax is the normalization function, ω and σ are the fusion weight matrices of the attention fusion algorithm, Q is the standard texture feature, K is the standard color feature, T is the transposition sign, f is the feature dimension, and the feature dimensions of the standard texture feature, the standard color feature and the standard shape feature are equal, and V refers to the standard shape feature.
[0060] In order to solve the above problems, the present invention also provides a property intelligent inspection device based on community safety hazards, the device comprising:
[0061] A point cloud acquisition module is used to obtain an initial map of the community and a set of acquisition parameters of a drone, generate a coverage detection path of the initial map of the community according to the acquisition parameter set of the drone, and control the drone to perform point cloud coverage acquisition along the coverage detection path to obtain a community point cloud sequence;
[0062] a three-dimensional reconstruction module, for selecting community point clouds in the community point cloud sequence one by one as target community point clouds, performing probability filtering, object detection and semantic recognition operations on the target community point clouds in turn to obtain a patrol object semantic set, using the patrol object semantic set to annotate the target community point cloud into a target patrol point cloud, splicing all target patrol point clouds into a community patrol point cloud, and three-dimensionally reconstructing the community patrol point cloud into a community patrol model;
[0063] A path planning module is used to split the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, perform visual domain analysis on each inspection period object group to obtain a period inspection point group set, perform path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set, wherein the visual domain analysis on each inspection period object group to obtain the period inspection point group set includes: selecting the inspection period object group one by one as the target inspection object group, and selecting the inspection objects in the target inspection object group one by one as the target inspection objects; generating a shooting space for the target inspection object according to the focal length interval of the drone, and selecting shooting points in the shooting space one by one as the target shooting points; and calculating the offset occlusion coefficient of the target shooting point using the following occlusion field algorithm:
[0064]
[0065] Among them, O i refers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object; the target shooting point with the smallest offset occlusion coefficient is selected as the inspection point of the target inspection object, all the inspection points corresponding to the target inspection object group are aggregated into a time period inspection point group, and all the time period inspection point groups are aggregated into a time period inspection point group set;
[0066] An inspection shooting module is used to select inspection paths in the inspection path set as target inspection paths one by one according to the inspection time period, control the UAV to shoot points along the target inspection path, obtain a time period inspection map group, and collect all the time period inspection map groups into an inspection map set;
[0067] The semantic analysis module is used to select inspection pictures from the inspection atlas one by one as target inspection pictures, perform texture enhancement and multi-level feature extraction operations on the target inspection pictures in turn to obtain enhanced feature groups, perform security analysis on the target inspection pictures based on the enhanced feature groups to obtain object security semantics, and use all object security semantics to perform security annotation on the community inspection model to obtain community inspection results.
[0068] The embodiment of the present invention obtains a community initial map and a drone acquisition parameter set, generates a coverage detection path of the community initial map according to the drone acquisition parameter set, controls the drone to perform point cloud coverage acquisition along the coverage detection path, and obtains a community point cloud sequence. The drone-borne point cloud scanner can be used to obtain a global point cloud sequence of the community, thereby facilitating subsequent path planning and intelligent inspection. By selecting community point clouds in the community point cloud sequence one by one as target community point clouds, probability filtering, object detection and semantic recognition operations are performed on the target community point clouds in turn to obtain an inspection object semantic set, which can enhance the details of the point cloud, and mark objects that need to be inspected for safety in the target community point cloud. By using the inspection object semantic set to mark the target community point cloud as a target inspection point cloud, all target inspections are The point clouds are spliced into a community inspection point cloud, and the community inspection point cloud is three-dimensionally reconstructed into a community inspection model. The three-dimensional model of the community to be inspected can be reconstructed, which is convenient for subsequent obstacle avoidance and path planning for each object that needs to be inspected. The inspection objects in the community inspection model are divided into multiple inspection period object groups according to the inspection period, and the visual domain analysis is performed on each inspection period object group to obtain a time period inspection point group set. The most suitable shooting point can be selected for each inspection object to obtain a better quality time period inspection atlas. By performing path planning on the time period inspection point group set according to the community inspection model to obtain an inspection path set, a shooting path that passes through all shooting points and can automatically return to its position can be generated, so that the inspection objects in the inspection period can be photographed at one time, thereby improving the inspection speed.
[0069] By selecting the inspection paths in the inspection path set as the target inspection paths one by one according to the inspection time period, controlling the drone to take point shots along the target inspection paths, obtaining a time period inspection map group, and collecting all the time period inspection map groups into an inspection map set, shooting and sampling can be performed in the time period when the state of each object to be inspected is most easily observed, thereby improving the accuracy of intelligent inspection, by selecting the inspection images in the inspection map set one by one as the target inspection images, sequentially performing texture enhancement and multi-level feature extraction operations on the target inspection images, obtaining an enhanced feature group, performing security analysis on the target inspection images according to the enhanced feature group, obtaining object security semantics, using all object security semantics to perform security annotation on the community inspection model, obtaining community inspection results, and realizing security analysis according to multiple features of each inspection object, thereby improving the accuracy of security analysis and further improving the efficiency of community security inspection. Therefore, the intelligent property inspection method and device based on community security hazards proposed in the present invention can solve the problem of low efficiency when conducting community security inspections. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1A flow chart of a method for intelligent property inspection based on community safety hazards provided by an embodiment of the present invention;
[0071] Figure 2 A schematic diagram of a process for reconstructing a community inspection model provided by an embodiment of the present invention;
[0072] Figure 3 A schematic diagram of a process for generating an inspection path set according to an embodiment of the present invention;
[0073] Figure 4 A functional module diagram of a property intelligent inspection device based on community safety hazards provided by an embodiment of the present invention;
[0074] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0075] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0076] The embodiment of the present application provides a property intelligent inspection method based on community safety hazards. The execution subject of the property intelligent inspection method based on community safety hazards includes but is not limited to at least one of the electronic devices such as the server, terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the property intelligent inspection method based on community safety hazards can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0077] Reference Figure 1 FIG. 1 is a flow chart of a method for intelligent property inspection based on community safety hazards provided by an embodiment of the present invention. In this embodiment, the method for intelligent property inspection based on community safety hazards includes:
[0078] S1. Obtain an initial map of the community and a set of drone acquisition parameters, generate a coverage detection path of the initial map of the community according to the drone acquisition parameter set, control the drone to perform point cloud coverage acquisition along the coverage detection path, and obtain a community point cloud sequence.
[0079] In an embodiment of the present invention, the community initial map refers to an area map of the community to be inspected. The community initial map can be a two-dimensional plane map or a three-dimensional model map with a scale. The drone acquisition parameter set refers to various parameters of the drone during flight and monitoring, such as the flight altitude, point cloud acquisition angle, and roll angle of the drone when the drone performs point cloud acquisition. The point cloud acquisition angle includes a horizontal point cloud acquisition angle and a vertical point cloud acquisition angle. The horizontal point cloud acquisition angle refers to the angle between the left and right fields of view of the drone's point cloud scanner, and the vertical point cloud acquisition angle refers to the angle between the upper and lower fields of view of the drone's point cloud scanner. The roll angle refers to the angle of rotation of the drone around the front and rear axes of the aircraft.
[0080] In the embodiment of the present invention, the generation of the coverage detection path of the community initial map according to the drone collection parameter set includes:
[0081] The following coverage projection algorithm is used to calculate the acquisition length and acquisition width according to the UAV acquisition parameter set:
[0082]
[0083]
[0084] Among them, R 1 Refers to the acquisition width, R 2 refers to the acquisition length, ceiling is the rounding symbol, θ is the longitudinal point cloud acquisition angle in the UAV acquisition parameter set, α refers to the roll angle in the UAV acquisition parameter set, β refers to the lateral point cloud acquisition angle in the UAV acquisition parameter set, and d refers to the flight altitude in the UAV acquisition parameter set;
[0085] Generate a collection block according to the collection length and the collection width;
[0086] The community initial map is covered and scanned according to the preset overlapping step length and the collection block to obtain a coverage detection path.
[0087] In an embodiment of the present invention, by using the coverage projection algorithm to calculate the collection length and the collection width according to the drone collection parameter set, the single coverage range of the drone when collecting the community point cloud can be determined, thereby facilitating the planning of the coverage detection path.
[0088] In detail, generating a collection block according to the collection length and the collection width refers to generating a rectangular area with the collection length as the length and the collection width as the width, and using the rectangular area as the collection area.
[0089] Specifically, the covering scan of the community initial map according to the preset overlapping step length and the acquisition block to obtain the coverage detection path refers to generating the acquisition bit length according to the overlapping step length and the acquisition block, covering the community initial map using a scanning line method according to the acquisition bit length to obtain the initial detection path, and raising the height of the initial monitoring path to the flight height to obtain the coverage detection path.
[0090] In detail, controlling the drone to perform point cloud coverage collection along the coverage detection path to obtain a community point cloud sequence means controlling the drone to fly along the coverage detection path, and using a point cloud scanner on the drone to perform point cloud scanning on the community at the center point of each collection area in the coverage detection path to obtain a community point cloud sequence.
[0091] In an embodiment of the present invention, by obtaining an initial map of the community and a set of drone collection parameters, a coverage detection path of the initial map of the community is generated according to the drone collection parameter set, and the drone is controlled to perform point cloud coverage collection along the coverage detection path to obtain a community point cloud sequence. The global point cloud sequence of the community can be obtained using a drone-borne point cloud scanner, thereby facilitating subsequent path planning and intelligent inspections.
[0092] S2. Select the community point clouds in the community point cloud sequence one by one as the target community point cloud, perform probability filtering, object detection and semantic recognition operations on the target community point cloud in turn to obtain a patrol object semantic set, use the patrol object semantic set to annotate the target community point cloud into a target patrol point cloud, splice all the target patrol point clouds into a community patrol point cloud, and reconstruct the community patrol point cloud into a community patrol model.
[0093] In an embodiment of the present invention, the inspection object semantic set is a set composed of multiple inspection object semantics, and the inspection object semantic set includes the inspection object semantics of all object point clouds in the target community point cloud, such as important objects that need to be inspected for safety hazards, such as street lights, building walls, fire-fighting facilities and water meters.
[0094] In the embodiment of the present invention, the probability filtering, object detection and semantic recognition operations are performed on the target community point cloud in sequence to obtain a semantic set of inspection objects, including:
[0095] Probabilistically filtering the target community point cloud using a preset Gaussian density algorithm to obtain a target filtered point cloud;
[0096] Performing object detection and object segmentation operations on the target filtered point cloud in sequence to obtain an object point cloud set;
[0097] Semantic recognition operations are performed on the object point clouds in the object point cloud set one by one to obtain a semantic set of inspection objects.
[0098] In an embodiment of the present invention, the object point cloud set obtained by performing object detection and object segmentation operations on the target filtered point cloud in sequence means splitting each point cloud into different object point clouds according to the point cloud geometric features of each point cloud in the target filtered point cloud using algorithms such as support vector machine (SVM), random forest, etc., and aggregating all object point clouds into an object point cloud set.
[0099] In detail, the method of performing probability filtering on the target community point cloud using a preset Gaussian density algorithm to obtain a target filtered point cloud includes:
[0100] Performing median filtering on the target community point cloud to obtain a target denoised point cloud;
[0101] Extracting geometric features from the target denoised point cloud to obtain a point cloud geometric feature set;
[0102] The point cloud probability of each point cloud in the target denoised point cloud is calculated according to the point cloud geometric feature set using a preset Gaussian density algorithm:
[0103]
[0104] Wherein, N(x) refers to the point cloud probability of point cloud x in the target denoised point cloud, π is the circumference of pi, n is the feature dimension of each point cloud geometric feature in the point cloud geometric feature set, det() is the determinant symbol, Σ x is the Gaussian covariance matrix of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, exp is the exponential function symbol, μ x It refers to the Gaussian mean vector of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, and T is the transposition symbol;
[0105] The target denoised point cloud is subjected to probability threshold filtering according to the point cloud probability to obtain a target filtered point cloud.
[0106] In an embodiment of the present invention, the geometric feature extraction of the target denoised point cloud to obtain a point cloud geometric feature set refers to extracting features such as point cloud density, point cloud coordinates, point cloud normal vector, point cloud curvature and point cloud color of each point cloud in the target denoised point cloud, and aggregating the features such as point cloud density, point cloud coordinates, point cloud normal vector, point cloud curvature and point cloud color into point cloud geometric features, and aggregating the point cloud geometric features of all point clouds in the target denoised point cloud into a point cloud geometric feature set.
[0107] In an embodiment of the present invention, the point cloud probability of each point cloud in the target denoised point cloud is calculated according to the point cloud geometric feature set by utilizing the Gaussian density algorithm. The point cloud probability of each point cloud can be calculated in combination with the Gaussian distribution probability of the point cloud geometric features of each point cloud in the target denoised point cloud, thereby realizing the detection of outlier point clouds and abnormal point clouds.
[0108] Specifically, performing probability threshold filtering on the target denoised point cloud according to the point cloud probability to obtain a target filtered point cloud means filtering out point clouds in the target denoised point cloud whose point cloud probability is less than a preset probability threshold as outlier point clouds from the target denoised point cloud to obtain a target filtered point cloud.
[0109] In detail, deep learning algorithms such as support vector machine (SVM) and convolutional neural network (CNN) can be used to perform semantic recognition operations on the object point clouds in the object point cloud set one by one to obtain a patrol object semantic set. The patrol object semantic set contains the semantics of objects that need to be inspected for safety, such as street lights, manhole covers, water meters, building walls, and traffic lights.
[0110] In detail, using the inspection object semantic set to mark the target community point cloud into a target inspection point cloud means using each inspection object semantic set in the inspection object semantic set to mark the corresponding object point cloud in the target community point cloud to obtain the target inspection point cloud; splicing all target inspection point clouds into a community inspection point cloud means splicing all target inspection point clouds according to the point cloud sequence order of the community point cloud sequence, the structure of the point cloud and the overlapping step size to obtain a community inspection point cloud.
[0111] Specifically, refer to Figure 2 As shown, the three-dimensional reconstruction of the community inspection point cloud into a community inspection model includes:
[0112] S21, triangulating the community inspection point cloud into a triangular community model;
[0113] S22, extracting a triangle vertex set and a triangle face set from the triangle community model, matching and reorganizing the triangle vertex set and the triangle face set to obtain a triangle information set;
[0114] S23, calculating the reconstructed triangle vertices of each triangle face in the triangle community model according to the triangle information set;
[0115] S24, performing triangulation reconstruction on the triangulated community model according to the reconstructed triangular vertices to obtain a reconstructed community model;
[0116] S25. Perform a surface smoothing operation on the reconstructed community model to obtain a community inspection model.
[0117] In detail, the community inspection point cloud can be triangulated into a triangular community model by using triangulation algorithms such as Delaunay triangulation, Voronoi triangulation or Alpha-shape triangulation, the triangular vertex set refers to the set of vertices of each triangular face in the triangular community model, and the triangular face set refers to the set of each triangular face in the triangular community model; matching and reorganizing the triangular vertex set and the triangular face set to obtain a triangular information set refers to matching and combining the triangular vertices of each triangular face into triangular information, and aggregating all the triangular information into a triangular information set.
[0118] Specifically, reconstruction algorithms such as Poisson reconstruction, Marching Cubes reconstruction, and Ball Pivoting reconstruction can be used to calculate the reconstructed triangle vertices of each triangular face in the triangular community model according to the triangular information set, and the triangular community model can be triangulated and reconstructed according to the reconstructed triangle vertices to obtain a reconstructed community model; Laplacian smoothing and mean curvature flow smoothing can be used to perform surface smoothing operations on the reconstructed community model to obtain a community inspection model.
[0119] In an embodiment of the present invention, by selecting community point clouds in the community point cloud sequence one by one as target community point clouds, and performing probability filtering, object detection and semantic recognition operations on the target community point clouds in turn, a patrol object semantic set is obtained, the details of the point cloud can be enhanced, and objects that need to be inspected for safety in the target community point cloud are marked. By using the patrol object semantic set to mark the target community point cloud as a target patrol point cloud, all target patrol point clouds are spliced into a community patrol point cloud, and the community patrol point cloud is three-dimensionally reconstructed into a community patrol model. The three-dimensional model of the community to be patrolled for safety can be reconstructed, which is convenient for subsequent obstacle avoidance and path planning for each object that needs to be patrolled for safety.
[0120] S3. Split the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, perform visual domain analysis on each inspection period object group to obtain a period inspection point group set, perform path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set.
[0121] In an embodiment of the present invention, the inspection period is a preset time period that is convenient for property inspection, such as the time period from 11:00 to 12:00 noon and the time period from 18:00 to 19:00 in the evening, and the inspection object refers to the object model of the partial point cloud in the target inspection point cloud that is annotated with the inspection object semantics.
[0122] In the embodiment of the present invention, the inspection objects in the community inspection model are divided into multiple inspection period object groups according to the inspection period. For example, objects such as building walls, fire protection facilities and water meters are inspected during the period from 11:00 to 12:00 noon, and objects such as street lights and traffic lights are inspected during the period from 18:00 to 19:00 in the evening.
[0123] In the embodiment of the present invention, the visual domain analysis is performed on the object groups in each inspection period to obtain the inspection point group set in the period, including:
[0124] Selecting the inspection period object groups one by one as target inspection object groups, and selecting the inspection objects in the target inspection object groups one by one as target inspection objects;
[0125] Generate a shooting space of the target inspection object according to the focal length interval of the drone, and select shooting points in the shooting space one by one as target shooting points;
[0126] The offset occlusion coefficient of the target shooting point is calculated using the following occlusion view algorithm:
[0127]
[0128] Among them, O i refers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object;
[0129] The target shooting point with the smallest offset occlusion coefficient is selected as the inspection point of the target inspection object, all inspection points corresponding to the target inspection object group are aggregated into a time period inspection point group, and all time period inspection point groups are aggregated into a time period inspection point group set.
[0130] In detail, the focal length range refers to the shooting distance range within which the drone can focus, the shooting space refers to the spherical wall space with the center of the outer surface of the target inspection object as the origin and the focal length range as the radius, which does not overlap with other objects, and the shooting point refers to the point space occupied by the drone in the shooting space.
[0131] In an embodiment of the present invention, by using the occlusion field algorithm to calculate the offset occlusion coefficient of the target shooting point, the proportion of occlusion objects in the picture of each shooting point and the degree of offset of the shooting point from the center line of the inspection object can be calculated, thereby measuring the quality of the shooting picture.
[0132] For details, refer to Figure 3 As shown, the path planning is performed on the inspection point group set in the time period according to the community inspection model to obtain an inspection path set, including:
[0133] S31, selecting one by one the time period inspection point groups in the time period inspection point group set as the target inspection point group, and generating the start inspection point and the end inspection point of the target inspection point group according to the inventory coordinates of the drone;
[0134] S32, calculating the inventory distance between each inspection point in the target inspection point group and the inventory coordinates;
[0135] S33, sorting the inspection points in the target inspection point group according to the order of the inventory distance from small to large, to obtain an initial inspection point sequence;
[0136] S34, inserting the start inspection point into the head of the initial inspection point sequence, and inserting the end inspection point into the tail of the initial inspection point sequence, to obtain a target inspection point sequence;
[0137] S35, performing path planning for the target inspection point sequence according to the community inspection model to obtain an initial inspection path;
[0138] S36: Optimize the initial inspection path to obtain a target inspection path, and aggregate all target inspection paths into an inspection path set.
[0139] In detail, the inventory coordinates refer to the location coordinates of the drone when it is grounded for maintenance and safety inspection, and generating the start inspection point and the end inspection point of the target inspection point group based on the inventory coordinates of the drone means using the points where the inventory coordinates are located as the start inspection point and the end inspection point of the target inspection point group.
[0140] Specifically, the Euclidean distance algorithm or the Manhattan distance algorithm can be used to calculate the inventory distance between each inspection point in the target inspection point group and the inventory coordinates. Algorithms such as the A algorithm, the Dijkstra algorithm, or the ant colony algorithm can be used to avoid obstacles in the community inspection model and generate an initial inspection path that passes through the target inspection point sequence in sequence. Algorithms such as genetic algorithms or simulated annealing can be used to optimize the initial inspection path to obtain the target inspection path.
[0141] In an embodiment of the present invention, by splitting the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, performing visual domain analysis on each inspection period object group to obtain a period inspection point group set, the most suitable shooting point can be selected for each inspection object to obtain a period inspection atlas with better quality, and by performing path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set, a shooting path can be generated that passes through all the shooting points and can automatically return to its position, so that the inspection objects in the inspection period can be photographed at one time, thereby improving the inspection speed.
[0142] S4. Select the inspection paths in the inspection path set as the target inspection paths one by one according to the inspection time periods, control the UAV to take point-by-point photos along the target inspection paths, obtain a time period inspection map group, and collect all the time period inspection map groups into an inspection map set.
[0143] In the embodiment of the present invention, selecting the inspection paths in the inspection path set as the target inspection paths one by one according to the inspection period means selecting the inspection paths in the inspection path set as the target inspection paths one by one according to the time sequence of the inspection period.
[0144] Specifically, controlling the UAV to take point-by-point photos along the target inspection path to obtain a time period inspection picture group means controlling the UAV to fly along the target inspection path during the inspection period corresponding to the target inspection path, and taking photos of the inspection object at each inspection point to obtain a time period inspection picture, and aggregating all the time period inspection pictures in the target inspection path into a time period inspection picture group.
[0145] In an embodiment of the present invention, the inspection paths in the inspection path set are selected one by one as the target inspection paths according to the inspection time periods, the drone is controlled to take point photos along the target inspection paths to obtain a time period inspection map group, and all the time period inspection map groups are compiled into an inspection map set.
[0146] In an embodiment of the present invention, inspection paths in the inspection path set are selected one by one as target inspection paths according to the inspection time periods, and the drone is controlled to take point-by-point photos along the target inspection paths to obtain a time period inspection map group. All time period inspection map groups are compiled into an inspection map set, and photographing and sampling can be performed during the time period when the state of each object to be inspected is most easily observed, thereby improving the accuracy of intelligent inspection.
[0147] S5. Select inspection pictures from the inspection atlas one by one as target inspection pictures, perform texture enhancement and multi-level feature extraction operations on the target inspection pictures in turn to obtain enhanced feature groups, perform security analysis on the target inspection pictures according to the enhanced feature groups to obtain object security semantics, use all object security semantics to perform security annotation on the community inspection model to obtain community inspection results.
[0148] In the embodiment of the present invention, the texture enhancement and multi-level feature extraction operations are performed on the target inspection picture in sequence to obtain an enhanced feature group, including:
[0149] Performing Gaussian filtering on the target inspection image to obtain a target filtered image;
[0150] Performing a texture erosion operation on the target filter image to obtain a target inspection texture, and performing an image segmentation operation on the target filter image using the target inspection texture to obtain a target texture image;
[0151] Generate a grayscale histogram of the target texture image, and use the grayscale histogram to perform grayscale enhancement on the target texture image to obtain a target enhanced image;
[0152] The texture features, color features and shape features of the target enhanced image are extracted respectively, and the texture features, the color features and the shape features are aggregated into an enhanced feature group.
[0153] Specifically, the sobel operator or the canny operator can be used to perform a texture erosion operation on the target filter image to obtain a target inspection texture. The use of the target inspection texture to perform an image segmentation operation on the target filter image to obtain a target texture image means generating a texture mask based on the target inspection texture, and performing an image segmentation operation on the target filter image based on the texture mask to obtain a target texture image.
[0154] In detail, the texture features of the target enhanced image can be extracted using the grayscale co-occurrence matrix method or the Gabor filtering algorithm; the color features can be obtained by generating a color histogram of the target enhanced image; the shape features can be obtained by convolving the target texture image using a multiple convolution residual network or performing skeleton extraction on the target texture image.
[0155] Specifically, performing security analysis on the target inspection image according to the enhanced feature group to obtain object security semantics includes:
[0156] Using a preset attention fusion algorithm to fuse the enhanced feature group into a target inspection feature;
[0157] The inspection object semantics corresponding to the target inspection image is used as the target object semantics, and the object security model corresponding to the target object semantics is selected from a preset security recognition model library as the target object security model;
[0158] The target object security model is used to perform a normalization operation on the target inspection features to obtain a target security code, and the interval semantics of the target security code is used as the object security semantics of the target inspection picture.
[0159] In detail, the security identification model library is a model library composed of multiple pre-trained object security models, each of which is a security analysis model trained by multiple inspection features of an inspection object labeled with security semantics. The security analysis model can be a neural network model such as a support vector machine (SVM), a convolutional neural network (CNN) or a transformer model.
[0160] Specifically, using the target object security model to normalize the target inspection features to obtain a target security code means using the softmax layer or linear normalization layer of the target object security model to normalize the target inspection features to obtain a target security code.
[0161] In detail, the interval semantics refers to the encoding semantic interval of the target object security model. For example, the interval from 0 to 0.60 is safe, the interval from 0.60 to 0.80 is a minor safety hazard, and the interval from 0.80 to 1 is a major safety hazard.
[0162] In detail, the method of fusing the enhanced feature group into a target inspection feature using a preset attention fusion algorithm includes:
[0163] Performing a global dimensionality reduction operation on the texture features in the enhanced feature group to obtain standard texture features;
[0164] Performing a global dimensionality reduction operation on the color features in the enhanced feature group to obtain a standard color feature;
[0165] Performing a global dimensionality reduction operation on the shape features in the enhanced feature group to obtain a standard shape feature;
[0166] The standard texture features, the standard color features and the standard shape features are fused into target inspection features using the following attention fusion algorithm:
[0167]
[0168] Among them, A refers to the target inspection feature, softmax is the normalization function, ω and σ are the fusion weight matrices of the attention fusion algorithm, Q is the standard texture feature, K is the standard color feature, T is the transposition sign, f is the feature dimension, and the feature dimensions of the standard texture feature, the standard color feature and the standard shape feature are equal, and V refers to the standard shape feature.
[0169] Specifically, performing a global dimensionality reduction operation on the texture features in the enhanced feature group to obtain standard texture features; performing a global dimensionality reduction operation on the color features in the enhanced feature group to obtain standard color features; performing a global dimensionality reduction operation on the shape features in the enhanced feature group to obtain standard shape features means using a global pooling layer to reduce the texture features, color features and shape features in the enhanced feature group to the same feature dimension and feature structure.
[0170] In detail, by utilizing the following attention fusion algorithm to fuse the standard texture features, the standard color features, and the standard shape features into target inspection features, attention fusion between multiple features can be achieved, the intrinsic structural relationship of each feature is retained, and the calculation dimension is reduced.
[0171] In an embodiment of the present invention, inspection images of the inspection atlas are selected one by one as target inspection images, texture enhancement and multi-level feature extraction operations are performed on the target inspection images in turn to obtain enhanced feature groups, and security analysis is performed on the target inspection images based on the enhanced feature groups to obtain object safety semantics. All object safety semantics are used to perform security annotation on the community inspection model to obtain community inspection results. Security analysis can be implemented based on multiple features of each inspection object, thereby improving the accuracy of security analysis and thereby improving the efficiency of community safety inspections.
[0172] The embodiment of the present invention obtains a community initial map and a drone acquisition parameter set, generates a coverage detection path of the community initial map according to the drone acquisition parameter set, controls the drone to perform point cloud coverage acquisition along the coverage detection path, and obtains a community point cloud sequence. The drone-borne point cloud scanner can be used to obtain a global point cloud sequence of the community, thereby facilitating subsequent path planning and intelligent inspection. By selecting community point clouds in the community point cloud sequence one by one as target community point clouds, probability filtering, object detection and semantic recognition operations are performed on the target community point clouds in turn to obtain an inspection object semantic set, which can enhance the details of the point cloud, and mark objects that need to be inspected for safety in the target community point cloud. By using the inspection object semantic set to mark the target community point cloud as a target inspection point cloud, all target inspections are The point clouds are spliced into a community inspection point cloud, and the community inspection point cloud is three-dimensionally reconstructed into a community inspection model. The three-dimensional model of the community to be inspected can be reconstructed, which is convenient for subsequent obstacle avoidance and path planning for each object that needs to be inspected. The inspection objects in the community inspection model are divided into multiple inspection period object groups according to the inspection period, and the visual domain analysis is performed on each inspection period object group to obtain a time period inspection point group set. The most suitable shooting point can be selected for each inspection object to obtain a better quality time period inspection atlas. By performing path planning on the time period inspection point group set according to the community inspection model to obtain an inspection path set, a shooting path that passes through all shooting points and can automatically return to its position can be generated, so that the inspection objects in the inspection period can be photographed at one time, thereby improving the inspection speed.
[0173] By selecting the inspection paths in the inspection path set as the target inspection paths one by one according to the inspection time period, controlling the drone to take point shots along the target inspection paths, obtaining a time period inspection map group, and collecting all the time period inspection map groups into an inspection map set, shooting and sampling can be performed in the time period when the state of each object to be inspected is most easily observed, thereby improving the accuracy of intelligent inspection, by selecting the inspection images in the inspection map set as the target inspection images one by one, and sequentially performing texture enhancement and multi-level feature extraction operations on the target inspection images to obtain an enhanced feature group, performing security analysis on the target inspection images according to the enhanced feature group to obtain object security semantics, using all object security semantics to perform security annotation on the community inspection model to obtain community inspection results, and realizing security analysis according to multiple features of each inspection object, thereby improving the accuracy of security analysis and further improving the efficiency of community security inspection. Therefore, the intelligent property inspection method based on community security risks proposed in the present invention can solve the problem of low efficiency when conducting community security inspections.
[0174] like Figure 41 is a functional module diagram of a property intelligent inspection device based on community safety hazards provided by an embodiment of the present invention.
[0175] The intelligent property inspection device 100 based on community safety hazards of the present invention can be installed in an electronic device. According to the functions implemented, the intelligent property inspection device 100 based on community safety hazards can include a point cloud acquisition module 101, a three-dimensional reconstruction module 102, a path planning module 103, an inspection shooting module 104 and a semantic analysis module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0176] In this embodiment, the functions of each module / unit are as follows:
[0177] The point cloud acquisition module 101 is used to obtain the community initial map and the drone acquisition parameter set, generate a coverage detection path of the community initial map according to the drone acquisition parameter set, and control the drone to perform point cloud coverage acquisition along the coverage detection path to obtain a community point cloud sequence;
[0178] The three-dimensional reconstruction module 102 is used to select community point clouds in the community point cloud sequence one by one as target community point clouds, perform probability filtering, object detection and semantic recognition operations on the target community point clouds in turn to obtain a patrol object semantic set, use the patrol object semantic set to annotate the target community point cloud into a target patrol point cloud, splice all target patrol point clouds into a community patrol point cloud, and three-dimensionally reconstruct the community patrol point cloud into a community patrol model;
[0179] The path planning module 103 is used to split the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, perform visual domain analysis on each inspection period object group to obtain a period inspection point group set, perform path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set, wherein the visual domain analysis on each inspection period object group to obtain the period inspection point group set includes: selecting the inspection period object group one by one as the target inspection object group, and selecting the inspection objects in the target inspection object group one by one as the target inspection objects; generating the shooting space of the target inspection object according to the focal length interval of the drone, and selecting the shooting points in the shooting space one by one as the target shooting points; and calculating the offset occlusion coefficient of the target shooting point using the following occlusion field algorithm:
[0180]
[0181] Among them, O irefers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object; the target shooting point with the smallest offset occlusion coefficient is selected as the inspection point of the target inspection object, all the inspection points corresponding to the target inspection object group are aggregated into a time period inspection point group, and all the time period inspection point groups are aggregated into a time period inspection point group set;
[0182] The inspection shooting module 104 is used to select inspection paths in the inspection path set as target inspection paths one by one according to the inspection time period, control the drone to shoot points along the target inspection path, obtain a time period inspection map group, and collect all the time period inspection map groups into an inspection map set;
[0183] The semantic analysis module 105 is used to select inspection pictures from the inspection atlas one by one as target inspection pictures, perform texture enhancement and multi-level feature extraction operations on the target inspection pictures in turn to obtain enhanced feature groups, perform security analysis on the target inspection pictures based on the enhanced feature groups to obtain object safety semantics, and use all object safety semantics to perform security annotation on the community inspection model to obtain community inspection results.
[0184] In detail, each module described in the property intelligent inspection device 100 based on community safety hazards in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The same technical means are used as the property intelligent inspection method based on community safety hazards described in, and can produce the same technical effects, so I will not go into details here.
[0185] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0186] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0187] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, 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 modules.
[0188] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0189] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0190] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0191] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices stated in the system embodiment can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A property intelligent inspection method based on community safety hazards, characterized in that: The method comprises: S1: Obtaining a community initial map and a drone collection parameter set, generating a coverage detection path of the community initial map according to the drone collection parameter set, and controlling the drone to perform point cloud coverage collection along the coverage detection path to obtain a community point cloud sequence; S2: Select the community point clouds in the community point cloud sequence one by one as the target community point cloud, perform probability filtering, object detection and semantic recognition operations on the target community point cloud in turn to obtain a patrol object semantic set, use the patrol object semantic set to annotate the target community point cloud as a target patrol point cloud, splice all the target patrol point clouds into a community patrol point cloud, and three-dimensionally reconstruct the community patrol point cloud into a community patrol model, wherein the three-dimensional reconstruction of the community patrol point cloud into a community patrol model includes: triangulating the community patrol point cloud into a triangular community model; extracting a triangular vertex set and a triangular face set from the triangular community model, matching and reorganizing the triangular vertex set and the triangular face set to obtain a triangular information set; calculating the reconstructed triangular vertices of each triangular face in the triangular community model according to the triangular information set; performing triangular reconstruction on the triangular community model according to the reconstructed triangular vertices to obtain a reconstructed community model; performing surface smoothing operations on the reconstructed community model to obtain a community patrol model; S3: splitting the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, performing visual domain analysis on each inspection period object group to obtain a period inspection point group set, performing path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set, wherein the visual domain analysis on each inspection period object group to obtain the period inspection point group set includes: S31: selecting the inspection period object group one by one as the target inspection object group, and selecting the inspection objects in the target inspection object group one by one as the target inspection objects; S32: generating a shooting space of the target inspection object according to the focal length interval of the drone, and selecting shooting points in the shooting space one by one as target shooting points; S33: Calculate the offset occlusion coefficient of the target shooting point using the following occlusion view algorithm: Among them, O i refers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object; S34: Select the target shooting point with the smallest offset occlusion coefficient as the inspection point of the target inspection object, aggregate all the inspection points corresponding to the target inspection object group into a time period inspection point group, and aggregate all the time period inspection point groups into a time period inspection point group set; S4: selecting inspection paths in the inspection path set as target inspection paths one by one according to the inspection time period, controlling the drone to take point-by-point photos along the target inspection path, obtaining a time period inspection map group, and collecting all the time period inspection map groups into an inspection map set; S5: Select inspection pictures from the inspection atlas one by one as target inspection pictures, perform texture enhancement and multi-level feature extraction operations on the target inspection pictures in turn to obtain enhanced feature groups, perform security analysis on the target inspection pictures according to the enhanced feature groups to obtain object security semantics, use all object security semantics to perform security annotation on the community inspection model to obtain community inspection results.
2. The intelligent property inspection method based on community safety hazards as claimed in claim 1 is characterized in that: The generating of the coverage detection path of the community initial map according to the drone collection parameter set includes: The following coverage projection algorithm is used to calculate the acquisition length and acquisition width according to the UAV acquisition parameter set: Wherein, R1 refers to the acquisition width, R2 refers to the acquisition length, ceiling is the rounding symbol, θ is the longitudinal point cloud acquisition angle in the UAV acquisition parameter set, α refers to the roll angle in the UAV acquisition parameter set, β refers to the lateral point cloud acquisition angle in the UAV acquisition parameter set, and d refers to the flight altitude in the UAV acquisition parameter set; Generate a collection block according to the collection length and the collection width; The community initial map is covered and scanned according to the preset overlapping step length and the collection block to obtain a coverage detection path.
3. The intelligent property inspection method based on community safety hazards as claimed in claim 1 is characterized in that: The method sequentially performs probability filtering, object detection and semantic recognition operations on the target community point cloud to obtain a semantic set of inspection objects, including: Probabilistically filtering the target community point cloud using a preset Gaussian density algorithm to obtain a target filtered point cloud; Performing object detection and object segmentation operations on the target filtered point cloud in sequence to obtain an object point cloud set; Semantic recognition operations are performed on the object point clouds in the object point cloud set one by one to obtain a semantic set of inspection objects.
4. The intelligent property inspection method based on community safety hazards as claimed in claim 3 is characterized in that: The method of performing probability filtering on the target community point cloud using a preset Gaussian density algorithm to obtain a target filtered point cloud includes: Performing median filtering on the target community point cloud to obtain a target denoised point cloud; Extracting geometric features from the target denoised point cloud to obtain a point cloud geometric feature set; The point cloud probability of each point cloud in the target denoised point cloud is calculated according to the point cloud geometric feature set using a preset Gaussian density algorithm: Wherein, N(x) refers to the point cloud probability of point cloud x in the target denoised point cloud, π is the circumference of pi, n is the feature dimension of each point cloud geometric feature in the point cloud geometric feature set, det() is the determinant symbol, Σ x is the Gaussian covariance matrix of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, exp is the exponential function symbol, μ x It refers to the Gaussian mean vector of the point cloud geometric features of the point cloud x in the point cloud geometric feature set, and T is the transposition symbol; The target denoised point cloud is subjected to probability threshold filtering according to the point cloud probability to obtain a target filtered point cloud.
5. The intelligent property inspection method based on community safety hazards as claimed in claim 1 is characterized in that: The step of performing path planning on the inspection point group set in the time period according to the community inspection model to obtain an inspection path set includes: Selecting one by one the time period inspection point groups in the time period inspection point group set as the target inspection point group, and generating the start inspection point and the end inspection point of the target inspection point group according to the inventory coordinates of the drone; Calculating the inventory distance between each inspection point in the target inspection point group and the inventory coordinates; Sorting the inspection points in the target inspection point group according to the order of the inventory distance from small to large to obtain an initial inspection point sequence; Inserting the start inspection point into the head of the initial inspection point sequence, and inserting the end inspection point into the tail of the initial inspection point sequence, to obtain a target inspection point sequence; Performing path planning for the target inspection point sequence according to the community inspection model to obtain an initial inspection path; The initial inspection path is optimized to obtain a target inspection path, and all target inspection paths are aggregated into an inspection path set.
6. The intelligent property inspection method based on community safety hazards according to claim 1 is characterized in that: The target inspection picture is sequentially subjected to texture enhancement and multi-level feature extraction operations to obtain an enhanced feature group, including: Performing Gaussian filtering on the target inspection image to obtain a target filtered image; Performing a texture erosion operation on the target filter image to obtain a target inspection texture, and performing an image segmentation operation on the target filter image using the target inspection texture to obtain a target texture image; Generate a grayscale histogram of the target texture image, and use the grayscale histogram to perform grayscale enhancement on the target texture image to obtain a target enhanced image; The texture features, color features and shape features of the target enhanced image are extracted respectively, and the texture features, the color features and the shape features are aggregated into an enhanced feature group.
7. The intelligent property inspection method based on community safety hazards according to claim 1 is characterized in that: The performing security analysis on the target inspection image according to the enhanced feature group to obtain object security semantics includes: Using a preset attention fusion algorithm to fuse the enhanced feature group into a target inspection feature; The inspection object semantics corresponding to the target inspection image is used as the target object semantics, and the object security model corresponding to the target object semantics is selected from a preset security recognition model library as the target object security model; The target object security model is used to perform a normalization operation on the target inspection features to obtain a target security code, and the interval semantics of the target security code is used as the object security semantics of the target inspection picture.
8. The intelligent property inspection method based on community safety hazards as claimed in claim 7 is characterized in that: The method of fusing the enhanced feature group into a target inspection feature by using a preset attention fusion algorithm includes: Performing a global dimensionality reduction operation on the texture features in the enhanced feature group to obtain standard texture features; Performing a global dimensionality reduction operation on the color features in the enhanced feature group to obtain a standard color feature; Performing a global dimensionality reduction operation on the shape features in the enhanced feature group to obtain a standard shape feature; The standard texture features, the standard color features and the standard shape features are fused into target inspection features using the following attention fusion algorithm: Among them, A refers to the target inspection feature, softmax is the normalization function, θ, ω, σ are the fusion weight matrices of the attention fusion algorithm, Q is the standard texture feature, K is the standard color feature, T is the transposition sign, f is the feature dimension, and the feature dimensions of the standard texture feature, the standard color feature and the standard shape feature are equal, and V refers to the standard shape feature.
9. A property intelligent inspection device based on community safety hazards, characterized in that: The device comprises: A point cloud acquisition module is used to obtain an initial map of the community and a set of acquisition parameters of a drone, generate a coverage detection path of the initial map of the community according to the acquisition parameter set of the drone, and control the drone to perform point cloud coverage acquisition along the coverage detection path to obtain a community point cloud sequence; A three-dimensional reconstruction module is used to select community point clouds in the community point cloud sequence one by one as target community point clouds, perform probability filtering, object detection and semantic recognition operations on the target community point clouds in turn, obtain a patrol object semantic set, use the patrol object semantic set to mark the target community point cloud as a target patrol point cloud, splice all target patrol point clouds into a community patrol point cloud, and three-dimensionally reconstruct the community patrol point cloud into a community patrol model, wherein the three-dimensional reconstruction of the community patrol point cloud into a community patrol model includes: triangulating the community patrol point cloud into a triangular community model; extracting a triangular vertex set and a triangular face set from the triangular community model, matching and reorganizing the triangular vertex set and the triangular face set to obtain a triangular information set; calculating the reconstructed triangular vertices of each triangular face in the triangular community model according to the triangular information set; performing triangular reconstruction on the triangular community model according to the reconstructed triangular vertices to obtain a reconstructed community model; performing surface smoothing operations on the reconstructed community model to obtain a community patrol model; A path planning module is used to split the inspection objects in the community inspection model into multiple inspection period object groups according to the inspection period, perform visual domain analysis on each inspection period object group to obtain a period inspection point group set, perform path planning on the period inspection point group set according to the community inspection model to obtain an inspection path set, wherein the visual domain analysis on each inspection period object group to obtain the period inspection point group set includes: selecting the inspection period object group one by one as the target inspection object group, and selecting the inspection objects in the target inspection object group one by one as the target inspection objects; generating a shooting space for the target inspection object according to the focal length interval of the drone, and selecting shooting points in the shooting space one by one as the target shooting points; and calculating the offset occlusion coefficient of the target shooting point using the following occlusion field algorithm: Among them, O i refers to the offset occlusion coefficient of the target shooting point i, M refers to the total number of pixels shot by the drone, δ is the occlusion weight, j refers to the pixel sequence number shot by the drone, and v i,j It refers to the unit vector of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, · is the vector dot product symbol, p i,j It refers to the occlusion coefficient of the jth pixel ray among all pixel rays starting from the target shooting point i to the surface of the target inspection object, || is the vector modulus symbol, and w refers to the normal vector of the inner surface of the target inspection object; the target shooting point with the smallest offset occlusion coefficient is selected as the inspection point of the target inspection object, all the inspection points corresponding to the target inspection object group are aggregated into a time period inspection point group, and all the time period inspection point groups are aggregated into a time period inspection point group set; An inspection shooting module is used to select inspection paths in the inspection path set as target inspection paths one by one according to the inspection time period, control the UAV to shoot points along the target inspection path, obtain a time period inspection map group, and collect all the time period inspection map groups into an inspection map set; The semantic analysis module is used to select inspection pictures from the inspection atlas one by one as target inspection pictures, perform texture enhancement and multi-level feature extraction operations on the target inspection pictures in turn to obtain enhanced feature groups, perform security analysis on the target inspection pictures based on the enhanced feature groups to obtain object security semantics, and use all object security semantics to perform security annotation on the community inspection model to obtain community inspection results.
Citation Information
Patent Citations
Water area space monitoring fine division method and system
CN108763248A
Inspection path planning method and device, electronic device and readable storage medium
CN109447371A
