Deviation correction method, device and equipment for track of station library scene route and medium

By acquiring and structuring the trajectory data of the site library scene route, calculating the trajectory mean and performing position correction, the problem of trajectory correction being restricted by map manufacturers in the existing technology is solved, real-time and seamless trajectory correction processing is achieved, and adapting to the trajectory Multiple map systems.

CN119003668APending Publication Date: 2024-11-22CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410952101.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The correcting method of the existing pedestrians' historical trajectory position is completely restricted by map manufacturers. The map coordinates between third-party manufacturers are not unified and seamless switching cannot be performed.

Method used

By obtaining the trajectory structured data of the site library scene route, calculate the trajectory mean value and determine whether an offset occurs. If an offset occurs, the trajectory data will be positionally corrected based on the preset error value to realize real-time trajectory correction processing and eliminate proliferation The trajectory sampling value deviation caused by interference is not dependent on third-party map data.

Benefits of technology

Real-time deviation correction of trajectory is realized, adapting to the requirements of any third-party map manufacturer and business system, without the need to redevelop the system, and can be accessed in module form at any time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003668A_ABST
    Figure CN119003668A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device, equipment and a medium for correcting a track of a station library scene route, and relates to the technical field of navigation, the method comprises the following steps: obtaining the track of the station library scene route, and obtaining track structured data based on the track of the station library scene route; and obtaining a trajectory mean value of the trajectory structured data within a preset time, determining whether the trajectory structured data generates offset based on the trajectory mean value, and if it is determined that offset is generated, performing position deviation correction on the trajectory structured data based on a preset error value. The method does not depend on any third-party map data, can meet the requirements of any third-party map manufacturer and service system on pedestrian navigation data, does not need to develop a system again, and can be accessed in a module form at any time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of navigation technology, and in particular to a method, device, equipment and medium for correcting the trajectory of a station-depot scenario route. Background Art

[0002] Most of the existing personnel trajectory tracking systems are based on navigation maps. The historical trajectory of pedestrians relies on third-party map data, road network data, etc., and the position correction is performed based on the third-party data. However, this position correction method is completely restricted by the map manufacturer, and the map coordinates of third-party manufacturers are not unified, so seamless switching is impossible. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, equipment and medium for correcting the trajectory of a station-depot scenario route, so as to solve the problem that the existing method of correcting the position of the historical trajectory of pedestrians is completely restricted by map manufacturers, and the map coordinates between third-party manufacturers are not unified, and seamless switching cannot be performed.

[0004] According to a first aspect, an embodiment of the present invention provides a method for correcting a trajectory of a station-depot scenario route, the method comprising:

[0005] Obtain the trajectory of the station-depot scenario route, and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp of the earth's center of mass coordinate system;

[0006] The trajectory mean of the trajectory structured data within the preset time is obtained, and whether the trajectory structured data has an offset is determined based on the trajectory mean. If an offset is determined, the position of the trajectory structured data is corrected based on the preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

[0007] In combination with the first aspect, in a first implementation of the first aspect, obtaining a trajectory mean of the trajectory structured data within a preset time, determining whether the trajectory structured data is offset based on the trajectory mean, and if it is determined that an offset is generated, performing position correction on the trajectory structured data based on a preset error value, specifically includes:

[0008] The trajectory structured data is stored in a memory list, and the data in the memory list is monitored to see whether it satisfies the position correction mechanism; the position correction mechanism is when the number of trajectory structured data exceeds the preset number or is increasing;

[0009] Determine whether the position correction mechanism is satisfied, calculate the trajectory mean of the trajectory structured data within a preset time, and determine the distance between the trajectory structured data and the trajectory mean;

[0010] Determine that the distance exceeds a preset error value, obtain the previous trajectory structured data adjacent to the trajectory structured data, perform position correction on the trajectory structured data based on the previous trajectory structured data and the preset error value, and generate position correction data corresponding to the trajectory structured data;

[0011] Update the trajectory structured data to position correction data.

