A method for data collection, analysis and evaluation of historical and cultural cities based on eagle-eye inspection

Through the UAV system based on Hawkeye Patrol, images of historical buildings are obtained and damaged areas are detected, and the problems of low monitoring efficiency and insufficient accuracy in the existing technology are solved, and efficient and precise protection of ancient buildings in historical and cultural cities are achieved.

CN120182837BActive Publication Date: 2025-07-22GUANGZHOU URBAN PLANNING & DESIGN SURVEY RES INST
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510662839.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-07-22
Estimated Expiration
2045-05-22

AI Technical Summary

Technical Problem

The existing technology is difficult to efficiently and accurately monitor the damage and appearance changes of ancient buildings in historical and cultural cities. Three-dimensional laser scanning equipment is costly, complex in operation and difficult to quickly cover large areas. Traditional monitoring methods are inefficient and difficult to capture subtle changes.

Method used

Using the method based on Hawkeye patrol, the UAV is equipped with Hawkeye equipment, the flight path is planned, the historical building images are obtained, the edge contour is extracted using threshold segmentation and contour tracking algorithms, the building area is divided by combining grayscale symbiosis matrix and clustering algorithm, and the damage area is detected by deep learning semantic segmentation model, and the health evaluation index is evaluated.

Benefits of technology

It has achieved full coverage image acquisition of historical buildings, accurately positioned the damage area, generated damage markings, timely understanding health status and changing trends, and supporting the adjustment of protection strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120182837B_ABST
    Figure CN120182837B_ABST
Patent Text Reader

Abstract

The invention relates to the field of image information processing technology, and specifically to a method for collecting, analyzing and evaluating data of historical and cultural cities based on eagle-eye inspection. The invention calculates the distribution of shooting points in a protection area of a historical and cultural city, plans a flight path, obtains images of historical buildings of each period, extracts edge contours of historical buildings of each period, evaluates the continuity evaluation coefficient of the edge contours of historical buildings of each period, and can more accurately locate damaged areas of historical buildings by dividing them into building bodies and auxiliary structures. It detects and outputs damaged area images of historical buildings of each period, generates damage marking maps of historical buildings of each period, evaluates the health evaluation index of historical buildings of each period, determines the reduction degree level of historical buildings of each period and gives feedback, and can timely understand the health status and change trend of historical buildings, so as to timely adjust protection strategies and measures to deal with possible problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image information processing. Specifically, it is a method for collecting, analyzing, and evaluating historical and cultural city data based on eagle-eye inspection. Background Art

[0002] As a precious heritage of human civilization, historical and cultural cities carry rich historical memories and cultural connotations. However, with the passage of time and the development of cities, these ancient buildings are facing multiple threats such as natural erosion, human damage, and environmental changes. Traditional monitoring methods such as manual inspection and satellite remote sensing have problems such as low efficiency, insufficient accuracy, and difficulty in capturing subtle changes. Although three-dimensional laser scanning technology can obtain high-precision data, it has high equipment costs, complex operations, and poor real-time performance, making it difficult to meet the large-scale and dynamic monitoring needs. There is an urgent need for more efficient and accurate technical means to protect and manage them.

[0003] The existing Chinese patent application with the application number 201711460075.8 discloses a method, device, server, and storage medium for detecting building changes. By comparing the outlines of buildings in the current satellite map with those in historical satellite images, this solution solves the consumption of time and investment of manpower in manually verifying building changes on-site, realizes the automatic detection of building changes, improves the detection efficiency of building changes and the user experience, and reduces the investment of manpower in later map updates.

[0004] However, there are the following problems in the above patent: This solution mainly focuses on map data updates, judging macroscopic changes such as the construction and demolition of buildings, and does not involve the attention to aspects such as building damage and appearance changes, making it difficult to meet the demand for comprehensive monitoring of buildings in some scenarios.

[0005] The existing Chinese patent application with the application number 201810219932.3 discloses a method and device for health monitoring of ancient buildings based on three-dimensional laser scanning technology. By obtaining the structural coordinate information and material information of ancient buildings, comprehensively analyzing various parameters reflecting the health of ancient buildings, and then separately evaluating each parameter, the health condition of ancient buildings is obtained through comprehensive comparison. When obtaining the structural coordinate information of ancient buildings, it is obtained through the first acquisition unit and the second acquisition unit respectively, realizing the acquisition of detailed structural coordinate information of ancient buildings and overcoming the deficiency of dead angles that cannot be scanned by the scanner.

[0006] However, there are the following problems in the above patent: First, this solution uses three-dimensional laser scanning to scan ancient buildings, but three-dimensional laser needs to scan ancient buildings at close range. For large ancient building groups or ancient buildings with complex spaces, the movement of equipment and data collection takes a long time, making it difficult to quickly cover large areas or multiple buildings.

[0007] Second, this solution reconstructs the three-dimensional model and the standard model through surface algorithms and finite element analysis. The data processing process is complex, the amount of calculation is large, and the hardware equipment requirements are high. It mainly focuses on the structural coordinates and material information of ancient buildings, and lacks analysis and quantitative evaluation of building damage. Summary of the invention

[0008] In order to overcome the shortcomings of the background technology, an embodiment of the present invention provides a method for collecting, analyzing and evaluating data of historical and cultural cities based on Eagle Eye inspection, which can effectively solve the problems involved in the above-mentioned background technology.

[0009] The purpose of the present invention can be achieved through the following technical solutions: a method for data collection, analysis and evaluation of historical and cultural cities based on Eagle Eye inspection, the method comprising the following steps: S1. According to the distribution of each shooting point in the protection area of the historical and cultural city, plan the flight path and obtain the images of historical buildings in each period.

[0010] S2. Extract the preliminary edge contours of historical buildings of each period through threshold segmentation, obtain the edge contours of historical buildings of each period using contour tracking algorithm, and remove invalid contours.

