Indoor fingerprint collection method, device, electronic equipment and storage medium

By combining GPS and PDR algorithms, the problem of insufficient accuracy of Wi-Fi fingerprint positioning in indoor environments is solved. By correcting and updating wireless network fingerprint data, the accuracy of indoor positioning and the quality of the fingerprint database are improved.

CN115150740BActive Publication Date: 2024-09-24GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210477642.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-09-24
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

Existing Wi-Fi fingerprint positioning technology relies on the Wi-Fi signal database in indoor environments, causing positioning accuracy to be limited by data accuracy, making it difficult to meet high-precision indoor positioning requirements.

Method used

Determine the trajectory between the outdoor reference point and the indoor reference point through GPS, combine the pedestrian dead reckoning PDR algorithm and RTK technology to collect and correct wireless network fingerprint data, and update the fingerprint database to improve the accuracy of indoor fingerprint collection.

Benefits of technology

It improves the accuracy and precision of indoor fingerprint collection, enhances the ability to position indoor locations, and enhances the update efficiency and accuracy of the fingerprint database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150740B
    Figure CN115150740B
Patent Text Reader

Abstract

The embodiment of the present application discloses an indoor fingerprint collection method, device, electronic device and storage medium, the method comprising: determining the first reference position information corresponding to the first reference point outdoors through GPS; collecting wireless network fingerprints corresponding to multiple first position points in the first moving trajectory; using the PDR algorithm to determine the first position information corresponding to the multiple first position points according to the first reference position information; determining the second reference position information corresponding to the second reference point through GPS; correcting the first position information corresponding to each first position point according to the second reference position information to obtain the first target position information corresponding to each first position point; and updating the fingerprint database. The implementation of the embodiment of the present application can improve the accuracy of indoor fingerprint collection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning technology, and in particular to an indoor fingerprint collection method, device, electronic device and storage medium. Background Art

[0002] Currently, because indoor areas are usually covered by Wi-Fi signals or other wireless networks, mobile terminals usually use Wi-Fi fingerprints or other wireless network fingerprints for positioning indoors. Taking Wi-Fi fingerprint positioning as an example, Wi-Fi fingerprint positioning requires mobile terminals to collect Wi-Fi fingerprints indoors and match the Wi-Fi fingerprints with the Wi-Fi fingerprint database to obtain the corresponding target location. Therefore, Wi-Fi fingerprint positioning is highly dependent on the Wi-Fi fingerprint database. The accuracy of the data in the Wi-Fi fingerprint database directly affects the accuracy of indoor positioning. In order to meet the needs of indoor positioning, it is necessary to improve the accuracy of indoor fingerprint collection. Summary of the invention

[0003] The embodiments of the present application disclose an indoor fingerprint collection method, device, electronic device and storage medium, which can improve the accuracy of indoor fingerprint collection.

[0004] The present application embodiment discloses an indoor fingerprint collection method, which is applied to electronic equipment, including:

[0005] Determine first reference position information corresponding to a first reference point outdoors by using a global positioning system (GPS);

[0006] Collect wireless network fingerprints corresponding to a plurality of first position points in a first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from the first reference point to indoors and then from indoors to a second reference point outdoors;

[0007] Determine, according to the first reference position information, first position information corresponding to each of the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm;

[0008] Determine the second reference position information corresponding to the second reference point by using the GPS;

[0009] Correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points;

[0010] The fingerprint database is updated based on the first target location information corresponding to each of the first location points and the corresponding wireless network fingerprint.

[0011] In one embodiment, the correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points includes:

[0012] Taking the second reference position information as a reference, calculating the second position information corresponding to each of the first position points according to the PDR data corresponding to each of the first position points;

[0013] The first position information corresponding to each of the first position points is corrected according to the second position information corresponding to each of the first position points to obtain the first target position information corresponding to each of the first position points.

[0014] In one embodiment, after the first position information corresponding to each of the first position points is corrected according to the second reference position information to obtain the first target position information corresponding to each of the first position points, the method further includes:

[0015] Acquire a first entry point and a first exit point among the plurality of first position points;

[0016] The first entry point is aligned with the corresponding second entry point on the map, and the first exit point is aligned with the corresponding second exit point on the map, so as to correct the first target position information corresponding to each of the first position points respectively, and obtain the corrected first target position information corresponding to each of the first position points.

[0017] In one embodiment, after the first position information corresponding to each of the first position points is corrected according to the second reference position information to obtain the first target position information corresponding to each of the first position points, the method further includes:

[0018] Acquire third reference position information corresponding to a third reference point among the plurality of first position points, and fourth reference position information corresponding to the fourth reference point among the plurality of first position points; wherein the third reference point and the fourth reference point are first position points in the first movement trajectory at which the electronic device can change floors in the room;

[0019] When the electronic device is on a floor other than the floor corresponding to the first movement trajectory, wireless network fingerprints corresponding to a plurality of second position points in a second movement trajectory are collected; wherein the second movement trajectory is a trajectory of the electronic device moving on the other floors;

[0020] Determine, according to the third reference position information, the third position information corresponding to each of the plurality of second position points using the PDR algorithm;

[0021] Correcting the third position information corresponding to each of the second position points according to the fourth reference position information to obtain the second target position information corresponding to each of the second position points;

[0022] The fingerprint database is updated based on the second target location information corresponding to each of the second location points and the corresponding wireless network fingerprint.

[0023] In one embodiment, before determining the first position information respectively corresponding to the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm according to the target position information corresponding to the first reference point, the method further includes:

[0024] When the electronic device is in the process of moving along the first moving trajectory, if a trigger operation is detected, taking the first position point where the electronic device is currently located as a first marked position point according to the trigger operation, marking the first marked position point, and determining the marking information corresponding to the first marked position point;

[0025] After updating the fingerprint database based on the target location information corresponding to each of the first location points and the corresponding wireless network fingerprint, the method further includes:

[0026] If the first marked position point exists among all the first position points, the marking information corresponding to the first marked position point is saved in the fingerprint database.

[0027] In one embodiment, the determining the first position information corresponding to the plurality of first position points respectively using a pedestrian dead reckoning (PDR) algorithm according to the target position information corresponding to the first reference point includes:

[0028] Determine the information collection time period corresponding to each of the first location points according to the collection time of each of the first location points;

[0029] If the information collection time period corresponding to the target location point among the multiple first location points is the first time period, taking the first reference location information as a reference, determining the first location information corresponding to the target location point according to the PDR data of the target location point;

[0030] If the information collection time period corresponding to the target location point among the multiple first location points is the second time period, the first location information corresponding to the first location point with the latest collection time in the first time period is used as a reference, and the first location information corresponding to the target location point is determined according to the PDR data of the target location point; wherein the second time period is the information collection time period after the first time period.

[0031] In one embodiment, first satellite data corresponding to a first outdoor reference point is obtained, and first reference position information corresponding to the first reference point is determined according to a real-time kinematic carrier phase differential technology RTK and the first satellite data; wherein the distance between the first reference point and the indoor location is greater than a distance threshold;

[0032] The determining the second reference position information corresponding to the second reference point by using the GPS includes:

[0033] Acquire second satellite data corresponding to the second reference point, and determine second reference position information corresponding to the second reference point according to the RTK and the second satellite data; wherein the distance between the second reference point and the indoor location is greater than a distance threshold.

[0034] The embodiment of the present application discloses an indoor fingerprint collection device, comprising:

[0035] A first GPS module is used to determine first reference position information corresponding to a first reference point outdoors through a global positioning system (GPS);

[0036] A fingerprint collection module, used to collect wireless network fingerprints corresponding to a plurality of first position points in a first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from the first reference point to indoors and then from the indoors to a second reference point outdoors;

[0037] a position determination module, configured to determine first position information corresponding to each of the plurality of first position points by using a pedestrian dead reckoning (PDR) algorithm according to the first reference position information;

[0038] A second GPS module, used for determining second reference position information corresponding to the second reference point through the GPS;

[0039] a position correction module, configured to correct the first position information corresponding to each of the first position points according to the second reference position information, so as to obtain the first target position information corresponding to each of the first position points;

[0040] The updating module is used to update the fingerprint database based on the first target location information and the corresponding wireless network fingerprint corresponding to each of the first location points.

[0041] The present application discloses an electronic device, including:

[0042] A memory storing executable program code;

[0043] a processor coupled to the memory;

[0044] The processor calls the executable program code stored in the memory to execute the method described in any one of the above embodiments.

[0045] An embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the method described in any one of the above embodiments.

[0046] The embodiments of the present application disclose an indoor fingerprint collection method, device, electronic device and storage medium. The electronic device determines first reference position information corresponding to a first reference point outdoors through GPS. The electronic device uses the first reference point as the starting point in a first moving trajectory and moves indoors, and then moves from indoors to a second reference point, using the second reference point as the end point in the first moving trajectory. When the electronic device is in the first moving trajectory, it can collect wireless network fingerprints corresponding to multiple first position points respectively, and use a PDR algorithm to calculate the first position information corresponding to the multiple first position points respectively based on the first reference position information. When the electronic device moves to the end point, that is, when the electronic device moves to the second reference point, the second reference position information of the second reference point is determined through GPS. Based on the second reference position information, the first position information corresponding to each first position point can be corrected to obtain the first target position information corresponding to each first position point. Based on the first target position information corresponding to each first position point and the corresponding wireless network fingerprint, the fingerprint database is updated. In an embodiment of the present application, the electronic device first calculates the first position information through the first reference position information corresponding to the first reference point outdoors, and then corrects the first position information through the second reference information corresponding to the second reference point outdoors, so that the first target position information jointly determined by the first reference position information and the second reference position information is more accurate, thereby improving the accuracy of indoor fingerprint data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 This is a schematic diagram of an application scenario of an indoor fingerprint collection method disclosed in an embodiment of the present application;

[0049] Figure 2 It is a flow chart of an indoor fingerprint collection method disclosed in an embodiment of the present application;

[0050] Figure 3It is a flow chart of another indoor fingerprint collection method disclosed in an embodiment of the present application;

[0051] Figure 4 It is a schematic diagram of a process of collecting fingerprints of other floors in a room except the floor corresponding to the first movement trajectory disclosed in an embodiment of the present application;

[0052] Figure 5 is a schematic diagram of a first movement trajectory disclosed in an embodiment of the present application;

[0053] Figure 6 It is a modular schematic diagram of an indoor fingerprint collection device disclosed in an embodiment of the present application;

[0054] Figure 7 It is a structural block diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

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

[0056] It should be noted that the terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0057] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first reference point may be referred to as a second reference point, and similarly, a second reference point may be referred to as a first reference point without departing from the scope of this application.

[0058] The first reference point and the second reference point are both reference points, but they are not the same reference point.

[0059] The embodiments of the present application disclose an indoor fingerprint collection method, device, electronic device and storage medium, which can improve the accuracy of indoor fingerprint collection.

[0060] The following is a detailed description with reference to the accompanying drawings.

[0061] like Figure 1As shown, Figure 1 : is a schematic diagram of an application scenario of an indoor fingerprint collection method disclosed in an embodiment of the present application. The scenario may include an electronic device 10, wherein the electronic device may include but is not limited to a mobile phone, a tablet computer, a wearable device, a laptop computer, a PC (Personal Computer), etc. In addition, the operating system of the above electronic device 10 may include but is not limited to an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone 8 operating system, etc., which are not limited in the embodiment of the present application. Among them, the indoor scene may include a shopping mall or a school, which is not limited in the present application.

[0062] Optionally, the electronic device 10 may include Wi-Fi, LTE (Long Term Evolution), IMU (Inertial Measurement Unit), geomagnetism, Bluetooth, barometer, GPS (Global Positioning System), and can better complete the collection of indoor data such as wireless network fingerprint data and PDR (Pedestrian Dead Reckoning) data.

