Field land cover sample sampling auxiliary system based on photo EXIF ​​information interpretation

Through an automated system based on photo EXIF ​​information, rapid and accurate collection of field land cover samples is achieved, solving the problems of low efficiency and uncertainty in traditional methods, and improving sampling efficiency and accuracy.

CN113590544BActive Publication Date: 2024-10-18CHINA AGRI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110601874.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-10-18
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

In field land cover sample collection, traditional methods are time-consuming and labor-intensive, and it is difficult to directly estimate the actual coordinates of target features from the EXIF ​​information of a single photo with existing technology, resulting in low collection efficiency and high uncertainty.

Method used

Using an auxiliary system based on photo EXIF ​​information interpretation, including collection equipment, field photo batch reading and analysis system, field route and sample point generation and visualization system, and sampling data fine editing and sharing system, the target points are automatically extracted and calculated through core algorithms coordinates and azimuth angles, generate visual KML files, support batch and single-point generation modes, and realize automated sampling data acquisition.

Benefits of technology

It improves the efficiency of field land cover sample collection, reduces the time of manually searching for target locations, improves the accuracy and consistency of sampling data, and the accuracy rate reaches 92.46%, reducing the workload of collection workers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590544B_ABST
    Figure CN113590544B_ABST
Patent Text Reader

Abstract

The present invention proposes a field land cover sample sampling auxiliary system based on the interpretation of photo EXIF ​​information, wherein the system includes: a collection device for collecting photo data of target samples within a preset distance; a field photo batch reading and analysis system for obtaining sample photos according to a picture folder selected by a user, reading the information in the header files of all sample photos in the picture folder, and generating an analysis table in combination with the information in the header files of all photos; a field route and sample point generation and visualization system for generating a visualization KML file corresponding to the analysis table; a sampling data fine editing and sharing system for editing and sharing the visualization KML file, wherein the editing includes adding, modifying and deleting marking points. The system solves the technical problems of laboriousness and low collection efficiency in the prior art, and can quickly and automatically obtain the spatial information of the objects photographed in the photos in the field, thereby improving the sampling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention is aimed at the fields of land resources investigation and mapping, and uses photogrammetry and remote sensing technology to assist workers in efficiently collecting land cover samples in the field. Background Art

[0002] Traditionally, there are two main ways to collect training and validation samples: visual interpretation of images and field surveys. Field surveys have the highest accuracy, but are time-consuming and labor-intensive, and have low collection efficiency. The main reason is that in field surveys, if the investigator goes deep into the center of each sampling target (to ensure the homogeneity around the sample) and uses GPS to collect the coordinates of the center point of the feature patch, it will take a lot of time. If the investigator only takes photos of the roadside landscape while traveling, the spatial coordinates collected by the camera GPS can only be the coordinates of the camera's photo location. In the subsequent indoor data processing, it takes a lot of effort to move the feature samples you want to collect in the photo to the center point of the real feature patch. Since this part of the work is completed entirely based on the investigator's impression, it will introduce greater uncertainty.

[0003] At present, there is a shortage of auxiliary tools for land cover field sampling both at home and abroad. Although there are studies based on the application of EXIF ​​file information in remote sensing or on position estimation by interpreting the EXIF ​​information of multiple photos, there is no direct method to estimate the actual coordinates of the target object based on the EXIF ​​file information of a single photo.

[0004] Based on the application of EXIF ​​file information in remote sensing, some researchers have applied the information in EXIF ​​files to check the automatic interpretation results of remote sensing images, and some researchers have used EXIF ​​files to manage multi-source heterogeneous data in mobile geographic information systems.

[0005] In the research on using EXIF ​​information for position estimation, there are studies that use the EXIF ​​file information of multiple photos to more accurately determine the location of the photographed objects, while there are also studies that directly approximate the photographer's position to the location of the photographed object. Summary of the invention

[0006] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

[0007] To this end, the first purpose of the present invention is to propose a field land cover sample sampling auxiliary system based on the interpretation of photo EXIF ​​information, so as to realize the rapid and automatic acquisition of spatial information of the objects photographed in the field and improve the sampling efficiency.

[0008] The second object of the present invention is to propose a field land cover sample sampling auxiliary method based on the interpretation of photo EXIF ​​information.