[0011] S3. Evaluate the continuity coefficient of the edge contours of historical buildings of each period.

[0012] S4. Based on the gray-level co-occurrence matrix and clustering algorithm, the building image area in the historical building images of each period is divided into the building body and the auxiliary structure.

[0013] S5. Use the deep learning semantic segmentation model to detect the damaged areas of historical buildings, output the damaged area images of historical buildings in each period, and then calculate and generate the damage marking map of historical buildings in each period.

[0014] S6. Evaluate the health evaluation index of historical buildings of each period, determine the degree of reduction of historical buildings of each period and provide feedback.

[0015] Preferably, the specific analysis method of step S1 is: using map software to draw the boundary of the historical and cultural city protection area on the map, within the boundary, select a number of historical buildings as shooting points according to the distribution of historical buildings, and plan the flight path of the drone according to the distribution of each shooting point.

[0016] The inspection cycle is set. In each cycle, the drone is equipped with the Eagle Eye device to fly along the planned flight path. During the flight, the optical image of each shooting point is synchronously collected by the camera, which is recorded as the image of each shooting point in each cycle. The images of each shooting point in each cycle are integrated through image stitching to obtain a complete image covering the protection area of the historical and cultural city, which is recorded as the image of the historical buildings in each cycle.

[0017] Preferably, the drone is also set with an inspection cycle, which includes a start time, an end time, and a time interval. The drone automatically conducts periodic inspections along its flight path according to the set inspection cycle.

[0018] Preferably, the specific analysis method for the edge contours of each cycle of historical buildings is as follows: Set a grayscale value threshold, and segment each cycle of historical building images into a building area and a background area through threshold segmentation to generate binary images of each cycle of historical buildings. Calculate the gradient magnitude and direction of the binary images of each cycle of historical buildings, and perform non-maximum suppression on the binary images of each cycle of historical buildings based on this.

[0019] Set high and low thresholds for the gradient magnitude respectively, traverse each pixel point of the binary images of each cycle of historical buildings after non-maximum suppression, mark the pixel points with a gradient magnitude greater than the high threshold as strong edge points, mark the pixel points with a gradient magnitude between the low threshold and the high threshold as weak edge points, and mark the pixel points with a gradient magnitude less than the low threshold as non-edge points.

[0020] If a weak edge point is connected to at least one strong edge point, then retain this weak edge point as an edge point; otherwise, regard it as a noise point and remove it from the edges. By connecting the edge points that are higher than the low threshold and are connected to the edges higher than the high threshold, the preliminary edge contours of each cycle of historical buildings are obtained.

[0021] Preferably, the specific analysis method for the edge contours of each cycle of historical buildings is as follows: If there are discrete edge pixel points in the preliminary edge contours of each cycle of historical buildings, use a contour tracking algorithm to start from any discrete edge pixel point, search for edge pixel points in its neighborhood in a fixed direction to form a contour sequence until all edge pixels are traversed, thereby constructing the complete edge contours of each cycle of historical buildings and removing the invalid contours in the edge contours of each cycle of historical buildings.

[0022] Preferably, the specific analysis method for step S3 is as follows: Set a breakpoint judgment threshold, calculate the Euclidean distance between each pair of adjacent pixel points in the contour sequence of the edge contours of each cycle of historical buildings respectively. If the Euclidean distance between a pair of adjacent pixel points in the edge contour of a certain cycle of historical buildings is greater than the breakpoint judgment threshold, then it is judged that there is a breakpoint at this position in the edge contour of this cycle of historical buildings, increment the breakpoint count by 1, and traverse the contour sequence of the edge contours of each cycle of historical buildings in this way. The obtained breakpoint count is the number of breakpoints in the edge contours of each cycle of historical buildings.

[0023] Starting from the starting point of the edge contour of each cycle of historical buildings, sequentially search for the breakpoint positions. Whenever a breakpoint is detected, divide the contour part before the breakpoint into a segment, record the starting and ending point coordinates of the segment, calculate the number of pixel points contained in the segment, and traverse the edge contours of each cycle of historical buildings in this way to obtain each contour segment of the edge contours of each cycle of historical buildings and their corresponding lengths, and calculate the proportion of the number of segments in different length intervals respectively.

[0024] Regard the edge contours of each cycle of historical buildings as composed of a series of line segments connected end to end. Use the distance formula between two points to sequentially calculate the lengths of the line segments between adjacent pixel points, and accumulate the lengths of all line segments to obtain the perimeter of the edge contours of each cycle of historical buildings. At the same time, calculate the area of the region enclosed by the edge contours of each cycle of historical buildings, and obtain the ratio of the perimeter to the area of the edge contours of each cycle of historical buildings through calculation.

[0025] Based on the number of breakpoints of the edge contours of each cycle of historical buildings, the proportion of the number of segments in different length intervals, and the ratio of the perimeter to the area of the edge contours, comprehensively evaluate to obtain the continuity evaluation coefficient of the edge contours of each cycle of historical buildings.

[0026] Preferably, the specific analysis method of step S4 is as follows: Slide and traverse on the images of each cycle of historical buildings with a window of a fixed pixel size, and the sliding distance each time is one pixel until the entire historical building image is covered. For each sliding window, set the distance parameter and direction parameter respectively, and calculate the gray-level co-occurrence matrix based on the distance parameter and direction parameter.

[0027] Extract texture feature parameters from the gray-level co-occurrence matrix, generate a set of 4D feature vectors according to the four extracted texture feature parameters in each direction, and combine the feature vectors in the four directions to form a 16D texture feature vector.

[0028] Set the number of clusters to 2, corresponding to the building body and the attached structure respectively. Randomly initialize 2 cluster centers, calculate the Euclidean distances between each of the 16D texture feature vectors and the cluster centers, and assign each texture feature vector to the category of the cluster center with the closest distance.