[0063] The electronic device 10 can be carried by the collector and moved on the first moving trajectory 20. The first moving trajectory 20 is a trajectory that moves from the outdoor first reference point 102 to the indoor scene 30, and then moves from the indoor scene 30 to the outdoor second reference point 104. The electronic device 10 takes the outdoor first reference point 102 as the starting point. When it is at the first reference point 102, it can collect the first reference information corresponding to the first reference point 102 through GPS, and then move from the first reference point 102 to the indoor scene 30. As the collector moves, the electronic device 10 can collect data of each first position point in the first moving trajectory 20, and the data of each first position point may include wireless network fingerprints and PDR data corresponding to each first position point. The electronic device 10 can use the PDR algorithm to determine the first position information corresponding to multiple first position points according to the first reference position information corresponding to the first reference point 102.

[0064] When the electronic device 10 moves from the indoor scene 30 to the outdoor second reference point 104, that is, reaches the end point of the first moving trajectory 20, the second reference position information corresponding to the second reference point 104 can be collected through GPS, and the first position information corresponding to each previously determined first position point can be corrected through the second reference position information, so that the first target position information of each first position point can be obtained. Therefore, the electronic device 10 can determine the first target position information corresponding to each first position point and the corresponding wireless network fingerprint, so as to update the fingerprint database. Optionally, the electronic device 10 can collect data of each first position point in the first moving trajectory 20 multiple times, so as to improve the accuracy of indoor fingerprint collection.

[0065] It should be noted that after the electronic device 10 enters the indoor scene 30 from the outdoors in the first movement trajectory 20, usually no floor change occurs in the first movement trajectory 20, that is, when the electronic device 10 moves in the indoor trajectory in the first movement trajectory 20, it will not go up or down the stairs in the indoor scene 30. For example, the electronic device 10 enters the indoor scene 30 on the ground and is usually on the first floor of the indoor scene 30. Therefore, the electronic device 10 only collects data on the first floor in the first movement trajectory 20, and does not collect data on the second floor or the negative first floor.

[0066] like Figure 2 As shown, Figure 2 : is a flow chart of an indoor fingerprint collection method disclosed in an embodiment of the present application. The indoor command collection method can be applied to electronic devices, including:

[0067] Step 210: determine first reference position information corresponding to a first outdoor reference point through a global positioning system (GPS).

[0068] When the electronic device is at the first reference point outdoors, the first reference position information corresponding to the first reference point can be determined by the GPS system. Optionally, the electronic device can also determine the reference position information corresponding to the first reference point by other positioning systems such as the GLONASS system, the Galileo system, and the Beidou system, which is not limited in the embodiments of the present application.

[0069] In one embodiment, the electronic device may obtain first satellite data corresponding to a first outdoor reference point, and determine first reference position information corresponding to the first reference point based on RTK (Real-time kinematic, real-time dynamic carrier phase difference technology) and the first satellite data.

[0070] The first satellite data corresponding to the first reference point may include azimuth, time, distance, stability index and other data, which are not limited. Optionally, the distance between the first reference point and the indoor space may be greater than a distance threshold to ensure the strength of the GPS satellite signal of the electronic device at the first reference point to improve the accuracy of the first satellite data received by the electronic device at the first reference point. For example, the distance between the first reference point and the indoor space is greater than 20 meters.

[0071] When an electronic device performs positioning according to RTK, since RTK is a technology that performs real-time dynamic relative positioning based on carrier phase observation values, the electronic device can set up a data communication link with the surrounding reference stations to receive the observation data on the reference stations in real time and complete data processing. The data processing may include solving double-difference ambiguities, settling baseline vectors, and converting coordinates, thereby obtaining centimeter-level positioning accuracy, improving the accuracy of the first reference position information, and calculating the first position information of multiple first position points in the first moving trajectory based on the first reference point, which can improve the accuracy of multiple first position information and further improve the accuracy of indoor fingerprint collection.

[0072] Step 220, collecting wireless network fingerprints corresponding to multiple first position points in the first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from a first reference point indoors and then from indoors to a second reference point outdoors.

[0073] The electronic device starts to move in the first moving trajectory with the first reference point as the starting point, and collects wireless network fingerprints corresponding to multiple first position points in the first moving trajectory. Optionally, the electronic device can collect wireless network fingerprints corresponding to multiple first position points in the first moving trajectory at a certain time frequency, for example, the electronic device collects wireless network fingerprints every 1s (second). The electronic device can also collect wireless network fingerprints corresponding to multiple first position points in the first moving trajectory at certain distances, for example, the electronic device collects wireless network fingerprints every 0.5m (meter). The electronic device can also determine the first position point according to the detected selection operation during the first movement, that is, the user performs a selection operation at each position point, so that the electronic device determines each first position point.

[0074] Among them, the wireless network fingerprint can be a Wi-Fi fingerprint, and the method for collecting the wireless network fingerprint can be through the Wi-Fi module of the electronic device; the wireless network fingerprint can also be a Bluetooth fingerprint, and the method for collecting the wireless network fingerprint can be through the Bluetooth module of the electronic device, which is not limited here.

[0075] Step 230: Determine first position information corresponding to each of the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm according to the first reference position information.

[0076] When the electronic device moves in the first moving trajectory, it can collect PDR data corresponding to multiple first position points based on the first reference position information, and calculate the first position information corresponding to each first position point through a PDR algorithm based on the PDR data corresponding to each first position point.

[0077] As an optional implementation, the electronic device can upload the PDR data corresponding to each first position to the server in real time. After collecting the PDR data corresponding to multiple first position points, the electronic device can also send the PDR data corresponding to the multiple first position points to the server connected to the electronic device. The server determines the first position information corresponding to each first position point through the PDR algorithm, and then sends the first position information corresponding to each first position point back to the electronic device. Implementing this implementation can reduce the amount of calculation of the electronic device, improve the efficiency of indoor fingerprint collection by the electronic device, and reduce the power consumption of the electronic device.

[0078] Step 240: Determine the second reference position information corresponding to the second reference point through GPS.

[0079] When the electronic device reaches the second reference point outdoors, it can determine the second reference position information corresponding to the first reference point through the GPS system. The method for determining the second reference position information corresponding to the second reference point is the same as the method for determining the first reference position information corresponding to the first reference point in step 210, and will not be repeated here.

[0080] Step 250: Correct the first position information corresponding to each first position point according to the second reference position information to obtain the first target position information corresponding to each first position point.

[0081] The electronic device can verify the first position information corresponding to each first position point through the PDR algorithm according to the second reference position information, and correct the first position information corresponding to each first position point to obtain the first target position information corresponding to each first position point.