[0012] In combination with the first implementation of the first aspect, in the second implementation of the first aspect, determining that the position correction mechanism is satisfied, calculating the trajectory mean of the trajectory structured data within a preset time, and determining the distance between the trajectory structured data and the trajectory mean, specifically includes:

[0013] Determine all point values ​​of trajectory structured data within a preset time;

[0014] Determine the maximum and minimum point values;

[0015] Determine the point mean of the point values ​​other than the maximum point value and the minimum point value to obtain the trajectory mean;

[0016] Based on the trajectory structured data and its adjacent previous trajectory structured data, the distance between the trajectory structured data and the trajectory mean is calculated.

[0017] In combination with the first implementation of the first aspect, in the third implementation of the first aspect, the determining distance exceeds the preset error value, obtaining the previous trajectory structured data adjacent to the trajectory structured data, performing position correction on the trajectory structured data based on the previous trajectory structured data and the preset error value, and generating position correction data corresponding to the trajectory structured data, specifically includes:

[0018] Determine that the distance exceeds a preset error value, and obtain the previous trajectory structured data adjacent to the trajectory structured data;

[0019] determining an amplitude direction between the trajectory structured data and the previous trajectory structured data;

[0020] Based on the amplitude direction, the preset error value is added to the previous trajectory structured data to generate position correction data corresponding to the trajectory structured data.

[0021] In combination with the first aspect, in a fourth implementation of the first aspect, the method further includes the following steps:

[0022] The trajectory structured data after position correction is persisted.

[0023] In combination with the first aspect, in a fifth implementation of the first aspect, the acquiring of the trajectory of the station-depot scenario route and obtaining the trajectory structured data based on the trajectory of the station-depot scenario route specifically includes:

[0024] Based on the preset collection time, the trajectory of the station-depot scenario route is obtained once every preset collection time interval;

[0025] The trajectory of the station-depot scenario route is structured to obtain trajectory structured data.

[0026] In combination with the first aspect, in a sixth implementation of the first aspect, the method further comprises the following steps after the step of acquiring the trajectory of the station-depot scenario route and obtaining the trajectory structured data based on the trajectory of the station-depot scenario route:

[0027] Based on the information contained in the trajectory structured data, invalid trajectory structured data is deleted.

[0028] According to the second aspect, an embodiment of the present invention further provides a device for correcting the trajectory of a station-depot scene route, the device comprising:

[0029] The trajectory acquisition module is used to obtain the trajectory of the station-depot scenario route and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, local time of the trajectory and the trajectory acquisition timestamp of the earth's center of mass coordinate system;

[0030] The trajectory correction module is used to obtain the trajectory mean of the trajectory structured data within a preset time, determine whether the trajectory structured data has an offset based on the trajectory mean, and if it is determined that an offset has occurred, perform position correction on the trajectory structured data based on a preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

[0031] According to the third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a method for correcting the trajectory of a route in a station warehouse scenario as described in any one of the above are implemented.

[0032] According to the fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for correcting the trajectory of a station-depot scenario route as described in any one of the above-mentioned methods.

[0033] The deviation correction method, device, equipment and medium of the trajectory of the station-depot scenario route of the present invention structure the acquired original trajectory of the station-depot scenario route, then obtain the trajectory mean of the trajectory structured data within a preset time, and judge whether the current trajectory structured data has an offset by the trajectory mean. When an offset occurs, the offset trajectory is corrected based on the travel distance of the pedestrian within the preset collection time, so as to realize the real-time deviation correction processing of the trajectory of the station-depot scenario route, eliminate the deviation of the trajectory sampling value caused by the interference of the random interference, and do not rely on any third-party map data. At the same time, it can adapt to the requirements of any third-party map manufacturer and business system for pedestrian navigation data, and does not need to redevelop the system, and can be accessed in the form of modules at any time. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:

[0035] Figure 1 One of the flow diagrams of the method for correcting the trajectory of the station-depot scenario route provided by the present invention is shown;

[0036] Figure 2 The specific flow chart of step S30 in the deviation correction method of the track of the station-depot scenario route provided by the present invention is shown;

[0037] Figure 3 The specific flow chart of step S32 in the deviation correction method of the track of the station-depot scenario route provided by the present invention is shown;