[0029] Recalculate the mean value of the texture feature vectors in each cluster, and use this mean value as the new cluster center. Repeat the cluster assignment step and the cluster center update operation in this step until the cluster centers no longer change, so as to divide the building image areas in the images of each cycle of historical buildings into two categories: the building body and the attached structure.

[0030] Preferably, the specific analysis method for the historical building damage area images of each cycle is as follows: construct a deep learning semantic segmentation model, obtain a large number of building image data marked with damage areas for training, input the historical building images of each cycle into the trained deep learning semantic segmentation model, and the model outputs the probability that each pixel of the historical building images of each cycle belongs to the damage area. By setting a threshold, the probability that each pixel belongs to the damage area is converted into a binary image, where 1 represents the damage area and 0 represents the non-damage area. Traverse the damage area prediction result image and record the coordinates of all pixels with a value of 1 to obtain the historical building damage area images of each cycle.

[0031] Preferably, the specific operation method for generating the damage marking maps of the historical buildings of each cycle is as follows: according to the division results of the building body and attached structures of the historical building images of each cycle, respectively screen the pixels belonging to the building body and attached structures in the historical building damage area images of each cycle, and calculate the damage parameters of the building body and attached structures of the historical buildings of each cycle accordingly. Each damage parameter includes the area, shape, and pixel density of the damage area.

[0032] Create a blank image with the same size as the historical building images of each cycle, use different colors to mark the damage parameters of the building body and attached structures of the historical buildings of each cycle, and generate the damage marking maps of the historical buildings of each cycle by superimposing and displaying them with the historical building images of each cycle.

[0033] Preferably, the specific analysis method for step S6 is as follows: assign corresponding weights to the building body and attached structures respectively, calculate the comprehensive loss evaluation coefficients of the building body and attached structures of the historical buildings of each cycle based on the damage parameters of the building body and attached structures in the damage marking maps of the historical buildings of each cycle, and evaluate and obtain the health evaluation index of the historical buildings of each cycle in combination with the continuity evaluation coefficient of the edge contours of the historical buildings of each cycle. By comparing the health evaluation indices of adjacent historical buildings of each cycle, obtain the health reduction degree of the historical buildings of each cycle.

[0034] Set the grading threshold for the health reduction degree, compare the health reduction degree of the historical buildings of each cycle with it, obtain the reduction degree level of the historical buildings of each cycle, and feedback it to the system.

[0035] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects: First, through the distribution of each shooting point in the historical and cultural city protection area, the present invention plans the flight path and obtains the historical building images of each cycle, which can ensure comprehensive image acquisition and avoid missing important buildings or key parts of buildings.

[0036] Second, the present invention extracts the edge contours of historical buildings in each period, evaluates the continuity evaluation coefficient of the edge contours of historical buildings in each period, and intuitively reflects the changes in the integrity and stability of the building structure.

[0037] Third, by dividing into the building body and auxiliary structures, the present invention can more accurately locate the damaged areas of historical buildings, detect and output images of the damaged areas of historical buildings in each period, generate damage marking maps of historical buildings in each period, and can accurately locate the damage.

[0038] Fourth, by evaluating the health evaluation index of historical buildings in each period, determining the reduction degree level of historical buildings in each period and giving feedback, the present invention can timely understand the health status and change trend of historical buildings, so as to timely adjust the protection strategies and measures to cope with possible problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present invention will be further described with reference to the accompanying drawings. However, the embodiments in the drawings do not constitute any limitation to the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the following drawings without creative efforts.

[0040] Figure 1 It is a schematic flowchart of the method of the present invention.

[0041] Figure 2 is Figure 1 a schematic flowchart of step S2 in

[0042] Figure 3 is Figure 1 a schematic flowchart of step S3 in DETAILED DESCRIPTION OF THE EMBODIMENTS

[0043] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0044] Please refer to Figure 1 as shown, the present invention provides a method for data collection, analysis and evaluation of historical and cultural cities based on eagle-eye inspection. The method includes the following steps: S1. According to the distribution of each shooting point in the protection area of the historical and cultural city, plan the flight path and obtain historical building images in each period.

[0045] The specific analysis method of the above-mentioned step S1 is as follows: Use a mapping software to draw the boundary of the historical and cultural city protection area on the map. Within the boundary, select several historical buildings as each shooting point according to the distribution of historical buildings, and plan the flight path of the drone according to the distribution of each shooting point; ensure that the drone flight path covers all key historical buildings to prevent data omission, provide a complete and comprehensive data basis for subsequent analysis and evaluation, make the collected data more targeted and effective, and at the same time optimize the drone flight trajectory, reduce unnecessary flights, and improve the data collection efficiency.

[0046] Set an inspection cycle. In each cycle, the drone equipped with an eagle-eye device flies along the planned flight path. During the flight, synchronously collect the optical images of each shooting point through the camera, which are recorded as the images of each shooting point in each cycle. Integrate the images of each shooting point in each cycle through image stitching to obtain a complete image covering the historical and cultural city protection area, which is recorded as the historical building image in each cycle; setting an inspection cycle can realize long-term dynamic monitoring of historical buildings, timely capture the subtle changes of the buildings over time. The image stitching technology integrates the scattered shooting point images into a complete image, presenting the overall style of the buildings in the historical and cultural city protection area, facilitating the analysis of the state of historical buildings from both macroscopic and microscopic levels, and providing detailed visual materials for protection decision-making.