[0082] As an optional implementation, the electronic device can send the first reference location information, the second reference location information, and the PDR data corresponding to the plurality of first location points to a server connected to the electronic device after determining the second reference location information corresponding to the second reference point, so that the server uses the first reference location information and the second reference location information as a reference to calculate the PDR data of each first location point, thereby obtaining the first target location information corresponding to each first location point and then sending the first target location information corresponding to each first location point back to the electronic device. In implementing this implementation, the electronic device can send the first reference location information and the second reference location information to the server at one time, and the server can directly calculate the first target location information based on the first reference location information and the second reference location information, thereby reducing the number of data transmissions and not requiring the electronic device to perform calculations. The electronic device can run more performance in the process of collecting indoor fingerprints, thereby speeding up the speed of indoor fingerprint collection and reducing the power consumption of the electronic device.

[0083] In one embodiment, the electronic device uses the second reference position information as a reference, and calculates the second position information corresponding to each first position point based on the PDR data corresponding to each first position point; and corrects the first position information corresponding to each first position point based on the second position information corresponding to each first position point to obtain the first target position information corresponding to each first position point.

[0084] Among them, the PDR data corresponding to each first position point is collected when the electronic device moves in the first moving trajectory. The PDR data may include the acceleration, angular velocity, magnetism and pressure of the electronic device in the first moving trajectory. The electronic device can calculate the step length and direction of movement through the PDR data, so as to determine the position information corresponding to each first position point. After determining the second reference information, the electronic device verifies the first position information corresponding to each first position point based on the second reference information, that is, the second position information corresponding to each first position point can be reversely calculated through the second reference information and the PDR data corresponding to each first position point, and then the first position information corresponding to each first position point is corrected according to the second position information corresponding to each first position point to obtain the first target position information corresponding to each first position point.

[0085] As an optional implementation, the electronic device may compare the second location information corresponding to each first location point with the first location information corresponding to each first location point, and determine the first location information that does not meet the verification requirements in the first location information corresponding to each first location point. For example, the verification requirement may be that the distance between the second location information corresponding to the first location point and the corresponding first location information is not more than 1m, etc., but is not limited to this. The first location information that does not meet the verification requirements may be corrected to obtain the first target location information corresponding to each first location point, wherein the correction method may be to calculate the average value of the first location information corresponding to the first location point and the corresponding second location information, and use the average value as the first target location information corresponding to the first location, but is not limited to this. In implementing this implementation, the electronic device uses the first location information corresponding to each first location point as a basis, and uses the second location information corresponding to each first location point for auxiliary judgment, determines the first location information that needs to be corrected, improves the efficiency of the electronic device, and improves the accuracy of indoor fingerprint collection.

[0086] Step 260: Update the fingerprint database based on the first target location information corresponding to each first location point and the corresponding wireless network fingerprint.

[0087] The fingerprint database may include wireless network fingerprints and location information, and there is a corresponding relationship between the wireless network fingerprints and the location information.

[0088] The electronic device can update the fingerprint database based on the first target location information corresponding to each first location point and the corresponding wireless network fingerprint. Optionally, the fingerprint database can be a local database of the electronic device, a cloud database connected to the electronic device, or stored in other electronic devices connected to the electronic device.

[0089] In an embodiment of the present application, the electronic device first calculates the first position information through the first reference position information corresponding to the first reference point outdoors, and then corrects the first position information through the second reference information corresponding to the second reference point outdoors, so that the first target position information jointly determined by the first reference position information and the second reference position information is more accurate, thereby improving the accuracy of indoor fingerprint data collection.

[0090] like Figure 3 As shown, Figure 3 : is a flow chart of another indoor fingerprint collection method disclosed in an embodiment of the present application, the method comprising:

[0091] Step 310: determine first reference position information corresponding to a first outdoor reference point through a global positioning system (GPS).

[0092] Step 320, collecting wireless network fingerprints corresponding to multiple first position points in the first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from a first reference point indoors and then from indoors to a second reference point outdoors.

[0093] Steps 310 to 320 are the same as steps 210 to 220 in the above embodiment and will not be described again here.

[0094] Step 330, when the electronic device is moving along the first moving trajectory, if a trigger operation is detected, the first position point where the electronic device is currently located is used as the first marking position point according to the trigger operation, the first marking position point is marked, and the marking information corresponding to the first marking position point is determined.

[0095] Since the collector carries an electronic device and moves in the first moving track, the electronic device can be used to trigger the operation at the first position point, thereby marking the first position point. For example, the user can use the electronic device to take a photo of the "xx shop" at the first position point, and the electronic device obtains the photo of the "xx shop". Therefore, the fingerprint database can also include annotation information, and there is a corresponding relationship between the wireless network fingerprint, location information and annotation information. The annotation information can be text, audio and picture, and there is no limitation on this. The annotation information can be used to mark the location point corresponding to the location information. For example, the annotation information can use text to mark the corresponding location point as the first entry point, and the annotation information can also use pictures to mark the corresponding location point as "xx shop".

[0096] When the electronic device is in the process of moving along the first moving trajectory, the first moving trajectory includes the first reference point and the second reference point, that is, multiple first position points include the first reference point and the second reference point. When the user determines that the first reference point and the second reference point have been reached, the user can perform a trigger operation on the electronic device. The trigger operation may include but is not limited to a click operation, a voice operation, and a gesture operation. Therefore, the electronic device can determine the first reference point and the second reference point by detecting the trigger operation, and use the first reference point and the second reference point as the first marked position point. The first moving trajectory also includes the first entry point and the first exit point. The electronic device can also mark the first reference point and the second reference point by detecting the trigger operation.

[0097] Taking the first reference point as an example, if the electronic device detects a trigger operation for the first reference point, the electronic device will use the first position point where the electronic device is currently located as the first annotation position point according to the trigger operation for the first reference point, and determine the annotation information corresponding to the first annotation position point. The annotation information can characterize the first annotation position point as the first reference point.