[0009] A third object of the present invention is to provide a non-transitory computer-readable storage medium.

[0010] To achieve the above-mentioned purpose, the first embodiment of the present invention proposes a field land cover sample sampling auxiliary system based on photo EXIF ​​information interpretation, comprising:

[0011] A collection device, used to collect photo data of a target sample within a preset distance;

[0012] The field photo batch reading and analysis system is used to obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos;

[0013] A field route and sample point generation and visualization system, used to generate a visualization KML file corresponding to the analysis table;

[0014] The sampling data fine editing and sharing system is used to edit and share the visual KML file, and the editing includes adding, modifying and deleting marking points.

[0015] Optionally, in one embodiment of the present application, the field photo batch reading and analysis system is specifically used for:

[0016] After inputting the sampled photos, the program automatically reads the information in the header files of all the photos in the folder, and generates an analysis table based on the core algorithm in combination with the information, wherein the data in the analysis table includes multiple rows of records of id, lat1, and lng1 column attributes, and the system automatically extracts and analyzes each target shooting point in each sampled photo, the coordinates of the target point, the shooting azimuth, the reference type based on FROM-GLC10 data, and the name of the reference picture.

[0017] Optionally, in one embodiment of the present application, the field route and sample point generation and visualization system includes a batch generation mode and a single point generation mode:

[0018] The batch generation mode includes batch generating KML files of all the shooting points and target points in the analysis table after clicking a button, and importing the KML files into Google earth software to display the sampling shooting positions, the captured target positions, photos and trajectories;

[0019] The single point generation mode includes obtaining the photo selected by the user to be interpreted through the picture frame, selecting the corresponding type according to the photo, and generating a KML file of the target point corresponding to the photo. The interpreted target point type in this mode will be directly marked on the map.

[0020] Optionally, in one embodiment of the present application, the core algorithm includes target point position estimation and approximate estimation of azimuth:

[0021] The target point position estimation includes: based on the shooting position, shooting azimuth, and focus distance stored in the EXIF ​​file of the photo, the azimuth α, focus distance L, and the longitude and latitude (x1, y1) of the photographer O are read through the public software Exiftool, and the relative position of the target point P to the photographer O is obtained through trigonometric functions;

[0022] The approximate calculation of the azimuth angle includes: during sampling, the user is required to shoot the target as perpendicularly as possible to the walking trajectory, and can only shoot objects in the right-hand direction, and obtain the longitude and latitude (Xn, Yn) of n shooting points in turn; then the trajectory is fitted through the coordinates of the shooting points and the azimuth angle is calculated, including a broken line model and a polynomial curve model.

[0023] Optionally, in one embodiment of the present application, the target point position estimation is specifically:

[0024] First calculate the relative position between O / P and substitute it into the formula

[0025] a=L×cosα

[0026] b=L×sinα

[0027] Assuming that the earth is a perfect sphere with a radius of R, the curve distance is approximately the straight-line distance. The longitude and latitude of the place can be converted into the longitude and latitude coordinate difference through the relative position, and finally the longitude and latitude of the target point (x2, y2) can be derived and substituted into the formula.

[0028]

[0029]

[0030] Among them, α, L, x1, and y1 are the azimuth angle α, focal distance L, and longitude and latitude (x1, y1) of the photographer O read by the public software Exiftool, a is the relative position between O / P in the east-west direction with the positive direction being east, and b is the relative position between O / P in the north-south direction with the positive direction being south.

[0031] Optionally, in one embodiment of the present application, the broken line model for approximate calculation of the azimuth angle is:

[0032] The corresponding fitting trajectory function y=f1(x) is obtained by connecting each sampling point in sequence through a broken line. Based on the sampling method, the angle bisector direction is approximately used as the azimuth direction:

[0033] a=(x n-1 -x n ,yn-1 -y n )

[0034] b=(x n+1 -x n ,y n+1 -y n )

[0035]

[0036] θ=tan -1 (y c / x c )

[0037] Among them, for the nth point in the shooting, a and b are the vectors between the point and the adjacent points, c is the direction vector of the angle bisector, and θ is the azimuth angle of the point.

[0038] Optionally, in one embodiment of the present application, it is characterized in that the polynomial curve model for approximate estimation of the azimuth angle is:

[0039] Assume that the curve equation passing through n shooting points is:

[0040]

[0041] Assume that the coefficient vector in the curve equation is A = (a1…an), and substitute n points to get the matrix

[0042]

[0043] The unique coefficient vector A can be solved, and the derivative of the curve can be obtained

[0044]

[0045] Enter the coordinates of each point

[0046] θ=tan -1 y

[0047] In order to achieve the above object, a second embodiment of the present invention proposes a field land cover sample sampling auxiliary method based on photo EXIF ​​information interpretation, comprising the following steps:

[0048] Collecting photo data of target samples within a preset distance;

[0049] Obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos;

[0050] Generate a visual KML file corresponding to the analysis table;

[0051] The visualized KML file is edited and shared, wherein the editing includes adding, modifying and deleting marker points.

[0052] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the field land cover sample sampling auxiliary method based on the interpretation of photo EXIF ​​information as described in the second aspect embodiment of the present application.

[0053] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0055] Figure 1 A flowchart of the field land cover sample sampling auxiliary system based on the interpretation of photo EXIF ​​information provided by an embodiment of the present invention;

[0056] Figure 2 This is an interface diagram of a photo batch reading and analysis system according to an embodiment of the present application;

[0057] Figure 3 It is the field route and sample point generation and visualization system interface of the embodiment of the present application;

[0058] Figure 4 is a result map displayed in Google Earth in an embodiment of the present application;

[0059] Figure 5 It is a target point diagram with a type marked in the single point mode of an embodiment of the present application;

[0060] Figure 6 This is an interface diagram of the upper half of the sampling data fine editing and sharing system of the embodiment of the present application;

[0061] Figure 7 This is the lower half of the interface diagram of the sampling data fine editing and sharing system of the embodiment of the present application;

[0062] Figure 8 It is a schematic diagram of the core algorithm of the embodiment of the present application;

[0063] Fig. 9 These are two model diagrams for approximate calculation of azimuth angles in the embodiments of the present application; DETAILED DESCRIPTION

[0064] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0065] The following describes a field land cover sample sampling auxiliary system based on photo EXIF ​​information interpretation provided by an embodiment of the present invention with reference to the accompanying drawings.

[0066] like Figure 1 As shown, in order to achieve the above-mentioned purpose, the first embodiment of the present invention proposes a field land cover sample sampling auxiliary system based on photo EXIF ​​information interpretation, including:

[0067] A collection device, used to collect photo data of a target sample within a preset distance;

[0068] The field photo batch reading and analysis system is used to obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos;

[0069] A field route and sample point generation and visualization system, used to generate a visualization KML file corresponding to the analysis table;

[0070] The sampling data fine editing and sharing system is used to edit and share the visual KML file, and the editing includes adding, modifying and deleting marking points.

[0071] In one embodiment of the present application, further, after adopting the present system, the user does not need to go deep into the center of the sampling target when sampling in the field, and the sampling is completed by shooting the target within a suitable distance (related to the camera model, the value is equal to the maximum value of the camera focuslower parameter).

[0072] In one embodiment of the present application, further, the field photo batch reading and analysis system is specifically used for, as shown in the attached Figure 2 As shown:

[0073] After inputting the sampled photos, the program automatically reads the information in the header files of all the photos in the folder, and generates an analysis table based on the core algorithm in combination with the information, wherein the data in the analysis table includes multiple rows of records of id, lat1, and lng1 column attributes, and the system automatically extracts and analyzes each target shooting point in each sampled photo, the coordinates of the target point, the shooting azimuth, the reference type based on FROM-GLC10 data, and the name of the reference picture.

[0074] After completing the above steps, enter the field route and sample point generation and visualization system. The main task of this system is to generate KML files that can be used for visualization, as shown in the attached Figure 3 As shown:

[0075] In one embodiment of the present application, further, the field route and sample point generation and visualization system includes a batch generation mode and a single point generation mode:

[0076] The batch generation mode includes: the left half of the software interface is the batch generation mode, by inputting the analysis table obtained in the first part, clicking the button can batch generate KML files of all shooting points and target points in the analysis table; after clicking the button, batch generate KML files of all shooting points and target points in the analysis table, import the KML files into Google Earth software to display the sampling shooting location, the captured target location, photos and tracks, as shown in the attached figure. Figure 4 As shown in the figure, users can interpret samples based on this information without having to manually find the location of the photographed object, which is also more intuitive. By clicking on the shooting point, users can also view the original shooting picture to determine whether it is reasonable and accurate.

[0077] The single point generation mode includes the right half of the software interface, which is the single point generation mode; if you need to interpret the collected samples directly and label them in this step, you can use the single point generation mode; obtain the photos selected by the user through the frame to be interpreted, select the corresponding type according to the photos, and generate the KML file of the target point corresponding to the photo, as shown in the attached figure. Figure 5 As shown, the target point type interpreted in the mode will be directly marked on the map. If the marked positions are relatively correct after inspection, the preliminary interpretation of the sampling data is completed.

[0078] In one embodiment of the present application, further, the sampling data fine editing and sharing system supports users to finely edit and share data, as shown in the attached Figure 6 and attached Figure 7 As shown:

[0079] This part is designed as a web version for easy sharing and management; if the user feels that the position automatically calculated by the system is not accurate after checking the generated KML file, or needs to share your collected sample data with others, you can enter the user fine adjustment and sharing system. You can enter the URL http: / / urpmapurpmap.vaiwan.com / Login.asp in the browser; the user clicks the button to read the photo information table obtained by automatic analysis, and imports the target point data taken into the system. This system uses SQL Sever to manage data. Each point has a location, description, and reference type information given by calling FROM-GLC10 data; in this web page, users can add, modify, and delete marked points. Through these functions, users can manually fine-tune the sampling data; at the same time, this system also supports moving the cursor to view the map information and the coordinates of the point. Combined with the reference type information, users can make more accurate judgments.

[0080] This system supports function sharing. This part is designed as a web version system. You can modify and edit it by sharing the URL without downloading the software. Based on this feature, users can share sampling data and invite others to modify and edit it. At the same time, the system manages data in a database way. After exiting the system, you can still access the data. Users can access the data on other devices at any time without being restricted by the local environment.

[0081] After fine editing, the data can be downloaded and saved as a new analysis table, which can be used to generate KML file visualization or saved locally.

[0082] In one embodiment of the present application, further, the core algorithm includes the target point position estimation and the approximate estimation of the azimuth angle:

[0083] The target point position estimation includes: based on the shooting position, shooting azimuth, and focus distance stored in the EXIF ​​file of the photo, the azimuth α, focus distance L, and the longitude and latitude (x1, y1) of the photographer O are read through the public software Exiftool, and the relative position of the target point P to the photographer O is obtained through trigonometric functions;

[0084] The approximate calculation of the azimuth angle includes: Figure 8 As shown, during sampling, it is stipulated that the user needs to shoot the target as perpendicularly as possible to the walking trajectory, and can only shoot the objects in the right-hand direction, and obtain the longitude and latitude (Xn, Yn) of n shooting points in turn; then the trajectory is fitted through the coordinates of the shooting points and the azimuth is calculated, including a broken line model and a polynomial curve model.

[0085] In one embodiment of the present application, further, the target point position estimation is specifically:

[0086] First calculate the relative position between O / P and substitute it into the formula

[0087] a=L×cosα

[0088] b=L×sinα

[0089] Assuming that the earth is a perfect sphere with a radius of R, the curve distance is approximately the straight-line distance. The longitude and latitude of the place can be converted into the longitude and latitude coordinate difference through the relative position, and finally the longitude and latitude of the target point (x2, y2) can be derived and substituted into the formula.

[0090]

[0091]

[0092] Among them, α, L, x1, and y1 are the azimuth angle α, focal distance L, and longitude and latitude (x1, y1) of the photographer O read by the public software Exiftool, a is the relative position between O / P in the east-west direction with the positive direction being east, and b is the relative position between O / P in the north-south direction with the positive direction being south.

[0093] In order to better serve the interpretation work, we also call FROM-GLC10 data according to the location of the target point to give the reference land cover type of the target point; FROM-GLC10 data is the world's first 10-m resolution global land cover product developed by Gong Peng and others from the Department of Earth System Science of Tsinghua University based on the experience gained by the research group in global 30-m surface cover mapping since 2011 and the accumulation of sample library construction, using 10-m resolution Sentinel-2 global images and the Google Earth Engine platform. It has good reference value.