[0038] Figure 4 The specific flow chart of step S33 in the deviation correction method of the track of the station-depot scenario route provided by the present invention is shown;

[0039] Figure 5 The second flow chart of the method for correcting the trajectory of the station-depot scenario route provided by the present invention is shown;

[0040] Figure 6 The specific flow chart of step S10 in the deviation correction method of the track of the station-depot scenario route provided by the present invention is shown;

[0041] Figure 7 The third flow chart of the method for correcting the trajectory of the station-depot scenario route provided by the present invention is shown;

[0042] Figure 8 A schematic diagram showing the structure of a deviation correction device for a route in a station-depot scenario provided by the present invention;

[0043] Fig. 9A schematic structural diagram of an electronic device for a deviation correction method for a route in a station-garage scenario provided by the present invention is shown. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0045] Most of the existing personnel trajectory tracking systems are based on navigation maps. Navigation maps rely on the road coordinate position correction function of map manufacturers. For historical trajectory queries, especially for pedestrians' historical trajectories, they rely on third-party map software functions and road network data information to correct positions and estimate travel speeds. The geographic location information obtained is also based on the specific coordinate system information provided by the map application program interface (API), which is not universal to other third-party map systems. Therefore, if the business system changes the third-party map provider, it is necessary to redevelop the map trajectory module to adapt to different map manufacturers in order to perform location, trajectory, etc. query services. The existing business system cannot achieve accurate positioning and trajectory query without relying on third-party map systems.

[0046] At the same time, pedestrian trajectories are basically queried through later time periods. This method has a lag in trajectory query and cannot query the trajectory in real time. Even if the trajectory is corrected through various position correction algorithms, the query will be slow and inefficient.

[0047] In order to solve the above problems, a method for correcting the trajectory of a station-depot scenario route is provided in this embodiment, aiming to correct the trajectory of the station-depot scenario route in real time without relying on third-party data. The method for correcting the trajectory of a station-depot scenario route in the embodiment of the present invention can be used in electronic devices, including but not limited to computers, mobile terminals, wearable smart devices, etc. Figure 1 is a flow chart of a method for correcting the trajectory of a station-depot scenario route according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0048] S10. Obtain the trajectory of the station-depot scenario route, and obtain trajectory structured data based on the trajectory of the station-depot scenario route. In an embodiment of the present invention, GPS data is collected by an electronic device equipped with a Global Positioning System (GPS) module. The above-mentioned GPS data is the trajectory of the station-depot scenario route. The electronic device includes but is not limited to computers, wearable smart devices, etc. As some preferred implementations of the embodiments of the present invention, a background running service is started in an electronic device equipped with a GPS module, and a GPS data is obtained at regular intervals in the background. The electronic device collects GPS data in this way.

[0049] It should be noted that the original GPS data contains information such as latitude (lat), longitude (lng), timestamp (timestamp), current time, etc.

[0050] In step S10, the trajectory of the above-mentioned station-depot scenario route is also processed into trajectory structured data, that is, the GPS data is converted into structured data and saved as a specific data structure. The trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp (GPS satellite timestamp) of the earth's center of mass coordinate system (GPS-84 coordinate system).

[0051] In an embodiment of the present invention, the GPS module is configured to collect the original station-depot scenario route trajectory once every preset collection time, and the preset collection time is the collection interval between the trajectories of two adjacent station-depot scenario routes. For example, the GPS module is configured to collect data once every 1 second, and synchronously perform structured processing of the data to complete data collection and processing and ensure time continuity and non-repetitiveness of the data.

[0052] S30, obtaining a trajectory mean value of the trajectory structured data within a preset time, determining whether the trajectory structured data has a deviation based on the trajectory mean value, and if it is determined that a deviation has occurred, performing position correction on the trajectory structured data based on a preset error value.

[0053] In the embodiment of the present invention, the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the travel distance of the pedestrian within the preset collection time, that is, the travel stride is obtained based on the pedestrian's travel speed and the preset collection time.

