Surveying and mapping data acquisition method and system based on geographic information

By using a geographic information-based method in the surveying and mapping data acquisition system, the target image captured by the acquisition device is processed and the working status of the data acquisition process is judged, which solves the problem of the lack of equipment working status monitoring in the existing system, and realizes the real-time data acquisition process Monitoring and fault warning improve the efficiency and stability of data processing.

CN118424225BActive Publication Date: 2024-11-29YICHANG SURVEYING & MAPPING INST CO LTD

Patent Information

Application Number
CN202410502707.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-11-29
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

The existing geographic surveying and mapping data acquisition system lacks the monitoring function of the working status of the data acquisition equipment, which may lead to invalid data collection when the equipment fails, affecting the analysis progress and requiring re-acquisition, which is time-consuming and labor-intensive.

Method used

Provide a surveying and mapping data acquisition method and system based on geographic information. By acquiring the target image captured by the acquisition device in the target area, pixel-griding and grayscale processing are performed, allocating it to the grayscale interval, calculating the spatial dispersion of the pixel set, and eliminating it. Invalid set, determine the coverage ratio, determine the image type to determine whether the data acquisition process has failed.

Benefits of technology

By eliminating invalid sets, improving the accuracy of image type judgment, reducing data processing volume, saving storage space, reducing data processing load, improving processing efficiency, real-time monitoring of the data acquisition process, preventing invalid acquisition, and improving equipment maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118424225B_ABST
    Figure CN118424225B_ABST
Patent Text Reader

Abstract

The present invention relates to a surveying and mapping data acquisition method and system based on geographic information, the method comprising: acquiring a target image; enlarging the target image into a pixel grid image for grayscale processing, obtaining the grayscale value of each pixel grid in the target image and the position coordinates in the corresponding target image; respectively allocating each pixel grid to the corresponding grayscale interval according to the grayscale value to obtain a number of pixel sets; determining a pixel set with an element number less than a preset element threshold as a first set, determining its spatial dispersion according to the position coordinates of all pixel grids in the target image respectively, and obtaining a valid set; determining a coverage ratio according to the number of valid sets, and determining the image type of the target image; and determining whether a fault occurs in the image data acquisition process according to the image type of the target image. Thus, the working state of the acquisition process is monitored by judging the image type, preventing the occurrence of invalid acquisition, and improving processing efficiency and real-time performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of surveying and mapping data processing, and in particular to a surveying and mapping data acquisition method and system based on geographic information. Background Art

[0002] Geographic information is information used to describe the spatial location and distribution of various targets in the real world. It is one of the most important and basic information resources for mankind. In human social practice, people usually use measurement methods to obtain real-world geographic information; in geological exploration, mineral development, water conservancy, transportation and other construction, control measurement, mine measurement, route measurement and topographic mapping must be carried out for geological surveys and various building designs and constructions. Since the terrain and regional environment will change over time, the timely update of surveying and mapping data is also particularly important.

[0003] The existing geographic surveying and mapping data acquisition and processing system does not have the function of monitoring the working status of the data acquisition equipment. If the data acquisition equipment fails and is not handled in time, it may lead to invalid data collection, which in turn affects the progress of geographic surveying and mapping analysis, and the data needs to be re-collected, which is time-consuming and laborious.

[0004] In view of the above technical problems, this application proposes a solution. Summary of the invention

[0005] The present invention aims at the technical problems existing in the prior art and provides a surveying and mapping data acquisition method and system based on geographic information.

[0006] The technical solution of the present invention to solve the above technical problems is as follows:

[0007] A method for collecting surveying and mapping data based on geographic information, the method comprising:

[0008] S101, acquiring target images captured by a capture device in a target area, wherein the target images captured at each time point include a group of vertical images and four groups of oblique images;

[0009] S102, enlarging the target image into a pixel grid image and performing grayscale processing to obtain the grayscale value of each pixel grid in the target image and the position coordinates of the corresponding target image;

[0010] S103, based on a preset fixed number of grayscale intervals, each pixel grid is respectively assigned to a corresponding grayscale interval according to the grayscale value, to obtain a fixed number of pixel sets, the number of pixel grids in the pixel set is determined as the number of elements in the pixel set, and the pixel set and the grayscale interval correspond one to one;

[0011] S104, determining a pixel set whose element number is less than a preset element threshold as a first set, and determining the spatial dispersion of the corresponding pixel set according to the position coordinates of all pixel grids in the target image, that is, the spatial dispersion of the first set;

[0012] S105, based on a fixed number of pixel sets, removing a first set whose spatial dispersion is lower than a preset dispersion threshold from the set to obtain a valid set;

[0013] S106, determining the ratio of the number of valid sets to the fixed number of grayscale intervals as a coverage ratio, and determining the image type of the target image according to a comparison result between the coverage ratio and a preset coverage threshold;

[0014] S107, determining whether a failure occurs in the image data acquisition process according to the image type of the target image.

[0015] A surveying and mapping data acquisition system based on geographic information, comprising: an acquisition module, an image processing module, and a judgment module;

[0016] The acquisition module is used to acquire the target image taken by the acquisition device in the target area;