[0098] Taking "xx shop" in the first moving trajectory as an example, if the electronic device detects a trigger operation of a photo carrying "xx shop", the electronic device will use the current first position point of the electronic device as the first annotation position point based on the trigger operation of the photo carrying "xx shop", and determine that the annotation information corresponding to the first annotation position point is a photo of "xx shop".

[0099] As an optional implementation, if the time that the electronic device is at any of the multiple first position points is greater than a time threshold, the first position point where the electronic device is currently located is determined to be a first marked position point, and the annotation information corresponding to the first marked position point input by the user is received; if the annotation information corresponding to the first marked position point is not detected, a prompt message is issued to prompt the user to input the annotation information corresponding to the first marked position point. For example, the time threshold may be 5s, and if the time that the electronic device is at a first position point reaches 6s, the first position point is determined to be the first marked position point. By implementing this implementation, the electronic device can automatically determine the first marked position point, thereby improving the convenience of marking the position point.

[0100] Step 340: Determine first position information corresponding to each of the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm according to the first reference position information.

[0101] In one embodiment, the electronic device can determine the information collection time period corresponding to each first position point based on the collection time of each first position point; if the information collection time period corresponding to the target position point among multiple first position points is the first time period, then the first reference position information is used as a reference, and the first position information of the target position point is determined according to the PDR data of the target position point; if the information collection time period corresponding to the target position point among multiple first position points is the second time period, then the first position information corresponding to the first position point with the latest collection time in the first time period is used as a reference, and the first position information corresponding to the target position point is determined according to the PDR data of the target position point; wherein the second time period is the information collection time period after the first time period.

[0102] When the electronic device collects wireless network fingerprints corresponding to multiple first position points in the first moving trajectory, it can record the collection time corresponding to each first position point, and segment the collection time according to a certain time period threshold. For example, the time period threshold is 20 minutes, and the electronic device can determine the 0th minute to the 20th minute from the start of collecting the wireless network fingerprint as the first time period, and determine the 21st minute to the 40th minute as the second time period.

[0103] After the electronic device divides the collection time into a first time period and a second time period, the PDR data corresponding to the first position point collected in the first time period is based on the first reference point, and the PDR data corresponding to the first position point collected in the second time period is based on the first position point with the latest collection time in the first time period. For example, the first time period is from the 0th minute to the 20th minute of collecting the wireless network fingerprint, and the first position point with the latest collection time in the first time period can be the first position point where the electronic device is located at the 19th minute and 59 seconds. Therefore, when the electronic device calculates the first position information corresponding to each first position point, it can determine the information collection time period corresponding to each first position point, and determine the reference point of the PDR data corresponding to each first position point according to the information collection time period corresponding to each first position point, thereby calculating the first position information corresponding to each first position point. By implementing this embodiment, when the electronic device collects the data of the first moving trajectory for a long time, it can determine the first position information of each first position point with a suitable reference point, which can improve the accuracy of positioning, thereby improving the accuracy of indoor fingerprint collection.

[0104] Step 350: Determine the second reference position information corresponding to the second reference point through GPS.

[0105] Step 360: Correct the first position information corresponding to each first position point according to the second reference position information to obtain the first target position information corresponding to each first position point.

[0106] Steps 350 to 360 are the same as steps 240 to 250 in the above embodiment and will not be described in detail here.

[0107] Step 370, obtain the first entry point and the first exit point among multiple first position points; align the first entry point with the corresponding second entry point on the map, and align the first exit point with the corresponding second exit point on the map, so as to correct the first target position information corresponding to each first position point respectively, and obtain the corrected first target position information corresponding to each first position point.

[0108] The electronic device can obtain a first entry point and a first exit point from multiple first position points. The entry point and the first exit point can be marked by detecting the trigger operation in step 330. The first entry point and the first exit point can be the same first position point or different first position points.

[0109] The electronic device may determine a second entry point corresponding to the first entry point on a map, and may determine a second exit point corresponding to the first exit point on a map. The method by which the electronic device determines the second entry point and the second exit point on a map may be to determine one or more entry and exit points of the current indoor scene on a map, and then determine the second entry point that best matches the first entry point from all the entry and exit points, and determine the second exit point that best matches the first exit point from all the entry and exit points. The second entry point that best matches may be the entry and exit point with the shortest distance to the first entry point, or may be the entry and exit point with the highest similarity to the first entry point, and the embodiments of the present application do not limit this.

[0110] After determining the second entry point and the second exit point on the map, the electronic device corrects the first target location information corresponding to each first location point according to the location of the second entry point and the second exit point, thereby obtaining the corrected first target location information corresponding to each first location point. The electronic device can use the location information of the second entry point as the first target location information of the first entry point, and use the location information of the second exit point as the first target location information of the first exit point.

[0111] Optionally, the electronic device may correct the first target position information corresponding to each first position point according to the offset distance of the second entry point relative to the first entry point. For example, if the offset distance of the second entry point relative to the first entry point is 1m upward, the first target position information of each first position point may also be offset 1m upward. The electronic device may also correct the first target position information corresponding to each first position point according to the offset distance of the second exit point relative to the first exit point. For example, if the offset distance of the second exit point relative to the first exit point is 1m to the right, the first target position information of each first position point may also be offset 1m to the right. The electronic device can also determine a comprehensive offset distance based on the offset distance of the second entry point relative to the first entry point and the offset distance of the second exit point relative to the first exit point, and correct the first target position information corresponding to each first position point through the comprehensive offset distance. For example, the offset distance of the second entry point relative to the first entry point is 1 m upward, and the offset distance of the second exit point relative to the first exit point is 1 m to the right. The electronic device can determine that the comprehensive offset distance is 0.5 m upward and 0.5 m right, and the first target position information of each first position point can also be offset by 0.5 m upward and 0.5 m right.

[0112] Step 380: Update the fingerprint database based on the first target position information after correction corresponding to each first position point and the corresponding wireless network fingerprint.

[0113] The updating method is the same as that in step 260 and will not be described again here.

[0114] In one embodiment, the electronic device can determine the first indoor location point between the first entry point and the first exit point from the multiple first location points, and update the fingerprint database based on the first target location information after correction corresponding to each first indoor location point and the corresponding wireless network fingerprint. The electronic device can determine the first indoor location point between the first entry point and the first exit point according to the chronological order, and can also determine the first indoor location point between the first entry point and the first exit point according to the change of the first movement trajectory.