[0047] The drone is also set with an inspection cycle, which includes a start time, an end time, and a time interval. The drone automatically conducts periodic inspections along the flight path of the drone according to the set inspection cycle; the automatic inspection mechanism greatly reduces the labor cost, eliminates the need for manual frequent operation of the drone to perform inspection tasks, reduces the possibility of human operation errors, and the drone strictly flies automatically according to the set inspection cycle and time nodes, ensuring the regularity and stability of data collection, making the data in different cycles comparable, facilitating the establishment of time series data on the state changes of historical buildings, thus more accurately analyzing the evolution trend of the building state, timely discovering potential problems, and providing strong support for the preventive protection of historical buildings.

[0048] S2. Extract the preliminary edge contours of historical buildings in each cycle through threshold segmentation, obtain the edge contours of historical buildings in each cycle using the contour tracking algorithm, and eliminate invalid contours.

[0049] Please refer to Figure 2As shown in the figure, the specific analysis method for the edge contour of each period of historical buildings is as follows: Set a grayscale value threshold, and segment each period of historical building images into building areas and background areas through threshold segmentation to generate binary images of each period of historical buildings. Calculate the gradient magnitude and direction of the binary images of each period of historical buildings, and perform non-maximum suppression on the binary images of each period of historical buildings accordingly. The generation of binary images makes the main structure of the building clearer, facilitating subsequent accurate identification of building edges.

[0050] It should be noted that the specific analysis method for the non-maximum suppression is as follows: Starting from the top-left pixel of the binary image of each period of historical buildings, traverse each pixel point row by row and column by column. For each traversed pixel point, determine the gradient direction interval it belongs to according to the gradient magnitude and direction of the binary image of each period of historical buildings. On the gradient direction of this pixel point, compare its gradient magnitude with that of adjacent pixel points. If the gradient magnitude of the current pixel point is greater than the gradient magnitudes of the two adjacent pixel points in the gradient direction, retain this pixel point as an edge point; otherwise, judge that this pixel point is not an edge point and set its gradient magnitude to 0.

[0051] Set a high threshold and a low threshold for the gradient magnitude respectively. Traverse each pixel point of the binary images of each period of historical buildings after non-maximum suppression. Mark the pixel points with gradient magnitudes greater than the high threshold as strong edge points, mark the pixel points with gradient magnitudes between the low threshold and the high threshold as weak edge points, and mark the pixel points with gradient magnitudes less than the low threshold as non-edge points. The setting of double thresholds provides a more detailed standard for the classification of edge pixels. Strong edge points have higher gradient magnitudes and are the more obvious and definite edge parts in the image, which can be used as the core basis for edge detection. Although the gradient magnitudes of weak edge points are relatively low, they may be the extensions of strong edges or some weaker but still meaningful edge information. By marking them separately, it is possible to further determine whether they are real edges in subsequent processing. The marking of non-edge points helps to exclude noise and interference information in the image, making subsequent edge connection and contour extraction more accurate and efficient, and improving the reliability of edge detection.

[0052] If a weak edge point is connected to at least one strong edge point, retain this weak edge point as an edge point; otherwise, regard it as a noise point and remove it from the edges. By connecting the edge points that are higher than the low threshold and connected to the edges higher than the high threshold, obtain the preliminary edge contours of each period of historical buildings. The acquisition of preliminary edge contours provides a basic framework for subsequent detailed analysis of historical buildings, can reflect the general shape and structural characteristics of the building, and helps to further identify damage, deformation, etc. of the building.

[0053] The specific analysis method for the edge contours of each cycle of historical buildings is as follows: If there are discrete edge pixel points in the preliminary edge contours of each cycle of historical buildings, the contour tracking algorithm is used to start from any discrete edge pixel point and search for edge pixel points in its neighborhood in a fixed direction to form a contour sequence until all edge pixels are traversed, thereby constructing the complete edge contours of each cycle of historical buildings and removing the invalid contours in the edge contours of each cycle of historical buildings; The contour tracking algorithm can effectively process the discrete edge pixel points existing in the preliminary edge contours. By searching for edge pixel points in the neighborhood starting from any discrete point, the scattered edge pixels are connected into a complete contour sequence, making the edge contours of historical buildings more coherent and complete, and being able to accurately reflect the actual shape of the building. Removing the invalid contours can remove the unnecessary edge information generated due to noise, image interference, or misdetection, making the finally obtained edge contours more concise and accurate.

[0054] It should be noted that the specific analysis method of the contour tracking algorithm is as follows: Traverse the binary image after edge detection, scan the pixel points row by row and column by column starting from the upper left corner of the image, select the first detected edge pixel point as the starting point, and record its coordinates. The eight-direction chain code is used to assign numbers from 0 to 7 to the 8 neighborhood directions centered on the current pixel point.

[0055] In the eight-direction chain code, 0 represents the positive right direction, 1 represents the upper right direction, 2 represents the positive upper direction, 3 represents the upper left direction, 4 represents the positive left direction, 5 represents the lower left direction, 6 represents the positive lower direction, and 7 represents the lower right direction.

[0056] Centered on the starting point, check its 8-neighborhood pixels in the preset direction in sequence. If the pixel in the 0 direction is an edge pixel, use it as the next contour point, record the coordinate information, and set this point as the current point. If the pixel in the 0 direction is not an edge pixel, check the pixel in the 1 direction in sequence until the next edge pixel point is found.

[0057] Take the newly found edge pixel point as the current point, repeat the above operation, continuously search for the next edge pixel point, and add it to the contour sequence. When the coordinates of the found pixel point are exactly the same as the coordinates of the starting point, it is judged that a complete contour tracking is completed, and record the coordinate information of each pixel point to form a complete contour sequence.

[0058] It should be noted that during the tracking process, to avoid repeated access to the traversed pixel points, a marking matrix is set, which is initialized as a matrix of all 0s. Whenever a pixel point is accessed, the value of the corresponding position in the marking matrix is set to 1. When searching for neighborhood pixels, skip the marked pixel points to prevent falling into an infinite loop.