[0054] When the distance between the trajectory structured data and the trajectory mean exceeds the preset error value, it means that the trajectory structured data has been offset, which is an abnormal position point. In this method, the preset error value will be used to correct the position of the abnormal position point and update the point value of the point. The original point position and correction operation can be output to the log file for corresponding recording and query.

[0055] The trajectory correction method for the station-depot scenario route provided by the present invention structures the trajectory of the original station-depot scenario route obtained, then obtains the trajectory mean of the trajectory structured data within a preset time, and judges whether the current trajectory structured data has an offset through the trajectory mean. When an offset occurs, the offset trajectory is corrected based on the travel distance of the pedestrian within the preset collection time, thereby realizing real-time deviation correction processing of the trajectory of the station-depot scenario route, eliminating the trajectory sampling value deviation caused by random interference, and does not rely on any third-party map data. At the same time, it can adapt to the requirements of any third-party map manufacturer and business system for pedestrian navigation data, does not need to redevelop the system, and can be accessed in a module form at any time.

[0056] Combine the following Figure 2 The deviation correction method of the track of the station-depot scene route of the present invention is described, and step S30 specifically includes:

[0057] S31, storing the trajectory structured data into a memory list, and monitoring whether the data in the memory list meets the position correction mechanism. In an embodiment of the present invention, the position correction mechanism is that the number of trajectory structured data exceeds a preset number and the number is increasing.

[0058] In this method, data is calculated in memory and does not need to be read from the I / O terminal, which makes the data analysis and processing speed exponential. It can meet the requirements of real-time display trajectory of business systems.

[0059] After the trajectory structured data is obtained, the trajectory structured data will be stored in the memory of the electronic device, and by starting a process Thread that monitors the memory list, each time new trajectory structured data enters the memory list, this asynchronous mechanism can monitor the data changes and trigger the judgment mechanism based on the data changes to determine whether the position correction mechanism is met and start the position correction processing.

[0060] Preferably, in order to make the data correct and valid, the preset number is set to 12, that is, when the process Thread monitors and finds that the number of trajectory structured data stored in the memory list exceeds 12 and the number of trajectory structured data is increasing (for example, when the 13th data is stored, the process Thread monitors the state of the memory list relative to the previous storage of 12 data, and the number of trajectory structured data stored exceeds 12 and the storage amount of data is increasing), the position correction mechanism will be triggered to perform position correction processing. It can be seen that the position correction mechanism in this method is a dynamic mechanism. When the data in the memory list exceeds the preset number and is still increasing, every time new trajectory structured data is stored in the memory list of the electronic device, the position correction mechanism will be triggered to perform trajectory position correction on the new trajectory structured data.

[0061] The process Thread monitors the memory list of the electronic device. This asynchronous method does not affect the operation of the main system and can also perform multi-tasking.

[0062] As some preferred implementations of the embodiments of the present invention, the process Thread is set to sleep if no new data is monitored within a preset monitoring time, so as to prevent the process Thread from being in a running state all the time and wasting more system resources.

[0063] S32: Determine whether the position deviation correction mechanism is satisfied, calculate the trajectory mean of the trajectory structured data within a preset time, and determine the distance between the trajectory structured data and the trajectory mean.

[0064] When it is determined that the position correction mechanism is met, the current trajectory structured data and the previous trajectory structured data within a preset time are stored in the calculation list clist. It should be noted that since the GPS module is set to collect data once every preset collection time, step S32 is to store the current trajectory structured data and several consecutive trajectory structured data before the trajectory structured data in the calculation list clist.

[0065] More specifically, this step is to store the current trajectory structured data and the 12 consecutive trajectory structured data before the trajectory structured data into the calculation list clist. Then, the trajectory mean of the trajectory structured data within the preset time is calculated, that is, the point mean of the 13 point data is calculated to obtain the above-mentioned trajectory mean. Then, the distance between the current trajectory structured data and the trajectory mean is calculated, and the distance represents the amplitude between the current trajectory structured data and the trajectory mean.

[0066] S33, determining that the distance exceeds a preset error value, obtaining the previous trajectory structured data adjacent to the trajectory structured data, performing position correction on the trajectory structured data based on the previous trajectory structured data and the preset error value, and generating position correction data corresponding to the trajectory structured data.