[0017] The image data module is used to enlarge the target image into a pixel grid image for grayscale processing, and obtain the grayscale value of each pixel grid in the target image and the position coordinates in the corresponding target image; based on a preset fixed number of grayscale intervals, each pixel grid is respectively assigned to the corresponding grayscale interval according to the grayscale value to obtain a fixed number of pixel sets, and the number of pixel grids in the pixel set is determined as the number of elements of the pixel set; a pixel set whose number of elements is less than a preset element threshold is determined as a first set, and in the first set, the spatial dispersion of the corresponding pixel set is determined according to the position coordinates of all pixel grids in the target image, that is, the spatial dispersion of the first set; based on the fixed number of pixel sets, the first set whose spatial dispersion is lower than the preset dispersion threshold is eliminated to obtain a valid set; the ratio of the number of valid sets to the fixed number of grayscale intervals is determined as the coverage ratio, and the image type of the target image is determined according to the comparison result of the coverage ratio and the preset coverage threshold;

[0018] The judgment module is used to judge whether a fault occurs in the image data acquisition process according to the image type of the target image.

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

[0020] By eliminating invalid sets, the remaining pixel sets are all valid sets. Combining the valid sets with the corresponding spatial dispersion, the accuracy of the subsequent determination of the image type based on the coverage ratio is improved, and the probability of misjudgment of the image type is avoided. In addition, eliminating invalid sets can also reduce the subsequent data processing volume to a certain extent, save storage space, reduce the load pressure of data processing, and improve processing efficiency, thereby improving the real-time and stability of data processing.

[0021] By processing the target image at the same time point or all target images within a preset time window to obtain the corresponding image type, the working status of the image data acquisition process can be monitored. When a fault occurs, a targeted fault signal can be generated in time for early warning to prevent invalid acquisition and speed up equipment maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of a process of a surveying and mapping data acquisition method based on geographic information according to an embodiment of the present invention;

[0023] Figure 2 It is a schematic diagram of a flow chart of determining the spatial dispersion of a pixel set according to the position coordinates of all pixel grids in the corresponding target image according to an embodiment of the present invention;

[0024] Figure 3 Schematic diagram of a flow chart of a method for determining a coverage ratio according to an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of a flow chart of calculating the spatial dispersion of each valid set according to another embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of the structure of a surveying and mapping data acquisition system based on geographic information according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0028] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0029] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0030] Example 1

[0031] Figure 1 It is a flowchart of a surveying and mapping data collection method based on geographic information according to an embodiment of the present invention.

[0032] like Figure 1 As shown, the surveying and mapping data collection method based on geographic information includes the following steps:

[0033] S101, acquiring target images captured by a capture device in a target area, wherein the target images captured at each time point include a group of vertical images and four groups of oblique images.

[0034] In some embodiments, the acquisition device is configured as a drone equipped with a camera, the camera includes a positive film and four oblique films, the positive film is used to shoot at a vertical angle to the ground to obtain a group of vertical images facing vertically downward, and the four oblique films point to the four directions of southeast, northwest, and northeast respectively, and are used to shoot at four oblique angles to obtain four groups of inclined images.

[0035] Specifically, the UAV is placed in the target area and the image of the target area is collected according to the shooting position and shooting parameters of the target area image stored in the image database, that is, the image is shot according to the set shooting parameters when the UAV arrives at the target area. The shooting parameters include the inclination angles of the four oblique slices. The shooting position and shooting parameters of the target area image are set by the management personnel.

[0036] In the process of geographic information surveying and mapping, oblique images have significant advantages over vertical images. They can provide a better perspective to observe the sides of buildings. The combination of positive and oblique films can provide a more comprehensive and richer perspective to observe building image information.

[0037] S102, enlarging the target image into a pixel grid image and performing grayscale processing to obtain the grayscale value of each pixel grid in the target image and the position coordinates of each pixel grid in the corresponding target image.

[0038] The position coordinates of the pixel grid in the corresponding target image are set to (a, b), where a represents the row number of the pixel grid and b represents the column number of the pixel grid.

[0039] S103, based on a preset fixed number of grayscale intervals, each pixel grid is assigned to a corresponding grayscale interval according to its grayscale value to obtain a fixed number of pixel sets, the number of pixel grids in the pixel set is determined as the number of elements in the pixel set, and the pixel set and the grayscale interval correspond one-to-one.

[0040] The preset fixed number of grayscale intervals is specifically: the grayscale range of 0 to 255 is evenly divided into a fixed number of grayscale intervals in ascending order, the number of grayscale values ​​in each grayscale interval is the same and the grayscale values ​​increase one by one, and the fixed number is pre-set by the management personnel and is recorded as r.

[0041] Specifically, all pixel grids of each target image are allocated to the grayscale interval to which the grayscale value belongs according to the grayscale value, and finally r pixel sets are obtained, and the number of elements in each pixel set is determined according to the number of pixel grids in the pixel set.

[0042] S104, determining a pixel set whose element number is less than a preset element threshold as a first set, and in the first set, determining the spatial dispersion of the corresponding pixel set according to the position coordinates of all pixel grids in the corresponding target image, that is, the spatial dispersion of the first set.