[0059] It should be noted that the specific analysis method for removing invalid contours from the edge contours of historical buildings in each period is as follows: Set the distance threshold between the starting point and the ending point of the contour and the threshold of the minimum number of pixels in the contour. For the contour sequence obtained by contour tracking in the edge contours of historical buildings in each period, obtain their starting point coordinates and ending point coordinates respectively, and use the Euclidean distance formula to calculate the distance between the starting point coordinates and the ending point coordinates. If the distance between the starting point coordinates and the ending point coordinates in the edge contour of a certain period of historical building is less than or equal to the set ending distance threshold, it is judged that the edge contour of this period of historical building is close to closing in terms of spatial position; otherwise, it is judged that the edge contour of this period of historical building is an unclosed contour.

[0060] Count the number of pixels included in the contour sequence of the edge contour of historical buildings in each period. If the number of pixels in the edge contour of a certain period of historical building is greater than or equal to the set minimum number of pixels threshold in the contour, it is judged that the edge contour of this period of historical building is a valid contour; otherwise, it is determined that the number of pixels in the edge contour of the historical building is too small and is an invalid contour, and it is removed.

[0061] For an unclosed contour, calculate the straight-line equation between the starting point and the ending point of the contour. According to the straight-line equation, insert a certain number of pixels evenly between the starting point and the ending point to close the contour, and obtain the newly generated closed contour. If the number of pixels in the newly generated closed contour still cannot meet the requirement of being greater than or equal to the minimum number of pixels threshold in the contour, it is determined that this contour is an invalid contour and is removed.

[0062] S3. Evaluate the continuity evaluation coefficient of the edge contours of historical buildings in each period.

[0063] Please refer to Figure 3 As shown, the specific analysis method for step S3 is as follows: Set the breakpoint judgment threshold, and calculate the Euclidean distance between each pair of adjacent pixels in the contour sequence of the edge contour of historical buildings in each period respectively. If the Euclidean distance between a certain pair of adjacent pixels in the edge contour of a certain period of historical building is greater than the breakpoint judgment threshold, it is judged that there is a breakpoint at this position in the edge contour of this period of historical building, and the breakpoint count is incremented by 1. Traverse the contour sequence of the edge contours of historical buildings in each period in this way, and the obtained breakpoint count is the number of breakpoints of the edge contours of historical buildings in each period; By setting a threshold to quantify the distance between adjacent pixels, the breakpoints in the edge contours of historical buildings can be accurately identified, and the discontinuous situation of the contour can be digitally expressed. The number of breakpoints can intuitively reflect the degree of fracture of the edge contour, helping to quickly judge whether there are damages, deformations, etc. in the structure of historical buildings, and providing key indicators for subsequent evaluation of the building state.

[0064] Starting from the starting point of the edge contour of historical buildings in each period, search for the break point positions in sequence. Whenever a break point is detected, the contour part before the break point is divided into a segment, and the starting point and ending point coordinates of the segment are recorded. Calculate the number of pixel points contained in this segment, and traverse the edge contours of historical buildings in each period in this way to obtain each contour segment of the edge contours of historical buildings in each period and their corresponding lengths, and calculate the proportion of the number of segments in different length intervals respectively; this helps to discover the subtle differences in the building edge contours, capture the morphological evolution trends of historical buildings in different periods, and provide data support for studying the impact of factors such as building aging and environmental erosion on the building form.

[0065] Regard the edge contours of historical buildings in each period as composed of a series of line segments connected end to end. Use the distance formula between two points to calculate the lengths of the line segments between adjacent pixel points in sequence, and accumulate the lengths of all line segments to obtain the perimeter of the edge contours of historical buildings in each period. At the same time, calculate the area of the region enclosed by the edge contours of historical buildings in each period, and calculate the ratio of the perimeter to the area of the edge contours of historical buildings in each period through calculation; the perimeter reflects the total length of the building edge, the area reflects the space range occupied by the building, and the ratio of the two can be used as an index to measure the compactness or complexity of the building.

[0066] Based on the number of break points of the edge contours of historical buildings in each period, the proportion of the number of segments in different length intervals, and the ratio of the perimeter to the area of the edge contours, comprehensively evaluate to obtain the continuity evaluation coefficient of the edge contours of historical buildings in each period; generating the continuity evaluation coefficient by integrating multi-dimensional indicators avoids the one-sidedness of a single indicator and can comprehensively and objectively evaluate the continuity of the edge contours of historical buildings.

[0067] In a preferred embodiment of the present invention, the specific analysis method of the continuity evaluation coefficient of the edge contours of historical buildings in each period is as follows: extract the number of break points of the edge contours of historical buildings in each period, the proportion of the number of segments in different length intervals, and the ratio of the perimeter to the area of the edge contours, and then perform a weighted summation calculation to obtain the continuity evaluation coefficient of the edge contours of historical buildings in each period.

[0068] Exemplarily, the weights corresponding to the number of break points of the edge contours of historical buildings in each period, the proportion of the number of segments in different length intervals, and the ratio of the perimeter to the area of the edge contours are .

[0069] S4. Based on the gray-level co-occurrence matrix and the clustering algorithm, divide the building image area in the historical building images in each period into the building body and the accessory structure.

[0070] The specific analysis method for step S4 is as follows: A window with a fixed pixel size is slid and traversed on each periodic historical building image, with a sliding distance of one pixel each time until the entire historical building image is covered. For each sliding window, distance parameters and direction parameters are respectively set, and a gray-level co-occurrence matrix is calculated based on the distance parameters and direction parameters; by respectively setting the distance parameters and direction parameters to calculate the gray-level co-occurrence matrix, the gray-level co-occurrence matrix can reflect the texture features of the image at different distances and directions, which helps to capture various complex texture patterns in the historical building image and provides a rich data basis for subsequent texture feature analysis.

