Aerial survey data processing method, device, electronic equipment and storage medium
By dividing the outer rectangle of the aerial survey data set into multiple sub-areas and using multiple servers for processing, the problem of low computational efficiency caused by the large amount of aerial survey data is solved, and efficient data processing and stability of three-dimensional reconstruction applications are achieved.
Patent Information
- Application Number
- CN202011620735.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-12-31
AI Technical Summary
In traditional technology, the amount of image data collected by aerial survey drones is large, exceeding the processing capabilities of ordinary workstations, causing the calculation process to be slow or crashing. It cannot be loaded into memory at one time, and the hard disk IO speed is slow, affecting the efficiency of 3D reconstruction applications.
By determining the outer rectangle of the aerial survey data set and dividing it into multiple sub-areas, multiple servers are used to process the data of each sub-area separately, reducing processing costs and improving efficiency, and finally merging it into a complete data set.
Effectively processes large-scale aerial survey data, reduces data processing costs and time, improves processing efficiency, avoids the bottleneck of hard disk IO speed, and ensures the stability and accuracy of 3D reconstruction applications.
Smart Images

Figure CN112802177B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic equipment and storage medium for processing aerial survey data. Background Art
[0002] Aerial survey data refers to the data corresponding to aerial images taken by drones and other aerial photography tools. In traditional technology, the image data collected by aerial survey drones or the data from multiple survey areas will be very large, reaching thousands or tens of thousands of photos. However, the data scale that an ordinary workstation (8 cores, 16 threads, 8G memory) can process at one time is basically within 1,000 photos. If the data volume exceeds the limit, it cannot be loaded into the memory at one time. A large amount of swap partitions (hard disks) need to be used during the calculation process. Due to the very slow hard disk IO speed, the calculation of ordinary workstations will be very slow or the 3D reconstruction application will crash directly. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, electronic device, storage medium and computer program product for processing aerial survey data.
[0004] In order to achieve the above object, the present invention provides a method for processing aerial survey data in a first aspect, comprising:
[0005] Acquire an aerial survey data set, which includes aerial images;
[0006] Get the image coordinates of each aerial image;
[0007] Determine the outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates;
[0008] Segment the outer rectangle to obtain a set of segmented sub-regions;
[0009] Determine the aerial image included in each sub-region in the segmented sub-region set;
[0010] The aerial image included in any sub-region of the segmented sub-region set is processed by any one of the multiple servers.
[0011] In one embodiment, segmenting the outer rectangle to obtain a segmented sub-region set includes: obtaining the length and width of the outer rectangle; determining the number of segments of the outer rectangle according to the ratio of the length and the width; and determining the segmented sub-region set obtained by segmenting the outer rectangle according to the number of segments, wherein the segmented sub-region set includes multiple sub-regions.
[0012] In one embodiment, the processing method also includes: obtaining the image number and image coordinates of each aerial image contained in the aerial survey data set; connecting the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determining the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points; and determining the image number interval contained in each route.
[0013] In one embodiment, determining the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points includes: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed with the next coordinate point exceeds a preset angle, determining that the previous coordinate point and the next coordinate point are on different routes.
[0014] In one embodiment, the processing method also includes: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by any coordinate point and the next coordinate point does not exceed a preset angle, determining that the coordinate point and the previous coordinate point and the next coordinate point are located on the same route to determine the number of routes.
[0015] In one embodiment, determining the aerial images included in each sub-region included in the segmented sub-region set includes: for each sub-region, obtaining the first image number of the first aerial image included in the sub-region; determining the first route corresponding to the first aerial image according to the image number interval and the first image number; determining an extended image of the sub-region according to the first route; and adding the extended image to the data set included in the sub-region.
[0016] In one embodiment, determining an extended image of a sub-area based on a first route includes: obtaining all image numbers of the first route; obtaining a second image number that is not included in the sub-area and is adjacent to the first image number among all image numbers; and using a second aerial image corresponding to the second image number as an extended image.
[0017] In one embodiment, determining an extended image of a sub-region based on a first route includes: determining the distance from a second route other than the first route to a boundary of the sub-region; using a third route that is shortest to the boundaries of both sides of the sub-region as an extended route of the first route; determining a longitudinal coordinate interval of the first aerial image based on image coordinates of the first aerial image; and using an aerial image whose longitudinal coordinates of the image coordinates in the extended route are within the longitudinal coordinate interval as an extended image.
[0018] In one embodiment, taking the third routes that are respectively shortest to the two side boundaries of the sub-region as the extended routes of the first route includes: when the two third routes closest to the sub-region are both located on the same side of the sub-region, taking the third route closest to the sub-region as the extended route.
[0019] In one embodiment, the processing method further includes: obtaining an initial boundary of the sub-region; cropping the sub-region processed by the server according to the initial boundary; and merging the aerial images in the cropped sub-region to generate a corresponding mapping image.
[0020] A second aspect of the present invention provides a processor configured to execute the above-mentioned aerial survey data processing method.
[0021] A third aspect of the present invention provides an aerial survey data processing device, comprising:
[0022] A data segmentation module is used to obtain an aerial survey data set, which includes aerial images;
[0023] The region segmentation module is used to obtain the image coordinates of each aerial image; determine the outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates; and segment the outer bounding rectangle to obtain a segmentation sub-region set;
[0024] The data processing module is used to determine the aerial image included in each sub-region in the segmented sub-region set; and process the aerial image included in any sub-region in the segmented sub-region set through any one of the multiple servers.
[0025] A fourth aspect of the present invention provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned method for processing aerial survey data.
[0026] A fifth aspect of the present invention provides a computer program product, comprising a computer program, which implements the above-mentioned method for processing aerial survey data when executed by a processor.
[0027] The above technical solution first determines the outer rectangle corresponding to the aerial survey data set, then splits the outer rectangle corresponding to the aerial survey data set into multiple sub-areas, and then uses each small server to perform corresponding processing on each sub-area. After the server completes the calculation, the multiple small data sets are merged into a complete large data set result data according to the splitting rules. This method of using small servers to process the data corresponding to the sub-areas with less data one by one can not only reduce the cost of data processing, but also improve the efficiency of data processing.
[0028] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0030] Figure 1 A schematic diagram of a process of a method for processing aerial survey data according to an embodiment of the present invention is shown;
[0031] Figure 2 A schematic diagram of dividing sub-regions according to an embodiment of the present invention is shown schematically;
[0032] Figure 3 A schematic diagram of boundary extension of a sub-region according to an embodiment of the present invention is shown schematically;
[0033] Figure 4 A schematic diagram shows a structural block diagram of an aerial survey data processing device according to an embodiment of the present invention;
[0034] Figure 5 The internal structure of a computer device according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0035] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0036] Figure 1 The following is a schematic diagram showing a process flow of a method for processing aerial survey data according to an embodiment of the present invention. Figure 1 As shown, in one embodiment of the present invention, a method for processing aerial survey data is provided, comprising the following steps:
[0037] Step 101: Acquire an aerial survey data set, where the aerial survey data set includes aerial images.
[0038] Step 102: Obtain the image coordinates of each aerial image.
[0039] Step 103: determine the bounding rectangle corresponding to the aerial survey data set according to the image coordinates.
[0040] Step 104: segment the outer rectangle to obtain a set of segmented sub-regions.
[0041] Step 105: determine the aerial image included in each sub-region in the segmented sub-region set.
[0042] Step 106: Processing the aerial image included in any sub-region of the segmented sub-region set by any one of the multiple servers.
[0043] First, the aerial survey data obtained by drone aerial photography can be obtained, and the aerial survey data contains multiple aerial images. When each aerial image is obtained by drone aerial photography, each aerial image has its own corresponding image coordinates and image number. The image coordinates of each aerial image can be obtained first, and then the outer bounding rectangle corresponding to the aerial survey data set can be determined based on the image coordinates of all aerial images contained in the aerial survey data set. Since the volume of aerial survey data is usually large, the aerial survey data can be divided into multiple sub-data sets to reduce the processing capacity of the server, that is, the outer bounding rectangle corresponding to the aerial survey data can be divided into multiple segmented sub-regions to obtain a corresponding segmented sub-region set.
[0044] Furthermore, the number of photos that each server is suitable for processing can be determined based on the configuration of the server cluster. The configuration of the server cluster includes the server's memory, CPU and other performance parameters. The processing capacity of the server can be determined based on the server's performance parameters. In this embodiment, the problem that the performance of a single server in the server cluster may be inconsistent with that of other servers can be ignored. For such big data processing projects, the server cluster can be purchased in the same batch, so the individual differences of the servers can be ignored. For example, the total number of aerial images contained in the aerial survey data is s, and the number of photos that each server can process is determined based on the configuration information of the server cluster. m, then it can be determined that the aerial survey data is divided into n parts, where n = s / m, that is, the aerial survey data can be divided into n sub-data sets, that is, the outer rectangle corresponding to the aerial survey data set can be divided into n sub-areas.
[0045] After determining the outer rectangle corresponding to the aerial survey data, the outer rectangle can be divided into multiple sub-regions, each sub-region contains multiple aerial images, and after obtaining the image coordinates of each aerial image, the multiple image coordinates contained in each sub-region can be determined. The outer rectangle refers to the area formed by including all the image coordinates in the data set in the smallest rectangular area for all the aerial images in the aerial survey data set. Further, the outer rectangle corresponding to the aerial survey data set can be divided to obtain a segmented sub-region set composed of multiple sub-regions. The aerial images contained in each sub-region in the segmented sub-region set are further determined, so that the aerial images included in any sub-region of the segmented sub-region set can be processed by any one of the multiple servers. That is, any small server in a small server cluster can be used to process the data corresponding to a sub-region.
[0046] By first determining the outer rectangle corresponding to the aerial survey data set, and then splitting the outer rectangle corresponding to the aerial survey data set into multiple sub-areas, and then using each small server to perform corresponding processing on each sub-area, after the server completes the calculation, multiple small data sets are merged into a complete large data set result data according to the splitting rules. This method of using small servers to process the data corresponding to the sub-areas with less data one by one can not only reduce the cost of data processing, but also improve the efficiency of data processing.
[0047] In one embodiment, segmenting the outer rectangle to obtain a segmented sub-region set includes: obtaining the length and width of the outer rectangle; determining the number of segments of the outer rectangle according to the ratio of the length and the width; and determining the segmented sub-region set obtained by segmenting the outer rectangle according to the number of segments, wherein the segmented sub-region set includes multiple sub-regions.
[0048] After determining the outer rectangle corresponding to the aerial survey data set, the outer rectangle can be segmented to obtain sub-areas with smaller data volumes. First, the length and width of the outer rectangle of the sub-data set can be obtained, and then the number of segments of the outer rectangle can be determined based on the length and width of the rectangle. When segmenting the outer rectangle, the number of segments Xn and Yn in the X and Y directions should be determined based on the aspect ratio of the rectangle, so that Xn / Yn is as close as possible to the width / length of the rectangle (Xn / Yn≈width / length of the rectangle). And because it was previously determined based on the configuration information of the server cluster that the aerial survey data can be divided into n parts, it means that a maximum of n servers can be used, because, when segmenting the outer rectangle, Xn*Yn>n should be made. For example Figure 2 As shown in the figure, there are a total of aerial images taken by 11 routes, where the origin in the figure refers to the aerial photography point, that is, the drone can take images at this location. The outer rectangle in the figure can be divided into 4 sub-areas, and two of them, sub-area 1 (black dotted box) and sub-area 2 (black solid box) are shown in the figure. In this way, each outer rectangle can be divided into a corresponding set of segmented sub-areas, that is, each outer rectangle can be divided into multiple sub-areas.
[0049] In one embodiment, the above processing method also includes: obtaining the image number and image coordinates of each aerial image contained in the aerial survey data set; connecting the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determining the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points; and determining the image number interval contained in each route.
[0050] In this embodiment, after obtaining the aerial survey data, it can be determined how many routes were used to shoot the aerial survey data. When a drone performs aerial photography, it will fly multiple routes at one time for shooting. When a drone of the same flight performs aerial photography on multiple routes, the image numbers of the aerial images generated by its shooting are continuous. For example, drone A simultaneously shoots three routes when performing an aerial photography mission, and the number of images shot for each route is 100. Then, after the drone completes the shooting mission of these three routes, the image numbers of the aerial images obtained by the drone are 1 to 300. It can be understood that the image numbers of the drone after executing the first route should be 1 to 100, while the image numbers of the second route are 101 to 200, and the image numbers of the third route are 201 to 300. Therefore, after obtaining a large amount of aerial survey data, the shooting routes corresponding to these aerial survey data can be determined first.
[0051] The image coordinates of the aerial image are determined based on the attitude of the drone when taking pictures, the shooting angle and other parameters. The image coordinates of the aerial image can also represent the flight status of the drone to a certain extent. For example, when the drone turns from route A to route B for shooting, the shooting angle of the drone will change, and correspondingly, the image coordinates of the aerial image taken on route B will also change accordingly. Therefore, the route used can be determined by combining the image number and image coordinates of the aerial image.
[0052] In one embodiment, determining the route and the number of routes corresponding to each image coordinate according to the angle between the straight lines obtained by connecting the coordinate points includes: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by the next coordinate point exceeds a preset angle, the coordinate point is determined to be an inflection point, and the previous coordinate point and the next coordinate point are located on different routes. When the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by the next coordinate point does not exceed the preset angle, it is determined that the coordinate point and the previous coordinate point and the next coordinate point are located on the same route to determine the number of routes.
[0053] Furthermore, the image number corresponding to each aerial image in the aerial survey data and the image coordinates of each aerial image can be obtained first. Then, according to the arrangement order of the image numbers, the coordinate points corresponding to the image coordinates of each aerial image are connected in sequence to determine the angle between the straight lines obtained by connecting the coordinate points, and the route and the number of routes corresponding to each image coordinate are determined according to the angle of the angle. Specifically, according to the arrangement order of the image numbers, the coordinate points corresponding to three image coordinates with adjacent numbers can be selected in sequence for connection, and the adjacent coordinate points can be connected in pairs to obtain two straight lines. For example, the image coordinate points with image numbers 1, 2, and 3 are selected for connection, which means that the image coordinate points with image numbers 1 and 2 are connected to obtain straight line 1, and the coordinate points with image numbers 2 and 3 are connected to obtain straight line 2, and then the angle of the angle formed by straight line 1 and straight line 2 can be determined. And according to the angle of the angle, it can be determined whether the three image coordinate points with image numbers 1, 2, and 3 are obtained by shooting on the same route.
[0054] When the angle between any coordinate point and the straight line formed by the previous coordinate point and the straight line formed by the coordinate point and the next coordinate point exceeds the preset angle, the coordinate point can be determined to be an inflection point, and the previous coordinate point of the coordinate point and the next coordinate point of the coordinate point are located on different routes. Among them, the preset angle can be set to 30 degrees. As in the above example, assuming that the angle formed by straight line 1 and straight line 2 exceeds the preset angle of 30 degrees, it can be determined that the coordinate point of the image coordinates of image number 2 is an inflection point, and the previous coordinate point of image number 2 (image number 1) and the next coordinate point of image number 2 (image number 3) are not obtained by the same aerial route. Similarly, assuming that the angle formed by straight line 1 and straight line 2 does not exceed the preset angle of 30 degrees, it can be determined that image number 2, the previous coordinate point of image number 2 (image number 1) and the next coordinate point of image number 2 (image number 3) are obtained by not belonging to the same aerial route.
[0055] By analogy, the routes used by all the aerial images in the aerial survey data and the number of routes can be determined in this way. That is, the aerial images taken by each route and the image number interval of the aerial images taken can be determined. For example, it is determined that in the aerial survey data, images numbered 1 to 100 are taken by route A, 101 to 200 are taken by route B, and so on. In this way, the image number interval of the aerial images taken by each route can be determined.
[0056] In one embodiment, determining the aerial images included in each sub-region included in the segmented sub-region set includes: for each sub-region, obtaining the first image number of the first aerial image included in the sub-region; determining the first route corresponding to the first aerial image according to the image number interval and the first image number; determining an extended image of the sub-region according to the first route; and adding the extended image to the data set included in the sub-region.
[0057] After determining the shooting routes corresponding to the aerial survey data and the image number interval contained in each route, the routes and the number of routes corresponding to the aerial images contained in each sub-area can be further determined. Specifically, for each sub-area, the aerial images contained in each sub-area and the image number of each aerial image can be first obtained. For the convenience of description, the aerial image initially contained in the sub-area can be referred to as the first aerial image, and the image number corresponding to the first aerial image can be referred to as the first image number. The aerial image initially contained in the sub-area refers to the image contained in the sub-area before the extended image is included. Then, the first route corresponding to the first aerial image contained in the sub-area can be determined based on the image number interval of each route and the first image number. Among them, the number of first routes can be multiple, indicating that there can be multiple routes corresponding to the multiple first aerial images contained in the sub-area. Further, the extended image of the sub-area can be determined based on the first route, so that the image contained in the sub-area can be expanded.
[0058] In one embodiment, determining an extended image of a sub-area based on a first route includes: obtaining all image numbers of the first route; obtaining a second image number that is not included in the sub-area and is adjacent to the first image number among all image numbers; and using a second aerial image corresponding to the second image number as an extended image of the sub-area.
[0059] When determining the extended image of the sub-area, there can be two expansion methods, one is the expansion in the X-axis direction, and the other is the expansion in the Y-axis direction, which can also be called up-down expansion and left-right expansion. In this embodiment, an up-down expansion method is provided, namely, the expansion in the Y-axis direction. The first route corresponding to the first aerial image can be obtained first, and all aerial images taken by the route and all corresponding image numbers can be obtained. Then, the second image number that is not included in the sub-area but adjacent to the first image number can be obtained from all the image numbers taken by the first route. Figure 3 As shown in the figure, the aerial images taken by routes 1, 2, 3, 4, and 5 are not all divided into sub-area 1. The sub-area only contains part of the images taken by these five routes. At this time, the initial boundary of the sub-area is boundary 1 in the figure. Then, the images contained in sub-area 1 can be expanded up and down.
[0060] Specifically, all the first aerial images contained in the sub-region and the first image number corresponding to each image can be determined first, and then the first image numbers can be sorted according to the routes corresponding to the first image numbers to determine the number interval of the images taken by each route contained in the sub-region. Then, among the aerial images taken by the first route contained in the sub-region, the image numbers that are not contained in the sub-region and are adjacent to the first image numbers in the sub-region are taken as the second image numbers. Figure 3 The lower boundary 1 of the sub-region 1 in the sub-region is 1, assuming that the image number interval of the route 1 included in the sub-region is 1-100, and the number of all images taken by the route 1 is 1-500, then the second image number 101 that does not include the image number interval 1-100 of the route 1 included in the sub-region and is adjacent to the image number interval 1-100 of the route 1 can be obtained, and the second aerial image corresponding to the second image number is determined as the extended image of the sub-region. In this way, Figure 3 As shown, the data actually contained in the sub-region can be expanded from the lower boundary 1 to the lower boundary 2, thereby expanding the sub-region data.
[0061] In one embodiment, determining an extended image of a sub-region based on a first route includes: determining the distance from a second route other than the first route to a boundary of the sub-region; using a third route that is shortest to the boundaries of both sides of the sub-region as an extended route of the first route; determining a longitudinal coordinate interval of the first aerial image based on image coordinates of the first aerial image; and using an aerial image whose longitudinal coordinates of the image coordinates in the extended route are within the longitudinal coordinate interval as an extended image of the sub-region.
[0062] In this embodiment, a left-right expansion method is provided, that is, expansion in the X-axis direction. All routes except the first route can be called second routes. That is, the routes not included in the sub-area are called second routes. Then, the Y-axis coordinate range can be determined based on the image coordinates of the first aerial image included in the sub-area, that is, (Ymin, Ymax) can be determined, and then the aerial images whose Y-axis coordinates in the extended route fall within this coordinate range can be used as extended images of the sub-area. Figure 3 As shown, sub-region 1 contains some aerial images taken by routes 1, 2, 3, 4, and 5, while aerial images taken by routes 6, 7, 8, 9, 10, and 11 are not included in sub-region 1. At this time, the initial right boundary of the sub-region is the right boundary 1 in the figure. Then, sub-region 1 can be expanded left and right.
[0063] In one embodiment, taking the third routes that are shortest to both side boundaries of the sub-region as extended routes of the first route includes: when the two third routes closest to the sub-region are located on the same side of the sub-region, taking the third route closest to the sub-region as the extended route.
[0064] Specifically, the distance between the second route and the sub-region boundary can be determined first, that is, the distance between the second route and the nearest boundary of the sub-region can be determined, and then the third route that is closest to the left and right sides of the sub-region can be used as an extended route. It can be understood that the sub-region has left and right boundaries, so when the sub-region is expanded to the left and right, both the left and right boundaries can be expanded at the same time. That is, the route that is closest to the left boundary of the sub-region and the route that is closest to the right boundary of the sub-region can be called the third route, and the third route can be used as an extended route of the first route. At this time, the number of third routes is 2. When the left or right side of the sub-region is at the edge of the boundary and there is no route on its left or right side, only the other side needs to be expanded. For example, such as Figure 3 As shown in the figure, the left side of sub-area 1 is at the edge of the land, so there is no need to expand the data of its left side, only the data of its right side can be expanded. In this case, the shortest route to the two sides of the sub-area will be on the same side of the sub-area, such as Figure 3 As shown in , the routes shortest to the left and right boundaries of sub-region 1 are all located on the right side of the sub-region. In this case, it is sufficient to select a route with the shortest distance as the extended route.
[0065] After determining the extended route, it is necessary to determine the images and number of images that need to be extended to the sub-area on the extended route. Specifically, the number of images of any first route contained in the sub-area can be determined. Assuming that the total number of images taken for route 1 is 500, the number of images divided into sub-areas is 50, and the sub-area corresponds to a rectangular area, it can be determined that the number of images of other routes contained in the sub-area is also 50. Of course, there may be certain differences in the actual process, but the number of images of each route contained in the sub-area is basically the same, and this difference can be ignored. Then, the coordinate range of the Y axis can be determined based on the image coordinates of the first aerial image contained in the sub-area, that is, (Ymin, Ymax) can be determined, and then the aerial images whose Y axis coordinates in the extended route fall within this coordinate range can be used as the extended images of the sub-area. . As Figure 3 As shown, the data of sub-region 1 can be extended from right boundary 1 to right boundary 2, thereby achieving the expansion of the sub-region data.
[0066] In one embodiment, the processing method further includes: obtaining an initial boundary of the sub-region; cropping the sub-region processed by the server according to the initial boundary; and merging the aerial images in the cropped sub-region to generate a corresponding mapping image.
[0067] After processing the aerial image included in any sub-region of the segmented sub-region set by any one of the multiple servers, the initial boundary of the sub-region can also be obtained. The initial boundary is determined when the sub-region is obtained by segmenting the outer rectangle. After processing the data contained in the sub-region by the server, the sub-region processed by the server can be cropped according to the initial boundary to improve the accuracy of the data. Then, the cropped sub-regions are merged to generate a more accurate mapping image.
[0068] In the embodiment of the present invention, Figure 4 As shown, a device 400 for processing aerial survey data is provided, comprising:
[0069] The data segmentation module 401 is used to obtain an aerial survey data set, wherein the aerial survey data set includes aerial images;
[0070] The region segmentation module 402 is used to obtain the image coordinates of each aerial image; determine the outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates; and segment the outer bounding rectangle to obtain a segmented sub-region set;
[0071] The data processing module 403 is used to determine the aerial image included in each sub-region in the segmented sub-region set; and process the aerial image included in any sub-region in the segmented sub-region set through any one of the multiple servers.
[0072] In one embodiment, the data segmentation module 401 is also used to obtain the image number and image coordinates of each aerial image contained in the aerial survey data set; connect the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determine the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points; and determine the image number interval included in each route.
[0073] In one embodiment, the data segmentation module 401 is also used to determine that the previous coordinate point and the next coordinate point are on different routes when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by the next coordinate point exceeds a preset angle.
[0074] In one embodiment, the data segmentation module 401 is also used to determine that a coordinate point and the previous coordinate point and the next coordinate point are on the same route when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by the next coordinate point does not exceed a preset angle, so as to determine the number of routes.
[0075] In one embodiment, the region segmentation module 402 is also used to obtain the length and width of the outer rectangle; determine the number of divisions of the outer rectangle according to the ratio of the length and the width; determine the segmentation sub-region set obtained by segmenting the outer rectangle according to the number of divisions, and the segmentation sub-region set includes multiple sub-regions.
[0076] In one embodiment, the data processing module 403 is also used to obtain, for each sub-region, a first image number of a first aerial image contained in the sub-region; determine a first route corresponding to the first aerial image based on the image number interval and the first image number; determine an extended image of the sub-region based on the first route; and add the extended image to the data set contained in the sub-region.
[0077] In one embodiment, the data processing module 403 is also used to obtain all image numbers of the first route; obtain the second image number that is not included in the sub-area and is adjacent to the first image number among all image numbers; and use the second aerial image corresponding to the second image number as the extended image.
[0078] In one embodiment, the data processing module 403 is also used to determine the distance from the second route in the route except the first route to the boundary of the sub-area; use the third route that is shortest to the boundaries of the sub-area on both sides as the extended route of the first route; determine the vertical axis coordinate interval of the first aerial image according to the image coordinates of the first aerial image; and use the aerial image whose vertical axis coordinates of the image coordinates in the extended route are within the vertical axis coordinate interval as the extended image.
[0079] In one embodiment, the data processing module 403 is further configured to use the third route closest to the sub-region as the extended route when the two third routes closest to the sub-region are both located on the same side of the sub-region.
[0080] In one embodiment, the data processing module 403 is further used to obtain an initial boundary of the sub-region; crop the sub-region processed by the server according to the initial boundary; and merge the aerial images in the cropped sub-region to generate a corresponding mapping image.
[0081] The aerial survey data processing device includes a processor and a memory. The above-mentioned data segmentation module, area segmentation module and data processing module are all stored in the memory as program units, and the processor executes the above-mentioned program modules stored in the memory to realize corresponding functions.
[0082] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the above-mentioned aerial survey data processing method is implemented by adjusting kernel parameters.
[0083] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0084] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned method for processing aerial survey data is implemented.
[0085] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the above-mentioned method for processing aerial survey data when running.
[0086] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store aerial survey data. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for processing aerial survey data is implemented.
[0087] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining an aerial survey data set, the aerial survey data set including aerial images; obtaining image coordinates of each aerial image; determining an outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates; segmenting the outer bounding rectangle to obtain a segmented sub-region set; determining the aerial images included in each sub-region in the segmented sub-region set; and processing the aerial images included in any sub-region of the segmented sub-region set through any one of a plurality of servers.
[0089] In one embodiment, segmenting the outer rectangle to obtain a segmented sub-region set includes: obtaining the length and width of the outer rectangle; determining the number of segments of the outer rectangle according to the ratio of the length and the width; and determining the segmented sub-region set obtained by segmenting the outer rectangle according to the number of segments, wherein the segmented sub-region set includes multiple sub-regions.
[0090] In one embodiment, the processor also implements the following steps when executing the program: obtaining the image number and image coordinates of each aerial image contained in the aerial survey data set; connecting the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determining the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points; and determining the image number interval contained in each route.
[0091] In one embodiment, determining the route and number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points includes: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed with the next coordinate point exceeds a preset angle, determining that the previous coordinate point and the next coordinate point are on different routes.
[0092] In one embodiment, the processor also implements the following steps when executing the program: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by any coordinate point and the next coordinate point does not exceed a preset angle, it is determined that the coordinate point and the previous coordinate point and the next coordinate point are on the same route to determine the number of routes.
[0093] In one embodiment, determining the aerial images included in each sub-region included in the segmented sub-region set includes: for each sub-region, obtaining the first image number of the first aerial image included in the sub-region; determining the first route corresponding to the first aerial image according to the image number interval and the first image number; determining an extended image of the sub-region according to the first route; and adding the extended image to the data set included in the sub-region.
[0094] In one embodiment, determining an extended image of a sub-area based on a first route includes: obtaining all image numbers of the first route; obtaining a second image number that is not included in the sub-area and is adjacent to the first image number among all image numbers; and using a second aerial image corresponding to the second image number as an extended image.
[0095] In one embodiment, determining an extended image of a sub-region based on a first route includes: determining the distance from a second route other than the first route to a boundary of the sub-region; using a third route that is shortest to the boundaries on both sides of the sub-region as an extended route of the first route; determining a longitudinal coordinate interval of the first aerial image based on image coordinates of the first aerial image; and using an aerial image whose longitudinal coordinates of the image coordinates in the extended route are within the longitudinal coordinate interval as an extended image.
[0096] In one embodiment, taking the third routes that are shortest to both side boundaries of the sub-region as extended routes of the first route includes: when the two third routes closest to the sub-region are located on the same side of the sub-region, taking the third route closest to the sub-region as the extended route.
[0097] In one embodiment, when the processor executes the program, the following steps are also implemented: obtaining the initial boundary of the sub-area; cropping the sub-area processed by the server according to the initial boundary; merging the aerial images in the cropped sub-area to generate a corresponding mapping image.
[0098] An embodiment of the present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining an aerial survey data set, the aerial survey data set including aerial images; obtaining image coordinates of each aerial image; determining an outer bounding rectangle corresponding to the aerial survey data set based on the image coordinates; segmenting the outer bounding rectangle to obtain a segmented sub-region set; determining the aerial images included in each sub-region in the segmented sub-region set; and processing the aerial images included in any sub-region of the segmented sub-region set through any one of a plurality of servers.
[0099] In one embodiment, segmenting the outer rectangle to obtain a segmented sub-region set includes: obtaining the length and width of the outer rectangle; determining the number of segments of the outer rectangle according to the ratio of the length and the width; and determining the segmented sub-region set obtained by segmenting the outer rectangle according to the number of segments, wherein the segmented sub-region set includes multiple sub-regions.
[0100] In one embodiment, when the computer program product is executed, the following steps are also implemented: obtaining the image number and image coordinates of each aerial image contained in the aerial survey data set; connecting the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determining the route and the number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points; and determining the image number interval contained in each route.
[0101] In one embodiment, determining the route and number of routes corresponding to each image coordinate based on the angle between the straight lines obtained by connecting the coordinate points includes: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed with the next coordinate point exceeds a preset angle, determining that the previous coordinate point and the next coordinate point are on different routes.
[0102] In one embodiment, when the computer program product is executed, the following steps are also implemented: when the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by any coordinate point and the next coordinate point does not exceed a preset angle, it is determined that the coordinate point and the previous coordinate point and the next coordinate point are on the same route to determine the number of routes.
[0103] In one embodiment, determining the aerial images included in each sub-region included in the segmented sub-region set includes: for each sub-region, obtaining the first image number of the first aerial image included in the sub-region; determining the first route corresponding to the first aerial image according to the image number interval and the first image number; determining an extended image of the sub-region according to the first route; and adding the extended image to the data set included in the sub-region.
[0104] In one embodiment, determining an extended image of a sub-area based on a first route includes: obtaining all image numbers of the first route; obtaining a second image number that is not included in the sub-area and is adjacent to the first image number among all image numbers; and using a second aerial image corresponding to the second image number as an extended image.
[0105] In one embodiment, determining an extended image of a sub-region based on a first route includes: determining the distance from a second route other than the first route to a boundary of the sub-region; using a third route that is shortest to the boundaries on both sides of the sub-region as an extended route of the first route; determining a longitudinal coordinate interval of the first aerial image based on image coordinates of the first aerial image; and using an aerial image whose longitudinal coordinates of the image coordinates in the extended route are within the longitudinal coordinate interval as an extended image.
[0106] In one embodiment, taking the third routes that are shortest to both side boundaries of the sub-region as extended routes of the first route includes: when the two third routes closest to the sub-region are located on the same side of the sub-region, taking the third route closest to the sub-region as the extended route.
[0107] In one embodiment, when the computer program product is executed, the following steps are also implemented: obtaining the initial boundary of the sub-area; cropping the sub-area processed by the server according to the initial boundary; merging the aerial images in the cropped sub-area to generate a corresponding mapping image.
[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0109] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0112] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0113] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0114] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0115] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0116] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for processing aerial survey data, characterized in that: include: Acquire an aerial survey data set, wherein the aerial survey data set includes an aerial image; Get the image coordinates and image number of each aerial image; Connecting the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; Determine the route and the number of routes corresponding to each of the image coordinates according to the angles between the straight lines obtained by connecting the coordinate points; Determine the image number interval included in each route; Determine the outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates; Segmenting the outer rectangle to obtain a segmentation sub-region set; For each sub-region, obtaining a first image number of a first aerial image contained in the sub-region; determining a first route corresponding to the first aerial image according to the image number interval and the first image number; determining an extended image of the sub-area according to the first route; adding the extended image to the data set contained in the sub-region; The aerial image included in any sub-region of the segmented sub-region set is processed by any one of the multiple servers.
2. The method for processing aerial survey data according to claim 1, characterized in that: The segmenting of the outer rectangle to obtain a segmentation sub-region set comprises: Get the length and width of the outer rectangle; Determine the number of divisions of the outer rectangle according to the ratio of the length to the width; A segmented sub-region set obtained by segmenting the outer rectangle is determined according to the number of segmentations, and the segmented sub-region set includes a plurality of sub-regions.
3. The method for processing aerial survey data according to claim 1, characterized in that: Determining the route and the number of routes corresponding to each of the image coordinates according to the angles between the straight lines obtained by connecting the coordinate points includes: When the angle between a straight line formed by any coordinate point and the previous coordinate point and a straight line formed by any coordinate point and the next coordinate point exceeds a preset angle, it is determined that the previous coordinate point and the next coordinate point are located on different routes; When the angle between the straight line formed by any coordinate point and the previous coordinate point and the straight line formed by any coordinate point and the next coordinate point does not exceed the preset angle, it is determined that the coordinate point and the previous coordinate point and the next coordinate point are located on the same route to determine the number of routes.
4. The method for processing aerial survey data according to claim 1, characterized in that: The step of determining the extended image of the sub-area according to the first route comprises: Obtaining all image numbers of the first route; Acquire a second image number that is not included in the sub-region and is adjacent to the first image number from among all the image numbers; The second aerial image corresponding to the second image number is used as the extended image.
5. The method for processing aerial survey data according to claim 1, characterized in that: The step of determining the extended image of the sub-area according to the first route comprises: Determining the distance from a second route among the routes except the first route to a sub-region boundary; Using a third route that is shortest to both sides of the sub-region as an extended route of the first route; determining a vertical axis coordinate interval of the first aerial image according to the image coordinates of the first aerial image; The aerial image whose ordinate coordinate of the image coordinates in the extended route is within the ordinate coordinate interval is used as the extended image.
6. The method for processing aerial survey data according to claim 5, characterized in that: The method of using the third route which is the shortest to the boundaries of both sides of the sub-area as the extended route of the first route includes: When the two third routes closest to the sub-area are both located on the same side of the sub-area, the third route closest to the sub-area is used as the extended route.
7. The method for processing aerial survey data according to any one of claims 1, 4 to 6, characterized in that: The processing method also includes: Obtaining an initial boundary of the sub-region; Clipping the sub-region processed by the server according to the initial boundary; The aerial images in the cropped sub-areas are merged to generate the corresponding surveying and mapping images.
8. A device for processing aerial survey data, characterized in that: include: A data segmentation module is used to obtain an aerial survey data set, wherein the aerial survey data set includes an aerial image; A region segmentation module is used to obtain the image coordinates and image number of each aerial image; connect the coordinate points corresponding to the image coordinates of each aerial image in sequence according to the arrangement order of the image numbers; determine the route and the number of routes corresponding to each image coordinate according to the angle between the straight lines obtained by connecting the coordinate points; determine the image number interval included in each route; determine the outer bounding rectangle corresponding to the aerial survey data set according to the image coordinates; and segment the outer bounding rectangle to obtain a segmented sub-region set; A data processing module is used to obtain, for each sub-region, a first image number of a first aerial image contained in the sub-region; determine a first route corresponding to the first aerial image according to an image number interval and the first image number; determine an extended image of the sub-region according to the first route; add the extended image to a data set contained in the sub-region; and process the aerial image included in any sub-region of the segmented sub-region set through any one of a plurality of servers.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the aerial survey data processing method according to any one of claims 1 to 7.
10. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to execute the aerial survey data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Image taking method and device, and unmanned aerial vehicle
CN106477038A
Method for improving efficiency of generating tile map by aerial survey data of drone
CN108536829A
A distributed optimization method for large-scale grids
CN109147032A
Information processing device, aerial photographing path generation method, aerial photographing path generation system, program and recording medium
CN109844455A
Video image processing method and device
CN109996072A