[0067] S34: Update the trajectory structured data into position correction data.

[0068] In order to improve the accuracy of trajectory mean calculation process, the following is combined Figure 3 The deviation correction method of the track of the station-depot scene route of the present invention is described, and step S32 specifically includes:

[0069] S321, determining all point values ​​of the trajectory structured data within a preset time. It can be understood that the point value includes the current trajectory structured data, that is, the 13th trajectory structured data.

[0070] S322, determine the maximum point value and the minimum point value of the point value. Find the maximum and minimum point values ​​among the point values. The above two point values ​​may have a large error, which will lead to inaccurate calculation results of the trajectory mean. Therefore, the maximum and minimum point values ​​are ignored in the subsequent calculation process.

[0071] S323, determine the point mean of the point values ​​other than the maximum point value and the minimum point value, and obtain the trajectory mean, that is, take the average of the other 11 point values ​​except the maximum point value and the minimum point value, and then obtain the trajectory mean. In this way, it is prevented from causing a large interference to the trajectory data and causing a large deviation of the data.

[0072] S324: Calculate the distance between the trajectory structured data and the trajectory mean based on the trajectory structured data and the previous trajectory structured data adjacent thereto. In the embodiment of the present invention, the corresponding distance is obtained based on the longitude and latitude of the trajectory structured data and the previous trajectory structured data adjacent thereto.

[0073] Specifically, the distance calculation formula is:

[0074] Distance=R*Arccos(C)*π / 180

[0075] C=sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lng1-lng2)

[0076] Wherein, Distance represents distance; R represents the radius of the earth; lat1 represents the latitude value of the previous trajectory structured data; lat2 represents the latitude value of the current trajectory structured data; lng1 represents the longitude value of the previous trajectory structured data; lng2 represents the longitude value of the current trajectory structured data.

[0077] Combine the following Figure 4 The deviation correction method of the track of the station-depot scene route of the present invention is described. The method specifically includes in step S33:

[0078] S331 , determining that the distance exceeds a preset error value, and obtaining the previous trajectory structured data adjacent to the trajectory structured data.

[0079] In the embodiment of the present invention, the preset error value is used to characterize the travel distance of the pedestrian within the preset collection time, that is, the travel stride is obtained based on the travel speed of the pedestrian and the preset collection time.

[0080] Usually the pedestrian's forward speed is 0.5-1m / s, so the preset error value is 0.5-1m / s*△T, where △T represents the preset collection time.

[0081] If the distance exceeds the preset error value, it means that the current trajectory structured data needs to be corrected. Otherwise, if the distance does not exceed the preset error value, it means that the current trajectory structured data is trajectory correct data and does not need to be corrected.

[0082] S332: Determine the amplitude direction between the trajectory structured data and the previous trajectory structured data, that is, the orientation of the current trajectory structured data relative to the previous trajectory structured data.

[0083] S333 . Based on the amplitude direction, the preset error value is added to the previous trajectory structured data to generate position correction data corresponding to the trajectory structured data.

[0084] According to the amplitude direction obtained previously, an amplitude compensation equivalent to the preset error value is performed on the basis of the previous trajectory structured data adjacent to the current trajectory structured data to obtain the actual approximate position of the trajectory structured data, which is then used as the new position point of the trajectory structured data, and the data of the trajectory structured data in the memory list is correspondingly updated to the data of the position correction data.

[0085] After a trajectory structured data is judged whether position correction is needed and the corresponding position correction processing is completed, each time a new trajectory structured data is added to the subsequent memory list, the current calculation list clist must be cleared, and the calculation of the newly added trajectory structured data and the first 12 adjacent trajectory structured data must be restarted to determine whether position correction is needed for the new trajectory structured data and perform the corresponding position correction processing when position correction is needed. Through continuous iterative calculation, the position correction correction and update of all trajectory structured data are completed.

[0086] Combine the following Figure 5 The method for correcting the trajectory of the station-depot scene route of the present invention is described, and the method further includes the following steps:

[0087] S40: Persistently save the trajectory structured data after position correction.