[0071] It should be noted that the specific analysis method for the gray-level co-occurrence matrix is as follows: In the horizontal direction, for two pixels with a distance of , if their gray values are respectively , then the value at the corresponding position in the matrix is incremented by 1. The specific implementation steps are as follows: Traverse each pixel in the window , check whether it is within the window. If it is within the window, obtain the gray values of these two pixels , and increment the value of by 1.

[0072] In the 45° direction, for two pixels with a distance of , if their gray values are respectively , then the value at the corresponding position in the matrix is incremented by 1.

[0073] In the vertical direction, for two pixels with a distance of , if their gray values are respectively , then the value at the corresponding position in the matrix is incremented by 1.

[0074] In the 135° direction, for two pixels with a distance of , if their gray values are respectively , then the value at the corresponding position in the matrix is incremented by 1.

[0075] After calculating the occurrence times of all pixel pairs, the gray-level co-occurrence matrix is normalized so that the sum of its elements is 1.

[0076] Texture feature parameters are extracted from the gray-level co-occurrence matrix, a set of 4-dimensional feature vectors are generated in each direction based on the four extracted texture feature parameters, and the feature vectors in the four directions are combined to form a 16-dimensional texture feature vector; the texture features in different directions may be different, and multi-directional feature extraction can better capture these differences.

[0077] The number of clusters is set to 2, corresponding to the building body and the ancillary structure respectively, and two cluster centers are randomly initialized. The Euclidean distance between each of the 16-dimensional texture feature vectors and the cluster center is calculated, and each texture feature vector is assigned to the category to which the cluster center is closest. The classification method based on Euclidean distance is simple and intuitive, and can quickly make a preliminary division of the image area, thereby improving the efficiency of classification, and can reflect the differences in texture features between the building body and the ancillary structure to a certain extent.

[0078] The mean of the texture feature vectors in each cluster is recalculated, and the mean is used as the new cluster center. The cluster assignment step and the cluster center update operation of this step are repeated until the cluster center no longer changes, thereby dividing the building image area in each period of historical building images into two categories: building body and auxiliary structure; through multiple iterations, each texture feature vector can be accurately assigned to the appropriate category, thereby achieving accurate division of the building body and auxiliary structure in the historical building image.

[0079] S5. Use the deep learning semantic segmentation model to detect the damaged areas of historical buildings, output the damaged area images of historical buildings in each period, and then calculate and generate the damage marking map of historical buildings in each period.

[0080] The specific analysis method of the damaged area images of historical buildings in each period is as follows: constructing a deep learning semantic segmentation model, obtaining a large amount of building image data marked with damaged areas for training, inputting the historical building images of each period into the trained deep learning semantic segmentation model, the model outputs the probability that each pixel of the historical building image of each period belongs to the damaged area, and converts the probability of each pixel belonging to the damaged area into a binary image by setting a threshold, wherein 1 represents a damaged area and 0 represents a non-damaged area, traversing the damaged area prediction result image, recording the coordinates of all pixel points with a value of 1, and obtaining the damaged area images of the historical buildings in each period; avoiding the subjectivity and errors of manual judgment, and realizing the pixel-level positioning and extraction of the damaged area.

[0081] The specific operation method for generating the damage marking maps of historical buildings in each period is as follows: According to the division results of the building body and the attached structures in the historical building images in each period, the pixels belonging to the building body and the attached structures in the damage area images of historical buildings in each period are respectively screened, and based on this, the damage parameters of the building body and the attached structures of historical buildings in each period are calculated. Each damage parameter includes the area, shape, and pixel density of the damage area. By making a vertical comparison of the damage parameters in different periods, the damage development trend can be clearly presented.

[0082] It should be noted that the specific analysis method for screening the pixels belonging to the building body and the attached structures in the damage area images of historical buildings in each period is as follows: Based on the existing division results of the building body and the attached structures, they are respectively subjected to a logical AND operation with the damage area images of historical buildings in each period. In the logical AND operation, only when the corresponding pixel positions in the building body / attached structure division image and the damage area image are both 1, the result is 1, and in other cases, it is 0. Based on this, the pixels belonging to the damage area in the building body and the attached structures are respectively screened out.

[0083] The calculation method for the damage area is as follows: Count the number of pixels with a value of 1 in the pixels of the damage area of the building body, and multiply it by the actual area represented by a single pixel to obtain the area of the damage area of the building body. Using the same method, count the number of pixels with a value of 1 in the pixels of the damage area of the attached structure, and then multiply it by the actual area of a single pixel to obtain the area of the damage area of the attached structure.

[0084] The calculation method for the damage shape is as follows: For the binary images of the damage areas of the building body and the attached structures, the edge detection algorithm is respectively used to extract the contours of their respective damage areas. By accumulating the distances between the contour points on the contours of the damage areas of the building body and the attached structures, the approximate perimeters of the damage areas of the building body and the attached structures are obtained. Using the formula The circularity of the damage areas of the building body and the attached structures is respectively calculated. The closer the circularity is to 1, the closer the shape of the damage area is to a circle, and the smaller the value, the more irregular the shape.

[0085] The circumscribed rectangles of the contours of the damage areas of the building body and the attached structures are respectively found, the length and width of the circumscribed rectangle are measured, and the ratio of the length to the width is calculated to obtain the aspect ratio of the damage areas of the building body and the attached structures.

[0086] The calculation method of the pixel density of the damage area is as follows: count the total area of the building body (obtained by multiplying the number of pixels with a value of 1 in the building body division image by the actual area of a single pixel), divide the number of pixels in the damaged area of the building body by the total area of the building body to obtain the pixel density of the damaged area of the building body. Similarly, count the total area of the accessory structure (obtained by multiplying the number of pixels with a value of 1 in the accessory structure division image by the actual area of a single pixel), divide the number of pixels in the damaged area of the accessory structure by the total area of the accessory structure to obtain the pixel density of the damaged area of the accessory structure.