[0094] In one embodiment of the present application, further, the broken line model for approximate calculation of the azimuth angle is:

[0095] The recording of azimuth requires the support of the compass module, but in actual situations, most cameras often do not support the compass module, resulting in the inability to obtain the azimuth value. To solve this problem, we improved this system by fitting the trajectory of the shooting point and calculating the normal direction of the tangent to obtain the approximate value of the azimuth. First, when sampling, it is required that the user shoot the target as perpendicular to the walking trajectory as possible, and can only shoot the objects in the right hand direction, and obtain the longitude and latitude (Xn, Yn) of n shooting points in turn. Then, the trajectory is fitted through the coordinates of the shooting point and the azimuth is calculated. Two models are designed as shown in the attached figure. Fig. 9 As shown:

[0096] The first model is the discount model, which connects each sampling point in sequence through a broken line, and the corresponding fitting trajectory function y=f1(x) can be obtained as follows: Fig. 9 As shown in the broken line model, the angle bisector direction is approximately used as the azimuth direction based on the sampling method:

[0097] a=(x n-1 -x n ,y n-1 -y n )

[0098] b=(x n+1 -x n ,y n+1 -y n )

[0099]

[0100] θ=tan -1 (y c / x c )

[0101] Among them, for the nth point in the shooting, a and b are the vectors between the point and the adjacent points, c is the direction vector of the angle bisector, and θ is the azimuth angle of the point.

[0102] The second model is a polynomial model, which is a polynomial curve model for approximate calculation of the azimuth angle, such as Fig. 9 The polynomial curve model in the figure passes through these n shooting points:

[0103] Assume that the curve equation passing through n shooting points is:

[0104]

[0105] Assume that the coefficient vector in the curve equation is A = (a1…an), and substitute n points to get the matrix

[0106]

[0107] The unique coefficient vector A can be solved, and the derivative of the curve can be obtained

[0108]

[0109] Enter the coordinates of each point

[0110] θ=tan -1 y

[0111] In order to achieve the above object, a second embodiment of the present invention proposes a field land cover sample sampling auxiliary method based on photo EXIF ​​information interpretation, comprising the following steps:

[0112] Collecting photo data of target samples within a preset distance;

[0113] Obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos;

[0114] Generate a visual KML file corresponding to the analysis table;

[0115] The visualized KML file is edited and shared, wherein the editing includes adding, modifying and deleting marker points.

[0116] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the field land cover sample sampling auxiliary method based on the interpretation of photo EXIF ​​information as described in the second aspect embodiment of the present application.

[0117] In one embodiment of the present application, further, in order to test the actual use effect of the system, 358 samples were collected near Shahe Town and Xiaotangshan Town in Changping District, Beijing on April 5, 2021. The climate in the sampling area is a warm temperate continental semi-humid and semi-arid monsoon climate, with rich land types and good representativeness; at the same time, the sampling time is spring, and the differences between different landforms are large and easier to distinguish, which reduces the error of visual interpretation, and the sample persuasiveness is high, which can objectively test the actual use effect of the system.

[0118] By comparing the reference type obtained by the system calling FROM-GLC10 data based on the position of the target point with the manual visual interpretation results of the photos, it can be comprehensively reflected whether the position calculation and data retrieval are correct, close to the real interpretation work, and the statistical results of the system test can be obtained. The following table is the system result test table:

[0119]

[0120] According to the results, the accuracy of the sampling system is 92.46%, which is basically accurate. The areas with more misjudgments are often areas with more fragmented plots. It is speculated that when shooting small plots, the error between the camera's focus distance and the actual shooting target distance is larger than the error of the plot size, which affects the analysis results.

[0121] In summary, the method of reading the EXIF ​​position, azimuth, focus distance and other information of the photo and calculating the coordinates can assist the collection of field samples. Through testing, it can be concluded that this method has achieved the purpose of reducing the work of collectors and improving efficiency at the beginning of the design. At the same time, when developing this system, it was considered to combine with interpretation work and provide data management functions, which further facilitated the sampling work.