[0043] The preset element threshold is set according to the number of all pixel grids in the image and the fixed number of preset grayscale intervals. The preset element threshold is set to a ratio much smaller than the number of all pixel grids in the image to the fixed number of grayscale intervals, and is used to measure whether the number of elements in the pixel set is scarce. For example, the preset element threshold can be set to 5.

[0044] In some embodiments, the spatial dispersion of the pixel set is determined based on the position coordinates of all pixel grids in the corresponding target image, such as Figure 2 As shown, specifically including:

[0045] S201, based on the position coordinates of all pixel grids in the pixel set in the target image, respectively calculate the Euclidean distance between any two pixel grids.

[0046] S202, calculating the average value of all Euclidean distances to obtain a pixel distance value.

[0047] For example, suppose there are m pixels in a pixel set, and the Euclidean distance between all two pixels is calculated, and we get Euclidean distances, each of which corresponds to a unique pairwise pixel combination.

[0048] Specifically, the Euclidean distance between two pixel grids is calculated according to the following formula:

[0049] Among them, l is the Euclidean distance between two pixel grids, (a1, b1) and (a2, b2) are the position coordinates of the two pixel grids respectively.

[0050] Further, we get Euclidean distances, and average all Euclidean distances, that is, the sum of all Euclidean distances and The ratio of is taken as the pixel distance value.

[0051] S203, calculating a diagonal distance value according to the position coordinates of two pixel grids at the end points of the diagonal line of the target image.

[0052] S204, according to the diagonal distance value, the pixel distance value is normalized using the following formula to obtain the spatial dispersion: S=d / D, where S is the spatial dispersion of the pixel set, d is the pixel distance value, and D is the diagonal distance value.

[0053] Specifically, by normalizing the pixel distance values, the spatial dispersion is ensured to remain a dimensionless value in the range of 0 to 1. When all pixel grids in the pixel set are roughly concentrated in a local area in the target image, the spatial dispersion is close to 0, and the dispersion is low; conversely, when all pixel grids are roughly distributed over the entire target image, the spatial dispersion is close to 1, and the dispersion is high.

[0054] S105 , based on a fixed number of pixel sets, remove the first set whose spatial dispersion is lower than a preset dispersion threshold, to obtain a valid set.

[0055] Specifically, in combination with step S104, using the settings of the preset element threshold and the preset dispersion threshold, the first set in which the number of elements is lower than the preset element threshold and the spatial dispersion is lower than the preset dispersion threshold indicates that the first set contains too little pixel grayscale value information and these pixel grids are too concentrated in the target image, or even concentrated as a point in the actual image. Therefore, such a first set is regarded as containing no valid information or too little information during the image processing process, and may even interfere with the extraction and judgment of subsequent valid sets. Therefore, it is eliminated as an invalid set and the remaining pixel sets are regarded as valid sets.

[0056] Therefore, by eliminating invalid sets, the remaining pixel sets are all valid sets, thereby improving the accuracy of subsequent determination of image type based on coverage ratio and avoiding the chance of misjudgment of image type; and, eliminating invalid sets can also reduce the subsequent data processing volume to a certain extent, save storage space, reduce the load pressure of data processing, and improve processing efficiency, thereby improving the real-time and stability of data processing.

[0057] S106, determining the ratio of the number of valid sets to the fixed number of grayscale intervals as the coverage ratio, and determining the image type of the target image according to the comparison result of the coverage ratio and the preset coverage threshold, the image types including single image and rich image.

[0058] The coverage threshold is a numerical constant used to mark the target image as a single image or a rich image, and the value of the coverage threshold is set by the administrator.

[0059] In some embodiments, determining the image type of the target image according to the comparison result between the coverage ratio and the preset coverage threshold specifically includes:

[0060] If the coverage ratio is less than or equal to the preset coverage threshold, the corresponding target image is marked as a single image;

[0061] If the coverage ratio is greater than the coverage threshold, the corresponding target image is marked as a rich image.

[0062] S107, determining whether a failure occurs in the image data acquisition process according to the image type of the target image.

[0063] In some embodiments, determining whether a failure occurs in the image data acquisition process according to the image type of the target image specifically includes:

[0064] A1. Obtain the image types of five target images captured at the same time point respectively.

[0065] A2. If all five images are single images, it is determined that a failure occurs in the image data acquisition process, and an acquisition failure signal is generated and sent to the administrator terminal.

[0066] Specifically, if the five images transmitted by the positive film and the oblique film are all single images, it means that the pixels of the images taken by the positive film and the oblique film are too concentrated in a few pixel sets, that is, the number of valid sets is too small. At this time, the image data acquisition process is very likely to fail. The reasons for the failure of the image data acquisition process may be line failure, camera being blocked, etc.

[0067] In some embodiments, determining whether a failure occurs in the image data acquisition process according to the image type of the target image may further include:

[0068] B1. Set the acquisition time window, obtain the image types of all target images acquired within the time window, and count the number of single images and rich images.

[0069] B2. Determine the ratio of the number of single images to the number of rich images as a single ratio, and compare the single ratio with a preset single threshold.

[0070] The single threshold is a numerical constant used to measure whether the working status of the image data acquisition process is normal, and the value of the single threshold is set by the management personnel.

