Green micro-renovation system for old urban communities
Through drone aerial photography and image recognition technology, the regional distribution map of the old community can be quickly obtained, which solves the problem of obtaining the ground area distribution map of the old community and realizes the targeted design of the community reconstruction.
Patent Information
- Application Number
- CN202410199648.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-23
AI Technical Summary
When carrying out micro-renovation in an old community, how to quickly obtain the distribution map of different areas on the ground, especially when the original floor plan has been lost.
UAVs are used for aerial photography, and overhead images are obtained through the shooting coordinate determination module and flight control module. The image recognition module is used to splice and identify the images, divide and merge similar areas, and generate distribution maps of various types of areas in the community.
It can quickly and accurately obtain the distribution of different areas of old communities, provide targeted community reconstruction plans, and improve the efficiency of reconstruction.
Smart Images

Figure CN117953400B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to a green micro-renovation system for old urban communities. Background Art
[0002] When carrying out micro-renovation of old residential communities in towns, it is usually necessary to first obtain the distribution map of various types of areas in the community, so that designers can carry out targeted renovation of the old community according to the distribution of areas with different functions in the community. For example, the roads inside the community can be changed to make it more convenient for residents to enter and exit the community.
[0003] Since the old residential areas have been built for a long time, the original floor plan may have been lost. Therefore, how to quickly obtain the distribution map of different areas on the ground of the old residential areas has become a technical problem that needs to be solved. Summary of the invention
[0004] The purpose of the present invention is to disclose a green micro-renovation system for old urban communities and to solve the problem of how to quickly obtain distribution maps of different areas on the ground of old communities.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] The present invention provides a green micro-renovation system for old urban communities, including a shooting coordinate determination module, a flight control module, a drone and an image recognition module;
[0007] The shooting coordinate determination module is used to determine the shooting coordinates of the drone when taking aerial photos of old residential areas;
[0008] The flight control module is used to control the drone to fly to each shooting coordinate, and to control the drone to take a bird's-eye view of the old residential area after the drone arrives at the shooting coordinate to obtain a bird's-eye view image.
[0009] The drone is used to send the captured overhead images to the image recognition module;
[0010] The image recognition module is used to stitch all the overhead images to obtain a stitched image, and to perform image recognition on the stitched image to obtain the existing areas in the stitched image, and to merge the same type of adjacent areas into the same area, thereby obtaining a distribution map of each type of area in the old community.
[0011] Optionally, the flight control module is also used to control the drone to fly to a first altitude above the old residential area, and to control the drone to photograph the old residential area vertically downward at the first altitude to obtain aerial images.
[0012] Optionally, determine the coordinates of the drone when taking aerial photos of old residential areas, including:
[0013] The aerial image is cut according to the latitude and longitude range of the old residential area on the map to obtain a cut image;
[0014] Partitioning the cut image into multiple local areas;
[0015] The longitude and latitude of the center of each local area are obtained respectively, and the longitude and latitude are used as the shooting coordinates.
[0016] Optionally, control the drone to fly to each shooting coordinate separately, including:
[0017] The drone is controlled to fly to a second height directly above each shooting coordinate, where the second height is less than the first height.
[0018] Optionally, the cut image is partitioned into a plurality of local regions, including:
[0019] S1, obtain the minimum enclosing rectangle corresponding to the cut image;
[0020] S2, cutting the image composed of pixels within the minimum bounding rectangle to obtain multiple sub-regions of the same size;
[0021] S3, locally merge the sub-regions to obtain multiple local regions.
[0022] Optionally, the image composed of pixels within the minimum bounding rectangle is cut to obtain multiple sub-regions of the same size, including:
[0023] Calculate the image P composed of pixels within the minimum bounding rectangle to obtain the number of sub-regions N;
[0024] Cut P into N sub-regions of equal area.
[0025] Optionally, the remaining sub-regions are locally merged to obtain multiple local regions, including:
[0026] S10, store all sub-regions into set K;
[0027] S20, randomly select a sub-region from the set K as the processing region;
[0028] S30, saving the processing area to set Q;
[0029] S40, respectively calculating a combined probability value UAB of each sub-region adjacent to the processing region and belonging to the set K;
[0030] S50, determine whether the maximum value of UAB is less than the set merge probability value threshold. If so, store the sub-region corresponding to the maximum value of UAB into the set Q, and use the sub-region with the largest UAB as the new processing region, and enter S60; if not, enter S70;
[0031] S60, deleting the sub-regions in the set Q from the set K, and determining whether the number of the sub-regions in the set Q is greater than a set number threshold, if not, proceeding to S40; if yes, proceeding to S70;
[0032] S70, all sub-regions in the set Q form a local region, and then proceed to S80;
[0033] S80, reset the set Q to an empty set, and enter S90;
[0034] S90, determining whether the number of sub-regions in the set K is 1, if so, outputting all local regions; if not, entering S20.
[0035] Optionally, image recognition is performed on the stitched image to obtain the existing area in the stitched image, including:
[0036] A pre-trained neural network algorithm is used to perform image recognition on the stitched image to obtain the existing area in the stitched image.
[0037] Optionally, the types of areas include residential areas, commercial areas, sports areas, road areas and green areas.
[0038] Beneficial effects:
[0039] The present invention utilizes a drone to take photos at different positions above the old residential area, then stitches the aerial images obtained to obtain a stitched image, and then performs image recognition on the stitched image, thereby quickly determining the distribution of different areas in the old residential area and obtaining a distribution map of different areas in the residential area. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0041] Figure 1 A schematic diagram of the green micro-renovation system for old urban communities of the present invention.
[0042] Figure 2 A schematic diagram of the process of dividing a cut image into multiple local areas according to the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope parameters of the protection of the present invention.
[0044] like Figure 1 In one embodiment shown, the present invention provides a green micro-renovation system for old urban communities, including a shooting coordinate determination module, a flight control module, a drone, and an image recognition module;
[0045] The shooting coordinate determination module is used to determine the shooting coordinates of the drone when taking aerial photos of old residential areas;
[0046] The flight control module is used to control the drone to fly to each shooting coordinate, and to control the drone to take a bird's-eye view of the old residential area after the drone arrives at the shooting coordinate to obtain a bird's-eye view image.
[0047] The drone is used to send the captured overhead images to the image recognition module;
[0048] The image recognition module is used to stitch all the overhead images to obtain a stitched image, and to perform image recognition on the stitched image to obtain the existing areas in the stitched image, and to merge the same type of adjacent areas into the same area, thereby obtaining a distribution map of each type of area in the old community.
[0049] The present invention utilizes a drone to take photos at different positions above the old residential area, then stitches the aerial images obtained to obtain a stitched image, and then performs image recognition on the stitched image, thereby quickly determining the distribution of different areas in the old residential area and obtaining a distribution map of different areas in the residential area.
[0050] Specifically, when shooting from above, the drone's camera is perpendicular to the ground plane.
[0051] Optionally, for all overhead images, a stitched image is obtained, including:
[0052] First round of stitching:
[0053] First, a bird's-eye view image is randomly selected as the reference image, and then other bird's-eye view images adjacent to the shooting coordinates of the reference image are spliced with the bird's-eye view image, thus completing the first round of splicing;
[0054] Second round of stitching:
[0055] The image obtained by the first round of stitching is used as the reference image for the second round of stitching, and other overhead images adjacent to the shooting coordinates of the reference image are stitched with the overhead image respectively, thus completing the second round of stitching;
[0056] And so on, until all the overhead images are stitched into one stitched image.
[0057] Specifically, in the same round of stitching, other overhead images adjacent to the shooting coordinates of the benchmark image can be stitched with the benchmark image in a clockwise or counterclockwise order. After each stitching, a new benchmark image in the same round of stitching will be obtained. The next stitching is performed on the new benchmark image. As the number of stitching increases, the area of the benchmark image gradually increases.
[0058] Optionally, adjacent areas of the same type can be merged into one area, including:
[0059] For region c of type A, all regions of the same type as c in the adjacent regions of c are merged with c to obtain the region obtained by the first merger;
[0060] For the region obtained by the first merger, all regions of the same type as the region obtained by the first merger in the regions adjacent to the region obtained by the first merger are merged with the region obtained by the first merger to obtain the region obtained by the second merger;
[0061] This is done in a similar manner until there is no region of the same type as the region obtained after the multiple merging among the regions adjacent to the region obtained after the multiple merging, thereby obtaining a merging result of regions of one type.
[0062] Optionally, on the distribution map of each type of area in the old residential area, the same area is represented by the same color, and the type of area is represented by words or letters in the area.
[0063] Optionally, the flight control module is also used to control the drone to fly to a first altitude above the old residential area, and to control the drone to photograph the old residential area vertically downward at the first altitude to obtain aerial images.
[0064] Specifically, when the drone takes pictures at the first height, the images taken include all areas of the old residential area.
[0065] Optionally, determine the coordinates of the drone when taking aerial photos of old residential areas, including:
[0066] The aerial image is cut according to the latitude and longitude range of the old residential area on the map to obtain a cut image;
[0067] Partitioning the cut image into multiple local areas;
[0068] The longitude and latitude of the center of each local area are obtained respectively, and the longitude and latitude are used as the shooting coordinates.
[0069] Since aerial images are taken at very high altitudes, the features in the images are usually not sufficient to distinguish between different areas in the old residential area. Therefore, the present invention obtains a cut image by segmenting the aerial image, and then divides the cut image into multiple local areas, so as to facilitate subsequent shooting of each local area at a lower altitude and splicing the shot images to obtain a clearer image of the old residential area, thereby improving the probability that image recognition can successfully identify different areas in the old residential area.
[0070] By using the midpoint of the local area as the shooting coordinate, it is possible to avoid repeatedly shooting the same area during the shooting process, thereby preventing too many images from being obtained for image stitching.
[0071] Specifically, the aerial image is cut according to the latitude and longitude range of the old residential area on the map to obtain a cut image, including:
[0072] First, obtain the set B of longitude and latitude of each point on the edge of the area enclosed by the old residential area on the map, then obtain the longitude and latitude of each pixel in the aerial image, and then store the pixel points in the aerial image whose longitude and latitude belong to set B into set C;
[0073] In the aerial image, any two adjacent pixels in the set C are connected to obtain a closed area;
[0074] The pixels in the closed area are used as the pixels of the cut image.
[0075] By cutting the aerial images by longitude and latitude ranges, areas in the aerial images that do not belong to old communities can be removed, which helps reduce the number of pixels that need to be calculated in subsequent calculations, thereby obtaining a distribution map more quickly.
[0076] Optionally, control the drone to fly to each shooting coordinate separately, including:
[0077] The drone is controlled to fly to a second height directly above each shooting coordinate, where the second height is less than the first height.
[0078] Specifically, for example, the second height is 500 meters, and the first height is 100 meters.
[0079] Optional, such as Figure 2 As shown, the cut image is partitioned into multiple local areas, including:
[0080] S1, obtain the minimum enclosing rectangle corresponding to the cut image;
[0081] S2, cutting the image composed of pixels within the minimum bounding rectangle to obtain multiple sub-regions of the same size;
[0082] S3, locally merge the sub-regions to obtain multiple local regions.
[0083] The traditional cutting process is usually performed based on pixel points, which can obtain very accurate cutting results. However, in the present invention, very accurate cutting results are not required, only rough segmentation results are required. Therefore, the present invention first obtains sub-regions by segmentation, and then locally merges the sub-regions to achieve segmentation, thereby improving the segmentation speed while making the segmented sub-regions meet the shooting requirements of the drone.
[0084] Optionally, the image composed of pixels within the minimum bounding rectangle is cut to obtain multiple sub-regions of the same size, including:
[0085] Calculate the image P composed of pixels within the minimum bounding rectangle to obtain the number of sub-regions N;
[0086] Cut P into N sub-regions of equal area.
[0087] The number of sub-regions in the present invention is not specified in advance, because when aerial photography is performed on different old neighborhoods, the regional distribution characteristics of the pixels of the aerial images and the high and low distribution characteristics of the grayscale values are different. If a preset number of sub-regions is used to obtain sub-regions, when the regional distribution of the pixels is relatively uniform and the high and low distributions are relatively uniform, it is easy to obtain too many sub-regions, resulting in too many sub-regions that need to be locally merged, affecting the efficiency of obtaining local regions; and when the regional distribution is uneven and the high and low distributions are uneven, it is easy to result in the number of sub-regions obtained being insufficient, resulting in too large a difference in the pixels in the sub-regions, thereby increasing the possibility that the local regions obtained contain regions of multiple types of old neighborhoods, which is not conducive to allowing the same type of regions to be captured in the same overhead image during overhead photography, thereby affecting the accuracy of subsequent image stitching.
[0088] Optionally, the number N of sub-regions is obtained by calculating the image P composed of pixels within the minimum bounding rectangle, including:
[0089] Get the grayscale image GP corresponding to P;
[0090] Divide GP into 81 sub-images of equal size;
[0091] The number of sub-regions N is calculated using the following formula:
[0092]
[0093] bsNum represents the standard value of the number of preset sub-regions, GPSet represents the set of all sub-images, vasf i represents the variance of the grayscale values of the pixels in sub-image i, vasfmi represents the minimum variance of the grayscale values of the pixels in the sub-image in GPSet, segthre GP Represents the segmentation threshold calculated using the single threshold segmentation algorithm for GP, graymid GP represents the median of the grayscale values of the pixels in the GP, α represents the preset grayscale distribution uniformity weight, and β represents the preset grayscale concentration weight.
[0094] When obtaining the number of sub-regions, the present invention first divides GP into 81 sub-images of the same size, and then calculates the number of adaptive sub-regions based on the variance of the grayscale values of the pixels in the sub-images and the segmentation threshold of the GP. When the variances of the grayscale values of the pixels in the sub-images are larger, and the absolute value of the difference between the segmentation threshold and the median of the grayscale value is larger, it means that the regional distribution of the pixels in P is more uneven, and the high and low distribution is more uneven. At this time, the present invention will adaptively increase the number of sub-regions, thereby avoiding excessive differences in the pixels in the sub-regions, which is beneficial to the accuracy of the results of local merging; and when the variances of the grayscale values of the pixels in the sub-images are smaller, and the absolute value of the difference between the segmentation threshold and the median of the grayscale value is smaller, the present invention will adaptively reduce the number of sub-regions, thereby improving the efficiency of subsequent local merging. Therefore, the present invention can achieve a better balance between the accuracy of local merging and the efficiency of local merging.
[0095] Optionally, the preset grayscale distribution uniformity weight is 0.55, and the preset grayscale concentration weight is 0.45.
[0096] Optionally, the standard value for the number of sub-regions is 26244.
[0097] Optionally, divide the GP into 9×9 sub-images of equal size, including:
[0098] Using GPA and GPB distribution to represent the number of rows and columns of pixels in GP, the number of rows of pixels in the sub-image is The number of columns of pixels in the sub-image is
[0099] The GP is divided into 81 blocks of size sub-image of .
[0100] Optionally, P is cut into N sub-regions of equal area, including:
[0101] N is expressed as N=N1×N2, where N1 and N2 are both integers and the absolute value of the difference between N1 and N2 is the smallest among all two integers that can be multiplied to obtain N;
[0102] Then the number of rows and columns of pixels in the sub-region are and
[0103] Cut P into N pieces with an area of sub-region.
[0104] Optionally, the remaining sub-regions are locally merged to obtain multiple local regions, including:
[0105] S10, store all sub-regions into set K;
[0106] S20, randomly select a sub-region from the set K as the processing region;
[0107] S30, saving the processing area to set Q;
[0108] S40, respectively calculating a combined probability value UAB of each sub-region adjacent to the processing region and belonging to the set K;
[0109] S50, determine whether the maximum value of UAB is less than the set merge probability value threshold. If so, store the sub-region corresponding to the maximum value of UAB into the set Q, and use the sub-region with the largest UAB as the new processing region, and enter S60; if not, enter S70;
[0110] S60, deleting the sub-regions in the set Q from the set K, and determining whether the number of the sub-regions in the set Q is greater than a set number threshold, if not, proceeding to S40; if yes, proceeding to S70;
[0111] S70, all sub-regions in the set Q form a local region, and then proceed to S80;
[0112] S80, reset the set Q to an empty set, and enter S90;
[0113] S90, determining whether the number of sub-regions in the set K is 1, if so, outputting all local regions; if not, entering S20.
[0114] When performing local merging of sub-regions, the present invention continuously deletes sub-regions of the local regions to which it has been determined that they belong from the set K, thereby avoiding repeated calculations of local merging of sub-regions of the local regions to which it has been determined that they belong, thereby improving the efficiency of local merging. In addition, the present invention also sets a quantity threshold to avoid the local regions being too large, because when the local regions are too large, it is easy to cause the gap between the local regions with the largest area and the local regions with the smallest area in all the local regions finally obtained to be too large, and when the drone takes a bird's-eye view at the first altitude, it is impossible to capture the local region with the largest area in the same bird's-eye view image.
[0115] Optionally, the calculation process of the combined probability value UAB includes:
[0116] The sub-region adjacent to the processing region and belonging to the set K is denoted as k, and the calculation formula for the merge probability value UAB between k and the processing region is:
[0117]
[0118] distmid k represents the distance between the center of k and the center of the first sub-image stored in the set Q, distaim represents the preset distance comparison value, avegray k Represents the mean gray value of the pixels in k, avegray ca l represents the mean gray value of the pixels in the processing area, gradaim k Indicates the gradient direction with the largest number of pixels in k, gradaim cal It represents the gradient direction with the largest number of pixels in the processing area, λ1 represents the preset distance weight, λ2 represents the preset grayscale weight, and λ3 represents the preset direction weight.
[0119] When calculating the merging probability value, the present invention does not only judge from the grayscale value, because the present invention performs local merging of sub-regions, and only considering a single grayscale value cannot fully represent the merging probability between the sub-region and the processing region. Therefore, the present invention also adds two factors, distance and gradient direction. The addition of distance can make the area obtained by local merging roughly extend around the first sub-image stored in the set Q, so that the local area presents a long and thin strip shape. Obviously, this shape is not conducive to the drone shooting in the center of the local area. Because the drone cannot completely shoot the local area into the same overhead image. The addition of the gradient direction can more accurately represent the degree of association between k and the processing area. The smaller the absolute value of the difference in the gradient direction and the smaller the absolute value of the difference in the mean of the grayscale value, the greater the degree of association, thereby indicating that k and the processing area belong to the same type of area in the old community. The greater the possibility, in this way, it can effectively improve the probability of shooting the same type of area into the same overhead image when shooting overhead, thereby improving the accuracy of image splicing.
[0120] Optionally, the preset distance comparison value is 3.
[0121] Optionally, the preset distance weight is 0.6, the preset grayscale weight is 0.3, and the preset direction is 0.1.
[0122] Optionally, the number threshold is set to 9.
[0123] Optionally, the merge probability value threshold is 0.7.
[0124] Optionally, the process of obtaining the gradient direction with the largest number of pixels includes:
[0125] Get the number of pixels in the gradient direction of each value respectively;
[0126] Get the gradient direction with the largest number of pixels.
[0127] Optionally, image recognition is performed on the stitched image to obtain the existing area in the stitched image, including:
[0128] A pre-trained neural network algorithm is used to perform image recognition on the stitched image to obtain the existing area in the stitched image.
[0129] Optionally, the types of areas include residential areas, commercial areas, sports areas, road areas and green areas.
[0130] Specifically, residential areas include multi-storey residential areas and single-family villa areas. Commercial areas include restaurants, post stations, supermarkets, etc. Sports areas are areas where sports equipment is placed, including basketball courts, table tennis courts, etc. Green areas refer to areas where green plants are located in the community.
[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0134] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope parameters of the technical solutions of the embodiments of the present invention.
Claims
1. The green micro-renovation system for old urban communities is characterized by: It includes shooting coordinate determination module, flight control module, drone and image recognition module; The shooting coordinate determination module is used to determine the shooting coordinates of the drone when taking aerial photos of old residential areas; The flight control module is used to control the drone to fly to each shooting coordinate, and to control the drone to take a bird's-eye view of the old residential area after the drone arrives at the shooting coordinate to obtain a bird's-eye view image. The drone is used to send the captured overhead images to the image recognition module; The image recognition module is used to stitch all the overhead images to obtain a stitched image, and to perform image recognition on the stitched image to obtain the existing areas in the stitched image, and to merge the adjacent areas of the same type into the same area, thereby obtaining a distribution map of each type of area in the old community; The flight control module is also used to control the drone to fly to a first altitude above the old residential area, and to control the drone to shoot the old residential area vertically downward at the first altitude to obtain an aerial image; Determine the coordinates of the drone when taking aerial photos of old residential areas, including: The aerial image is cut according to the latitude and longitude range of the old residential area on the map to obtain a cut image; Partitioning the cut image into multiple local areas; Obtain the longitude and latitude of the center of each local area respectively, and use the longitude and latitude as the shooting coordinates; Partition the cut image into multiple local areas, including: S1, obtain the minimum enclosing rectangle corresponding to the cut image; S2, cutting the image composed of pixels within the minimum bounding rectangle to obtain multiple sub-regions of the same size; S3, locally merge the sub-regions to obtain multiple local regions; Cut the image composed of pixels within the minimum bounding rectangle to obtain multiple sub-regions of the same size, including: Calculate the image P composed of pixels within the minimum bounding rectangle to obtain the number of sub-regions N; Cut P into N sub-regions of equal area; The sub-regions are locally merged to obtain multiple local regions, including: S10, store all sub-regions into set K; S20, randomly select a sub-region from the set K as the processing region; S30, saving the processing area to set Q; S40, respectively calculating a combined probability value UAB of each sub-region adjacent to the processing region and belonging to the set K; S50, determine whether the maximum value of UAB is less than the set merge probability value threshold. If so, store the sub-region corresponding to the maximum value of UAB into the set Q, and use the sub-region with the largest UAB as the new processing region, and enter S60; if not, enter S70; S60, deleting the sub-regions in the set Q from the set K, and determining whether the number of the sub-regions in the set Q is greater than a set number threshold, if not, proceeding to S40; if yes, proceeding to S70; S70, all sub-regions in the set Q form a local region, and then proceed to S80; S80, reset the set Q to an empty set, and enter S90; S90, determining whether the number of sub-regions in the set K is 1, if so, outputting all local regions; if not, proceeding to S20; The calculation process of the combined probability value UAB includes: The sub-region adjacent to the processing region and belonging to the set K is denoted as k, and the calculation formula for the merge probability value UAB between k and the processing region is: distmid k represents the distance between the center of k and the center of the first sub-image stored in the set Q, distaim represents the preset distance comparison value, avegray k Represents the mean gray value of the pixels in k, avegray cal Represents the mean grayscale value of the pixels in the processing area, gradai k Indicates the gradient direction with the largest number of pixels in k, gradaim cal It represents the gradient direction with the largest number of pixels in the processing area, λ1 represents the preset distance weight, λ2 represents the preset grayscale weight, and λ3 represents the preset direction weight.
2. The green micro-renovation system for old urban communities according to claim 1 is characterized in that: Control the drone to fly to each shooting coordinate, including: The drone is controlled to fly to a second height directly above each shooting coordinate, where the second height is less than the first height.
3. The green micro-renovation system for old urban communities according to claim 1 is characterized in that: Perform image recognition on the stitched image to obtain the existing areas in the stitched image, including: A pre-trained neural network algorithm is used to perform image recognition on the stitched image to obtain the existing area in the stitched image.
4. The green micro-renovation system for old urban communities according to claim 1 is characterized in that: The types of areas include residential areas, commercial areas, sports areas, road areas and green areas.