[0122] However, this method requires the sampler to manually focus the photo to aim at the sampling point during sampling, which will seriously affect the estimation accuracy when in automatic mode or when manual focus is difficult. At the same time, the range is restricted by different camera models. In addition, the system does not work well in small plot environments, indicating that the accuracy has not yet reached the ideal range of use, and subsequent research is needed to improve these problems.

[0123] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0124] In addition, 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 the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0125] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0127] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0128] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0130] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A field land cover sample sampling auxiliary system based on the interpretation of photo EXIF ​​information, It is characterized in that include: A collection device, used to collect photo data of a target sample within a preset distance; The field photo batch reading and analysis system is used to obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos; A field route and sample point generation and visualization system, used to generate a visualization KML file corresponding to the analysis table; A sampling data fine editing and sharing system is used to edit and share the visual KML file, wherein the editing includes adding, modifying and deleting marker points; The sampling data fine editing and sharing system is a web-based system that manages data in a database manner. The data can still be accessed after exiting the system. Users can access the data on other devices at any time without being restricted by the local environment. Users can share sampling data or invite others to modify and edit it. The field photo batch reading and analysis system is specifically used for: After inputting the sampled photos, the program automatically reads the information in the header files of all the photos in the folder, and generates an analysis table by combining the information with the core algorithm, wherein the data in the analysis table includes the id, lat1, and lng1 column attributes of multiple rows of records, and the system automatically extracts and analyzes each target shooting point in each sampled photo, the coordinates of the target point, the shooting azimuth, the reference type based on the FROM-GLC10 data, and the name of the reference picture; The core algorithm includes the target point position estimation and the approximate estimation of the azimuth: The target point position estimation includes: based on the shooting position, shooting azimuth, and focus distance stored in the EXIF ​​file of the photo, the azimuth α, focus distance L, and the longitude and latitude (x1, y1) of the photographer O are read through the public software Exiftool, and the relative position of the target point P to the photographer O is obtained through trigonometric functions; The approximate calculation of the azimuth angle includes: during sampling, the user is required to shoot the target as perpendicularly as possible to the walking trajectory, and can only shoot the objects in the right hand direction, and obtain the longitude and latitude (Xn, Yn) of n shooting points in sequence; then the trajectory is fitted through the coordinates of the shooting points and the azimuth angle is calculated, including the broken line model and the polynomial curve model; The target point position calculation is specifically as follows: First calculate the relative position between O / P and substitute it into the formula a=L×cosα b=L×sinα Assuming that the earth is a perfect sphere with a radius of R, the curve distance is approximately the straight-line distance. The longitude and latitude of the place can be converted into the longitude and latitude coordinate difference through the relative position, and finally the longitude and latitude of the target point (x2, y2) can be derived and substituted into the formula. Among them, α, L, x1, and y1 are the azimuth angle α, focal distance L, and longitude and latitude (x1, y1) of the photographer O read by the public software Exiftool, a is the relative position between O / P in the east-west direction with the positive direction being east, and b is the relative position between O / P in the north-south direction with the positive direction being south; The broken line model for the approximate calculation of the azimuth angle is: The corresponding fitting trajectory function y=f1(x) is obtained by connecting each sampling point in sequence through a broken line. Based on the sampling method, the angle bisector direction is approximately used as the azimuth direction: a=(x n-1 -x n ,and n-1 -and n ) b=(x n+1 -x n ,y n+1 -y n ) θ=tan -1 (and c / x c ) Among them, for the nth point in the shooting, a and b are the vectors between the point and the adjacent points, c is the direction vector of the angle bisector, and θ is the azimuth angle of the point; The polynomial curve model for approximate calculation of the azimuth angle is: Assume that the curve equation passing through n shooting points is: Assume that the coefficient vector in the curve equation is A = (a1…an), and substitute n points to get the matrix The unique coefficient vector A can be solved, and the derivative of the curve can be obtained Enter the coordinates of each point θ=tan -1 and Among them, θ is the azimuth angle of the point.