[0115] Step 390: If there is a first marked position point among the first position points, the marking information corresponding to the first marked position point is saved in the fingerprint database.

[0116] If there is a first marked location point among each first location point, that is, the electronic device determines the first marked location point from multiple first location points in step 330, then the electronic device can save the annotation information corresponding to the first marked location point into the fingerprint database, and can establish a connection with the first target location information corresponding to the first marked location point and the corresponding wireless network fingerprint, so that the electronic device can later determine the annotation information of each first location point from the fingerprint database.

[0117] In an embodiment of the present application, the electronic device can, when collecting wireless network fingerprints corresponding to multiple first position points in the first moving trajectory, simultaneously detect a trigger operation and mark the corresponding first position points according to the trigger operation, and use the marked first position points as first marked position points. The first marked position points may include a first entry point and a first exit point. After determining the first target position information corresponding to each first position point, the electronic device can correct the first target position information corresponding to each first position point according to the first entry point and the first exit point, thereby determining the corrected first target position information corresponding to each first position point, and update the fingerprint database based on the corrected first target position information corresponding to each first position point and the corresponding wireless network fingerprint. By improving the accuracy of the first position point, the accuracy of indoor fingerprint collection can be improved. The electronic device can also save the marking information corresponding to the first marked position point into the fingerprint database, increase the data that has a corresponding relationship with the indoor fingerprint, and improve the data diversity of indoor fingerprint collection.

[0118] In some embodiments, in addition to collecting fingerprints on the floor where the first movement track is located, the electronic device may also collect fingerprints on other floors except the floor corresponding to the first movement track. Figure 4 As shown, Figure 4The present invention discloses a flow chart of collecting fingerprints of other floors in a room except the floor corresponding to the first movement trajectory. Collecting fingerprints of other floors in a room except the floor corresponding to the first movement trajectory may include:

[0119] Step 410, obtain the third reference position information corresponding to the third reference point among the multiple first position points, and the fourth reference position information corresponding to the fourth reference point among the multiple first position points; wherein the third reference point and the fourth reference point are the first position points in the first moving trajectory where the electronic device can change floors indoors.

[0120] When the electronic device is in the first moving trajectory, the third reference point and the fourth reference point can be marked according to the method of step 330 in the above embodiment, so that when collecting fingerprints of other floors except the floor corresponding to the first moving trajectory, the position information corresponding to multiple second position points in the second moving trajectory can be calculated based on the third reference point and the fourth reference point. For example, the floor corresponding to the first moving trajectory can be the 1st floor, then the electronic device calculates the first target position information corresponding to multiple first position points on the 1st floor based on the first reference point and the second reference point, and calculates the second target position information corresponding to multiple second position points on the 2nd floor, the 3rd floor or other floors based on the third reference point and the fourth reference point.

[0121] Therefore, the electronic device needs to first determine the first target position information corresponding to multiple first position points in the first moving trajectory before it can obtain the third reference point and the fourth reference point among the multiple first position points, that is, the electronic device needs to first collect data on the floor corresponding to the first moving trajectory before it can collect data on other floors except the floor corresponding to the first moving trajectory.

[0122] The third reference point and the fourth reference point are first position points in the first movement trajectory where the electronic device can change floors indoors, such as stairways and elevator entrances, and the present application embodiment does not limit this. Optionally, the third reference point and the fourth reference point can be the same first position point or different first position points.

[0123] Step 420, when the electronic device is on a floor other than the floor corresponding to the first movement trajectory, wireless network fingerprints corresponding to a plurality of second position points in the second movement trajectory are collected; wherein the second movement trajectory is a trajectory of the electronic device moving on other floors.

[0124] Step 430: Based on the third reference position information, collect third position information corresponding to the plurality of second position points determined by the PDR algorithm.

[0125] Step 440: modify the third position information corresponding to each second position point according to the fourth reference position information to obtain the second target position information corresponding to each second position point.

[0126] Step 450: Update the fingerprint database based on the second target location information corresponding to each second location point and the corresponding wireless network fingerprint.

[0127] Steps 420 to 450 are the same as the method for collecting fingerprints in the first moving trajectory in the above embodiment, and will not be described in detail here.

[0128] In an embodiment of the present application, when the electronic device collects fingerprints of floors other than the floor corresponding to the first movement trajectory, it can use the third reference point and the fourth reference point as a reference to calculate the second target position information corresponding to multiple second position points in the second movement trajectory. Therefore, the electronic device can improve the accuracy of the second target position information on other floors in the scenario of indoor fingerprint collection when going up and down stairs, thereby improving the accuracy of indoor fingerprint collection.

[0129] In a specific embodiment, Figure 5 As shown, Figure 5It is a schematic diagram of a first movement trajectory disclosed in an embodiment of the present application. The indoor scene is an indoor scene of a shopping mall. The first movement trajectory is on the first floor of the shopping mall. The electronic device marks a first reference point A through a detection trigger operation, and determines the location information of point A through GPS. Point A is outside the shopping mall. The electronic device moves from point A to the first entrance point B of the shopping mall, marks point B through a detection trigger operation, and then moves from point B to a third reference point C. Point C is an elevator entrance on the first floor of the shopping mall. The electronic device can mark point C through a detection trigger operation, and then move from point C to a fourth reference point D. Point D is another elevator entrance on the first floor of the shopping mall. The electronic device can mark point D through a detection trigger operation, and then move from point D to the first exit point E of the shopping mall. Through the detection trigger operation Mark point E, and finally move from point E to the second reference point F outside the mall. Mark point F by detecting the trigger operation, and determine the location information of point F through GPS. In the process of moving from point A to point F, the electronic device collects the wireless network fingerprint corresponding to each first location point from point A to point F, and collects the PDR data corresponding to each first location point. Finally, the first target location information of each first location point is calculated through the location information of points A and F. The first target location information of each first location point can also be corrected according to the location information of points B and E. The electronic device updates the database based on the first target location information corresponding to each first location point and the wireless network fingerprint corresponding to each first location point, and saves the marking information of points A to F in the database. When collecting fingerprints of other floors, the electronic device can calculate the second target location information of each second location point on other floors based on the location information of points C and D.