[0071] B3. If the single ratio is less than the preset single threshold, it is determined that the image data acquisition process is working normally; if the single ratio is greater than or equal to the preset single threshold, it is determined that the image data acquisition process is working abnormally, and a single-chip fault signal is generated and sent to the management terminal.

[0072] Specifically, a single ratio greater than or equal to a preset single threshold value indicates that the number of single images obtained within the time window is too large. At this time, the possibility of a positive film or oblique film failure of the camera is extremely high. Therefore, it is determined that the image data acquisition process is abnormal. The single-chip failure signal indicates that one or more of the positive film and the oblique film have an operating abnormality, which is used to indicate that the positive film or the oblique film of the camera needs to be repaired.

[0073] Therefore, by processing the target image at the same time point or all target images within a preset time window to obtain the corresponding image type, the working status of the image data acquisition process can be monitored, and targeted fault signals can be generated in time for early warning when a fault occurs, thereby preventing invalid acquisition and accelerating equipment maintenance efficiency.

[0074] Example 2

[0075] In geographic information surveying and mapping, the richness of images is crucial for subsequent data analysis and processing. In Example 1, the judgment of image type is based on coverage ratio. However, the coverage ratio that only considers the number of valid sets and ignores the connection between pixel grids in the valid sets may not accurately and comprehensively reflect the image type characteristics.

[0076] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0077] In some embodiments, step S106, i.e., a method for determining the coverage ratio, is as follows: Figure 3 As shown, it may also include:

[0078] S301, respectively calculating the spatial dispersion of each valid set and comparing it with a preset reference dispersion.

[0079] The method for calculating the spatial dispersion of the effective set refers to the aforementioned steps S201 to S204, which will not be elaborated in the present invention.

[0080] It should be noted that the preset reference dispersion represents a stable and medium dispersion level, which is neither too high nor too low, and is used to measure the actual spatial dispersion. The reference dispersion can be set according to historical experience or professionals. It is understandable that the reference dispersion must be greater than the preset dispersion threshold for invalid set determination in the first embodiment.

[0081] S302, obtaining an average dispersion according to the spatial dispersion of all valid sets, and determining the ratio of the average dispersion to the reference dispersion as an adjustment factor.

[0082] S303, obtaining a target coverage ratio according to the product of the coverage ratio and the adjustment factor, and replacing the original coverage ratio with the target coverage ratio.

[0083] Specifically, if the average dispersion of the effective set is greater than the benchmark dispersion, it means that the pixels in the effective set are widely distributed in the target image, and the coverage ratio should be increased. At this time, the adjustment factor is set to the ratio of the average dispersion to the benchmark dispersion, and the ratio is greater than 1, so as to achieve an adaptive increase in the coverage ratio; if the average dispersion is lower than the benchmark dispersion, it means that the pixels in the effective set are more concentrated in the target image, and the coverage ratio should be reduced. At this time, the adjustment factor is set to the ratio of the average dispersion to the benchmark dispersion, and the ratio is less than 1, so as to achieve the effect of adaptively reducing the coverage ratio.

[0084] Therefore, according to the spatial dispersion of each valid set, the adaptive dynamic adjustment of the coverage ratio is achieved, so that the determination of the coverage ratio is not limited to the number of valid sets, but also considers the spatial dispersion of the elements within each valid set, thereby more accurately reflecting the richness and diversity of the image and providing more reliable data support for the determination of the image type.

[0085] Example 3

[0086] In geographic information mapping and image processing, spatial dispersion is an important indicator used to determine the degree of dispersion of all pixels in the effective set in the target image. However, when the number of elements in the effective set is large, directly calculating the average value of the Euclidean distance between all pixels may be affected by outliers (especially large or small distance values), resulting in inaccurate determination of dispersion.

[0087] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0088] In some embodiments, such as Figure 4 As shown, step S301 may also include:

[0089] S401, based on the position coordinates of all pixel grids in the valid set in the target image, respectively calculate the Euclidean distance between any two pixel grids.

[0090] S402, obtaining the maximum Euclidean distance of the target image, that is, the diagonal distance value D.

[0091] S403, based on the distance value range of 0 to D, evenly divide it into k distance value intervals in order from small to large, and sort the distance value range of each distance value interval from small to large, and assign a successively increasing dispersed weight value to each distance value interval, and the dispersed weight values ​​of all distance value intervals constitute an arithmetic progression.

[0092] The dispersion weight value of each distance value interval is determined specifically as follows: based on the unit value 1, according to k distance value intervals, an arithmetic progression {cn} is set: c1, c2, ..., ck, and the common difference of the arithmetic progression is 1 / k.

[0093] The number k of the divided distance value intervals is reasonably set according to actual conditions and professional experience.

[0094] S404, respectively assigning all Euclidean distances of the valid set to corresponding distance value intervals according to their distance values, to obtain a plurality of distance sets, wherein the distance sets correspond to the distance value intervals one by one.

[0095] The obtained distance sets are distance sets obtained by eliminating distance sets to which Euclidean distances are not assigned.

