Coordinate indirect measurement method and system based on ARCore
By collecting and calculating the distance and angle of object feature points through ARCore software, the method of calculating centimeter-level coordinates in the absence of RTK measurement system and differential data is realized, which solves the problem that existing technology is difficult to accurately measure under such conditions.
Patent Information
- Application Number
- CN202410327811.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-18
AI Technical Summary
In the absence of RTK measurement system and differential data, it is difficult to calculate centimeter-level coordinates.
Collect object feature points on the target object through ARCore software, determine the first feature point, second feature point and third feature point, calculate the distance and angle of the feature point, and use this information to calculate the longitude and latitude coordinates of the third feature point.
In the absence of RTK measurement system and differential data, centimeter-level coordinates can be accurately calculated.
Smart Images

Figure CN118799388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geographic information, and in particular to an ARCore-based coordinate indirect measurement method and system. Background Art
[0002] ARCore is a software platform launched by Google for building augmented reality applications. It can use the advances in cloud software and device hardware to place digital objects into the real world. Currently, it is very common to use ARCore to measure distance on mobile devices. With ARCore's automatic distance calculation and the two-point geographic coordinates of the current point, it is an indirect measurement system that can calculate three geographic coordinates.
[0003] When there are only two known geographic coordinates or known control point coordinates, if you want to calculate the coordinates of the third point, you need to use the traditional measurement method, that is, use the RTK measurement system to measure the coordinates of the third point. Therefore, traditional coordinate measurement requires an RTK measurement system and needs to collect differential data to reach a fixed solution, so as to calculate centimeter-level coordinates. In the absence of the above two conditions, it is difficult to calculate centimeter-level coordinates. In the absence of an RTK measurement system and differential data, it is difficult to calculate centimeter-level coordinates. Summary of the invention
[0004] In order to solve the above problems, the present invention provides an indirect coordinate measurement method and system based on ARCore, which can calculate centimeter-level coordinates under conditions such as the lack of an RTK measurement system and the lack of differential data.
[0005] In a first aspect, the present invention provides a coordinate indirect measurement method based on ARCore, comprising: Using ARCore software to collect object feature points on the target object, determine a first feature point and a second feature point from the object feature points, and randomly select a third feature point from the object feature points; Calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance; Calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point; Identify the relative position of the third feature point with respect to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle; Based on the second longitude and latitude heading angle, the longitude and latitude coordinates of the third feature point are calculated using the first feature point.
[0006] In a possible implementation manner of the first aspect, determining the first feature point and the second feature point from the feature points of the object includes: Query whether there is a target feature point with known geographic coordinates among the feature points of the object; When there is a target feature point with the known geographic coordinates among the object feature points, the first feature point and the second feature point are randomly selected from the target feature points.
[0007] In a possible implementation manner of the first aspect, calculating the feature point distance between every two feature points among the first feature point, the second feature point, and the third feature point includes: The first feature point distance between the first feature point and the second feature point is calculated using the following formula:
[0008] Wherein, a represents the distance of the first feature point, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, and x2, y2, z2 represent the three-dimensional coordinates of the second feature point; The second feature point distance between the first feature point and the third feature point is calculated using the following formula:
[0009] Wherein, b represents the distance of the second feature point, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point; The third feature point distance between the second feature point and the third feature point is calculated using the following formula:
[0010] Wherein, c represents the distance of the third feature point, x2, y2, z2 represent the three-dimensional coordinates of the second feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point; The first feature point distance, the second feature point distance, and the third feature point distance are used as the feature point distances.
[0011] In a possible implementation manner of the first aspect, calculating the feature point angle of the third feature point based on the feature point distance includes: Based on the feature point distance, the feature point angle of the third feature point is calculated using the following formula:
[0012] Wherein, cos(C) represents the feature point angle of the third feature point, a represents the first feature point distance, b represents the second feature point distance, and c represents the third feature point distance.
[0013] In a possible implementation manner of the first aspect, calculating a first longitude and latitude heading angle of a feature point straight line between the first feature point and the second feature point includes: calculating a first longitude and latitude heading angle of a feature point straight line between the first feature point and the second feature point using the following formula: bear=atan2(sin(Δlon AB )·cos(lat B ), cos(lat A )·sin(lat B )-sin(lat A )·cos(lat B )·cos(Δlon AB ))
[0014] Wherein, bear represents the first latitude and longitude heading angle, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, (lat B ,lon B ) represents the latitude and longitude coordinates of the second feature point, Δlon AB Ion A With lon B difference.
[0015] In a possible implementation manner of the first aspect, identifying a relative position of the third feature point relative to the feature point straight line includes: Calculating a vector cross product of the third feature point with respect to the feature point straight line; When the vector cross product is greater than a preset threshold, determining that the third feature point is located at the left side of the feature point straight line; When the vector cross product is less than the preset threshold, it is determined that the third feature point is located on the right side of the feature point straight line; when the vector cross product is equal to the preset threshold, it is determined that the third feature point is located on the feature point straight line.
[0016] In a possible implementation manner of the first aspect, calculating the vector cross product of the third feature point relative to the feature point straight line includes: The vector cross product of the third feature point relative to the feature point line is calculated using the following formula: cross_product=x3-x1*y2-y1-y3-y1*x2--x1
[0017] Among them, cross_product represents the vector cross product, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, x2, y2, z2 represent the three-dimensional coordinates of the second feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point.
[0018] In a possible implementation manner of the first aspect, the calculating, based on the relative position, the second longitude and latitude heading angle of the third feature point by using the feature point angle and the first longitude and latitude heading angle includes: When the relative position is the left side position of the feature point straight line, the difference between the first longitude and latitude heading angle and the feature point angle is used as the initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle; When the relative position is the right side position of the feature point straight line, taking the sum of the first longitude and latitude heading angle and the feature point angle as the initial second longitude and latitude heading angle, and fixing the initial second longitude and latitude heading angle to within a preset range, to obtain the second longitude and latitude heading angle; When the relative position is a position on the straight line of the feature point, the first longitude and latitude heading angle is used as an initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle.
[0019] In a possible implementation manner of the first aspect, calculating the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point includes: Based on the second latitude and longitude heading angle and the first feature point, the latitude and longitude coordinates of the third feature point are calculated using the following formula: d = 63710000 / c
[0020]
[0021]
[0022] Among them, (alt C ,lon C ) represents the latitude and longitude coordinates of the third feature point, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, 6371000.0 represents the radius of the earth, and bear C represents the second longitude and latitude heading angle, d represents the ratio of the earth radius to c, a represents the first feature point distance, and c represents the third feature point distance.
[0023] In a second aspect, the present invention provides a coordinate indirect measurement system based on ARCore, the system comprising: a feature selection module, for collecting object feature points on a target object using ARCore software, determining a first feature point and a second feature point from the object feature points, and randomly selecting a third feature point from the object feature points; An angle calculation module, used to calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance; A first heading angle calculation module, used to calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point; A second heading angle calculation module is used to identify the relative position of the third feature point relative to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle; A coordinate calculation module is used to calculate the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point.
[0024] Compared with the prior art, the technical principle and beneficial effects of this solution are: The embodiment of the present invention determines the first feature point and the second feature point from the feature points of the object to determine the feature points of two known geographic coordinates and virtual three-dimensional coordinates. The embodiment of the present invention calculates the feature point distance between each two feature points in the first feature point, the second feature point and the third feature point to calculate the side length of the triangle formed by the three points. Further, the embodiment of the present invention calculates the feature point angle of the third feature point based on the feature point distance to calculate the degree of the angle in the triangle with the third feature point as the vertex. The embodiment of the present invention calculates the first longitude and latitude heading angle of the feature point straight line between the first feature point and the second feature point to calculate the longitude and latitude heading angle from the first feature point to the second feature point. The embodiment of the present invention calculates the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle using the first feature point to calculate the feature point of the third unknown longitude and latitude coordinates using the feature points of two known longitude and latitude coordinates. Therefore, the coordinate indirect measurement method and system based on ARCore proposed in the embodiment of the present invention can calculate centimeter-level coordinates under the conditions of lack of RTK measurement system and lack of differential data. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0027] Figure 1 A schematic diagram of a flow chart of a coordinate indirect measurement method based on ARCore provided by one embodiment of the present invention; Figure 2 In one embodiment of the present invention Figure 1 A schematic diagram of an object feature point using an indirect coordinate measurement method based on ARCore is provided; Figure 3 In one embodiment of the present invention Figure 1 A schematic diagram of a first feature point, a second feature point, and a third feature point of a coordinate indirect measurement method based on ARCore is provided; Figure 4 A schematic diagram of a module of a coordinate indirect measurement system based on ARCore provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0028] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0029] The embodiment of the present invention provides an indirect coordinate measurement method based on ARCore, and the execution subject of the indirect coordinate measurement method based on ARCore includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present invention. In other words, the indirect coordinate measurement method based on ARCore can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0030] See also Figure 1 FIG. 1 is a flow chart of a coordinate indirect measurement method based on ARCore provided by an embodiment of the present invention. Figure 1 The indirect coordinate measurement methods based on ARCore described in include: S1. Collect object feature points on a target object using ARCore software, determine a first feature point and a second feature point from the object feature points, and randomly select a third feature point from the object feature points.
[0031] In an embodiment of the present invention, the ARCore software is an augmented reality (AR) software platform developed by Google. The ARCore software uses cameras, sensors and computing power to enable a mobile phone or tablet computer to interact and superimpose virtual content with the real world. It should be noted that the ARCore software includes an AR measurement function, which refers to a function for measuring size and distance on a mobile phone or tablet computer through augmented reality technology. The AR measurement function utilizes the environmental understanding ability of the ARCore platform, and combined with the camera and sensor of the device, it can measure the virtual three-dimensional coordinates corresponding to objects in the real world in the virtual three-dimensional space in real time. Further, the target object refers to any object in the real world scanned by the ARCore software. Further, the object feature point refers to a virtual three-dimensional point cloud mapped by the target object in the virtual space. The virtual three-dimensional coordinates of the virtual three-dimensional point cloud can be obtained through the AR measurement function.
[0032] See also Figure 2 As shown, an embodiment of the present invention Figure 1 A schematic diagram of an object feature point based on an indirect coordinate measurement method of ARCore is provided. Figure 2 In the figure, the left picture represents the target object, and the white dots in the right picture represent the object feature points of the target object.
[0033] Furthermore, the embodiment of the present invention determines the first feature point and the second feature point from the feature points of the object to determine the feature points of two known geographic coordinates and virtual three-dimensional coordinates.
[0034] It should be noted that the known geographic coordinates refer to known longitude and latitude coordinates.
[0035] In one embodiment of the present invention, determining the first feature point and the second feature point from the object feature points includes: querying whether there is a target feature point with known geographic coordinates among the object feature points; when there is a target feature point with known geographic coordinates among the object feature points, randomly selecting the first feature point and the second feature point from the target feature points.
[0036] Furthermore, in the embodiment of the present invention, the third feature point refers to a feature point with unknown geographic coordinates among the object feature points except the target feature point.
[0037] It should be noted that the virtual three-dimensional coordinates of the first feature point, the second feature point and the third feature point are all measured by the AR measurement function.
[0038] See also Figure 3 As shown, an embodiment of the present invention Figure 1 A schematic diagram of the first feature point, the second feature point and the third feature point of an indirect coordinate measurement method based on ARCore is provided. Figure 3 In FIG. 8 , A represents the first feature point, B represents the second feature point, and C represents the third feature point.
[0039] S2. Calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance.
[0040] The embodiment of the present invention calculates the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point to calculate the side length of the triangle formed by the three points.
[0041] In one embodiment of the present invention, the calculating the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point includes: calculating the first feature point distance between the first feature point and the second feature point using the following formula:
[0042] Wherein, a represents the distance of the first feature point, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, and x2, y2, z2 represent the three-dimensional coordinates of the second feature point; The second feature point distance between the first feature point and the third feature point is calculated using the following formula:
[0043] Wherein, b represents the distance of the second feature point, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point; The third feature point distance between the second feature point and the third feature point is calculated using the following formula:
[0044] Wherein, c represents the distance of the third feature point, x2, y2, z2 represent the three-dimensional coordinates of the second feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point; The first feature point distance, the second feature point distance, and the third feature point distance are used as the feature point distances.
[0045] Furthermore, the embodiment of the present invention calculates the feature point angle of the third feature point based on the feature point distance, so as to calculate the degree of the angle of the triangle with the third feature point as the vertex.
[0046] In one embodiment of the present invention, the calculating the feature point angle of the third feature point based on the feature point distance includes: calculating the feature point angle of the third feature point based on the feature point distance using the following formula:
[0047]
[0048] Among them, angleC represents the feature point angle of the third feature point, a represents the first feature point distance, b represents the second feature point distance, c represents the third feature point distance, and C represents the third feature point.
[0049] S3. Calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point.
[0050] The embodiment of the present invention calculates the first longitude and latitude heading angle of the feature point straight line between the first feature point and the second feature point to calculate the longitude and latitude heading angle from the first feature point to the second feature point.
[0051] Among them, the first longitude and latitude heading angle refers to the heading angle with longitude and latitude as the coordinate system. The heading angle refers to the angle of an aircraft or a ship relative to the north direction. It is usually expressed in an angle system with north as the reference, and the value range is 0° to 360°. It should be noted that longitude and latitude are a coordinate system used to describe the position on the surface of the earth. Latitude represents the distance from the equator to the North Pole or the South Pole, in degrees, with a value range of -90° to +90°. Longitude represents the angle from the prime meridian (usually the Greenwich meridian) to the east-west direction, in degrees, with a value range of -180° to +180°.
[0052] In one embodiment of the present invention, the calculating the first longitude and latitude heading angle of the feature point straight line between the first feature point and the second feature point includes: calculating the first longitude and latitude heading angle of the feature point straight line between the first feature point and the second feature point using the following formula: bear=atan2(sin(Δlon AB )·cos(latB ), cos(lat A )·sin(lat B )-sin(lat A )·cos(lat B )·cos(Δlon AB ))
[0053] Wherein, bear represents the first latitude and longitude heading angle, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, (lat B ,lon B ) represents the latitude and longitude coordinates of the second feature point, Δlon AB Indicates lon A With lon B difference.
[0054] S4. Identify the relative position of the third feature point with respect to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle.
[0055] In one embodiment of the present invention, the identifying the relative position of the third feature point with respect to the feature point straight line includes: calculating the vector cross product of the third feature point with respect to the feature point straight line; when the vector cross product is greater than a preset threshold, determining that the third feature point is at the left side of the feature point straight line; when the vector cross product is less than the preset threshold, determining that the third feature point is at the right side of the feature point straight line; when the vector cross product is equal to the preset threshold, determining that the third feature point is at a position on the feature point straight line.
[0056] Wherein, the preset threshold is set to 0.
[0057] In another embodiment of the present invention, the calculating the vector cross product of the third feature point with respect to the feature point straight line includes: calculating the vector cross product of the third feature point with respect to the feature point straight line using the following formula: cross_product=x3-x1*y2-y1-y3-y1*x2-x1
[0058] Among them, cross_product represents the vector cross product, x1, y1, z1 represent the three-dimensional coordinates of the first feature point, x2, y2, z2 represent the three-dimensional coordinates of the second feature point, and x3, y3, z3 represent the three-dimensional coordinates of the third feature point.
[0059] In one embodiment of the present invention, the second longitude and latitude heading angle of the third feature point is calculated based on the relative position and using the feature point angle and the first longitude and latitude heading angle, including: when the relative position is the left side position of the feature point straight line, the difference between the first longitude and latitude heading angle and the feature point angle is used as the initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle; when the relative position is the right side position of the feature point straight line, the sum of the first longitude and latitude heading angle and the feature point angle is used as the initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle; when the relative position is on the feature point straight line, the first longitude and latitude heading angle is used as the initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle.
[0060] For example, if it is in the left position, then the first longitude and latitude heading angle bear is subtracted from the included angle angleC to obtain the final declination angle bearC, that is, the second longitude and latitude heading angle; if it is in the right position, then the first longitude and latitude heading angle bear is added to the included angle angleC to obtain the final declination angle bearC, that is, the second longitude and latitude heading angle. Finally, the bearC declination angle needs to be fixed between 0 and 360. If it is less than 0, add 360, and if it is greater than 360, subtract 360.
[0061] S5. Based on the second longitude and latitude heading angle, use the first feature point to calculate the longitude and latitude coordinates of the third feature point.
[0062] The embodiment of the present invention calculates the longitude and latitude coordinates of the third feature point using the first feature point based on the second longitude and latitude heading angle, so as to calculate the third feature point of unknown longitude and latitude coordinates using two feature points of known longitude and latitude coordinates.
[0063] In one embodiment of the present invention, the method of calculating the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point includes: calculating the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and the first feature point using the following formula: d = 6371000.0 / c
[0064]
[0065]
[0066] Among them, (lat C ,lon C) represents the latitude and longitude coordinates of the third feature point, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, 6371000.0 represents the radius of the earth, and bear C represents the second longitude and latitude heading angle, d represents the ratio of the earth radius to c, a represents the first feature point distance, and c represents the third feature point distance.
[0067] It can be seen that the embodiment of the present invention determines the first feature point and the second feature point from the feature points of the object to determine the feature points of two known geographic coordinates and virtual three-dimensional coordinates. The embodiment of the present invention calculates the feature point distance between each two feature points in the first feature point, the second feature point and the third feature point to calculate the side length of the triangle formed by the three points. Further, the embodiment of the present invention calculates the feature point angle of the third feature point based on the feature point distance to calculate the degree of the angle in the triangle with the third feature point as the vertex. The embodiment of the present invention calculates the first longitude and latitude heading angle of the feature point straight line between the first feature point and the second feature point to calculate the longitude and latitude heading angle from the first feature point to the second feature point. The embodiment of the present invention calculates the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle using the first feature point to calculate the feature point of the third unknown longitude and latitude coordinates using the feature points of two known longitude and latitude coordinates. Therefore, the coordinate indirect measurement method based on ARCore proposed in the embodiment of the present invention can realize the efficient and low-loss adjustment of the combine harvester through the Internet of Things technology.
[0068] like Figure 4 As shown, it is a functional module diagram of the coordinate indirect measurement system based on ARCore of the present invention.
[0069] The coordinate indirect measurement system 400 based on ARCore of the present invention can be installed in an electronic device. According to the functions implemented, the coordinate indirect measurement system based on ARCore can include a feature selection module 401, an angle calculation module 402, a first heading angle calculation module 403, a second heading angle calculation module 404 and a coordinate calculation module 405. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0070] In the embodiment of the present invention, the functions of each module / unit are as follows: The feature selection module is used to collect object feature points on the target object using the ARCore software, determine the first feature point and the second feature point from the object feature points, and randomly select a third feature point from the object feature points; The angle calculation module is used to calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance; The first heading angle calculation module is used to calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point; The second heading angle calculation module is used to identify the relative position of the third feature point with respect to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle; The coordinate calculation module is used to calculate the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point.
[0071] In detail, each module in the coordinate indirect measurement system 400 based on ARCore in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The coordinate indirect measurement method based on ARCore is the same technical means as described in the previous section and can produce the same technical effects, so I will not go into details here.
[0072] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0073] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0074] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0075] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0076] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A coordinate indirect measurement method based on ARCore, It is characterized in that The method comprises: Using ARCore software to collect object feature points on the target object, determine a first feature point and a second feature point from the object feature points, and randomly select a third feature point from the object feature points; Calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance; Calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point; Identify the relative position of the third feature point with respect to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle; Based on the second longitude and latitude heading angle, the longitude and latitude coordinates of the third feature point are calculated using the first feature point.
2. The method according to claim 1, It is characterized in that The determining the first feature point and the second feature point from the feature points of the object comprises: Query whether there is a target feature point with known geographic coordinates among the feature points of the object; When there is a target feature point with the known geographic coordinates among the object feature points, the first feature point and the second feature point are randomly selected from the target feature points.
3. The method according to claim 1, It is characterized in that The calculating the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point comprises: The first feature point distance between the first feature point and the second feature point is calculated using the following formula: Where a represents the distance of the first feature point, x 1 ,y 1 ,z 1 represents the three-dimensional coordinates of the first feature point, x 2 ,y 2 ,z 2 represents the three-dimensional coordinates of the second feature point; The second feature point distance between the first feature point and the third feature point is calculated using the following formula: Where b represents the distance of the second feature point, x 1 ,y 1 ,z 1 represents the three-dimensional coordinates of the first feature point, x 3 ,y 3 ,z 3 Representing the three-dimensional coordinates of the third feature point; The third feature point distance between the second feature point and the third feature point is calculated using the following formula: Wherein, c represents the distance of the third feature point, x 2 ,y 2 ,z 2 represents the three-dimensional coordinates of the second feature point, x 3 ,y 3 ,z 3 Representing the three-dimensional coordinates of the third feature point; The first feature point distance, the second feature point distance, and the third feature point distance are used as the feature point distances.
4. The method according to claim 1, It is characterized in that The calculating the feature point angle of the third feature point based on the feature point distance includes: Based on the feature point distance, the feature point angle of the third feature point is calculated using the following formula: Wherein, cos(C) represents the feature point angle of the third feature point, a represents the first feature point distance, b represents the second feature point distance, and c represents the third feature point distance.
5. The method according to claim 1, It is characterized in that The calculating the first latitude and longitude heading angle of the feature point straight line between the first feature point and the second feature point includes: The first latitude and longitude heading angle of the feature point straight line between the first feature point and the second feature point is calculated using the following formula: bear=atan2(sin(Δlon AB )·cos(lat B ),basket(lat A )·sin(lat B )-sin(lat A )·cos(lat B )·cos(Δlon AB )) Wherein, bear represents the first latitude and longitude heading angle, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, (lat B ,lon B ) represents the latitude and longitude coordinates of the second feature point, Δlon AB Indicates lon A With lon B difference.
6. The method according to claim 1, It is characterized in that The identifying the relative position of the third feature point with respect to the feature point straight line includes: Calculating a vector cross product of the third feature point with respect to the feature point straight line; When the vector cross product is greater than a preset threshold, determining that the third feature point is located at the left side of the feature point straight line; When the vector cross product is less than the preset threshold, determining that the third feature point is located at the right side of the feature point straight line; When the vector cross product is equal to the preset threshold, it is determined that the third feature point is located on the feature point straight line.
7. The method according to claim 6, It is characterized in that The calculating the vector cross product of the third feature point with respect to the feature point straight line comprises: The vector cross product of the third feature point relative to the feature point line is calculated using the following formula: cross_product=x 3 -x 1 *y 2 -y 1 -y 3 -y 1 *x 2 -x 1 Among them, cross_product represents the vector cross product, x 1 ,y 1 ,z 1 represents the three-dimensional coordinates of the first feature point, x 2 ,y 2 ,z 2 represents the three-dimensional coordinates of the second feature point, x 3 ,y 3 ,z 3 Represents the three-dimensional coordinates of the third feature point.
8. The method according to claim 1, It is characterized in that The calculating, based on the relative position, the second longitude and latitude heading angle of the third feature point by using the feature point angle and the first longitude and latitude heading angle comprises: When the relative position is the left side position of the feature point straight line, the difference between the first longitude and latitude heading angle and the feature point angle is used as the initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle; When the relative position is the right side position of the feature point straight line, taking the sum of the first longitude and latitude heading angle and the feature point angle as the initial second longitude and latitude heading angle, and fixing the initial second longitude and latitude heading angle to within a preset range, to obtain the second longitude and latitude heading angle; When the relative position is a position on the straight line of the feature point, the first longitude and latitude heading angle is used as an initial second longitude and latitude heading angle, and the initial second longitude and latitude heading angle is fixed within a preset range to obtain the second longitude and latitude heading angle.
9. The method according to claim 1, It is characterized in that The calculating the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point includes: Based on the second latitude and longitude heading angle and the first feature point, the latitude and longitude coordinates of the third feature point are calculated using the following formula: d = 6371000.0 / c wide C =asin(sin(lat) A )*cos(d)+cos(lat A )*sin(c)*cos(bear C )) lon C =on A +attan2(sin(bear C )*sin(d)*cos(lat A ),cos(d)-sin(lat A )*sin(lat C ) Among them, (lat C ,lon C ) represents the latitude and longitude coordinates of the third feature point, (lat A ,lon A ) represents the latitude and longitude coordinates of the first feature point, 6371000.0 represents the radius of the earth, and bear C represents the second longitude and latitude heading angle, d represents the ratio of the earth radius to c, a represents the first feature point distance, and c represents the third feature point distance.
10. A coordinate indirect measurement system based on ARCore, It is characterized in that The system comprises: A feature selection module, used to collect object feature points on the target object using the ARCore software, determine a first feature point and a second feature point from the object feature points, and randomly select a third feature point from the object feature points; An angle calculation module, used to calculate the feature point distance between every two feature points among the first feature point, the second feature point and the third feature point, and calculate the feature point angle of the third feature point based on the feature point distance; A first heading angle calculation module, used to calculate a first latitude and longitude heading angle of a feature point straight line between the first feature point and the second feature point; A second heading angle calculation module is used to identify the relative position of the third feature point relative to the feature point straight line, and based on the relative position, calculate the second longitude and latitude heading angle of the third feature point using the feature point angle and the first longitude and latitude heading angle; A coordinate calculation module is used to calculate the longitude and latitude coordinates of the third feature point based on the second longitude and latitude heading angle and using the first feature point.