2. The system according to claim 1, It is characterized in that The field route and sample point generation and visualization system includes a batch generation mode and a single point generation mode: The batch generation mode includes batch generating KML files of all the shooting points and target points in the analysis table after clicking a button, and importing the KML files into Google earth software to display the sampling shooting positions, the captured target positions, photos and trajectories; The single point generation mode includes obtaining the photo selected by the user to be interpreted through the picture frame, selecting the corresponding type according to the photo, and generating a KML file of the target point corresponding to the photo. The interpreted target point type in this mode will be directly marked on the map.

3. A field land cover sample sampling auxiliary method based on the interpretation of photo EXIF ​​information, It is characterized in that The following steps are involved: Collecting photo data of target samples within a preset distance; Obtain sample photos according to the picture folder selected by the user, read the information in the header files of all sample photos in the picture folder, and generate an analysis table based on the information in the header files of all photos; Generate a visual KML file corresponding to the analysis table; Editing and sharing the visualized KML file, wherein the editing includes adding, modifying and deleting marker points; The sampling data fine editing and sharing system is a web-based system that manages data in a database manner. The data can still be accessed after exiting the system. Users can access the data on other devices at any time without being restricted by the local environment. Users can share sampling data or invite others to modify and edit it. The method of obtaining sample photos according to the picture folder selected by the user, reading the information in the header files of all sample photos in the picture folder, and generating an analysis table in combination with the information in the header files of all photos includes: After inputting the sampled photos, the program automatically reads the information in the header files of all the photos in the folder, and generates an analysis table by combining the information with the core algorithm, wherein the data in the analysis table includes the id, lat1, and lng1 column attributes of multiple rows of records, and the system automatically extracts and analyzes each target shooting point in each sampled photo, the coordinates of the target point, the shooting azimuth, the reference type based on the FROM-GLC10 data, and the name of the reference picture; The core algorithm includes the target point position estimation and the approximate estimation of the azimuth: The target point position estimation includes: based on the shooting position, shooting azimuth, and focus distance stored in the EXIF ​​file of the photo, the azimuth α, focus distance L, and the longitude and latitude (x1, y1) of the photographer O are read through the public software Exiftool, and the relative position of the target point P to the photographer O is obtained through trigonometric functions; The approximate calculation of the azimuth angle includes: during sampling, the user is required to shoot the target as perpendicularly as possible to the walking trajectory, and can only shoot the objects in the right hand direction, and obtain the longitude and latitude (Xn, Yn) of n shooting points in sequence; then the trajectory is fitted through the coordinates of the shooting points and the azimuth angle is calculated, including the broken line model and the polynomial curve model; The target point position calculation is specifically as follows: First calculate the relative position between O / P and substitute it into the formula a=L×cosα b=L×sinα Assuming that the earth is a perfect sphere with a radius of R, the curve distance is approximately the straight-line distance. The longitude and latitude of the place can be converted into the longitude and latitude coordinate difference through the relative position, and finally the longitude and latitude of the target point (x2, y2) can be derived and substituted into the formula. Among them, α, L, x1, and y1 are the azimuth angle α, focal distance L, and longitude and latitude (x1, y1) of the photographer O read by the public software Exiftool, a is the relative position between O / P in the east-west direction with the positive direction being east, and b is the relative position between O / P in the north-south direction with the positive direction being south; The broken line model for the approximate calculation of the azimuth angle is: The corresponding fitting trajectory function y=f1(x) is obtained by connecting each sampling point in sequence through a broken line. Based on the sampling method, the angle bisector direction is approximately used as the azimuth direction: a=(x n-1 -x n ,and n-1 -and n ) b=(x n+1 -x n ,y n+1 -y n ) θ=tan -1 (and c / x c ) Among them, for the nth point in the shooting, a and b are the vectors between the point and the adjacent points, c is the direction vector of the angle bisector, and θ is the azimuth angle of the point; The polynomial curve model for approximate calculation of the azimuth angle is: Assume that the curve equation passing through n shooting points is: Assume that the coefficient vector in the curve equation is A = (a1…an), and substitute n points to get the matrix The unique coefficient vector A can be solved, and the derivative of the curve can be obtained Enter the coordinates of each point θ=tan -1 and Among them, θ is the azimuth angle of the point.

4. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to claim 3 is implemented.

Citation Information

Patent Citations

  • Highway engineering two-dimensional office system building method based on Google earth

    CN103295084A

  • Method and device for generating surface live-action information based on open photo resources of network

    CN106126593A