[0096] S405, calculating the average value of all Euclidean distances in each distance set, and multiplying them by the corresponding dispersion weight values ​​respectively to obtain the first distance value of each distance set.

[0097] S406: Calculate the average value of the first distance values ​​of all distance sets to obtain a pixel distance value.

[0098] S407, normalizing the pixel distance values ​​according to the diagonal distance values ​​to obtain the spatial dispersion of the effective set.

[0099] The traditional average Euclidean distance calculation method is easily affected by extreme values ​​in the data set. Therefore, by dividing the distance value interval and sorting it by size and assigning different dispersion weight values ​​through an arithmetic progression, the contribution of different distance values ​​to the overall dispersion in the image can be accurately measured. Based on the distribution of Euclidean distances in the effective set, weighted processing is performed on them, which can more accurately and comprehensively reflect the spatial distribution of pixels in the effective set, reduce the impact of abnormal distance values ​​on the overall dispersion calculation, and thus improve the accuracy of spatial dispersion calculation.

[0100] Example 4

[0101] In the above-mentioned Embodiment 2 and Embodiment 3, in order to calculate the spatial dispersion of each effective set, it is necessary to calculate the Euclidean distance between two pixel grids based on the position coordinates of all pixel grids in the effective set. Assuming that there are 100 pixel grids in a certain effective set, it is necessary to perform Therefore, if the number of pixels contained in the effective set is too large, a large amount of image pixel data needs to be processed, resulting in the consumption of a large amount of computing resources, affecting the real-time and accuracy of surveying and mapping data collection.

[0102] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0103] In some embodiments, step S301 may further include:

[0104] S501, evenly divide the target image into x sub-images, and assign a unique number to each sub-image, where x is a positive integer and is preset by a management staff.

[0105] S502, obtaining a sub-image corresponding to the valid set according to the position coordinates of all pixel grids in the valid set in the target image, and determining it as a valid sub-image corresponding to the valid set in the target image.

[0106] S503 , for each valid sub-image corresponding to the valid set, obtain the pixel distance value of each valid sub-image according to the method of steps S401 to S406 .

[0107] It should be noted that the pixels in each valid sub-image are the pixels whose position coordinates in the valid set belong to the valid sub-image, not all the pixels in the original valid sub-image, because the pixels in the valid sub-image correspond to the pixels in the valid set.

[0108] Specifically, the pixel distance value of each valid sub-image is obtained according to the method of step S401 to step S406, that is, the processing object is transformed into a valid sub-image, which specifically includes:

[0109] Based on the pixel grids in each valid sub-image corresponding to the valid set, the Euclidean distance between each pair of pixel grids in each valid sub-image is calculated respectively;

[0110] Obtain the maximum Euclidean distance of the valid sub-image, that is, the diagonal distance value D;

[0111] All Euclidean distances of valid sub-images are respectively assigned to corresponding distance value intervals according to their distance values, and several distance sets are obtained;

[0112] Calculate the average of all Euclidean distances in each distance set, and multiply them by the corresponding dispersion weight values ​​to obtain the first distance value of each distance set;

[0113] The pixel distance value of the effective sub-image is obtained by calculating the average value of the first distance values ​​of all distance sets.

[0114] S504, using the diagonal distance value of the effective sub-image, normalize the pixel distance value thereof, and obtain the spatial dispersion of each effective sub-image corresponding to the effective set.

[0115] S505 , obtaining the spatial dispersion degree of the effective set according to the spatial dispersion degree of each effective sub-image corresponding to the effective set.

[0116] In some embodiments, step S505 specifically includes:

[0117] S601, based on each valid sub-image corresponding to the valid set, connecting the outermost pixel grids therein to form a target contour.

[0118] Among them, all pixel grids within the target contour are valid parts of the valid sub-image.

[0119] S602, respectively obtain the position coordinates of the center point of the target contour of each valid sub-image in the target image.

[0120] S603, averaging the distance values ​​between the center point of a certain valid sub-image and the center points of other valid sub-images to obtain the relative distance value of the valid sub-image, and determining the contribution weight value of the spatial dispersion of each valid sub-image to the spatial dispersion of the valid set on the entire target image according to the relative distance value of each valid sub-image and the maximum Euclidean distance of the target image.

[0121] Among them, according to the relative distance value of each valid sub-image and the maximum Euclidean distance of the target image, the contribution weight value of the spatial dispersion of each valid sub-image to the spatial dispersion of the valid set on the entire target image is determined, and the contribution weight value of each valid sub-image is calculated according to the following formula: Where W'i is the contribution weight value of the i-th valid sub-image, Wi is the ratio of the relative distance value of the i-th valid sub-image to the maximum Euclidean distance of the target image, It is the sum of the ratios of the relative distance values ​​of the n valid sub-images to the maximum Euclidean distance of the target image.

[0122] S604: multiply the spatial dispersion of the effective sub-image by the corresponding contribution weight value to obtain the spatial dispersion of the corresponding effective set.