[0088] As some possible implementation methods of the embodiments of the present invention, persistent storage includes serialization processing and compatible storage.

[0089] Specifically, the memory list for analysis and processing is designed according to the object-oriented style. The data stored in the memory list is transmitted through the http layer to complete the serialization operation of the trajectory data, which can realize various conversion requirements such as json / xml.

[0090] In the embodiment of the present method, the trajectory structured data after position correction processing, that is, the trajectory data after position correction, can be saved in a mainstream SQL database / NOSQL database, directly stored as text information. This data storage method does not require a specific storage medium and also meets the compatibility requirements.

[0091] Therefore, the structure of trajectory data is serialized and can be saved in json / xml format. It is compatible with any existing system and supports all kinds of tcp / http transmission. At the same time, it can achieve thread safety mechanism by updating only one memory list.

[0092] Combine the following Figure 6 The deviation correction method of the track of the station-depot scene route of the present invention is described. The method specifically comprises, in step S10:

[0093] S11. Based on a preset collection time, the trajectory of the station-depot scenario route is obtained once every preset collection time.

[0094] S12: Structural processing is performed on the trajectory of the station-depot scenario route to obtain trajectory structured data.

[0095] Combine the following Figure 7 The deviation correction method of the track of the station-depot scene route of the present invention is described. The method further includes the following steps after step S10:

[0096] S20, based on the information contained in the trajectory structured data, delete the invalid trajectory structured data. In the embodiment of the present invention, based on the latitude and longitude, timestamp and other information contained in the trajectory structured data itself, it is determined whether the trajectory structured data is valid or invalid data. Specifically, the invalid trajectory structured data exceeds the domestic latitude and longitude range or the data is incorrect.

[0097] Preferably, when invalid trajectory structured data is removed, the first-in, first-out (FIFO) principle is followed, that is, each time a structured trajectory structured data is just obtained from the head of the memory list, it will be judged whether it is within the current domestic coordinate range and whether it is correct coordinate data based on the longitude and latitude, timestamp, etc. contained in the trajectory structured data itself. If both are true, it means that the trajectory structured data is normal data. If one of the results is "no" (for example, the obtained trajectory structured data is 0 or the trajectory structured data exceeds the domestic longitude and latitude range), it indicates that the trajectory structured data is invalid data, and then the invalid trajectory structured data will be removed. Each time a data is read from the head of the memory queue, and data analysis is performed. The corresponding operation of removing invalid data will be recorded in the corresponding log file, and the corresponding query can be performed by querying the local log file.

[0098] It can be understood that what is processed in the subsequent step S30 are all valid trajectory structured data.

[0099] The trajectory correction device for the station-depot scenario route provided by an embodiment of the present invention is described below. The trajectory correction device for the station-depot scenario route described below and the trajectory correction method for the station-depot scenario route described above can be referenced to each other.

[0100] In order to solve the above problems, a device for correcting the trajectory of a station-depot scenario route is provided in this embodiment, which is intended to correct the trajectory of the station-depot scenario route in real time without relying on third-party data. The device for correcting the trajectory of a station-depot scenario route in the embodiment of the present invention can be used in electronic devices, including but not limited to computers, mobile terminals, wearable smart devices, etc. Figure 8 is a schematic diagram of the structure of a trajectory correction device for a station-depot scenario route according to an embodiment of the present invention, such as Figure 8 As shown, the device comprises:

[0101] The trajectory collection module 10 is used to obtain the trajectory of the station-depot scene route, and obtain trajectory structured data based on the trajectory of the station-depot scene route. In an embodiment of the present invention, GPS data is collected by an electronic device equipped with a GPS module. The above-mentioned GPS data is the trajectory of the station-depot scene route. The electronic device includes but is not limited to computers, wearable smart devices, etc. As some preferred implementations of the embodiments of the present invention, a background running service is started in an electronic device equipped with a GPS module, and a GPS data is obtained at regular intervals in the background. The electronic device collects GPS data in this way.

[0102] It should be noted that the original GPS data contains information such as latitude (lat), longitude (lng), timestamp (timestamp), current time, etc.