[0087] Create a blank image with the same size as the historical building images of each period, use different colors to mark each damage parameter of the building body and accessory structure of the historical building of each period, and obtain the damage marking map of the historical building of each period by superimposing and displaying it with the historical building images of each period; superimpose the damage parameters marked in color on the original image, convert the abstract damage data into intuitive visual graphics, which can quickly locate the damage position, understand the damage distribution and severity, and greatly improve the information transmission efficiency.

[0088] S6. Evaluate the health evaluation index of the historical building of each period, determine the reduction degree level of the historical building of each period and give feedback.

[0089] The specific analysis method of the step S6 is as follows: assign corresponding weights to the building body and the accessory structure respectively, calculate the comprehensive loss evaluation coefficients of the building body and the accessory structure of the historical building of each period based on each damage parameter of the building body and the accessory structure in the damage marking map of the historical building of each period, and evaluate and obtain the health evaluation index of the historical building of each period by combining the continuity evaluation coefficient of the edge contour of the historical building of each period. By comparing the health evaluation indexes of adjacent historical buildings, the health reduction degree of the historical building of each period can be obtained; the health change trend of the historical building in different time stages can be clearly understood, which helps to timely discover the rapid deterioration or abnormal change of the building health condition.

[0090] In a preferred embodiment of the present invention, the specific analysis method of the health evaluation index of the historical building of each period is as follows: extract the comprehensive loss evaluation coefficients of the building body and the accessory structure of the historical building of each period and the continuity evaluation coefficient of the edge contour, and then perform a weighted summation calculation to obtain the health evaluation index of the historical building of each period.

[0091] Exemplarily, the weights corresponding to the comprehensive loss evaluation coefficients of the building body and the accessory structure of the historical building of each period and the continuity evaluation coefficient of the edge contour are .

[0092] Set the grading threshold for the degree of health reduction, compare the degree of health reduction of historical buildings in each period with it, obtain the reduction degree level of historical buildings in each period, and feedback it to the system; adopt corresponding protection measures and intervention means according to different levels to achieve precise protection and effective management of historical buildings in the protection area of historical and cultural cities.

[0093] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention, and still be covered by the protection scope of the present invention.

Claims

1. A method for collecting, analyzing and evaluating data of historical and cultural cities based on eagle-eye inspection, characterized in that, It includes the following steps: S1. According to the distribution of each shooting point in the historical and cultural city protection area, plan the flight path and obtain historical building images for each period; S2. Extract the preliminary edge contours of historical buildings for each period through threshold segmentation, use the contour tracking algorithm to obtain the edge contours of historical buildings for each period, and eliminate invalid contours; S3. Evaluate the continuity evaluation coefficient of the edge contours of historical buildings for each period; The specific process of step S3 is as follows: Set the breakpoint judgment threshold, calculate the Euclidean distance between each pair of adjacent pixel points in the contour sequence of the edge contour of historical buildings for each period respectively. If the Euclidean distance between a pair of adjacent pixel points in the edge contour of a certain period of historical building is greater than the breakpoint judgment threshold, it is judged that there is a breakpoint at the position of the edge contour of this period of historical building, and the breakpoint count is incremented by 1. Traverse the contour sequence of the edge contour of historical buildings for each period in this way, and the obtained breakpoint count is the number of breakpoints of the edge contour of historical buildings for each period; Starting from the starting point of the edge contour of historical buildings for each period, find the breakpoint positions in turn. Whenever a breakpoint is detected, divide the contour part before the breakpoint into a segment, record the starting point and ending point coordinates of the segment, calculate the number of pixel points contained in the segment, and traverse the edge contour of historical buildings for each period in this way to obtain each contour segment of the edge contour of historical buildings for each period and its corresponding length, and calculate the proportion of the number of segments in different length intervals respectively; Regard the edge contour of historical buildings for each period as composed of a series of line segments connected end to end, use the distance formula between two points to calculate the line segment length between adjacent pixel points in turn, and accumulate the lengths of all line segments to obtain the perimeter of the edge contour of historical buildings for each period. At the same time, calculate the area of the region enclosed by the edge contour of historical buildings for each period, and calculate the ratio of the perimeter to the area of the edge contour of historical buildings for each period; Based on the number of breakpoints of the edge contour of historical buildings for each period, the proportion of the number of segments in different length intervals, and the ratio of the perimeter to the area of the edge contour, comprehensively evaluate to obtain the continuity evaluation coefficient of the edge contour of historical buildings for each period; S4. Based on the gray-level co-occurrence matrix and clustering algorithm, divide the building image area in the historical building images for each period into the building body and accessory structures; S5. Use the deep learning semantic segmentation model to detect the damaged areas of historical buildings, output the damaged area images of historical buildings for each period, and thus calculate and generate the damage marking maps of historical buildings for each period; S6. Evaluate the health evaluation index of historical buildings for each period, determine the reduction degree level of historical buildings for each period and give feedback.

2. The data collection, analysis and evaluation method for historical and cultural cities based on hawk-eye inspection according to claim 1, characterized in that: The specific analysis method of step S1 is as follows: Use map software to draw the boundary of the historical and cultural city protection area on the map. Inside the boundary, select several historical buildings as each shooting point according to the distribution of historical buildings, and plan the flight path of the drone according to the distribution of each shooting point; Set the inspection cycle. During each cycle, the drone carrying the Eagle Eye device flies along the planned flight path. During the flight, optical images of each shooting point are synchronously collected through the camera, recorded as images of each shooting point in each cycle. The images of each shooting point in each cycle are integrated through image stitching to obtain a complete image covering the historical and cultural city protection area, recorded as historical building images in each cycle.