[0123] Therefore, by dividing the entire target image into smaller sub-images and calculating the Euclidean distance between two pixel grids only in the effective sub-images, the amount of data processing is greatly reduced relative to the number of calculations of the Euclidean distance between two pixel grids in the entire target image. For example, this method performs pairwise calculations relative to all pixel grids in the target image, reducing the pairwise matching of pixel grids between each effective sub-image, thereby reducing the amount of data processing and the computational burden, improving processing efficiency, and meeting the requirements of real-time data acquisition; by outlining the target contour for the pixel grids in each effective sub-image, the relative distance value between each effective sub-image and other effective sub-images is determined based on the distance value between the center points of each target contour, thereby taking into account the connection between each effective sub-image, and assigning a contribution weight value to the spatial dispersion of the overall target image to each effective sub-image, thereby being able to more accurately and multi-dimensionally reflect the spatial dispersion of the effective set on the target image.

[0124] Example 5

[0125] In Example 1, a single ratio is used to determine whether a fault occurs in the image data acquisition process according to the image types of all target images in the target area collected within a preset time window. However, since the number of images collected within the time window is not unique, it is necessary to process the data of each image separately and simultaneously to obtain a single ratio, which is relatively cumbersome and reduces the processing efficiency. The working status detection of the image data acquisition process within a time window is not real-time, which may lead to the failure to discover the problem in time and affect the effectiveness of the subsequent acquisition process. On the other hand, in the process of geographic information mapping and image processing, it is usually necessary to collect images within a time window to determine the working status in more detail. These images are often taken at different time points and angles. In order to determine whether a fault occurs in the image data acquisition process, the traditional method is to analyze the images taken at each time point or angle separately. However, the correlation between the same target area at different times and angles is ignored, which may lead to one-sidedness and inaccuracy in fault judgment.

[0126] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.

[0127] In some embodiments, step S101 further includes:

[0128] C1. Acquire all images taken by the acquisition device in the target area within a preset time window, and combine and stitch all the images to obtain an overall image.

[0129] The target image includes a set of vertical images and four sets of oblique images taken at several time points.

[0130] C2. Use a mask of a preset size to slide on the entire image in sequence according to a preset mask step length until the mask completes the sliding coverage of the entire image, determine the image covered by the mask each time the sliding is performed as a mask image, and determine each mask image as a target image.

[0131] The method for determining the preset size of the mask includes: setting the size of the sliding mask according to the size of each captured image, that is, the size of the mask is larger than the size of each captured image.

[0132] In order to ensure that each mask image can contain the information of multiple captured images, the size of the mask should be slightly larger than the size of each individual image, so as to capture the image information of the same target area at different shooting angles and different time points, thereby improving the accuracy and comprehensiveness of subsequent fault judgment.

[0133] It should be noted that the step size should be set to ensure that there is a certain overlap area between adjacent mask images to avoid the loss of some image information.

[0134] In some embodiments, step S107: determining whether a failure occurs in the image data acquisition process according to the image type of the target image, further includes:

[0135] D1. Based on the image types of several target images included in the overall image, the number of single images and enriched images is obtained.

[0136] D2. If all target images are single images, it is determined that a fault occurs in the image data acquisition process, and an acquisition fault signal is generated.

[0137] D3. If the single ratio is less than the preset single threshold, it is determined that the image data acquisition process is working normally; if the single ratio is greater than or equal to the preset single threshold, a single chip fault signal is generated.

[0138] Therefore, by splicing multiple images into an overall image and processing them using mask technology, multiple images can be processed at one time, avoiding the tedious process of analyzing each image individually, thereby improving processing efficiency and enhancing real-time performance; through the sliding mask technology, the mask is slid on the complete image composed of all images in the time window to obtain several mask images. According to the setting of the mask size, it can be ensured that each mask image includes information of images taken from multiple angles or multiple time points, that is, compared with the original target image, the target image of this embodiment can simultaneously include partial information between different captured images, and add the connection between the captured images, so as to provide a more comprehensive and multi-dimensional data basis for the determination of the working status of the subsequent image data acquisition process, improve the accuracy and comprehensiveness of fault detection, help to discover problems in a timely manner, and ensure the effectiveness of geographic information surveying and mapping and image processing.

[0139] Example 6

[0140] Figure 5 It is a schematic diagram of the structure of a surveying and mapping data acquisition system based on geographic information according to an embodiment of the present invention.

[0141] like Figure 5 As shown, the surveying and mapping data acquisition system based on geographic information includes: an acquisition module, an image processing module, and a judgment module;

[0142] The acquisition module is used to acquire the target image taken by the acquisition device in the target area;

[0143] The image data module is used to enlarge the target image into a pixel grid image for grayscale processing, and obtain the grayscale value of each pixel grid in the target image and the position coordinates in the corresponding target image; based on a preset fixed number of grayscale intervals, each pixel grid is respectively assigned to the corresponding grayscale interval according to the grayscale value to obtain a fixed number of pixel sets, and the number of pixel grids in the pixel set is determined as the number of elements of the pixel set; a pixel set whose number of elements is less than a preset element threshold is determined as a first set, and in the first set, the spatial dispersion of the corresponding pixel set is determined according to the position coordinates of all pixel grids in the target image, that is, the spatial dispersion of the first set; based on the fixed number of pixel sets, the first set whose spatial dispersion is lower than the preset dispersion threshold is eliminated to obtain a valid set; the ratio of the number of valid sets to the fixed number of grayscale intervals is determined as the coverage ratio, and the image type of the target image is determined according to the comparison result of the coverage ratio and the preset coverage threshold;