[0130] like Figure 6 As shown, Figure 6 6 is a modular schematic diagram of an indoor fingerprint collection device disclosed in an embodiment of the present application. The indoor fingerprint collection device 600 includes a first GPS module 610, a fingerprint collection module 620, a position determination module 630, a second GPS module 640, a position correction module 650 and an update module 660, wherein:

[0131] The first GPS module 610 is used to determine first reference position information corresponding to a first reference point outdoors through a global positioning system (GPS).

[0132] The fingerprint collection module 620 is used to collect wireless network fingerprints corresponding to multiple first position points in the first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from a first reference point indoors and then from indoors to a second reference point outdoors.

[0133] The position determination module 630 is used to determine the first position information corresponding to the plurality of first position points respectively by using a pedestrian dead reckoning (PDR) algorithm according to the first reference position information.

[0134] The second GPS module 640 is used to determine the second reference position information corresponding to the second reference point through GPS.

[0135] The position correction module 650 is used to correct the first position information corresponding to each first position point according to the second reference position information to obtain the first target position information corresponding to each first position point.

[0136] The updating module 660 is used to update the fingerprint database based on the first target location information corresponding to each first location point and the corresponding wireless network fingerprint.

[0137] In one embodiment, the position correction module 650 is also used to calculate the second position information corresponding to each first position point based on the PDR data corresponding to each first position point, taking the second reference position information as a reference; and to correct the first position information corresponding to each first position point based on the second position information corresponding to each first position point, so as to obtain the first target position information corresponding to each first position point.

[0138] In one embodiment, the indoor fingerprint collection device 600 further includes a correction module, wherein:

[0139] A correction module is used to obtain a first entry point and a first exit point from a plurality of first position points; align the first entry point with the corresponding second entry point on the map, and align the first exit point with the corresponding second exit point on the map, so as to correct the first target position information corresponding to each first position point respectively, and obtain the corrected first target position information corresponding to each first position point.

[0140] In one embodiment, the indoor fingerprint collection device 600 further includes an acquisition module, wherein:

[0141] An acquisition module is used to obtain third reference position information corresponding to a third reference point among multiple first position points, and fourth reference position information corresponding to a fourth reference point among multiple first position points; wherein the third reference point and the fourth reference point are first position points in the first moving trajectory at which the electronic device can change floors indoors.

[0142] The fingerprint collection module 620 is also used to collect wireless network fingerprints corresponding to multiple second position points in the second movement trajectory when the electronic device is on other floors except the floor corresponding to the first movement trajectory; wherein the second movement trajectory is the trajectory of the electronic device moving on other floors.

[0143] The position determination module 630 is further configured to determine third position information corresponding to the plurality of second position points respectively using a PDR algorithm according to the third reference position information.

[0144] The position correction module 650 is further used to correct the third position information corresponding to each second position point according to the fourth reference position information to obtain the second target position information corresponding to each second position point.

[0145] The updating module 660 is further configured to update the fingerprint database based on the second target location information corresponding to each second location point and the corresponding wireless network fingerprint.

[0146] In one embodiment, the indoor fingerprint collection device 600 further includes a labeling module, wherein:

[0147] The marking module is used for, when the electronic device is in the process of moving in the first moving trajectory, if a trigger operation is detected, taking the first position point where the electronic device is currently located as the first marking position point according to the trigger operation, marking the first marking position point, and determining the marking information corresponding to the first marking position point; after updating the fingerprint database based on the target position information corresponding to each first position point and the corresponding wireless network fingerprint, the method also includes: if the first marking position point exists in each first position point, saving the marking information corresponding to the first marking position point into the fingerprint database.

[0148] The position determination module 630 is also used to determine the information collection time period corresponding to each first position point based on the collection time of each first position point; if the information collection time period corresponding to the target position point among multiple first position points is the first time period, the first reference position information is used as a reference, and the first position information corresponding to the target position point is determined according to the PDR data of the target position point; if the information collection time period corresponding to the target position point among multiple first position points is the second time period, the first position information corresponding to the first position point with the latest collection time in the first time period is used as a reference, and the first position information corresponding to the target position point is determined according to the PDR data of the target position point; wherein the second time period is the information collection time period after the first time period.

[0149] In one embodiment, the first GPS module 610 is also used to obtain first satellite data corresponding to a first outdoor reference point, and determine first reference position information corresponding to the first reference point based on real-time dynamic carrier phase differential technology RTK and the first satellite data; wherein the distance between the first reference point and the indoor area is greater than a distance threshold.

[0150] The second GPS module 640 is further used to obtain second satellite data corresponding to the second reference point, and determine second reference position information corresponding to the second reference point according to RTK and the second satellite data; wherein the distance between the second reference point and the indoor environment is greater than a distance threshold.

[0151] In the embodiment of the present application, the electronic device determines the first reference position information corresponding to the first reference point outdoors through GPS, the electronic device uses the first reference point as the starting point in the first moving trajectory, and moves indoors, and then moves from indoors to the second reference point, and uses the second reference point as the end point in the first moving trajectory. When the electronic device is in the first moving trajectory, it can collect wireless network fingerprints corresponding to multiple first position points, and calculate the first position information corresponding to multiple first position points respectively using the PDR algorithm according to the first reference position information. When the electronic device moves to the end point, that is, when the electronic device moves to the second reference point, the second reference position information of the second reference point is determined by GPS. According to the second reference position information, the first position information corresponding to each first position point can be corrected to obtain the first target position information corresponding to each first position point, and the fingerprint database is updated based on the first target position information corresponding to each first position point and the corresponding wireless network fingerprint. In the embodiment of the present application, the electronic device first calculates the first position information through the first reference position information corresponding to the first reference point outdoors, and then corrects the first position information through the second reference information corresponding to the second reference point outdoors, so that the first target position information determined by the first reference position information and the second reference position information is more accurate, thereby improving the accuracy of indoor fingerprint data collection.

[0152] like Figure 7 As shown, in one embodiment, an electronic device is provided, which may include:

[0153] A memory 710 storing executable program codes;

[0154] a processor 720 coupled to the memory 710;