[0103] The trajectory acquisition module 10 also processes the trajectory of the above-mentioned station scene route into trajectory structured data, that is, converts the GPS data into structured data and saves it as a specific data structure. The trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp (GPS satellite timestamp) of the earth's center of mass coordinate system (GPS-84 coordinate system).

[0104] In an embodiment of the present invention, the GPS module is configured to collect the original station-depot scenario route trajectory once every preset collection time, and the preset collection time is the collection interval between the trajectories of two adjacent station-depot scenario routes. For example, the GPS module is configured to collect data once every 1 second, and synchronously perform structured processing of the data to complete data collection and processing and ensure time continuity and non-repetitiveness of the data.

[0105] The trajectory correction module 30 is used to obtain the trajectory mean of the trajectory structured data within a preset time, determine whether the trajectory structured data has offset based on the trajectory mean, and if offset is determined to have occurred, perform position correction on the trajectory structured data based on a preset error value.

[0106] In the embodiment of the present invention, the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the travel distance of the pedestrian within the preset collection time, that is, the travel stride is obtained based on the pedestrian's travel speed and the preset collection time.

[0107] When the distance between the trajectory structured data and the trajectory mean exceeds the preset error value, it means that the trajectory structured data has been offset, which is an abnormal position point. The device will use the preset error value to correct the position of the abnormal position point and update the point value of the point. The original point position and correction operation can be output to the log file for corresponding recording and query.

[0108] The trajectory correction device for the station-depot scenario route provided by the present invention structures the acquired trajectory of the original station-depot scenario route, then obtains the trajectory mean of the trajectory structured data within a preset time, and judges whether the current trajectory structured data has an offset through the trajectory mean. When an offset occurs, the offset trajectory is corrected based on the travel distance of the pedestrian within the preset collection time, thereby realizing real-time deviation correction processing of the trajectory of the station-depot scenario route, eliminating the trajectory sampling value deviation caused by random interference, and does not rely on any third-party map data. At the same time, it can adapt to the requirements of any third-party map manufacturer and business system for pedestrian navigation data, does not need to redevelop the system, and can be accessed in module form at any time.

[0109] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a deviation correction method for the trajectory of the station-depot scene route, the method comprising:

[0110] Obtain the trajectory of the station-depot scenario route, and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp of the earth's center of mass coordinate system;

[0111] The trajectory mean of the trajectory structured data within the preset time is obtained, and whether the trajectory structured data has an offset is determined based on the trajectory mean. If an offset is determined, the position of the trajectory structured data is corrected based on the preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

[0112] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0113] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the deviation correction method of the trajectory of the station-depot scene route provided by the above methods, the method including:

[0114] Obtain the trajectory of the station-depot scenario route, and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp of the earth's center of mass coordinate system;

[0115] The trajectory mean of the trajectory structured data within the preset time is obtained, and whether the trajectory structured data has an offset is determined based on the trajectory mean. If an offset is determined, the position of the trajectory structured data is corrected based on the preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

[0116] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the method for correcting the trajectory of the station-depot scenario route provided by the above methods, the method comprising:

[0117] Obtain the trajectory of the station-depot scenario route, and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp of the earth's center of mass coordinate system;

[0118] The trajectory mean of the trajectory structured data within the preset time is obtained, and whether the trajectory structured data has an offset is determined based on the trajectory mean. If an offset is determined, the position of the trajectory structured data is corrected based on the preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

[0119] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for correcting the trajectory of a station-depot scenario route. It is characterized in that The method comprises: Obtain the trajectory of the station-depot scenario route, and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, trajectory local time and trajectory acquisition timestamp of the earth's center of mass coordinate system; The trajectory mean of the trajectory structured data within the preset time is obtained, and whether the trajectory structured data has an offset is determined based on the trajectory mean. If an offset is determined, the position of the trajectory structured data is corrected based on the preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