[0144] The judgment module is used to judge whether a fault occurs in the image data acquisition process according to the image type of the target image.

[0145] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0146] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 computer, 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.

[0148] 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.

[0149] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0150] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0151] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A surveying and mapping data collection method based on geographic information, characterized in that: The method comprises: S101, acquiring target images captured by a capture device in a target area, wherein the target images captured at each time point include a group of vertical images and four groups of oblique images; S102, enlarging the target image into a pixel grid image and performing grayscale processing to obtain the grayscale value of each pixel grid in the target image and the position coordinates of the corresponding target image; S103, based on a preset fixed number of grayscale intervals, each pixel grid is respectively assigned to a corresponding grayscale interval according to the grayscale value, to obtain a fixed number of pixel sets, the number of pixel grids in the pixel set is determined as the number of elements in the pixel set, and the pixel set and the grayscale interval correspond one to one; S104, determining a pixel set whose element number is less than a preset element threshold as a first set, and determining the spatial dispersion of the corresponding pixel set according to the position coordinates of all pixel grids in the target image, that is, the spatial dispersion of the first set; S105, based on a fixed number of pixel sets, removing a first set whose spatial dispersion is lower than a preset dispersion threshold from the set to obtain a valid set; S106, determining the ratio of the number of valid sets to the fixed number of grayscale intervals as a coverage ratio, and determining the image type of the target image according to a comparison result between the coverage ratio and a preset coverage threshold; S107, determining whether a failure occurs in the image data acquisition process according to the image type of the target image; The method for determining the coverage ratio further includes: S301, respectively calculating the spatial dispersion of each valid set and comparing it with a preset reference dispersion; S302, obtaining an average dispersion according to the spatial dispersion of all valid sets, and determining the ratio of the average dispersion to the reference dispersion as an adjustment factor; S303, obtaining a target coverage ratio according to the product of the coverage ratio and the adjustment factor, and replacing the original coverage ratio with the target coverage ratio.

2. The surveying and mapping data collection method based on geographic information according to claim 1, characterized in that: The step of determining the spatial dispersion of a pixel set according to the position coordinates of all pixel grids in the corresponding target image includes: Based on the position coordinates of all pixel grids in the pixel set in the target image, the Euclidean distance between each pixel grid is calculated respectively; The pixel distance value is obtained by averaging all Euclidean distances; According to the position coordinates of the two pixel grids at the diagonal end points of the target image, the diagonal distance value is calculated; According to the diagonal distance value, the pixel distance value is normalized using the following formula to obtain the spatial dispersion: S=d / D, where S is the spatial dispersion of the pixel set, d is the pixel distance value, and D is the diagonal distance value.

3. The method for collecting surveying and mapping data based on geographic information according to claim 1, characterized in that: The image types include single images and rich images, and the step of determining the image type of the target image according to the comparison result between the coverage ratio and the preset coverage threshold includes: If the coverage ratio is less than or equal to the preset coverage threshold, the corresponding target image is marked as a single image; If the coverage ratio is greater than the coverage threshold, the corresponding target image is marked as a rich image.

4. The method for collecting surveying and mapping data based on geographic information according to claim 1, characterized in that: The step of determining whether a fault occurs in the image data acquisition process according to the image type of the target image includes: A1. Obtain the image types of five images in the target image taken at the same time point respectively; A2. If all five images are single images, it is determined that a failure occurs in the image data acquisition process, and an acquisition failure signal is generated; B1. Set the acquisition time window, obtain the image types of all target images acquired within the time window, and count the number of single images and rich images; B2, determining a ratio of the number of single images to the number of rich images as a single ratio, and comparing the single ratio with a preset single threshold; B3. If the single ratio is less than the preset single threshold, it is determined that the image data acquisition process is working normally; if the single ratio is greater than or equal to the preset single threshold, it is determined that the image data acquisition process is working abnormally and a single chip fault signal is generated.

5. The method for collecting surveying and mapping data based on geographic information according to claim 1, characterized in that: The calculation of the spatial dispersion of each valid set in S301 also includes: S401, based on the position coordinates of all pixel grids in the valid set in the target image, respectively calculate the Euclidean distance between any two pixel grids; S402, obtaining the maximum Euclidean distance of the target image, that is, the diagonal distance value D; S403, based on the distance value range from 0 to D, evenly divide it into k distance value intervals in order from small to large, and sort the distance value range of each distance value interval from small to large, and assign a sequentially increasing dispersion weight value to each distance value interval, and the dispersion weight values ​​of all distance value intervals constitute an increasing arithmetic progression; S404, respectively assigning all Euclidean distances of the valid set to corresponding distance value intervals according to their distance values, to obtain a plurality of distance sets, wherein the distance sets correspond to the distance value intervals one by one; S405, calculating the average value of all Euclidean distances in each distance set, and multiplying them by the corresponding dispersion weight values ​​respectively to obtain the first distance value of each distance set; S406, calculating the average value of the first distance values ​​of all distance sets to obtain a pixel distance value; S407, normalizing the pixel distance values ​​according to the diagonal distance values ​​to obtain the spatial dispersion of the effective set.