[0155] The processor 720 calls the executable program code stored in the memory 710 to implement the indoor fingerprint collection method provided in the above embodiments.

[0156] The memory 710 may include a random access memory (RAM) or a read-only memory (ROM). The memory 710 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 710 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device during use, etc.

[0157] The processor 720 may include one or more processing cores. The processor 720 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 710, and calling data stored in the memory 710. Optionally, the processor 720 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 720 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 720, but may be implemented separately through a communication chip.

[0158] It is understandable that the electronic device may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., and no limitation is made here.

[0159] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the methods described in the above embodiments.

[0160] In addition, the embodiments of the present application further disclose a computer program product. When the computer program product is run on a computer, the computer can execute all or part of the steps in any one of the indoor fingerprint collection methods described in the above embodiments.

[0161] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0162] The above is a detailed introduction to an indoor fingerprint collection method, device, electronic device and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for collecting indoor fingerprints, characterized in that: Used in electronic equipment, including: Determine first reference position information corresponding to a first reference point outdoors by using a global positioning system (GPS); Collect wireless network fingerprints corresponding to a plurality of first position points in a first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from the first reference point to indoors and then from indoors to a second reference point outdoors; Determine, according to the first reference position information, first position information corresponding to each of the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm; Determine the second reference position information corresponding to the second reference point by using the GPS; Correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points; The fingerprint database is updated based on the first target location information corresponding to each of the first location points and the corresponding wireless network fingerprint.

2. The method according to claim 1, characterized in that: The step of correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points includes: Taking the second reference position information as a reference, calculating the second position information corresponding to each of the first position points according to the PDR data corresponding to each of the first position points; The first position information corresponding to each of the first position points is corrected according to the second position information corresponding to each of the first position points to obtain the first target position information corresponding to each of the first position points.

3. The method according to claim 1, characterized in that After correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points, the method further includes: Acquire a first entry point and a first exit point among the plurality of first position points; The first entry point is aligned with the corresponding second entry point on the map, and the first exit point is aligned with the corresponding second exit point on the map, so as to correct the first target position information corresponding to each of the first position points respectively, and obtain the corrected first target position information corresponding to each of the first position points.

4. The method according to claim 1, characterized in that: After correcting the first position information corresponding to each of the first position points according to the second reference position information to obtain the first target position information corresponding to each of the first position points, the method further includes: Acquire third reference position information corresponding to a third reference point among the plurality of first position points, and fourth reference position information corresponding to a fourth reference point among the plurality of first position points; wherein the third reference point and the fourth reference point are first position points in the first movement trajectory at which the electronic device can change floors in the room; When the electronic device is on a floor other than the floor corresponding to the first movement trajectory, wireless network fingerprints corresponding to a plurality of second position points in a second movement trajectory are collected; wherein the second movement trajectory is a trajectory of the electronic device moving on the other floors; Determine, according to the third reference position information, the third position information corresponding to each of the plurality of second position points using the PDR algorithm; Correcting the third position information corresponding to each of the second position points according to the fourth reference position information to obtain the second target position information corresponding to each of the second position points; The fingerprint database is updated based on the second target location information corresponding to each of the second location points and the corresponding wireless network fingerprint.

5. The method according to claim 1, characterized in that Before determining the first position information respectively corresponding to the plurality of first position points using a pedestrian dead reckoning (PDR) algorithm according to the target position information corresponding to the first reference point, the method further includes: When the electronic device is in the process of moving along the first moving trajectory, if a trigger operation is detected, taking the first position point where the electronic device is currently located as a first marked position point according to the trigger operation, marking the first marked position point, and determining the marking information corresponding to the first marked position point; After updating the fingerprint database based on the target location information corresponding to each of the first location points and the corresponding wireless network fingerprint, the method further includes: If the first marked position point exists among all the first position points, the marking information corresponding to the first marked position point is saved in the fingerprint database.

6. The method according to claim 1, characterized in that The method of determining the first position information respectively corresponding to the plurality of first position points by using a pedestrian dead reckoning (PDR) algorithm according to the target position information corresponding to the first reference point includes: Determine the information collection time period corresponding to each of the first location points according to the collection time of each of the first location points; If the information collection time period corresponding to the target location point among the multiple first location points is the first time period, taking the first reference location information as a reference, determining the first location information corresponding to the target location point according to the PDR data of the target location point; If the information collection time period corresponding to the target location point among the multiple first location points is the second time period, the first location information corresponding to the first location point with the latest collection time in the first time period is used as a reference, and the first location information corresponding to the target location point is determined according to the PDR data of the target location point; wherein the second time period is the information collection time period after the first time period.

7. The method according to any one of claims 1 to 6, characterized in that: The determining of the first reference position information corresponding to the first outdoor reference point by using the global positioning system GPS includes: Acquire first satellite data corresponding to a first outdoor reference point, and determine first reference position information corresponding to the first reference point according to a real-time kinematic carrier phase differential technology RTK and the first satellite data; wherein the distance between the first reference point and the indoor location is greater than a distance threshold; The determining the second reference position information corresponding to the second reference point by using the GPS includes: Acquire second satellite data corresponding to the second reference point, and determine second reference position information corresponding to the second reference point according to the RTK and the second satellite data; wherein the distance between the second reference point and the indoor location is greater than a distance threshold.

8. An indoor fingerprint collection device, characterized in that: include: A first GPS module is used to determine first reference position information corresponding to a first reference point outdoors through a global positioning system (GPS); A fingerprint collection module, used to collect wireless network fingerprints corresponding to a plurality of first position points in a first movement trajectory; wherein the first movement trajectory is a trajectory of the electronic device moving from the first reference point to indoors and then from the indoors to a second reference point outdoors; a position determination module, configured to determine first position information corresponding to each of the plurality of first position points by using a pedestrian dead reckoning (PDR) algorithm according to the first reference position information; A second GPS module, used for determining second reference position information corresponding to the second reference point through the GPS; a position correction module, configured to correct the first position information corresponding to each of the first position points according to the second reference position information, so as to obtain the first target position information corresponding to each of the first position points; The updating module is used to update the fingerprint database based on the first target location information and the corresponding wireless network fingerprint corresponding to each of the first location points.

9. An electronic device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.