2. According to claim 1, the method for correcting the trajectory of the station-depot scene route, It is characterized in that The step of obtaining a trajectory mean value of the trajectory structured data within a preset time, determining whether the trajectory structured data is offset based on the trajectory mean value, and if offset is determined to be offset, performing position correction on the trajectory structured data based on a preset error value specifically includes: The trajectory structured data is stored in a memory list, and the data in the memory list is monitored to see whether it satisfies the position correction mechanism; the position correction mechanism is when the number of trajectory structured data exceeds the preset number or is increasing; Determine whether the position correction mechanism is satisfied, calculate the trajectory mean of the trajectory structured data within a preset time, and determine the distance between the trajectory structured data and the trajectory mean; Determine that the distance exceeds a preset error value, obtain the previous trajectory structured data adjacent to the trajectory structured data, perform position correction on the trajectory structured data based on the previous trajectory structured data and the preset error value, and generate position correction data corresponding to the trajectory structured data; Update the trajectory structured data to position correction data.

3. According to claim 2, the trajectory correction method of the station-depot scene route, It is characterized in that The determining that the position correction mechanism is satisfied, calculating the trajectory mean of the trajectory structured data within a preset time, and determining the distance between the trajectory structured data and the trajectory mean, specifically includes: Determine all point values ​​of trajectory structured data within a preset time; Determine the maximum and minimum point values; Determine the point mean of the point values ​​other than the maximum point value and the minimum point value to obtain the trajectory mean; Based on the trajectory structured data and its adjacent previous trajectory structured data, the distance between the trajectory structured data and the trajectory mean is calculated.

4. According to claim 2, the trajectory correction method of the station-depot scene route, It is characterized in that The determining distance exceeds the preset error value, obtaining the previous trajectory structured data adjacent to the trajectory structured data, performing position correction on the trajectory structured data based on the previous trajectory structured data and the preset error value, and generating position correction data corresponding to the trajectory structured data, specifically includes: Determine that the distance exceeds a preset error value, and obtain the previous trajectory structured data adjacent to the trajectory structured data; determining an amplitude direction between the trajectory structured data and the previous trajectory structured data; Based on the amplitude direction, the preset error value is added to the previous trajectory structured data to generate position correction data corresponding to the trajectory structured data.

5. According to claim 1, the method for correcting the trajectory of the station-depot scene route, It is characterized in that The method further comprises the following steps: The trajectory structured data after position correction is persisted.

6. The method for correcting the trajectory of the station-depot scene route according to claim 1, It is characterized in that The step of obtaining the trajectory of the station-depot scenario route and obtaining trajectory structured data based on the trajectory of the station-depot scenario route specifically includes: Based on the preset collection time, the trajectory of the station-depot scenario route is obtained once every preset collection time interval; The trajectory of the station-depot scenario route is structured to obtain trajectory structured data.

7. The method for correcting the trajectory of the station-depot scene route according to claim 1, It is characterized in that The method further comprises the following steps after the step of obtaining the trajectory of the station-depot scenario route and obtaining trajectory structured data based on the trajectory of the station-depot scenario route: Based on the information contained in the trajectory structured data, invalid trajectory structured data is deleted.

8. A device for correcting the trajectory of a station-depot scene route, It is characterized in that The device comprises: The trajectory acquisition module is used to obtain the trajectory of the station-depot scenario route and obtain the trajectory structured data based on the trajectory of the station-depot scenario route; the trajectory structured data includes the longitude, latitude, local time of the trajectory and the trajectory acquisition timestamp of the earth's center of mass coordinate system; The trajectory correction module is used to obtain the trajectory mean of the trajectory structured data within a preset time, determine whether the trajectory structured data has an offset based on the trajectory mean, and if it is determined that an offset has occurred, perform position correction on the trajectory structured data based on a preset error value; the offset is the distance between the trajectory structured data and the trajectory mean exceeding the preset error value; the preset error value is used to characterize the distance traveled by the pedestrian within the preset collection time; the preset collection time is the collection interval between the trajectories of two adjacent station-depot scene routes.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for correcting the trajectory of the station warehouse scene route as described in any one of claims 1 to 7 are implemented.

10. 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 steps of the method for correcting the trajectory of the station-depot scene route as described in any one of claims 1 to 7 are implemented.