6. The method for collecting surveying and mapping data based on geographic information according to claim 4, characterized in that: The S301 further includes: S501, evenly divide the target image into x sub-images, and assign a unique number to each sub-image; S502, obtaining a sub-image corresponding to the valid set according to the position coordinates of all pixel grids in the valid set in the target image, and determining it as a valid sub-image corresponding to the valid set in the target image; S503, for each valid sub-image corresponding to the valid set, obtaining a pixel distance value of each valid sub-image according to the method of S401 to S406; S504, using the diagonal distance value of the effective sub-image, normalize the pixel distance value thereof, and obtain the spatial dispersion of each effective sub-image corresponding to the effective set; S505, obtaining the spatial dispersion degree of the effective set according to the spatial dispersion degree of each effective sub-image corresponding to the effective set.

7. The method for collecting surveying and mapping data based on geographic information according to claim 6, characterized in that: The S505 includes: S601, based on each valid sub-image corresponding to the valid set, connecting the outermost pixel grids therein to form a target contour; S602, respectively obtaining the position coordinates of the center point of the target contour of each valid sub-image in the target image; S603, averaging the distance values ​​between the center point of a certain valid sub-image and the center points of other valid sub-images to obtain a relative distance value of the valid sub-image, and determining a weight value of the contribution of the spatial dispersion of each valid sub-image to the spatial dispersion of the valid set on the entire target image according to the maximum Euclidean distance between the relative distance value of each valid sub-image and the target image; S604, multiplying the spatial dispersion of the effective sub-image by the corresponding contribution weight value to obtain the spatial dispersion of the corresponding effective set; Among them, according to the relative distance value of each valid sub-image and the maximum Euclidean distance of the target image, the contribution weight value of the spatial dispersion of each valid sub-image to the spatial dispersion of the valid set on the entire target image is determined, and the contribution weight value of each valid sub-image is calculated according to the following formula: W'i = Wi / , where W'i is the contribution weight value of the ith valid sub-image, Wi is the ratio of the relative distance value of the ith valid sub-image to the maximum Euclidean distance of the target image, It is the sum of the ratios of the relative distance values ​​of the n valid sub-images to the maximum Euclidean distance of the target image.

8. The method for collecting surveying and mapping data based on geographic information according to claim 4, characterized in that: The S101 further includes: C1. Acquire all images taken by the acquisition device in the target area within a preset time window, and combine and stitch all the images to obtain an overall image; C2, using a mask of a preset size, sliding on the whole image in sequence according to a preset mask step length, determining the image covered by the mask at each sliding as a mask image, and determining each mask image as a target image; The S107 further includes: D1. Based on the image types of several target images included in the overall image, obtain the number of single images and enriched images; D2. If all target images are single images, it is determined that a failure occurs in the image data acquisition process, and an acquisition failure signal is generated; D3. If the single ratio is less than the preset single threshold, it is determined that the image data acquisition process is working normally; if the single ratio is greater than or equal to the preset single threshold, a single chip fault signal is generated.

9. A surveying and mapping data acquisition system based on geographic information, characterized in that: include: Acquisition module, image processing module, judgment module; The acquisition module is used to acquire the target image taken by the acquisition device in the target area; The image data module is used to enlarge the target image into a pixel grid image for grayscale processing, and obtain the grayscale value of each pixel grid in the target image and the position coordinates in the corresponding target image; based on a preset fixed number of grayscale intervals, each pixel grid is respectively assigned to the corresponding grayscale interval according to the grayscale value to obtain a fixed number of pixel sets, and the number of pixel grids in the pixel set is determined as the number of elements of the pixel set; a pixel set whose number of elements is less than a preset element threshold is determined as a first set, and in the first set, the spatial dispersion of the corresponding pixel set is determined according to the position coordinates of all pixel grids in the target image, that is, the spatial dispersion of the first set; based on the fixed number of pixel sets, the first set whose spatial dispersion is lower than the preset dispersion threshold is eliminated to obtain a valid set; the ratio of the number of valid sets to the fixed number of grayscale intervals is determined as the coverage ratio, and the image type of the target image is determined according to the comparison result of the coverage ratio and the preset coverage threshold; The judgment module is used to judge whether a fault occurs in the image data acquisition process according to the image type of the target image; The method for determining the coverage ratio further includes: S301, respectively calculating the spatial dispersion of each valid set and comparing it with a preset reference dispersion; S302, obtaining an average dispersion according to the spatial dispersion of all valid sets, and determining the ratio of the average dispersion to the reference dispersion as an adjustment factor; S303, obtaining a target coverage ratio according to the product of the coverage ratio and the adjustment factor, and replacing the original coverage ratio with the target coverage ratio.

Citation Information

Patent Citations

  • Geographic surveying and mapping data acquisition and processing system based on big data

    CN114882025A

  • Range hood, control method and device thereof and storage medium

    CN117823973A

Cited By

  • Engineering surveying and mapping data acquisition system

    CN121067823A

  • An engineering surveying and mapping data acquisition system

    CN121067823B