3. The method for collecting, analyzing and evaluating historical and cultural city data based on hawk-eye inspection according to claim 2, wherein: The drone is also set with an inspection cycle. The inspection cycle includes a start time, an end time, and a time interval. The drone automatically conducts periodic inspections along the flight path of the drone according to the set inspection cycle.

4. A method for collecting, analyzing and evaluating historical and cultural city data based on eagle-eye inspection according to claim 1, characterized in that: The specific analysis method for the edge contours of historical buildings in each cycle is as follows: Set the gray value threshold. Through threshold segmentation, the historical building images in each cycle are segmented into a building area and a background area, generating binary images of historical buildings in each cycle. Calculate the gradient magnitude and direction of the binary images of historical buildings in each cycle, and perform non-maximum suppression on the binary images of historical buildings in each cycle accordingly. Set a high threshold and a low threshold for the gradient magnitude respectively. Traverse each pixel point of the binary images of historical buildings in each cycle after non-maximum suppression. Mark the pixel points with a gradient magnitude greater than the high threshold as strong edge points, mark the pixel points with a gradient magnitude between the low threshold and the high threshold as weak edge points, and mark the pixel points with a gradient magnitude less than the low threshold as non-edge points. If a weak edge point is connected to at least one strong edge point, then retain the weak edge point as an edge point, otherwise regard it as a noise point and remove it from the edge. By connecting the edge points that are higher than the low threshold and connected to the edges higher than the high threshold, obtain the preliminary edge contours of historical buildings in each cycle.

5. The method for collecting, analyzing and evaluating the data of historical and cultural cities based on eagle-eye inspection according to claim 4, wherein: The specific analysis method for the edge contours of historical buildings in each cycle is as follows: If there are discrete edge pixels in the preliminary edge contours of historical buildings in each cycle, use the contour tracking algorithm to start from any discrete edge pixel, search for edge pixels in its neighborhood in a fixed direction to form a contour sequence until all edges are traversed, thereby constructing the complete edge contours of historical buildings in each cycle and removing the invalid contours in the edge contours of historical buildings in each cycle.

6. The method for collecting, analyzing and evaluating the data of historical and cultural cities based on eagle-eye inspection according to claim 1, wherein: The specific analysis method for step S4 is as follows: Perform a sliding traversal on the historical building images in each cycle using a window with a fixed pixel size. The sliding distance each time is one pixel until the entire historical building image is covered. For each sliding window, set a distance parameter and a direction parameter respectively, and calculate the gray-level co-occurrence matrix based on the distance parameter and the direction parameter. Extract texture feature parameters from the gray-level co-occurrence matrix. Generate a set of 4D feature vectors based on the four extracted texture feature parameters in each direction. Combine the feature vectors in the four directions to form a 16D texture feature vector. Set the number of clusters to 2, corresponding to the building body and the attached structure respectively. Randomly initialize 2 cluster centers, calculate the Euclidean distance between each 16D texture feature vector and the cluster centers, and assign each texture feature vector to the category of the cluster center with the closest distance. Recalculate the mean of the texture feature vectors in each cluster, and use this mean as the new cluster center. Repeat the clustering assignment step and the cluster center update operation in this step until the cluster center no longer changes, so as to divide the building image areas in the historical building images of each period into two categories: the building body and the attached structure.

7. A method for collecting, analyzing, and evaluating historical and cultural city data based on eagle-eye inspection according to claim 1, characterized in that: The specific analysis method for the damaged area images of the historical buildings in each period is as follows: Construct a deep learning semantic segmentation model, obtain a large number of building image data marked with damaged areas for training, input the historical building images of each period into the trained deep learning semantic segmentation model. The model outputs the probability that each pixel in the historical building images of each period belongs to the damaged area. By setting a threshold, convert the probability that each pixel belongs to the damaged area into a binary image, where 1 represents the damaged area and 0 represents the non-damaged area. Traverse the predicted result image of the damaged area and record the coordinates of all pixels with a value of 1 to obtain the damaged area images of the historical buildings in each period.

8. A method for data collection, analysis and evaluation of historical and cultural cities based on eagle-eye inspection according to claim 7, characterized in that: The specific operation method for generating the damage marking maps of the historical buildings in each period is as follows: According to the division results of the building body and the attached structure in the historical building images of each period, respectively screen the pixels belonging to the building body and the attached structure in the damaged area images of the historical buildings in each period, so as to calculate the damage parameters of the building body and the attached structure of the historical buildings in each period. Each damage parameter includes the area, shape, and pixel density of the damaged area. Create a blank image with the same size as the historical building images of each period, use different colors to mark the damage parameters of the building body and the attached structure of the historical buildings in each period, and generate the damage marking maps of the historical buildings in each period by superimposing them on the historical building images of each period.

9. A method for collecting, analyzing and evaluating historical and cultural city data based on eagle-eye inspection according to claim 1, characterized in that: The specific analysis method for step S6 is as follows: Assign corresponding weights to the building body and the attached structure respectively. Based on the damage parameters of the building body and the attached structure in the damage marking maps of the historical buildings in each period, calculate the comprehensive loss evaluation coefficients of the building body and the attached structure of the historical buildings in each period respectively. Combine the continuity evaluation coefficient of the edge contour of each historical building to evaluate and obtain the health evaluation index of each historical building. By comparing the health evaluation indices of adjacent historical buildings, obtain the health reduction degree of each historical building. Set the grading threshold of the health reduction degree, compare the health reduction degree of each historical building with it, obtain the reduction degree level of each historical building, and feedback it to the system.

Citation Information

Patent Citations

  • Building change detecting method and device, server and storage medium

    CN108287872A

  • Three-dimensional laser scanning technology-based ancient building health monitoring method and apparatus

    CN108509696A

  • Historical building digital monitoring protection method and system based on data fusion

    CN119089392A