WO2017133480A1 - Positioning method and device - Google Patents

Positioning method and device Download PDF

Info

Publication number
WO2017133480A1
WO2017133480A1 PCT/CN2017/071818 CN2017071818W WO2017133480A1 WO 2017133480 A1 WO2017133480 A1 WO 2017133480A1 CN 2017071818 W CN2017071818 W CN 2017071818W WO 2017133480 A1 WO2017133480 A1 WO 2017133480A1
Authority
WO
WIPO (PCT)
Prior art keywords
positioning
information
mode
location
positioning mode
Prior art date
Application number
PCT/CN2017/071818
Other languages
French (fr)
Chinese (zh)
Inventor
曲文启
李�瑞
闻宏观
Original Assignee
高德信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 高德信息技术有限公司 filed Critical 高德信息技术有限公司
Publication of WO2017133480A1 publication Critical patent/WO2017133480A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0257Hybrid positioning
    • G01S5/0258Hybrid positioning by combining or switching between measurements derived from different systems
    • G01S5/02585Hybrid positioning by combining or switching between measurements derived from different systems at least one of the measurements being a non-radio measurement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present application relates to the field of positioning technologies, and in particular, to a positioning method and apparatus.
  • the most mainstream indoor positioning technologies mainly include triangulation and fingerprint positioning.
  • Both of the positioning technologies are single positioning modes (since one positioning mode is used for positioning, the single positioning mode is also called a single Signal source location), for example, the positioning mode is wifi positioning, Bluetooth positioning, and the like.
  • each positioning mode corresponds to a kind of positioning information.
  • the corresponding positioning information is a wifi signal, that is, the positioning mode scans the wifi signal sent by the wifi device;
  • the positioning mode is Bluetooth positioning
  • the corresponding positioning information is Bluetooth information, that is, the positioning mode scans the Bluetooth information sent by the Bluetooth device.
  • the positioning device for the same positioning mode may be insufficient due to uneven deployment, high cost, and insufficient positioning device, or the distribution characteristics and signal propagation characteristics of the positioning device.
  • the coverage of the positioning device that causes the positioning mode is incomplete, and there is no signal or the signal is weak and cannot be located. Once the object to be located enters these areas, the positioning failure or the inaccurate positioning problem may result.
  • a positioning method and device provided by the embodiments of the present application improve the positioning success rate and accuracy.
  • the present application provides a method for positioning, the method comprising:
  • the first positioning information of the positioning mode is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the positioning mode is determined. position;
  • the position corresponding to the point to be located is determined according to the position corresponding to each positioning mode.
  • the embodiment of the present application further provides a positioning apparatus, where the apparatus includes an acquiring unit, a grouping unit, a first determining unit, and a second determining unit, where:
  • the acquiring unit is configured to acquire first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located;
  • the grouping unit is configured to group the first positioning information sent by each positioning module into a group, and obtain first positioning information corresponding to each positioning mode;
  • the first determining unit is configured to: for each positioning mode, the first positioning information of the positioning mode and the second positioning information corresponding to each location stored in the positioning data fingerprint database of the preset corresponding positioning mode Performing a match to determine a location corresponding to the positioning mode;
  • the second determining unit is configured to determine a location corresponding to the to-be-located point according to a location corresponding to each positioning mode.
  • a terminal device comprising at least two positioning modules of different positioning modes and a processor
  • the locating module is configured to: when the user starts the location service of the terminal device, scan the first positioning information sent by the positioning device around the current location of the terminal device or the first positioning information of the surrounding environment.
  • a processor configured to group the first positioning information sent by the positioning module of the same positioning mode into a group, to obtain first positioning information corresponding to each positioning mode; and to locate the first positioning mode of the positioning mode for each positioning mode The information is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the position corresponding to the positioning mode is determined; and the position corresponding to each positioning mode is determined. The current location of the terminal device.
  • the positioning method and device provided by the embodiment of the present application can locate the positioning point (also referred to as multi-signal source positioning) through the positioning module of at least two different positioning modes at the same point to be located, on the one hand, different positioning
  • the location of the corresponding positioning device in the mode is different.
  • the positioning device of different positioning modes covers a larger density for the same area, and the signal coverage of the positioning device is relatively complete.
  • the signal distribution characteristics and signal propagation characteristics of the positioning devices corresponding to different positioning modes are different, so that they can complement each other, and there is little probability that there is no positioning information or a weak positioning information, so that the positioning can be received at each position.
  • the positioning information of the positioning device to the different positioning modes can be successfully located based on the positioning information, and overcomes the problem that the positioning information sent by the positioning device according to the single positioning mode in the prior art is located, and the positioning fails; Can be positioned according to each positioning mode Positioning is performed to obtain a corresponding position, and the position of the point to be positioned is comprehensively obtained according to the position corresponding to the plurality of positioning modes, thereby overcoming the problem that the positioning of the single positioning mode itself is unstable, resulting in inaccurate positioning, and thus positioning relative to the single positioning mode The obtained position is more accurate, and the application improves the positioning accuracy.
  • FIG. 1 is a flowchart of a positioning method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a positioning device according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the positioning method and device provided by the embodiments of the present application are applicable to electronic map positioning, such as indoor positioning and outdoor positioning.
  • the positioning of the first positioning information in the positioning mode may be performed by using a triangulation technique or a fingerprint positioning technology.
  • the "fingerprint" in the fingerprint positioning technology is a multi-path characteristic signal generated by a positioning device (such as an access point (AP)) after a positioning signal is reflected, refracted, etc., and is generated at a certain position. Fingerprint information at that location. If the positioning device is an AP, the radio wave transmitted by the AP is reflected and refracted, and a multipath characteristic signal corresponding to the position is generated at a certain position, and the multipath characteristic signal is confirmed as the “fingerprint of the AP at the position. "If the AP is a Bluetooth device, a base station device, or a wifi device, the "fingerprint" at that location is the signal strength value.
  • the fingerprint location process can be divided into two phases: “offline training” and “online positioning”.
  • the "offline training" phase is for all the locations with positioning requirements, and a plurality of positioning devices are fixedly disposed in the site, and the positioning information transmitted by the positioning devices of the surrounding positioning modes can be collected by the collecting personnel at various locations of the site by the collecting personnel in advance. And/or using the collecting device to scan the environment positioning information of each location point; for each positioning mode, establishing a correspondence relationship between each location point and the positioning information of the positioning device or the environment positioning information corresponding to the positioning mode at the location point,
  • the location data fingerprint database is obtained, that is, the location where the location data fingerprint database stores a large number of location points and the location information corresponding to the location (referred to as second location information in this application).
  • “Online/Positioning” refers to positioning information or environment positioning information that is sent by a positioning device that receives each positioning mode at a location where the object to be located is located (ie, a point to be located). Positioning information) and based on the positioning information or environmental location letter The information is matched with the fingerprint in the positioning data fingerprint database corresponding to the corresponding positioning mode to obtain the position of the point to be located.
  • FIG. 1 is a flowchart of a positioning method according to an embodiment of the present application.
  • the execution body of the method 100 is a terminal device having a positioning function, such as a mobile phone, a pad, a mobile computer, etc., and a positioning module of at least two positioning modes is disposed in the terminal device, and the method 100 includes the following: step:
  • S110 Acquire first positioning information sent by a positioning module of at least two different positioning modes at a point to be located.
  • the positioning module corresponding to the positioning mode scans the positioning information sent by the positioning device at the point to be located; if the positioning mode corresponds to the positioning
  • the information is information that is available for positioning in the environment, and the positioning module corresponding to the positioning mode scans the positioning information in the environment.
  • the positioning mode may include wifi positioning, Bluetooth positioning, base station positioning, geomagnetic positioning, optical positioning, infrared positioning, etc.
  • corresponding positioning modules disposed in the terminal device are a wifi receiver, a Bluetooth receiver, a base station receiver, and a geomagnetic sensor.
  • wifi positioning, Bluetooth positioning, base station positioning, infrared positioning the corresponding positioning information can be sent from the wifi device, Bluetooth device, base station device and infrared device and other positioning devices, then wifi receiving
  • the device, the Bluetooth receiver, the base station receiver, the geomagnetic sensor, the light sensor, and the infrared receiver scan the positioning information transmitted by the wifi device, the Bluetooth device, the base station device, and the infrared device. If the positioning mode is optical positioning and geomagnetic positioning, the light sensor and the geomagnetic sensor scan the surrounding environment of the point to be located to obtain corresponding positioning information.
  • the acquiring the first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located may include: acquiring the positioning of the at least two different positioning modes according to the preset acquisition period.
  • the terminal device is provided with a wifi receiver, a Bluetooth receiver, and a geomagnetic sensor
  • the point to be located is point A
  • the first positioning information sent by the wifi receiver, the Bluetooth receiver, and the geomagnetic sensor is acquired at point A.
  • They are (T, maclist), (T, blelist), and (T, maglist), where: (T, maclist) represents multiple wifis scanned by the wifi receiver at point A during the T period (ie, the acquisition period).
  • Wifi information sent by the device (the wifi information includes the MAC (Media Access Control) address of the wifi device and the wifi (T, blelist) indicates Bluetooth information sent by multiple Bluetooth devices scanned by the Bluetooth receiver at point A during the T time period (the Bluetooth information includes the Bluetooth device's MAC address and Bluetooth signal strength value); T, maglist) represents a plurality of geomagnetic information (the geomagnetic intensity value is included in the geomagnetism information) scanned by the geomagnetic sensor at point A during the T period.
  • the wifi information scanned by the wifi receiver in the T time period is t1 (ss11, ss12, ..., ss1n); t2 (ss21, ss22, ..., ss2m); t3 (ss31, ss32, ..., ss3k) Where t1, t2, and t3 represent different time points within the T time period; ss identifies the signal strength value of the wifi information.
  • the positioning information obtained by scanning the Bluetooth receiver and the geomagnetic sensor is similar in form to the wifi information, and is not described here.
  • the first positioning information sent by the positioning module in the same positioning mode is grouped into one group, and the first positioning information corresponding to each positioning mode is obtained.
  • the first positioning information sent by the positioning module since the first positioning information sent by the positioning module may be received in the same acquisition period, the first positioning information has data redundancy, and the positioning is performed according to the first positioning information including the redundant data. Resulting in slower positioning.
  • each group of the first positioning information is weighted, and the weighted after the weighting is performed.
  • the group positioning information is determined as the first positioning information corresponding to the corresponding positioning mode, so as to complete the redundancy processing on the first positioning information.
  • the method of the weighting may be as follows: according to the positioning device ID number included in the first positioning information, the first positioning information of the same number of n (where n is a positive integer greater than or equal to 1) is confirmed as being sent by the same positioning device. For positioning information, one of the n first positioning information is selected to be retained, and the remaining n-1 first positioning information are removed; or, according to the ID number of the positioning device included in the first positioning information, If the first pieces of the first positioning information are the same as the positioning information sent by the same positioning device, the first positioning information is calculated according to the n first positioning information, and the first positioning information is replaced by the first positioning information.
  • the first positioning information is used as the signal strength, and the average value of the signal strengths of the n first positioning information is determined as the first calculated positioning information. For example, if the positioning mode is wifi positioning, and a wifi signal of multiple transmission periods sent by the wifi positioning module is acquired in one acquisition period, wherein multiple wifi signals are scanned from the same positioning device, the multiple wifi signals are calculated. If the signal strength yields a wifi signal strength, the wifi signal strength is retained and the aforementioned plurality of wifi signals are deleted.
  • the first positioning information of the positioning mode is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the positioning mode is determined. position.
  • the position corresponding to the second positioning information is determined as the position corresponding to the positioning mode. For example, in the order of similarity from high to low, the positions corresponding to the n pieces of second positioning information are sequentially determined to be the positions corresponding to the positioning mode.
  • the feature information refers to information that can be used for positioning.
  • the first positioning information is wifi information, Bluetooth information, geomagnetic information, etc.
  • the corresponding feature information is a signal strength value
  • the first positioning information is infrared, and the corresponding feature information.
  • the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to formula 1.1:
  • Score represents a similarity
  • n represents a maximum value of the number of positioning information included in the first positioning information and the second positioning information
  • ssi is characteristic information of the i-th positioning information in the first positioning information
  • ffi is Feature information of the i-th positioning information of the second positioning information.
  • the positioning module corresponding to the positioning mode is a wifi positioning module
  • the first positioning information received from the wifi positioning module at the point P to be located is ⁇ ss1, ss2, ..., ssn ⁇
  • positioning data The location stored in the fingerprint library and its second positioning information are as follows: P1 (ff11, ff21, ..., ff1m), P2 (ff21, ff22, ..., ff2n), P3 (ff31, ff32, ..., ff3k), ...Pi(ffi1,ffi2,...,ffij).
  • the similarity between the first location information of the location to be located P and the second location information of the location is calculated according to the foregoing formula 1.1, and the first location information of the P is obtained respectively.
  • the similarity of the second positioning information of P1, P2, P3, ... Pi, ... is in order x1, x2, x3, ... xi, ...; secondly, x1, x2, x3, ... xi, ... are in accordance with the largest to smallest Sorting sequentially; finally, the first n after sorting (n may have a value of 1, or may be a positive integer greater than 1, and may be flexibly set according to actual needs).
  • the position of the second positioning information corresponding to the similarity is determined as The position of the point P to be positioned.
  • the similarity between the second positioning information corresponding to each position and the first positioning information of the point P to be located is calculated according to the formula 1.1, and P1 can be used as an example for description, as follows:
  • step A2 the first positioning information corresponding to the P is added to the m data, that is, (mn) preset positioning information is added to the first positioning information, for example, (mn) preset positioning information may be added, such as ⁇ ss1, ss2, ..., ssn, ss0, ss0, ..., ss0 ⁇ ; and perform step A4;
  • step A3 the second positioning information corresponding to P1 is complemented to n data, that is, (nm) positioning information is added to the second positioning information, for example, (nm) preset positioning information may be added, such as ⁇ ff11, Ff12,...,ff1m,ff0,ff0,...,ff0 ⁇ ; and perform step A4;
  • step A4 according to the foregoing formula 1.1, the similarity between the first positioning information of P and the second positioning information of P1 is calculated as x1.
  • ss0 and ff0 are preset feature information, and the value is an empirical value, and the two may be the same or different.
  • the positioning mode is wifi positioning
  • the first positioning information sent by the wifi positioning module is P ⁇ ss1, ss2, ss3, ss4, ss5 ⁇ at the point P to be located
  • the positioning data fingerprint database corresponding to the wifi positioning mode is wifi fingerprint.
  • the wifi fingerprint library includes P1 ⁇ ff11, ff12, ff13, ff14, ff15 ⁇ ; P2 ⁇ ff21, ff22, ff23, ff24 ⁇ ; P3 ⁇ ff31, ff32, ff33, ff34, ff35, ff36 ⁇ .
  • the number of the first positioning information of the P is the same as the number of the second positioning information of the P1, and the similarity between the P first positioning information and the second positioning information of the P1 can be directly calculated according to the formula 1.1 to be x1; If the number of the first positioning information is greater than the number of the second positioning information of the P2, the P2 second positioning information is processed into P2 ⁇ ff21, ff22, ff23, ff24, ff0 ⁇ , and then the P first positioning information is calculated according to the foregoing formula 1.1.
  • the similarity of the second positioning information of the P2 is x2; if the number of the first positioning information of the P is smaller than the number of the second positioning information of the P3, the first positioning information of the P is processed as P ⁇ ss1, ss2, ss3, ss4, Ss5, ss0 ⁇ , and then according to formula 1.1, the similarity between the P first positioning information and the second positioning information of P3 is x3.
  • the processing modes of other positioning modes are similar to those of the foregoing wifi positioning mode, and will not be further described herein.
  • the location corresponding to the location to be located is determined according to the location of each location mode in S140, and the specific implementation may be as follows: Step A, according to the second location information corresponding to the location of each location mode and corresponding The similarity of the first positioning information of the positioning mode determines the weight of each positioning mode; in step B, the position corresponding to the positioning point is comprehensively determined according to the position of each positioning mode and its weight.
  • step A determining the weight of each positioning mode according to the similarity between the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode, It can be implemented in at least two ways:
  • Manner 11 calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode as the first sum value; for each positioning mode, calculating the position corresponding to the positioning mode The sum of the similarity between the second positioning information and the first positioning information of the positioning mode, and the ratio of the sum value to the first sum value is determined as the weight of the positioning mode. That is, the higher the similarity between the second positioning information of the corresponding position of the positioning mode and the first positioning information of the point to be located, the position of the positioning mode is considered to be more accurate, and the reliability is higher, so the positioning mode corresponds to The greater the weight.
  • the positioning mode includes wifi positioning, Bluetooth positioning, and geomagnetic positioning
  • the position corresponding to the wifi positioning and its similarity that is, the similarity between the second positioning information of the position and the first positioning information of the to-be-located point
  • P1, S1, P2, S2), (P3, S3) where P represents position and S represents similarity
  • the position and similarity corresponding to Bluetooth positioning are (P4, S4), (P5, S5), (P6, S6)
  • the position corresponding to the geomagnetic positioning and its similarity are (P7, S7), (P8, S8), (P9, S9).
  • Manner 12 calculating, for each positioning mode, a similarity average of the second positioning information of the position corresponding to the positioning mode and the first positioning information of the corresponding positioning mode; and the correspondence between the preset similarity and the weight, Obtaining a weight corresponding to the similarity average value corresponding to the positioning mode (if the weight corresponding to the similarity of the similarity average value in the correspondence relationship is determined as the weight corresponding to the similarity average value), The weight is determined as the weight of the positioning mode. In the correspondence between the similarity and the weight, the greater the similarity, the larger the weight.
  • step B the location corresponding to the to-be-located point is determined according to the location of each positioning mode and its weight, which may be implemented according to at least the following two modes:
  • Method 21 Calculate the longitude average and the latitude average of the position corresponding to the positioning mode for each positioning mode, and calculate the product of the longitude average and the latitude average respectively and the weight of the positioning mode, to obtain the longitude weighted average of the positioning mode. And a weighted average of the latitude; determining a sum of the longitude-weighted average values corresponding to the respective positioning modes as the longitude of the corresponding position of the to-be-positioned point, and determining a sum of the latitude-weighted average values corresponding to the respective positioning modes as the to-be-positioned point The latitude of the corresponding position.
  • the latitude and longitude coordinates of the position corresponding to the point to be located are represented by (x, y); the corresponding latitude and longitude coordinates of the positions corresponding to wifi positioning are P1, P2, and P3 are (x1, y1), (x2, y2), and (x3, respectively). Y3); the position corresponding to Bluetooth positioning is P4, P5 and P6, and the latitude and longitude coordinates are (x4, y4), (x5, y5) and (x6, y6) respectively; the corresponding positions of geomagnetic positioning are P7, P8 and P9.
  • the latitude and longitude coordinates are (x7, y7), (x8, y8) and (x9, y9); the weights corresponding to wifi positioning, Bluetooth positioning and geomagnetic positioning are respectively a, b, c. Calculate the latitude and longitude coordinates of the position of the point to be located as follows:
  • Step B1 Calculate the longitude average and the latitude average of the position corresponding to the positioning mode for each positioning mode, that is,
  • Step B2 Calculating a product of a longitude average and a latitude average of each positioning mode and a weight of the positioning mode, respectively, to obtain a longitude weighted average and a latitude weighted average of the positioning mode, namely:
  • Step B3 determining a sum of the latitude weighted average values corresponding to the positioning modes as the latitude of the corresponding position of the to-be-located point, that is,
  • the latitude and longitude coordinates of the point to be located are:
  • the method 22 calculates a longitude average and a latitude average of the position corresponding to the positioning mode for each positioning mode, and determines an average value of the longitude averages corresponding to each positioning mode as the longitude of the corresponding position of the to-be-positioned point, and The average value of the latitude average corresponding to the positioning mode is determined as the latitude of the position corresponding to the point to be positioned.
  • the latitude and longitude coordinates of the position corresponding to the point to be located are represented by (x, y); the corresponding latitude and longitude coordinates of the positions corresponding to wifi positioning are P1, P2, and P3 are (x1, y1), (x2, y2), and (x3, respectively). Y3);
  • the corresponding latitude and longitude coordinates of the positions corresponding to Bluetooth positioning are P4, P5, and P6 are (x4, y4), (x5, y5), and (x6, y6);
  • the corresponding positions of geomagnetic positioning are the latitude and longitude coordinates corresponding to P7, P8, and P9.
  • the implementation is relatively simple.
  • the mode 1 is compared with the mode 2, and the weight of the positioning mode is determined according to the similarity between the corresponding position of the positioning mode and the second positioning information of the position and the first positioning information. For example, the higher the similarity, the higher the weight corresponding to the positioning mode. If the height is higher, the position of the point to be located calculated according to the foregoing manner 2 is closer to the position corresponding to the positioning mode with the weight.
  • the positioning mode has a higher position reliability, so that the position of the point to be positioned is more accurate to the position corresponding to the positioning mode. Therefore, compared with the mode 2, the mode 1 determines that the position of the point to be positioned is more accurate.
  • the positioning mode is wifi positioning, Bluetooth positioning, and geomagnetic positioning.
  • the present application is not limited to the foregoing three positioning modes, and may also include other positioning modes, such as optical positioning, infrared positioning, base station positioning, and the like. That is, the positioning mode of the technical solution of the present application may include at least two or more positioning modes: wifi positioning, Bluetooth positioning, geomagnetic positioning, optical positioning, infrared positioning, and base station positioning. This is not strictly limited in the embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a positioning device according to an embodiment of the present application.
  • the apparatus 200 can be used to implement the method shown in FIG. 1.
  • the apparatus 200 includes an obtaining unit 210, a grouping unit 220, a first determining unit 230, and a second determining unit 240, wherein the apparatus setting And a positioning device having a positioning function, wherein at least two positioning modules of different positioning modes are disposed in the terminal device, wherein
  • the acquiring unit 210 is configured to acquire first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located.
  • the grouping unit 220 is configured to group the first positioning information sent by the positioning module of the same positioning mode into a group, and obtain first positioning information corresponding to each positioning mode.
  • the grouping unit 220 is specifically configured to divide the first positioning information sent by the positioning module in the same positioning mode into a group, and perform weighting on each group of first positioning information, and determine the grouped positioning information after the weighting is corresponding.
  • the first positioning information corresponding to the positioning mode For the weight removal method, refer to the foregoing content, and details are not described herein again.
  • the first determining unit 230 is configured to separately use the first positioning information of the positioning mode for each positioning mode.
  • the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode is matched, and the position corresponding to the positioning mode is determined.
  • the second determining unit 240 is configured to determine a location corresponding to the point to be located according to the location corresponding to each positioning mode.
  • the second determining unit 240 specifically includes:
  • a similarity calculation sub-unit configured to calculate, for each of the positioning modes, feature information of the first positioning information of the positioning mode and corresponding feature information of the second positioning information corresponding to each position in the positioning data fingerprint database Similarity
  • a position determining subunit configured to determine a position corresponding to the at least one second positioning information with a large similarity as a position corresponding to the positioning mode.
  • the similarity calculation subunit is specifically configured to:
  • the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to the following formula:
  • Score represents the similarity
  • n represents the maximum value of the number of positioning information included in the first positioning information and the second positioning information
  • ssi is the characteristic information of the i-th positioning information in the first positioning information
  • ffi is the second Feature information of the i-th positioning information of the positioning information.
  • the location determining sub-unit is specifically configured to: determine, according to the similarity between the second positioning information of the location corresponding to each positioning mode and the first positioning information of the corresponding positioning mode, each positioning is determined.
  • the weight of the mode and, according to the position of each positioning mode and its weight, comprehensively determine the position corresponding to the point to be located.
  • the location determining sub-unit determines the weight of each positioning mode according to the similarity between the second positioning information of the location corresponding to each positioning mode and the first positioning information of the corresponding positioning mode.
  • the method is: calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode, as the first sum value; for each positioning mode, calculating the positioning mode corresponding to And a sum of the similarity between the second location information of the location and the first location information of the location mode, and the ratio of the sum value to the first sum value is determined as the weight of the location mode.
  • the location determining sub-unit comprehensively determines the location corresponding to the to-be-located point according to the location of each positioning mode and its weight, and is specifically used to: for each positioning mode, Calculate the average of the longitude and the average of the latitude of the position corresponding to the positioning mode, and calculate the average of the longitude and the average of the latitude and the positioning respectively
  • the product of the weights of the modes obtains the longitude-weighted average value and the latitude weighted average value of the positioning mode; the sum of the longitude weighted average values corresponding to the respective positioning modes is determined as the longitude of the corresponding position of the to-be-positioned point, and each positioning mode is correspondingly
  • the sum of the latitude weighted average values is determined as the latitude of the position corresponding to the point to be located.
  • the device provided by the embodiment of the present application locates the positioning point by using at least two positioning modules, selects different weights according to the characteristics of each signal source, finally determines the position of the to-be-positioned point, improves the positioning of the positioning point, and needs to be positioned.
  • the accuracy of the point positioning avoids the problem that the single signal caused by the prior art cannot be located or the positioning of the positioning point is inaccurate.
  • the second determining unit 240 is specifically configured to: calculate, for each positioning mode, a longitude average and a latitude average of positions corresponding to the positioning mode; and a longitude corresponding to each positioning mode
  • the average value of the average values is determined as the longitude of the corresponding position of the point to be located, and the average value of the average value of the latitudes corresponding to each of the positioning modes is determined as the latitude of the position corresponding to the point to be positioned.
  • the device provided by the embodiment of the present application locates the positioning point by using the positioning module of at least two different positioning modes, selects different weights according to the characteristics of each signal source, and finally determines the position corresponding to the positioning point, thereby improving the positioning point to be positioned.
  • the positioning and the accuracy of positioning the positioning point avoid the problem that the single signal caused by the prior art cannot be located or the positioning of the positioning point is inaccurate.
  • the obtaining unit 210 in the apparatus 200 may implement S110 in the method 100 shown in FIG. 1, the grouping unit 220 may implement S120, and the first determining unit 230 may implement S130.
  • the second determining unit 240 can implement the S140.
  • the specific implementation of each unit in the device 200 is consistent with the implementation of the corresponding method steps, and details are not described herein again.
  • FIG. 3 is a terminal device provided by an embodiment of the present disclosure, where the terminal device 300 includes at least two positioning modules 310 of different positioning modes and a processor 320.
  • the locating module 310 is configured to: when the user starts the location service of the terminal device, scan the first positioning information sent by the positioning device around the current location of the terminal device or the first positioning information of the surrounding environment.
  • the location service of the user to open the terminal device may be: the user locates the user when opening the map software loaded on the terminal device; or the user locates the user during the indoor walking process when the map is opened indoors; Or, the positioning of the user's location during the navigation process, and the like.
  • the processor 320 is configured to group the first positioning information sent by the positioning module 310 in the same positioning mode into a group, and obtain first positioning information corresponding to each positioning mode.
  • the positioning mode is The positioning information is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the corresponding positioning mode, and the position corresponding to the positioning mode is determined; and, according to the position corresponding to each positioning mode, Indeed The position corresponding to the point to be located is determined.
  • the device 300 may further include a data output device 330, such as a display screen, for displaying the determined position of the point to be located.
  • a data output device 330 such as a display screen
  • the positioning method, the device and the terminal device provided by the embodiment of the present application can locate the positioning point (also referred to as multi-signal source positioning) by using at least two positioning modules of different positioning modes at the same point to be located.
  • the location of the corresponding positioning device in different positioning modes is different. Compared with the deployment of the positioning device in a single positioning mode, the positioning device with different positioning modes has a higher density for the same area.
  • the signal distribution characteristics and the signal propagation characteristics of the positioning devices corresponding to different positioning modes are different, so that they can complement each other, and there is little probability that there is no positioning information or a weak positioning information, so that in each position
  • the positioning information of the positioning device of the different positioning modes can be received, and the positioning information can be successfully located based on the positioning information, which overcomes the problem that the positioning information sent by the positioning device according to the single positioning mode in the prior art is located and the positioning fails.
  • each positioning mode Positioning the positioning point to obtain a corresponding position, and comprehensively obtaining the position of the point to be positioned according to the position corresponding to the multiple positioning modes, overcoming the problem that the positioning of the single positioning mode itself is unstable, resulting in inaccurate positioning, and thus is relatively simple
  • the position obtained by the positioning mode positioning is more accurate, and the application improves the positioning accuracy.
  • apparatus 300 may implement the functions of the respective units/modules in the apparatus 200 shown in FIG. 2, and may also complete the operations/method steps of the method 100 shown in FIG. The description is concise and will not be repeated here.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Abstract

The present application relates to a positioning method and device. The method comprises: acquiring, at a point to be positioned, first positioning information sent respectively by at least two positioning modules with different positioning modes; matching the first positioning information with second positioning information corresponding to positions pre-stored in a pre-stored positioning data fingerprint library to determine a position corresponding to the positioning mode; and then synthetically obtaining the position of the point to be positioned according to the positions corresponding to various positioning modes. By means of using at least two positioning modules with different positioning modes to position a point to be positioned, the problem existing in the prior art of low accuracy in positioning the point to be positioned only according to a single positioning mode is overcome.

Description

定位方法和装置Positioning method and device
本申请要求2016年02月02日递交的申请号为201610073267.2、发明名称为“定位方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及定位技术领域,尤其涉及一种定位方法和装置。The present application relates to the field of positioning technologies, and in particular, to a positioning method and apparatus.
背景技术Background technique
目前最为主流的室内定位技术主要包括三角定位和指纹定位,该两种定位技术均是单一定位模式(由于一种定位模式用于定位的信号源为一种,因此也将单一定位模式称为单一信号源定位),如,定位模式为wifi定位、蓝牙定位等。At present, the most mainstream indoor positioning technologies mainly include triangulation and fingerprint positioning. Both of the positioning technologies are single positioning modes (since one positioning mode is used for positioning, the single positioning mode is also called a single Signal source location), for example, the positioning mode is wifi positioning, Bluetooth positioning, and the like.
由于在实际应用中,每种定位模式对应一种定位信息,如定位模式为wifi定位则其对应的定位信息为wifi信号,即定位模式扫描wifi设备发送的wifi信号;如定位模式为蓝牙定位则其对应的定位信息为蓝牙信息,即定位模式扫描蓝牙设备发送的蓝牙信息。针对同一定位模式的定位设备,可能会由于其部署不均衡、考虑到成本较高而使得部署的定位设备数量不充足,或者定位设备自身的分布特点和信号传播特性等各种情况,均可能会导致该种定位模式的定位设备信号覆盖范围不全,存在无信号或信号较弱无法定位的区域,一旦待定位对象进入这些区域将会导致定位失败或定位不准确的技术问题。In the actual application, each positioning mode corresponds to a kind of positioning information. For example, if the positioning mode is wifi positioning, the corresponding positioning information is a wifi signal, that is, the positioning mode scans the wifi signal sent by the wifi device; if the positioning mode is Bluetooth positioning, The corresponding positioning information is Bluetooth information, that is, the positioning mode scans the Bluetooth information sent by the Bluetooth device. The positioning device for the same positioning mode may be insufficient due to uneven deployment, high cost, and insufficient positioning device, or the distribution characteristics and signal propagation characteristics of the positioning device. The coverage of the positioning device that causes the positioning mode is incomplete, and there is no signal or the signal is weak and cannot be located. Once the object to be located enters these areas, the positioning failure or the inaccurate positioning problem may result.
发明内容Summary of the invention
本申请实施例提供的一种定位方法和装置,提高定位成功率即及准确性。A positioning method and device provided by the embodiments of the present application improve the positioning success rate and accuracy.
为实现上述目的,本申请提供了一种定位的方法,该方法包括:To achieve the above object, the present application provides a method for positioning, the method comprising:
在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息;Acquiring first positioning information sent by the positioning module of at least two different positioning modes at the to-be-located point;
将各定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;Separating the first positioning information sent by each positioning module into a group, and obtaining first positioning information corresponding to each positioning mode;
针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出定位模式对应的位置;For each positioning mode, the first positioning information of the positioning mode is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the positioning mode is determined. position;
根据各定位模式对应的位置,确定出待定位点对应的位置。The position corresponding to the point to be located is determined according to the position corresponding to each positioning mode.
本申请实施例还提供一种定位装置,装置包括获取单元、分组单元、第一确定单元和第二确定单元,其中: The embodiment of the present application further provides a positioning apparatus, where the apparatus includes an acquiring unit, a grouping unit, a first determining unit, and a second determining unit, where:
所述获取单元,用于在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息;The acquiring unit is configured to acquire first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located;
所述分组单元,用于将各定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;The grouping unit is configured to group the first positioning information sent by each positioning module into a group, and obtain first positioning information corresponding to each positioning mode;
所述第一确定单元,用于针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置;The first determining unit is configured to: for each positioning mode, the first positioning information of the positioning mode and the second positioning information corresponding to each location stored in the positioning data fingerprint database of the preset corresponding positioning mode Performing a match to determine a location corresponding to the positioning mode;
所述第二确定单元,用于根据各定位模式对应的位置,确定出所述待定位点对应的位置。The second determining unit is configured to determine a location corresponding to the to-be-located point according to a location corresponding to each positioning mode.
一种终端设备,包括至少两个不同定位模式的定位模块以及处理器;A terminal device comprising at least two positioning modules of different positioning modes and a processor;
定位模块,用于在用户开启终端设备的定位服务时,扫描终端设备当前所在位置周边的定位设备发出的第一定位信息或周边环境的第一定位信息。The locating module is configured to: when the user starts the location service of the terminal device, scan the first positioning information sent by the positioning device around the current location of the terminal device or the first positioning information of the surrounding environment.
处理器,用于将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置;以及,根据各定位模式对应的位置,确定出所述终端设备当前所在位置。a processor, configured to group the first positioning information sent by the positioning module of the same positioning mode into a group, to obtain first positioning information corresponding to each positioning mode; and to locate the first positioning mode of the positioning mode for each positioning mode The information is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the position corresponding to the positioning mode is determined; and the position corresponding to each positioning mode is determined. The current location of the terminal device.
本申请实施例提供的定位方法和装置,在同一个待定位点,能够通过至少两个不同定位模式的定位模块对待定位点进行定位(也称为多信号源定位),一方面,由于不同定位模式的对应的定位设备部署的位置不同,相对于单一的定位模式的定位设备的部署情况而言,针对同一区域范围,不同定位模式的定位设备覆盖的密度较大,定位设备信号覆盖比较全,并且不同定位模式对应的定位设备的信号分布特点和信号传播特性不同,因此相互之间可以互补,而很少概率会存在无定位信息或定位信息较弱的区域,从而使得在各个位置均能够接收到不同定位模式的定位设备的定位信息,基于该定位信息能够进行成功定位,克服了现有技术中根据单一定位模式的定位设备发送的定位信息进行定位而存在定位失败的问题;另一方面,根据各个定位模式均可对待定位点进行定位得到相应位置,并根据该多个定位模式对应的位置综合得到待定位点的位置,克服单一定位模式其本身存在的定位不稳定从而导致定位不准确的问题,因此相对于单一定位模式定位得到的位置更准确,本申请提高定位准确性。 The positioning method and device provided by the embodiment of the present application can locate the positioning point (also referred to as multi-signal source positioning) through the positioning module of at least two different positioning modes at the same point to be located, on the one hand, different positioning The location of the corresponding positioning device in the mode is different. Compared with the deployment of the positioning device in a single positioning mode, the positioning device of different positioning modes covers a larger density for the same area, and the signal coverage of the positioning device is relatively complete. Moreover, the signal distribution characteristics and signal propagation characteristics of the positioning devices corresponding to different positioning modes are different, so that they can complement each other, and there is little probability that there is no positioning information or a weak positioning information, so that the positioning can be received at each position. The positioning information of the positioning device to the different positioning modes can be successfully located based on the positioning information, and overcomes the problem that the positioning information sent by the positioning device according to the single positioning mode in the prior art is located, and the positioning fails; Can be positioned according to each positioning mode Positioning is performed to obtain a corresponding position, and the position of the point to be positioned is comprehensively obtained according to the position corresponding to the plurality of positioning modes, thereby overcoming the problem that the positioning of the single positioning mode itself is unstable, resulting in inaccurate positioning, and thus positioning relative to the single positioning mode The obtained position is more accurate, and the application improves the positioning accuracy.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments of the present application will be briefly described below. Obviously, the drawings described below are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本申请实施例提供的一种定位方法的流程图;FIG. 1 is a flowchart of a positioning method according to an embodiment of the present application;
图2为本申请实施例提供的一种定位装置的结构示意图;2 is a schematic structural diagram of a positioning device according to an embodiment of the present application;
图3为本申请实施例提供的一种终端设备的结构示意图。FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
具体实施方式detailed description
本申请实施例提供的定位方法和装置,适用于电子地图定位,如室内定位、室外定位。The positioning method and device provided by the embodiments of the present application are applicable to electronic map positioning, such as indoor positioning and outdoor positioning.
本申请实施例中,对定位模式的第一定位信息进行定位可以采用三角定位技术,也可以采用指纹定位技术。In the embodiment of the present application, the positioning of the first positioning information in the positioning mode may be performed by using a triangulation technique or a fingerprint positioning technology.
指纹定位技术中的“指纹”是指定位设备(如接入点(Access Point,AP))发出的定位信号经过反射、折射等之后在某一位置上产生的多径特征信号即为该定位设备在该位置上的指纹信息。如假设定位设备为AP,则AP发射的无线电波经过反射、折射后,在某一位置产生与该位置相对应的多径特征信号,将该多径特征信号确认为AP在该位置的“指纹”,如AP为蓝牙设备、基站设备、wifi设备,则在该位置的“指纹”为信号强度值。The "fingerprint" in the fingerprint positioning technology is a multi-path characteristic signal generated by a positioning device (such as an access point (AP)) after a positioning signal is reflected, refracted, etc., and is generated at a certain position. Fingerprint information at that location. If the positioning device is an AP, the radio wave transmitted by the AP is reflected and refracted, and a multipath characteristic signal corresponding to the position is generated at a certain position, and the multipath characteristic signal is confirmed as the “fingerprint of the AP at the position. "If the AP is a Bluetooth device, a base station device, or a wifi device, the "fingerprint" at that location is the signal strength value.
指纹定位过程可以分为两个阶段:“离线训练”和“在线定位”。“离线训练”阶段为针对所有具有定位需求的场所,在该场所固定设置有多个定位设备,预先可由采集人员利用采集设备在场所的各个位置点采集周围各个定位模式的定位设备发射的定位信息,和/或采用采集设备扫描各位置点的环境定位信息;针对每种定位模式,建立各位置点以及该定位模式对应的各定位设备或环境定位信息在该位置点的定位信息的对应关系,以得到定位数据指纹库,即定位数据指纹库中存储有大量的位置点的位置及该位置对应的定位信息(本申请称为第二定位信息)。“在线/定位”是指在后续针对待定位对象,在该待定位对象所在的位置(即待定位点)接收各个定位模式的定位设备发送的定位信息或环境定位信息(本申请称为第一定位信息),并根据该定位信息或环境定位信 息与相应定位模式对应的定位数据指纹库中的指纹进行匹配,以得到待定位点的位置。The fingerprint location process can be divided into two phases: “offline training” and “online positioning”. The "offline training" phase is for all the locations with positioning requirements, and a plurality of positioning devices are fixedly disposed in the site, and the positioning information transmitted by the positioning devices of the surrounding positioning modes can be collected by the collecting personnel at various locations of the site by the collecting personnel in advance. And/or using the collecting device to scan the environment positioning information of each location point; for each positioning mode, establishing a correspondence relationship between each location point and the positioning information of the positioning device or the environment positioning information corresponding to the positioning mode at the location point, The location data fingerprint database is obtained, that is, the location where the location data fingerprint database stores a large number of location points and the location information corresponding to the location (referred to as second location information in this application). "Online/Positioning" refers to positioning information or environment positioning information that is sent by a positioning device that receives each positioning mode at a location where the object to be located is located (ie, a point to be located). Positioning information) and based on the positioning information or environmental location letter The information is matched with the fingerprint in the positioning data fingerprint database corresponding to the corresponding positioning mode to obtain the position of the point to be located.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
图1为本申请实施例提供的一种定位方法的流程图。如图1所示,该方法100的执行主体为具有定位功能的终端设备,如手机、pad、移动电脑等,在该终端设备中设置有至少两种定位模式的定位模块,该方法100包括以下步骤:FIG. 1 is a flowchart of a positioning method according to an embodiment of the present application. As shown in FIG. 1 , the execution body of the method 100 is a terminal device having a positioning function, such as a mobile phone, a pad, a mobile computer, etc., and a positioning module of at least two positioning modes is disposed in the terminal device, and the method 100 includes the following: step:
S110,在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息。S110: Acquire first positioning information sent by a positioning module of at least two different positioning modes at a point to be located.
在本申请实施例中,若定位模式对应的定位信息是固定于特定位置的定位设备发出,则该定位模式对应的定位模块在待定位点扫描定位设备发送的定位信息;若定位模式对应的定位信息是环境中存在的可用于定位的信息则由该定位模式对应的定位模块扫描环境中的定位信息。In the embodiment of the present application, if the positioning information corresponding to the positioning mode is sent by the positioning device fixed to the specific location, the positioning module corresponding to the positioning mode scans the positioning information sent by the positioning device at the point to be located; if the positioning mode corresponds to the positioning The information is information that is available for positioning in the environment, and the positioning module corresponding to the positioning mode scans the positioning information in the environment.
例如:定位模式可以包括wifi定位、蓝牙定位、基站定位、地磁定位、光定位、红外定位等,设置在终端设备中的相应定位模块为wifi接收器、蓝牙接收器、基站接收器、地磁感应器、光感应器和红外接收器;其中,wifi定位、蓝牙定位、基站定位、红外定位,则其对应的定位信息可以从wifi设备、蓝牙设备、基站设备和红外设备等定位设备发出,则wifi接收器、蓝牙接收器、基站接收器、地磁感应器、光感应器和红外接收器扫描wifi设备、蓝牙设备、基站设备和红外设备发送的定位信息。如定位模式为光定位和地磁定位,则光感应器和地磁感应器扫描待定位点的周边环境来得到相应的定位信息。For example, the positioning mode may include wifi positioning, Bluetooth positioning, base station positioning, geomagnetic positioning, optical positioning, infrared positioning, etc., and corresponding positioning modules disposed in the terminal device are a wifi receiver, a Bluetooth receiver, a base station receiver, and a geomagnetic sensor. , light sensor and infrared receiver; wherein, wifi positioning, Bluetooth positioning, base station positioning, infrared positioning, the corresponding positioning information can be sent from the wifi device, Bluetooth device, base station device and infrared device and other positioning devices, then wifi receiving The device, the Bluetooth receiver, the base station receiver, the geomagnetic sensor, the light sensor, and the infrared receiver scan the positioning information transmitted by the wifi device, the Bluetooth device, the base station device, and the infrared device. If the positioning mode is optical positioning and geomagnetic positioning, the light sensor and the geomagnetic sensor scan the surrounding environment of the point to be located to obtain corresponding positioning information.
在该步骤S110中,在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息,具体可包括:在待定位点按照预置的获取周期获取至少两个不同定位模式的定位模块发送的第一定位信息,其中获取周期高于或等于定位模块发送第一定位信息的发送周期,因此,前述步骤S110中,可以在待定位点获取至少两个不同定位模式的定位模块发送的至少一个第一定位信息。In the step S110, the acquiring the first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located may include: acquiring the positioning of the at least two different positioning modes according to the preset acquisition period. The first positioning information sent by the module, where the acquiring period is higher than or equal to the sending period in which the positioning module sends the first positioning information. Therefore, in the foregoing step S110, the positioning module that acquires at least two different positioning modes may be sent at the to-be-located point. At least one first positioning information.
例如,假设在终端设备设置有wifi接收器、蓝牙接收器和地磁感应器,则待定位点为A点,则在A点获取wifi接收器、蓝牙接收器和地磁感应器发送的第一定位信息分别为(T,maclist)、(T,blelist)和(T,maglist),其中:(T,maclist)表示在T时间段(即获取周期)内wifi接收器在A点扫描到的多个wifi设备发送的wifi信息(该wifi信息中包括wifi设备的MAC(Media Access Control,媒体访问控制)地址和wifi 信号强度值);(T,blelist)表示在T时间段内蓝牙接收器在A点扫描到的多个蓝牙设备发送的蓝牙信息(蓝牙信息包括蓝牙设备的MAC地址和蓝牙信号强度值);(T,maglist)表示在T时间段内地磁感应器在A点扫描到的多个地磁信息(该地磁信息中包括地磁强度值)。以wifi接收器在T时间段内扫描到的wifi信息为t1(ss11,ss12,……,ss1n);t2(ss21,ss22,……,ss2m);t3(ss31,ss32,……,ss3k),其中,t1,t2,和t3表示T时间段内的不同时间点;ss标识wifi信息的信号强度值。在本申请实施例中,蓝牙接收器和地磁感应器扫描得到的定位信息在形式上与wifi信息类似,为简洁描述,在这里不再赘述。For example, if the terminal device is provided with a wifi receiver, a Bluetooth receiver, and a geomagnetic sensor, the point to be located is point A, and the first positioning information sent by the wifi receiver, the Bluetooth receiver, and the geomagnetic sensor is acquired at point A. They are (T, maclist), (T, blelist), and (T, maglist), where: (T, maclist) represents multiple wifis scanned by the wifi receiver at point A during the T period (ie, the acquisition period). Wifi information sent by the device (the wifi information includes the MAC (Media Access Control) address of the wifi device and the wifi (T, blelist) indicates Bluetooth information sent by multiple Bluetooth devices scanned by the Bluetooth receiver at point A during the T time period (the Bluetooth information includes the Bluetooth device's MAC address and Bluetooth signal strength value); T, maglist) represents a plurality of geomagnetic information (the geomagnetic intensity value is included in the geomagnetism information) scanned by the geomagnetic sensor at point A during the T period. The wifi information scanned by the wifi receiver in the T time period is t1 (ss11, ss12, ..., ss1n); t2 (ss21, ss22, ..., ss2m); t3 (ss31, ss32, ..., ss3k) Where t1, t2, and t3 represent different time points within the T time period; ss identifies the signal strength value of the wifi information. In the embodiment of the present application, the positioning information obtained by scanning the Bluetooth receiver and the geomagnetic sensor is similar in form to the wifi information, and is not described here.
S120,将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息。S120. The first positioning information sent by the positioning module in the same positioning mode is grouped into one group, and the first positioning information corresponding to each positioning mode is obtained.
在实际应用中,由于在同一个获取周期内可能接收到定位模块发送的多个第一定位信息,从而导致第一定位信息存在数据冗余,根据包含冗余数据的第一定位信息进行定位会导致定位速度较慢。优选地,为解决该问题,在前述S120中,在将相同定位模式的定位模块发送的第一定位信息分为一组之后,对每一组第一定位信息进行排重,将排重后的该组定位信息确定为相应定位模式对应的第一定位信息,以完成对第一定位信息进行冗余处理。排重的方式可如下:根据第一定位信息中包含的定位设备ID号,将ID号相同的n个(其中n为大于等于1的正整数)第一定位信息确认为同一个定位设备发送的定位信息,则从n个第一定位信息中选取其中一个第一定位信息保留,将其余n-1个第一定位信息剔除;或者,根据第一定位信息中包含的定位设备的ID号,将ID号相同的n个第一定位信息确认为同一个定位设备发送的定位信息,则根据该n个第一定位信息进行综合计算得到一个第一定位信息,将该第一定位信息替换所述n个第一定位信息,例如,以第一定位信息为信号强度为例,将该该n个第一定位信息的信号强度的平均值确定为综合计算得到的第一定位信息。例如,假设定位模式为wifi定位,一个获取周期内获取到wifi定位模块发送的多个发送周期的wifi信号,其中有多个wifi信号是从同一定位设备扫描得到,则计算该多个wifi信号的信号强度得到一个wifi信号强度,则将该wifi信号强度保留,并删除前述多个wifi信号。In the actual application, since the first positioning information sent by the positioning module may be received in the same acquisition period, the first positioning information has data redundancy, and the positioning is performed according to the first positioning information including the redundant data. Resulting in slower positioning. Preferably, in order to solve the problem, in the foregoing S120, after the first positioning information sent by the positioning module of the same positioning mode is divided into a group, each group of the first positioning information is weighted, and the weighted after the weighting is performed. The group positioning information is determined as the first positioning information corresponding to the corresponding positioning mode, so as to complete the redundancy processing on the first positioning information. The method of the weighting may be as follows: according to the positioning device ID number included in the first positioning information, the first positioning information of the same number of n (where n is a positive integer greater than or equal to 1) is confirmed as being sent by the same positioning device. For positioning information, one of the n first positioning information is selected to be retained, and the remaining n-1 first positioning information are removed; or, according to the ID number of the positioning device included in the first positioning information, If the first pieces of the first positioning information are the same as the positioning information sent by the same positioning device, the first positioning information is calculated according to the n first positioning information, and the first positioning information is replaced by the first positioning information. For example, the first positioning information is used as the signal strength, and the average value of the signal strengths of the n first positioning information is determined as the first calculated positioning information. For example, if the positioning mode is wifi positioning, and a wifi signal of multiple transmission periods sent by the wifi positioning module is acquired in one acquisition period, wherein multiple wifi signals are scanned from the same positioning device, the multiple wifi signals are calculated. If the signal strength yields a wifi signal strength, the wifi signal strength is retained and the aforementioned plurality of wifi signals are deleted.
S130,针对每一种定位模式,将定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出定位模式对应的位置。S130. For each positioning mode, the first positioning information of the positioning mode is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the positioning mode is determined. position.
可选地,在本申请实施例中,前述S130,具体实现可如下: Optionally, in the foregoing application, in the foregoing S130, the specific implementation may be as follows:
针对每一种定位模式,分别计算定位模式的第一定位信息的特征信息与定位数据指纹库中的各位置对应的第二定位信息的相应特征信息的相似度;将相似度较大的至少一个第二定位信息对应的位置,确定为定位模式对应的位置。例如,按照相似度从高到低的顺序,依次选取n个第二定位信息对应的位置确定为定位模式对应的位置。特征信息是指能够用于定位的信息,如第一定位信息为wifi信息、蓝牙信息、地磁信息等,其对应的特征信息为信号强度值;第一定位信息为红外等,其对应的特征信息为信息接收时间。For each of the positioning modes, respectively calculating the similarity between the feature information of the first positioning information of the positioning mode and the corresponding feature information of the second positioning information corresponding to each position in the positioning data fingerprint database; at least one of the similarities is greater The position corresponding to the second positioning information is determined as the position corresponding to the positioning mode. For example, in the order of similarity from high to low, the positions corresponding to the n pieces of second positioning information are sequentially determined to be the positions corresponding to the positioning mode. The feature information refers to information that can be used for positioning. For example, the first positioning information is wifi information, Bluetooth information, geomagnetic information, etc., and the corresponding feature information is a signal strength value; the first positioning information is infrared, and the corresponding feature information. Receive time for information.
可选地,在本申请实施例中,前述S130,具体实现可如下:Optionally, in the foregoing application, in the foregoing S130, the specific implementation may be as follows:
针对定位数据指纹库中每个位置,按照公式1.1计算定位模式的第一定位信息的特征信息与位置对应的第二定位信息相应特征信息的相似度:For each location in the location data fingerprint database, the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to formula 1.1:
Figure PCTCN2017071818-appb-000001
Figure PCTCN2017071818-appb-000001
其中,Score表示相似度;n表示第一定位信息和第二定位信息中包含的定位信息个数的最大值,ssi为所述第一定位信息中的第i个定位信息的特征信息,ffi为所述第二定位信息的第i个定位信息的特征信息。Wherein, Score represents a similarity; n represents a maximum value of the number of positioning information included in the first positioning information and the second positioning information, and ssi is characteristic information of the i-th positioning information in the first positioning information, and ffi is Feature information of the i-th positioning information of the second positioning information.
例如,假设定位模式为wifi定位,定位模式对应的定位模块为wifi定位模块,在待定位点P从wifi定位模块接收到的第一定位信息为{ss1,ss2,……,ssn};定位数据指纹库中存储的位置及其第二定位信息如下:P1(ff11,ff21,……,ff1m),P2(ff21,ff22,……,ff2n),P3(ff31,ff32,……,ff3k),…Pi(ffi1,ffi2,……,ffij)。首先,针对定位数据指纹库中的每一个位置,按照前述公式1.1计算待定位点P的第一定位信息与该位置的第二定位信息的相似度,依此得到P的第一定位信息分别与P1、P2、P3、…Pi、…的第二定位信息的相似度依次为x1、x2、x3、…xi、…;其次,将x1、x2、x3、…xi、…按照从大到小的顺序进行排序;最后将排序后的前n个(n的取值可以为1,也可以是为大于1的正整数,可根据实际需要灵活设置)相似度对应的第二定位信息的位置确定为待定位点P的位置。按照公式1.1计算每一个位置对应的第二定位信息与待定位点P的第一定位信息的相似度,可以P1为例进行说明,具体如下:For example, if the positioning mode is wifi positioning, the positioning module corresponding to the positioning mode is a wifi positioning module, and the first positioning information received from the wifi positioning module at the point P to be located is {ss1, ss2, ..., ssn}; positioning data The location stored in the fingerprint library and its second positioning information are as follows: P1 (ff11, ff21, ..., ff1m), P2 (ff21, ff22, ..., ff2n), P3 (ff31, ff32, ..., ff3k), ...Pi(ffi1,ffi2,...,ffij). First, for each location in the location data fingerprint database, the similarity between the first location information of the location to be located P and the second location information of the location is calculated according to the foregoing formula 1.1, and the first location information of the P is obtained respectively. The similarity of the second positioning information of P1, P2, P3, ... Pi, ... is in order x1, x2, x3, ... xi, ...; secondly, x1, x2, x3, ... xi, ... are in accordance with the largest to smallest Sorting sequentially; finally, the first n after sorting (n may have a value of 1, or may be a positive integer greater than 1, and may be flexibly set according to actual needs). The position of the second positioning information corresponding to the similarity is determined as The position of the point P to be positioned. The similarity between the second positioning information corresponding to each position and the first positioning information of the point P to be located is calculated according to the formula 1.1, and P1 can be used as an example for description, as follows:
步骤A1,取P1对应的第二定位信息与P的第一定位信息中包含的定位信息的数量的最大值,即取L=max(m,n),若m=n,则执行步骤A4,若m>n,则执行步骤A2,若m<n则执行步骤A3; Step A1, taking the maximum value of the number of positioning information included in the second positioning information corresponding to P1 and the first positioning information of P, that is, taking L=max(m, n), and if m=n, performing step A4, If m>n, step A2 is performed, and if m<n, step A3 is performed;
步骤A2,则将P对应的第一定位信息补足到m个数据,即在第一定位信息中增加(m-n)个预置的定位信息,如可以增加(m-n)个预置的定位信息,如{ss1,ss2,…,ssn,ss0,ss0,…,ss0};并执行步骤A4;In step A2, the first positioning information corresponding to the P is added to the m data, that is, (mn) preset positioning information is added to the first positioning information, for example, (mn) preset positioning information may be added, such as {ss1, ss2, ..., ssn, ss0, ss0, ..., ss0}; and perform step A4;
步骤A3,则将P1对应的第二定位信息补足到n个数据,即在第二定位信息中增加(n-m)个定位信息,如可以增加(n-m)个预置的定位信息,如{ff11,ff12,…,ff1m,ff0,ff0,…,ff0};并执行步骤A4;In step A3, the second positioning information corresponding to P1 is complemented to n data, that is, (nm) positioning information is added to the second positioning information, for example, (nm) preset positioning information may be added, such as {ff11, Ff12,...,ff1m,ff0,ff0,...,ff0}; and perform step A4;
步骤A4,按照前述公式1.1,计算P的第一定位信息与P1的第二定位信息的相似度为x1。In step A4, according to the foregoing formula 1.1, the similarity between the first positioning information of P and the second positioning information of P1 is calculated as x1.
前述ss0与ff0为预置的特征信息,取值为经验值,两者可以相同也可以不相同。The foregoing ss0 and ff0 are preset feature information, and the value is an empirical value, and the two may be the same or different.
例如定位模式为wifi定位,在待定位点P获取wifi定位模块发送的第一定位信息为P{ss1,ss2,ss3,ss4,ss5};假设与wifi定位模式对应的定位数据指纹库为wifi指纹库,该wifi指纹库中包括P1{ff11,ff12,ff13,ff14,ff15};P2{ff21,ff22,ff23,ff24};P3{ff31,ff32,ff33,ff34,ff35,ff36}。经过前述步骤可知,P的第一定位信息个数与P1的第二定位信息个数相同,可以直接根据公式1.1计算P第一定位信息与P1的第二定位信息的相似度为x1;P的第一定位信息个数大于P2的第二定位信息个数,则将P2第二定位信息处理为P2{ff21,ff22,ff23,ff24,ff0},再根据前述公式1.1计算P第一定位信息与P2的第二定位信息的相似度为x2;P的第一定位信息个数小于P3的第二定位信息个数,则将P的第一定位信息处理为P{ss1,ss2,ss3,ss4,ss5,ss0},再根据公式1.1计算P第一定位信息与P3的第二定位信息的相似度为x3。其他定位模式的处理方式与前述wifi定位模式原理类似,在此不再一一赘述。For example, the positioning mode is wifi positioning, and the first positioning information sent by the wifi positioning module is P{ss1, ss2, ss3, ss4, ss5} at the point P to be located; the positioning data fingerprint database corresponding to the wifi positioning mode is wifi fingerprint. Library, the wifi fingerprint library includes P1{ff11, ff12, ff13, ff14, ff15}; P2{ff21, ff22, ff23, ff24}; P3{ff31, ff32, ff33, ff34, ff35, ff36}. After the foregoing steps, the number of the first positioning information of the P is the same as the number of the second positioning information of the P1, and the similarity between the P first positioning information and the second positioning information of the P1 can be directly calculated according to the formula 1.1 to be x1; If the number of the first positioning information is greater than the number of the second positioning information of the P2, the P2 second positioning information is processed into P2{ff21, ff22, ff23, ff24, ff0}, and then the P first positioning information is calculated according to the foregoing formula 1.1. The similarity of the second positioning information of the P2 is x2; if the number of the first positioning information of the P is smaller than the number of the second positioning information of the P3, the first positioning information of the P is processed as P{ss1, ss2, ss3, ss4, Ss5, ss0}, and then according to formula 1.1, the similarity between the P first positioning information and the second positioning information of P3 is x3. The processing modes of other positioning modes are similar to those of the foregoing wifi positioning mode, and will not be further described herein.
S140,根据各定位模式对应的位置,确定出待定位点对应的位置。S140. Determine a position corresponding to the point to be located according to the position corresponding to each positioning mode.
优选地,在本申请实施例中,S140中根据各定位模式对应的位置确定出待定位点对应的位置,具体实现可如下:步骤A,根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重;步骤B,根据各定位模式的位置及其权重,综合确定出待定位点对应的位置。Preferably, in the embodiment of the present application, the location corresponding to the location to be located is determined according to the location of each location mode in S140, and the specific implementation may be as follows: Step A, according to the second location information corresponding to the location of each location mode and corresponding The similarity of the first positioning information of the positioning mode determines the weight of each positioning mode; in step B, the position corresponding to the positioning point is comprehensively determined according to the position of each positioning mode and its weight.
可选地,在本申请实施例中,步骤A中,根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重,具体可采用至少以下两种方式实现:Optionally, in the embodiment of the present application, in step A, determining the weight of each positioning mode according to the similarity between the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode, It can be implemented in at least two ways:
方式11:计算所有定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度的和值,作为第一和值;针对每一种定位模式,计算定位模式对应的位置 的第二定位信息与该定位模式的第一定位信息的相似度的和值,将该和值与第一和值的比值,确定为定位模式的权重。即定位模式对应位置的第二定位信息与待定位点的第一定位信息的相似度越高,则认为该定位模式定位出的位置更为准确,可信度越高,因此该定位模式对应的权重越大。Manner 11: calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode as the first sum value; for each positioning mode, calculating the position corresponding to the positioning mode The sum of the similarity between the second positioning information and the first positioning information of the positioning mode, and the ratio of the sum value to the first sum value is determined as the weight of the positioning mode. That is, the higher the similarity between the second positioning information of the corresponding position of the positioning mode and the first positioning information of the point to be located, the position of the positioning mode is considered to be more accurate, and the reliability is higher, so the positioning mode corresponds to The greater the weight.
例如:假设定位模式包括wifi定位、蓝牙定位和地磁定位,wifi定位对应的位置及其相似度(即该位置的第二定位信息与待定位点第一定位信息的相似度)依次为(P1,S1),(P2,S2),(P3,S3),其中P表示位置,S表示相似度;蓝牙定位对应的位置及相似度依次为(P4,S4),(P5,S5),(P6,S6);地磁定位对应的位置及其相似度为(P7,S7),(P8,S8),(P9,S9)。按照前述方式,可以得到wifi定位对应的权重a=(S1+S2+S3)/(S1+S2+S3+S4+S5+S6+S7+S8+S9);蓝牙定位对应的权重b=(S4+S5+S6)/(S1+S2+S3+S4+S5+S6+S7+S8+S9);地磁定位的权重c=(S7+S8+S9)/(S1+S2+S3+S4+S5+S6+S7+S8+S9)。如,S1至S9依次增大,则权重c>b>a。For example, it is assumed that the positioning mode includes wifi positioning, Bluetooth positioning, and geomagnetic positioning, and the position corresponding to the wifi positioning and its similarity (that is, the similarity between the second positioning information of the position and the first positioning information of the to-be-located point) is (P1, S1), (P2, S2), (P3, S3), where P represents position and S represents similarity; the position and similarity corresponding to Bluetooth positioning are (P4, S4), (P5, S5), (P6, S6); the position corresponding to the geomagnetic positioning and its similarity are (P7, S7), (P8, S8), (P9, S9). According to the foregoing manner, the weight corresponding to the wifi positioning a=(S1+S2+S3)/(S1+S2+S3+S4+S5+S6+S7+S8+S9); the weight corresponding to the Bluetooth positioning b=(S4) +S5+S6)/(S1+S2+S3+S4+S5+S6+S7+S8+S9); the weight of geomagnetic positioning c=(S7+S8+S9)/(S1+S2+S3+S4+S5 +S6+S7+S8+S9). For example, if S1 to S9 are sequentially increased, the weight c>b>a.
方式12:针对每一种定位模式,计算该定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度平均值;从预置的相似度与权重的对应关系中,获取与所述定位模式对应的相似度平均值对应的权重(如将对应关系中与所述相似度平均值作为接近的相似度对应的权重确定为该相似度平均值对应的权重),将该权重确定为所述定位模式的权重。所述相似度与权重的对应关系中,相似度越大,权重越大。Manner 12: calculating, for each positioning mode, a similarity average of the second positioning information of the position corresponding to the positioning mode and the first positioning information of the corresponding positioning mode; and the correspondence between the preset similarity and the weight, Obtaining a weight corresponding to the similarity average value corresponding to the positioning mode (if the weight corresponding to the similarity of the similarity average value in the correspondence relationship is determined as the weight corresponding to the similarity average value), The weight is determined as the weight of the positioning mode. In the correspondence between the similarity and the weight, the greater the similarity, the larger the weight.
可选地,在本申请实施例中,步骤B中根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置,可根据至少以下两种方式实现:Optionally, in the embodiment of the present application, in step B, the location corresponding to the to-be-located point is determined according to the location of each positioning mode and its weight, which may be implemented according to at least the following two modes:
方式21、针对每一种定位模式,计算定位模式对应的位置的经度平均值以及纬度平均值,并计算经度平均值和纬度平均值分别与定位模式的权重的乘积,得到定位模式的经度加权平均值和纬度加权平均值;将各定位模式对应的经度加权平均值的和值确定为待定位点对应位置的经度,以及,将各定位模式对应的纬度加权平均值的和值确定为待定位点对应位置的纬度。Method 21: Calculate the longitude average and the latitude average of the position corresponding to the positioning mode for each positioning mode, and calculate the product of the longitude average and the latitude average respectively and the weight of the positioning mode, to obtain the longitude weighted average of the positioning mode. And a weighted average of the latitude; determining a sum of the longitude-weighted average values corresponding to the respective positioning modes as the longitude of the corresponding position of the to-be-positioned point, and determining a sum of the latitude-weighted average values corresponding to the respective positioning modes as the to-be-positioned point The latitude of the corresponding position.
例如,以前述实例进行说明。假设待定位点对应的位置的经纬度坐标用(x,y)表示;wifi定位对应的位置为P1、P2和P3对应的经纬度坐标分别为(x1,y1)、(x2,y2)和(x3,y3);蓝牙定位对应的位置为P4、P5和P6对应的经纬度坐标分别为(x4,y4)、(x5,y5)和(x6,y6);地磁定位对应的位置为P7、P8和P9对应的经纬度坐标为(x7,y7)、(x8,y8)和(x9,y9);wifi定位、蓝牙定位和地磁定位分别对应的权重为前述a、b、c。计算待定位点的位置的经纬度坐标如下: For example, the foregoing examples are described. It is assumed that the latitude and longitude coordinates of the position corresponding to the point to be located are represented by (x, y); the corresponding latitude and longitude coordinates of the positions corresponding to wifi positioning are P1, P2, and P3 are (x1, y1), (x2, y2), and (x3, respectively). Y3); the position corresponding to Bluetooth positioning is P4, P5 and P6, and the latitude and longitude coordinates are (x4, y4), (x5, y5) and (x6, y6) respectively; the corresponding positions of geomagnetic positioning are P7, P8 and P9. The latitude and longitude coordinates are (x7, y7), (x8, y8) and (x9, y9); the weights corresponding to wifi positioning, Bluetooth positioning and geomagnetic positioning are respectively a, b, c. Calculate the latitude and longitude coordinates of the position of the point to be located as follows:
步骤B1、针对每一种定位模式,计算定位模式对应的位置的经度平均值以及纬度平均值,即:Step B1: Calculate the longitude average and the latitude average of the position corresponding to the positioning mode for each positioning mode, that is,
Figure PCTCN2017071818-appb-000002
Figure PCTCN2017071818-appb-000002
Figure PCTCN2017071818-appb-000003
Figure PCTCN2017071818-appb-000003
Figure PCTCN2017071818-appb-000004
Figure PCTCN2017071818-appb-000004
Figure PCTCN2017071818-appb-000005
Figure PCTCN2017071818-appb-000005
Figure PCTCN2017071818-appb-000006
Figure PCTCN2017071818-appb-000006
Figure PCTCN2017071818-appb-000007
Figure PCTCN2017071818-appb-000007
步骤B2、计算各定位模式的经度平均值和纬度平均值分别与定位模式的权重的乘积,得到定位模式的经度加权平均值和纬度加权平均值,即:Step B2: Calculating a product of a longitude average and a latitude average of each positioning mode and a weight of the positioning mode, respectively, to obtain a longitude weighted average and a latitude weighted average of the positioning mode, namely:
Figure PCTCN2017071818-appb-000008
Figure PCTCN2017071818-appb-000008
Figure PCTCN2017071818-appb-000009
Figure PCTCN2017071818-appb-000009
Figure PCTCN2017071818-appb-000010
Figure PCTCN2017071818-appb-000010
Figure PCTCN2017071818-appb-000011
Figure PCTCN2017071818-appb-000011
Figure PCTCN2017071818-appb-000012
Figure PCTCN2017071818-appb-000012
Figure PCTCN2017071818-appb-000013
Figure PCTCN2017071818-appb-000013
步骤B3、将各定位模式对应的纬度加权平均值的和值确定为待定位点对应位置的纬度,即Step B3: determining a sum of the latitude weighted average values corresponding to the positioning modes as the latitude of the corresponding position of the to-be-located point, that is,
Figure PCTCN2017071818-appb-000014
Figure PCTCN2017071818-appb-000014
Figure PCTCN2017071818-appb-000015
Figure PCTCN2017071818-appb-000015
也就是说待定位点的经纬度坐标为:That is to say, the latitude and longitude coordinates of the point to be located are:
Figure PCTCN2017071818-appb-000016
Figure PCTCN2017071818-appb-000016
Figure PCTCN2017071818-appb-000017
Figure PCTCN2017071818-appb-000017
方式22、针对每一种定位模式,计算定位模式对应的位置的经度平均值以及纬度平均值;将各定位模式对应的经度平均值的平均值确定为待定位点对应位置的经度,以及将各定位模式对应的纬度平均值的平均值确定为待定位点对应位置的纬度。The method 22 calculates a longitude average and a latitude average of the position corresponding to the positioning mode for each positioning mode, and determines an average value of the longitude averages corresponding to each positioning mode as the longitude of the corresponding position of the to-be-positioned point, and The average value of the latitude average corresponding to the positioning mode is determined as the latitude of the position corresponding to the point to be positioned.
仍然以前述例子为例。假设待定位点对应的位置的经纬度坐标用(x,y)表示;wifi定位对应的位置为P1、P2和P3对应的经纬度坐标分别为(x1,y1)、(x2,y2)和(x3,y3); 蓝牙定位对应的位置为P4、P5和P6对应的经纬度坐标分别为(x4,y4)、(x5,y5)和(x6,y6);地磁定位对应的位置为P7、P8和P9对应的经纬度坐标为(x7,y7)、(x8,y8)和(x9,y9):The above example is still taken as an example. It is assumed that the latitude and longitude coordinates of the position corresponding to the point to be located are represented by (x, y); the corresponding latitude and longitude coordinates of the positions corresponding to wifi positioning are P1, P2, and P3 are (x1, y1), (x2, y2), and (x3, respectively). Y3); The corresponding latitude and longitude coordinates of the positions corresponding to Bluetooth positioning are P4, P5, and P6 are (x4, y4), (x5, y5), and (x6, y6); the corresponding positions of geomagnetic positioning are the latitude and longitude coordinates corresponding to P7, P8, and P9. For (x7, y7), (x8, y8) and (x9, y9):
Figure PCTCN2017071818-appb-000018
Figure PCTCN2017071818-appb-000018
Figure PCTCN2017071818-appb-000019
Figure PCTCN2017071818-appb-000019
前述方式2相对于方式1而言,不需要考虑各个定位模式的权重,直接根据各定位模式对应位置的经纬度坐标的平均值来得到,实现较为简单。而方式1与方式2相比,根据定位模式对应位置及该位置的第二定位信息与第一定位信息之间的相似度来确定出该定位模式的权重,如相似度越高对应的权重越高,则按照前述方式2计算出的待定位点的位置更接近于该权重大的定位模式对应的位置,由于相似度越高则确定出与该定位模式对应的位置更准确,因此权重越大的定位模式其对应的位置可信度越高,因此将待定位点的位置偏向于该定位模式对应的位置也更准确,因此,与方式2相比,方式1确定出待定位点的位置更准确。In the foregoing aspect 2, it is not necessary to consider the weight of each positioning mode with respect to the mode 1, and it is directly obtained from the average value of the latitude and longitude coordinates of the corresponding position of each positioning mode, and the implementation is relatively simple. The mode 1 is compared with the mode 2, and the weight of the positioning mode is determined according to the similarity between the corresponding position of the positioning mode and the second positioning information of the position and the first positioning information. For example, the higher the similarity, the higher the weight corresponding to the positioning mode. If the height is higher, the position of the point to be located calculated according to the foregoing manner 2 is closer to the position corresponding to the positioning mode with the weight. The higher the degree of similarity, the more accurate the position corresponding to the positioning mode is determined, so the weight is larger. The positioning mode has a higher position reliability, so that the position of the point to be positioned is more accurate to the position corresponding to the positioning mode. Therefore, compared with the mode 2, the mode 1 determines that the position of the point to be positioned is more accurate.
前述实施例中仅以定位模式为wifi定位、蓝牙定位和地磁定位为例,本申请并不仅限于前述三种定位模式,还可以包括其他的定位模式,如光定位、红外定位、基站定位等。即本申请技术方案的定位模式可以包括以下至少两种以上的定位模式:wifi定位、蓝牙定位、地磁定位、光定位、红外定位和基站定位等。在本申请实施例中对此并不作严格限制。In the foregoing embodiment, only the positioning mode is wifi positioning, Bluetooth positioning, and geomagnetic positioning. The present application is not limited to the foregoing three positioning modes, and may also include other positioning modes, such as optical positioning, infrared positioning, base station positioning, and the like. That is, the positioning mode of the technical solution of the present application may include at least two or more positioning modes: wifi positioning, Bluetooth positioning, geomagnetic positioning, optical positioning, infrared positioning, and base station positioning. This is not strictly limited in the embodiment of the present application.
图2为本申请实施例提供的一种定位装置的结构示意图。如图2所示,该装置200可以用于实现图1所示的方法,该装置200包括获取单元210、分组单元220、第一确定单元230和第二确定单元240,其中,所述装置设置与具有定位功能的终端设备上,在该终端设备中设置有至少两个不同定位模式的定位模块,其中;FIG. 2 is a schematic structural diagram of a positioning device according to an embodiment of the present application. As shown in FIG. 2, the apparatus 200 can be used to implement the method shown in FIG. 1. The apparatus 200 includes an obtaining unit 210, a grouping unit 220, a first determining unit 230, and a second determining unit 240, wherein the apparatus setting And a positioning device having a positioning function, wherein at least two positioning modules of different positioning modes are disposed in the terminal device, wherein
获取单元210,用于在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息。The acquiring unit 210 is configured to acquire first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located.
分组单元220,用于将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息。The grouping unit 220 is configured to group the first positioning information sent by the positioning module of the same positioning mode into a group, and obtain first positioning information corresponding to each positioning mode.
分组单元220具体用于,将相同定位模式的定位模块发送的第一定位信息分为一组,并对每一组第一定位信息进行排重,将排重后的该组定位信息确定为相应定位模式对应的第一定位信息。排重方式可参见前述内容,在此不再赘述。The grouping unit 220 is specifically configured to divide the first positioning information sent by the positioning module in the same positioning mode into a group, and perform weighting on each group of first positioning information, and determine the grouped positioning information after the weighting is corresponding. The first positioning information corresponding to the positioning mode. For the weight removal method, refer to the foregoing content, and details are not described herein again.
第一确定单元230,用于针对每一种定位模式,将定位模式的第一定位信息分别与 预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出定位模式对应的位置。The first determining unit 230 is configured to separately use the first positioning information of the positioning mode for each positioning mode The second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode is matched, and the position corresponding to the positioning mode is determined.
第二确定单元240,用于根据各定位模式对应的位置,确定出待定位点对应的位置。The second determining unit 240 is configured to determine a location corresponding to the point to be located according to the location corresponding to each positioning mode.
可选地,在本申请实施例中,第二确定单元240具体包括:Optionally, in the embodiment of the present application, the second determining unit 240 specifically includes:
相似度计算子单元,用于针对每一种定位模式,分别计算所述定位模式的第一定位信息的特征信息与所述定位数据指纹库中的各位置对应的第二定位信息的相应特征信息的相似度;a similarity calculation sub-unit, configured to calculate, for each of the positioning modes, feature information of the first positioning information of the positioning mode and corresponding feature information of the second positioning information corresponding to each position in the positioning data fingerprint database Similarity
位置确定子单元,用于将相似度较大的至少一个第二定位信息对应的位置,确定为所述定位模式对应的位置。And a position determining subunit, configured to determine a position corresponding to the at least one second positioning information with a large similarity as a position corresponding to the positioning mode.
可选地,在本申请实施例中,相似度计算子单元具体用于,Optionally, in the embodiment of the present application, the similarity calculation subunit is specifically configured to:
针对定位数据指纹库中每个位置,按照以下公式计算定位模式的第一定位信息的特征信息与位置对应的第二定位信息相应特征信息的相似度:For each location in the location data fingerprint database, the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to the following formula:
Figure PCTCN2017071818-appb-000020
Figure PCTCN2017071818-appb-000020
其中,Score表示相似度;n表示第一定位信息和第二定位信息中包含的定位信息个数的最大值,ssi为第一定位信息中的第i个定位信息的特征信息,ffi为第二定位信息的第i个定位信息的特征信息。Wherein, Score represents the similarity; n represents the maximum value of the number of positioning information included in the first positioning information and the second positioning information, and ssi is the characteristic information of the i-th positioning information in the first positioning information, and ffi is the second Feature information of the i-th positioning information of the positioning information.
可选地,在本申请实施例中,位置确定子单元具体用于:根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重;以及,根据各定位模式的位置及其权重,综合确定出待定位点对应的位置。Optionally, in the embodiment of the present application, the location determining sub-unit is specifically configured to: determine, according to the similarity between the second positioning information of the location corresponding to each positioning mode and the first positioning information of the corresponding positioning mode, each positioning is determined. The weight of the mode; and, according to the position of each positioning mode and its weight, comprehensively determine the position corresponding to the point to be located.
可选地,在本申请实施例中,位置确定子单元根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重,具体用于:计算所有定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度的和值,作为第一和值;针对每一种定位模式,计算定位模式对应的位置的第二定位信息与该定位模式的第一定位信息的相似度的和值,将该和值与第一和值的比值,确定为定位模式的权重。Optionally, in the embodiment of the present application, the location determining sub-unit determines the weight of each positioning mode according to the similarity between the second positioning information of the location corresponding to each positioning mode and the first positioning information of the corresponding positioning mode. Specifically, the method is: calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode, as the first sum value; for each positioning mode, calculating the positioning mode corresponding to And a sum of the similarity between the second location information of the location and the first location information of the location mode, and the ratio of the sum value to the first sum value is determined as the weight of the location mode.
可选地,在本申请实施例中,所述位置确定子单元根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置,具体用于:针对每一种定位模式,计算定位模式对应的位置的经度平均值以及纬度平均值,并计算经度平均值和纬度平均值分别与定位 模式的权重的乘积,得到定位模式的经度加权平均值和纬度加权平均值;将各定位模式对应的经度加权平均值的和值确定为待定位点对应位置的经度,以及,将各定位模式对应的纬度加权平均值的和值确定为待定位点对应位置的纬度。Optionally, in the embodiment of the present application, the location determining sub-unit comprehensively determines the location corresponding to the to-be-located point according to the location of each positioning mode and its weight, and is specifically used to: for each positioning mode, Calculate the average of the longitude and the average of the latitude of the position corresponding to the positioning mode, and calculate the average of the longitude and the average of the latitude and the positioning respectively The product of the weights of the modes obtains the longitude-weighted average value and the latitude weighted average value of the positioning mode; the sum of the longitude weighted average values corresponding to the respective positioning modes is determined as the longitude of the corresponding position of the to-be-positioned point, and each positioning mode is correspondingly The sum of the latitude weighted average values is determined as the latitude of the position corresponding to the point to be located.
本申请实施例提供的装置,通过至少两个定位模块对待定位点进行定位,根据每种信号源的特性选择不同的权重,最终确定待定位点的位置,提高了对待定位点的定位以及对待定位点定位的精度,同时,避免了现有技术中单一信号造成的无法定位或者对待定位点定位不准确的问题。The device provided by the embodiment of the present application locates the positioning point by using at least two positioning modules, selects different weights according to the characteristics of each signal source, finally determines the position of the to-be-positioned point, improves the positioning of the positioning point, and needs to be positioned. The accuracy of the point positioning avoids the problem that the single signal caused by the prior art cannot be located or the positioning of the positioning point is inaccurate.
可选地,作为本申请另一实施例,第二确定单元240具体用于:针对每一种定位模式,计算定位模式对应的位置的经度平均值以及纬度平均值;将各定位模式对应的经度平均值的平均值确定为待定位点对应位置的经度,以及,将各定位模式对应的纬度平均值的平均值确定为待定位点对应位置的纬度。Optionally, as another embodiment of the present application, the second determining unit 240 is specifically configured to: calculate, for each positioning mode, a longitude average and a latitude average of positions corresponding to the positioning mode; and a longitude corresponding to each positioning mode The average value of the average values is determined as the longitude of the corresponding position of the point to be located, and the average value of the average value of the latitudes corresponding to each of the positioning modes is determined as the latitude of the position corresponding to the point to be positioned.
本申请实施例提供的装置,通过至少两个不同定位模式的定位模块对待定位点进行定位,根据每种信号源的特性选择不同的权重,最终确定待定位点对应的位置,提高了对待定位点的定位以及对待定位点定位的精度,同时,避免了现有技术中单一信号造成的无法定位或者对待定位点定位不准确的问题。The device provided by the embodiment of the present application locates the positioning point by using the positioning module of at least two different positioning modes, selects different weights according to the characteristics of each signal source, and finally determines the position corresponding to the positioning point, thereby improving the positioning point to be positioned. The positioning and the accuracy of positioning the positioning point, at the same time, avoid the problem that the single signal caused by the prior art cannot be located or the positioning of the positioning point is inaccurate.
需要说明的是,在本申请实施例中,该装置200中的获取单元210可以实现图1所示的方法100中的S110,分组单元220可以实现S120,第一确定单元230可以实现S130,第二确定单元240可以实现S140,为简洁描述,装置200中各个单元的具体实现与其实现相应的方法步骤的实现方式一致,在此不再赘述。It should be noted that, in the embodiment of the present application, the obtaining unit 210 in the apparatus 200 may implement S110 in the method 100 shown in FIG. 1, the grouping unit 220 may implement S120, and the first determining unit 230 may implement S130. The second determining unit 240 can implement the S140. For the sake of brevity, the specific implementation of each unit in the device 200 is consistent with the implementation of the corresponding method steps, and details are not described herein again.
图3为本申请实施例提供的一种终端设备,该终端设备300包括至少两个不同定位模式的定位模块310以及处理器320。FIG. 3 is a terminal device provided by an embodiment of the present disclosure, where the terminal device 300 includes at least two positioning modules 310 of different positioning modes and a processor 320.
定位模块310,用于在用户开启终端设备的定位服务时,扫描终端设备当前所在位置周边的定位设备发出的第一定位信息或周边环境的第一定位信息。The locating module 310 is configured to: when the user starts the location service of the terminal device, scan the first positioning information sent by the positioning device around the current location of the terminal device or the first positioning information of the surrounding environment.
用户开启终端设备的定位服务可以为:用户打开装载在终端设备上的地图软件时,对用户进行定位;或者,用户在开启地图软件的室内地图时,并在室内行走过程中对用户的定位;或者,在导航过程中对用户位置的定位等。The location service of the user to open the terminal device may be: the user locates the user when opening the map software loaded on the terminal device; or the user locates the user during the indoor walking process when the map is opened indoors; Or, the positioning of the user's location during the navigation process, and the like.
处理器320,用于将相同定位模式的定位模块310发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置;以及,根据各定位模式对应的位置,确 定出所述待定位点对应的位置。The processor 320 is configured to group the first positioning information sent by the positioning module 310 in the same positioning mode into a group, and obtain first positioning information corresponding to each positioning mode. For each positioning mode, the positioning mode is The positioning information is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the corresponding positioning mode, and the position corresponding to the positioning mode is determined; and, according to the position corresponding to each positioning mode, Indeed The position corresponding to the point to be located is determined.
其中处理器320中,各个执行步骤的具体实现可参见图1所述方法流程中相应步骤的具体实现,在此不再赘述。For a specific implementation of the execution steps of the processor 320, refer to the specific implementation of the corresponding steps in the method flow shown in FIG. 1 , and details are not described herein again.
优选地,在本申请实施例中,该设备300还可以包括数据输出器件330,例如显示屏幕,用于显示确定的待定位点的位置。Preferably, in the embodiment of the present application, the device 300 may further include a data output device 330, such as a display screen, for displaying the determined position of the point to be located.
本申请实施例提供的定位方法、装置和终端设备,在同一个待定位点,能够通过至少两个不同定位模式的定位模块对待定位点进行定位(也称为多信号源定位),一方面,由于不同定位模式的对应的定位设备部署的位置不同,相对于单一的定位模式的定位设备的部署情况而言,针对同一区域范围,不同定位模式的定位设备覆盖的密度较大,定位设备信号覆盖比较全,并且不同定位模式对应的定位设备的信号分布特点和信号传播特性不同,因此相互之间可以互补,而很少概率会存在无定位信息或定位信息较弱的区域,从而使得在各个位置均能够接收到不同定位模式的定位设备的定位信息,基于该定位信息能够进行成功定位,克服了现有技术中根据单一定位模式的定位设备发送的定位信息进行定位而存在定位失败的问题;另一方面,根据各个定位模式均可对待定位点进行定位得到相应位置,并根据该多个定位模式对应的位置综合得到待定位点的位置,克服单一定位模式其本身存在的定位不稳定从而导致定位不准确的问题,因此相对于单一定位模式定位得到的位置更准确,本申请提高定位准确性。The positioning method, the device and the terminal device provided by the embodiment of the present application can locate the positioning point (also referred to as multi-signal source positioning) by using at least two positioning modules of different positioning modes at the same point to be located. The location of the corresponding positioning device in different positioning modes is different. Compared with the deployment of the positioning device in a single positioning mode, the positioning device with different positioning modes has a higher density for the same area. The signal distribution characteristics and the signal propagation characteristics of the positioning devices corresponding to different positioning modes are different, so that they can complement each other, and there is little probability that there is no positioning information or a weak positioning information, so that in each position The positioning information of the positioning device of the different positioning modes can be received, and the positioning information can be successfully located based on the positioning information, which overcomes the problem that the positioning information sent by the positioning device according to the single positioning mode in the prior art is located and the positioning fails. On the one hand, according to each positioning mode Positioning the positioning point to obtain a corresponding position, and comprehensively obtaining the position of the point to be positioned according to the position corresponding to the multiple positioning modes, overcoming the problem that the positioning of the single positioning mode itself is unstable, resulting in inaccurate positioning, and thus is relatively simple The position obtained by the positioning mode positioning is more accurate, and the application improves the positioning accuracy.
需要说明的是,在本申请实施例提供的设备300可以实现图2所示的装置200中的各个单元/模块的功能,也可以完成图1所示的方法100的各个操作/方法步骤,为描述简洁,在这里就不再赘述。It should be noted that the apparatus 300 provided in the embodiment of the present application may implement the functions of the respective units/modules in the apparatus 200 shown in FIG. 2, and may also complete the operations/method steps of the method 100 shown in FIG. The description is concise and will not be repeated here.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。 The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the specific embodiments of the present application. It is to be understood that the foregoing description is only The scope of protection, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application.

Claims (17)

  1. 一种定位方法,其特征在于,所述方法包括:A positioning method, characterized in that the method comprises:
    在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息;Acquiring first positioning information sent by the positioning module of at least two different positioning modes at the to-be-located point;
    将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;Separating the first positioning information sent by the positioning module in the same positioning mode into a group, and obtaining first positioning information corresponding to each positioning mode;
    针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置;For each positioning mode, the first positioning information of the positioning mode is matched with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode, and the positioning mode is determined. Corresponding location
    根据各定位模式对应的位置,确定出所述待定位点对应的位置。Determining a position corresponding to the point to be located according to a position corresponding to each positioning mode.
  2. 根据权利要求1所述的方法,其特征在于,针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置,具体包括:The method according to claim 1, wherein for each of the positioning modes, the first positioning information of the positioning mode is respectively corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode. The second positioning information is matched, and the location corresponding to the positioning mode is determined, which specifically includes:
    针对每一种定位模式,分别计算所述定位模式的第一定位信息的特征信息与所述定位数据指纹库中的各位置对应的第二定位信息的相应特征信息的相似度;Calculating, for each of the positioning modes, a similarity between the feature information of the first positioning information of the positioning mode and the corresponding feature information of the second positioning information corresponding to each position in the positioning data fingerprint database;
    将相似度较大的至少一个第二定位信息对应的位置,确定为所述定位模式对应的位置。The position corresponding to the at least one second positioning information having a large similarity is determined as the position corresponding to the positioning mode.
  3. 根据权利要求2所述的方法,其特征在于,针对每一种定位模式,分别计算所述定位模式的第一定位信息的特征信息与所述定位数据指纹库中的各位置对应的第二定位信息的相应特征信息的相似度,具体包括:The method according to claim 2, wherein for each positioning mode, the feature information of the first positioning information of the positioning mode and the second positioning corresponding to each position in the positioning data fingerprint database are respectively calculated. The similarity of the corresponding feature information of the information includes:
    针对定位数据指纹库中每个位置,按照以下公式计算所述定位模式的第一定位信息的特征信息与所述位置对应的第二定位信息相应特征信息的相似度:For each location in the location data fingerprint database, the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to the following formula:
    Figure PCTCN2017071818-appb-100001
    Figure PCTCN2017071818-appb-100001
    其中,Score表示相似度;n表示第一定位信息和第二定位信息中包含的定位信息个数的最大值,ssi为所述第一定位信息中的第i个定位信息的特征信息,ffi为所述第二定位信息的第i个定位信息的特征信息。Wherein, Score represents a similarity; n represents a maximum value of the number of positioning information included in the first positioning information and the second positioning information, and ssi is characteristic information of the i-th positioning information in the first positioning information, and ffi is Feature information of the i-th positioning information of the second positioning information.
  4. 根据权利要求2所述的方法,其特征在于,根据各定位模式对应的位置,确定出所述待定位点对应的位置,具体包括:The method according to claim 2, wherein determining the location corresponding to the to-be-located point according to the location corresponding to each positioning mode comprises:
    根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相 似度,确定出每一种定位模式的权重;Corresponding to the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode Similarity, determine the weight of each positioning mode;
    根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置。According to the position of each positioning mode and its weight, the position corresponding to the point to be located is comprehensively determined.
  5. 根据权利要求4所述的方法,其特征在于,根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重,具体包括:The method according to claim 4, wherein the weight of each positioning mode is determined according to the similarity between the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode, specifically including :
    计算所有定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度的和值,作为第一和值;Calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode as the first sum value;
    针对每一种定位模式,计算所述定位模式对应的位置的第二定位信息与该定位模式的第一定位信息的相似度的和值,将该和值与所述第一和值的比值,确定为所述定位模式的权重。For each positioning mode, calculating a sum of similarity between the second positioning information of the position corresponding to the positioning mode and the first positioning information of the positioning mode, and the ratio of the sum value to the first sum value, Determined as the weight of the positioning mode.
  6. 根据权利要求4所述的方法,其特征在于,根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置,具体包括:The method according to claim 4, wherein the location corresponding to the to-be-located point is determined according to the location of each positioning mode and the weight thereof, and specifically includes:
    针对每一种定位模式,计算所述定位模式对应的位置的经度平均值以及纬度平均值,并计算所述经度平均值和纬度平均值分别与所述定位模式的权重的乘积,得到所述定位模式的经度加权平均值和纬度加权平均值;For each positioning mode, calculating a longitude average and a latitude average of the position corresponding to the positioning mode, and calculating a product of the longitude average and the latitude average respectively and the weight of the positioning mode, to obtain the positioning The longitude-weighted average of the pattern and the latitude weighted average;
    将各定位模式对应的经度加权平均值的和值确定为所述待定位点对应位置的经度,以及,将各定位模式对应的纬度加权平均值的和值确定为所述待定位点对应位置的纬度。Determining a sum of the longitude-weighted average values corresponding to the respective positioning modes as the longitude of the corresponding position of the to-be-positioned point, and determining a sum of the latitude-weighted average values corresponding to the respective positioning modes as the corresponding position of the to-be-positioned point latitude.
  7. 根据权利要求1-3任一项所述的方法,其特征在于,根据各定位模式对应的位置,确定出所述待定位点对应的位置,具体包括:The method according to any one of claims 1-3, wherein the location corresponding to the point to be located is determined according to the location corresponding to each positioning mode, which specifically includes:
    针对每一种定位模式,计算所述定位模式对应的位置的经度平均值以及纬度平均值;Calculating a longitude average and a latitude average of the position corresponding to the positioning mode for each positioning mode;
    将各定位模式对应的经度平均值的平均值确定为所述待定位点对应位置的经度,以及,将各定位模式对应的纬度平均值的平均值确定为所述待定位点对应位置的纬度。The average value of the longitude average values corresponding to the respective positioning modes is determined as the longitude of the corresponding position of the to-be-positioned point, and the average value of the latitude average values corresponding to the respective positioning modes is determined as the latitude of the corresponding position of the to-be-positioned point.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息,具体包括:The method according to any one of claims 1-6, wherein the first positioning information sent by the positioning module of the same positioning mode is grouped into a group, and the first positioning information corresponding to each positioning mode is obtained, which specifically includes:
    将相同定位模式的定位模块发送的第一定位信息分为一组,并对每一组第一定位信息进行排重,将排重后的该组定位信息确定为相应定位模式对应的第一定位信息。The first positioning information sent by the positioning module in the same positioning mode is divided into a group, and each group of the first positioning information is weighted, and the collected positioning information is determined as the first positioning corresponding to the corresponding positioning mode. information.
  9. 一种定位装置,其特征在于,所述装置包括获取单元、分组单元、第一确定单元和第二确定单元,其中: A positioning device, comprising: an acquiring unit, a grouping unit, a first determining unit and a second determining unit, wherein:
    所述获取单元,用于在待定位点获取至少两个不同定位模式的定位模块发送的第一定位信息;The acquiring unit is configured to acquire first positioning information that is sent by the positioning module of the at least two different positioning modes at the point to be located;
    所述分组单元,用于将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;The grouping unit is configured to group the first positioning information sent by the positioning module in the same positioning mode into a group, and obtain first positioning information corresponding to each positioning mode;
    所述第一确定单元,用于针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行匹配,确定出所述定位模式对应的位置;The first determining unit is configured to: for each positioning mode, the first positioning information of the positioning mode and the second positioning information corresponding to each location stored in the positioning data fingerprint database of the preset corresponding positioning mode Performing a match to determine a location corresponding to the positioning mode;
    所述第二确定单元,用于根据各定位模式对应的位置,确定出所述待定位点对应的位置。The second determining unit is configured to determine a location corresponding to the to-be-located point according to a location corresponding to each positioning mode.
  10. 根据权利要求9所述的装置,其特征在于,所述第二确定单元具体用于,The apparatus according to claim 9, wherein said second determining unit is specifically configured to:
    相似度计算子单元,用于针对每一种定位模式,分别计算所述定位模式的第一定位信息的特征信息与所述定位数据指纹库中的各位置对应的第二定位信息的相应特征信息的相似度;a similarity calculation sub-unit, configured to calculate, for each of the positioning modes, feature information of the first positioning information of the positioning mode and corresponding feature information of the second positioning information corresponding to each position in the positioning data fingerprint database Similarity
    位置确定子单元,用于将相似度较大的至少一个第二定位信息对应的位置,确定为所述定位模式对应的位置。And a position determining subunit, configured to determine a position corresponding to the at least one second positioning information with a large similarity as a position corresponding to the positioning mode.
  11. 根据权利要求10所述的装置,其特征在于,相似度计算子单元具体用于,The apparatus according to claim 10, wherein the similarity calculation subunit is specifically configured to:
    针对定位数据指纹库中每个位置,按照以下公式计算所述定位模式的第一定位信息的特征信息与所述位置对应的第二定位信息相应特征信息的相似度:For each location in the location data fingerprint database, the similarity between the feature information of the first location information of the location mode and the corresponding feature information of the second location information corresponding to the location is calculated according to the following formula:
    Figure PCTCN2017071818-appb-100002
    Figure PCTCN2017071818-appb-100002
    其中,Score表示相似度;n表示第一定位信息和第二定位信息中包含的定位信息个数的最大值,ssi为所述第一定位信息中的第i个定位信息的特征信息,ffi为所述第二定位信息的第i个定位信息的特征信息。Wherein, Score represents a similarity; n represents a maximum value of the number of positioning information included in the first positioning information and the second positioning information, and ssi is characteristic information of the i-th positioning information in the first positioning information, and ffi is Feature information of the i-th positioning information of the second positioning information.
  12. 根据权利要求10所述的装置,其特征在于,所述位置确定子单元具体用于,The apparatus according to claim 10, wherein said position determining subunit is specifically configured to:
    根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一种定位模式的权重;Determining the weight of each positioning mode according to the similarity between the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode;
    根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置。According to the position of each positioning mode and its weight, the position corresponding to the point to be located is comprehensively determined.
  13. 根据权利要求12所述的装置,其特征在于,所述位置确定子单元根据各定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度,确定出每一 种定位模式的权重,具体用于,The device according to claim 12, wherein the location determining sub-unit determines each of the second positioning information of the position corresponding to each positioning mode and the first positioning information of the corresponding positioning mode. The weight of the positioning mode, specifically used,
    计算所有定位模式对应的位置的第二定位信息与相应定位模式的第一定位信息的相似度的和值,作为第一和值;Calculating a sum of similarity between the second positioning information of the position corresponding to all the positioning modes and the first positioning information of the corresponding positioning mode as the first sum value;
    针对每一种定位模式,计算所述定位模式对应的位置的第二定位信息与该定位模式的第一定位信息的相似度的和值,将该和值与所述第一和值的比值,确定为所述定位模式的权重。For each positioning mode, calculating a sum of similarity between the second positioning information of the position corresponding to the positioning mode and the first positioning information of the positioning mode, and the ratio of the sum value to the first sum value, Determined as the weight of the positioning mode.
  14. 根据权利要求12所述的装置,其特征在于,所述位置确定子单元根据各定位模式的位置及其权重,综合确定出所述待定位点对应的位置,具体用于,The device according to claim 12, wherein the location determining sub-unit comprehensively determines the location corresponding to the to-be-located point according to the location of each positioning mode and its weight, specifically for
    针对每一种定位模式,计算所述定位模式对应的位置的经度平均值以及纬度平均值,并计算所述经度平均值和纬度平均值分别与所述定位模式的权重的乘积,得到所述定位模式的经度加权平均值和纬度加权平均值;For each positioning mode, calculating a longitude average and a latitude average of the position corresponding to the positioning mode, and calculating a product of the longitude average and the latitude average respectively and the weight of the positioning mode, to obtain the positioning The longitude-weighted average of the pattern and the latitude weighted average;
    将各定位模式对应的经度加权平均值的和值确定为所述待定位点对应位置的经度,以及,将各定位模式对应的纬度加权平均值的和值确定为所述待定位点对应位置的纬度。Determining a sum of the longitude-weighted average values corresponding to the respective positioning modes as the longitude of the corresponding position of the to-be-positioned point, and determining a sum of the latitude-weighted average values corresponding to the respective positioning modes as the corresponding position of the to-be-positioned point latitude.
  15. 根据权利要求9-11任一项所述的装置,其特征在于,所述第二确定单元具体用于,The apparatus according to any one of claims 9 to 11, wherein the second determining unit is specifically configured to:
    针对每一种定位模式,计算所述定位模式对应的位置的经度平均值以及纬度平均值;Calculating a longitude average and a latitude average of the position corresponding to the positioning mode for each positioning mode;
    将各定位模式对应的经度平均值的平均值确定为所述待定位点对应位置的经度,以及,将各定位模式对应的纬度平均值的平均值确定为所述待定位点对应位置的纬度。The average value of the longitude average values corresponding to the respective positioning modes is determined as the longitude of the corresponding position of the to-be-positioned point, and the average value of the latitude average values corresponding to the respective positioning modes is determined as the latitude of the corresponding position of the to-be-positioned point.
  16. 根据权利要求9-15任一项所述的装置,其特征在于,所述分组单元具体用于,The apparatus according to any one of claims 9 to 15, wherein the grouping unit is specifically configured to:
    将相同定位模式的定位模块发送的第一定位信息分为一组,并对每一组第一定位信息进行排重,将排重后的该组定位信息确定为相应定位模式对应的第一定位信息。The first positioning information sent by the positioning module in the same positioning mode is divided into a group, and each group of the first positioning information is weighted, and the collected positioning information is determined as the first positioning corresponding to the corresponding positioning mode. information.
  17. 一种终端设备,其特征在于,终端设备包括至少两个不同定位模式的定位模块以及处理器;A terminal device, wherein the terminal device includes at least two positioning modules of different positioning modes and a processor;
    定位模块,用于在用户开启终端设备的定位服务时,扫描终端设备当前所在位置周边的定位设备发出的第一定位信息或周边环境的第一定位信息;a positioning module, configured to: when the user starts the positioning service of the terminal device, scan the first positioning information sent by the positioning device around the current location of the terminal device or the first positioning information of the surrounding environment;
    处理器,用于将相同定位模式的定位模块发送的第一定位信息分为一组,得到各定位模式对应的第一定位信息;针对每一种定位模式,将所述定位模式的第一定位信息分别与预置的相应定位模式的定位数据指纹库中存储的各位置对应的第二定位信息进行 匹配,确定出所述定位模式对应的位置;以及,根据各定位模式对应的位置,确定出所述终端设备当前所在位置。 a processor, configured to group the first positioning information sent by the positioning module of the same positioning mode into a group, to obtain first positioning information corresponding to each positioning mode; and to locate the first positioning mode of the positioning mode for each positioning mode The information is respectively performed with the second positioning information corresponding to each position stored in the positioning data fingerprint database of the preset corresponding positioning mode. Matching, determining a location corresponding to the positioning mode; and determining a current location of the terminal device according to a location corresponding to each positioning mode.
PCT/CN2017/071818 2016-02-02 2017-01-20 Positioning method and device WO2017133480A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610073267.2 2016-02-02
CN201610073267.2A CN107027168A (en) 2016-02-02 2016-02-02 Localization method and device

Publications (1)

Publication Number Publication Date
WO2017133480A1 true WO2017133480A1 (en) 2017-08-10

Family

ID=59500546

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071818 WO2017133480A1 (en) 2016-02-02 2017-01-20 Positioning method and device

Country Status (2)

Country Link
CN (1) CN107027168A (en)
WO (1) WO2017133480A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533144A (en) * 2019-09-19 2021-03-19 中国移动通信集团辽宁有限公司 Indoor positioning method and device, computing equipment and computer storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108668247B (en) * 2018-05-14 2020-10-23 广东工业大学 WIFI indoor positioning method and device and storage medium
CN109039458A (en) * 2018-08-06 2018-12-18 杭州电子科技大学 A kind of indoor locating system and method
CN109640253B (en) * 2018-12-26 2020-09-29 东阳市维创工业产品设计有限公司 Mobile robot positioning method
CN109814068B (en) * 2019-01-30 2023-07-28 广州轨道交通建设监理有限公司 Building site personnel positioning system and building site personnel positioning method
CN112312301B (en) * 2019-08-01 2023-04-25 中国移动通信集团浙江有限公司 User terminal positioning method, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130157683A1 (en) * 2011-12-16 2013-06-20 Microsoft Corporation Indoor localization using commercial frequency-modulated signals
CN103209388A (en) * 2013-04-12 2013-07-17 浙江大学 Method and system for hybrid positioning on basis of multi-mode signals
CN104837118A (en) * 2015-04-29 2015-08-12 辽宁工业大学 Indoor fusion positioning system and method based on WiFi and BLUETOOTH
CN105025439A (en) * 2015-06-26 2015-11-04 上海汇纳信息科技股份有限公司 Indoor positioning system, applied database, indoor positioning method and indoor positioning device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8103272B2 (en) * 2007-01-07 2012-01-24 Apple Inc. Techniques for database updates
CN103630873B (en) * 2013-12-02 2018-08-17 厦门雅迅网络股份有限公司 Merge the indoor orientation method in earth's magnetic field and WIFI signal
CN204681599U (en) * 2015-04-29 2015-09-30 辽宁工业大学 A kind of indoor fusion navigation system based on WiFi and bluetooth

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130157683A1 (en) * 2011-12-16 2013-06-20 Microsoft Corporation Indoor localization using commercial frequency-modulated signals
CN103209388A (en) * 2013-04-12 2013-07-17 浙江大学 Method and system for hybrid positioning on basis of multi-mode signals
CN104837118A (en) * 2015-04-29 2015-08-12 辽宁工业大学 Indoor fusion positioning system and method based on WiFi and BLUETOOTH
CN105025439A (en) * 2015-06-26 2015-11-04 上海汇纳信息科技股份有限公司 Indoor positioning system, applied database, indoor positioning method and indoor positioning device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533144A (en) * 2019-09-19 2021-03-19 中国移动通信集团辽宁有限公司 Indoor positioning method and device, computing equipment and computer storage medium

Also Published As

Publication number Publication date
CN107027168A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
WO2017133480A1 (en) Positioning method and device
US20230260274A1 (en) Image display system, terminal, method, and program for determining a difference between a first image and a second image
JP2018503795A (en) Mobile terminal positioning based on electromagnetic signals
CN108738357B (en) Information processing apparatus, portable apparatus, and system
JP2010038895A (en) Positioning system, positioning method, and positioning program
US20130178226A1 (en) Method of Positioning Using Wireless Signals and Inertial Measurement Units, Electronic Device, and Positioning System Using the Same Method
CN109388722B (en) Method and equipment for adding or searching social contact
JP2008249640A (en) Position estimation system and method
KR20170137424A (en) Method, device and system of mediating
WO2014024854A1 (en) Image processing device, image processing method, and image processing program
WO2019037698A1 (en) Image display method and device, and electronic device
US20190011269A1 (en) Position estimation device, position estimation method, and recording medium
JP6787481B2 (en) Search support program, search support method and search support device
KR102202950B1 (en) Method and apparatus for Fingerprinting Positioning
JP2002365126A (en) System for monitoring noise of aircraft
JP2886298B2 (en) Pulse train classification device
JP2009230255A (en) Information providing device, information providing method and information providing processing program
US9842483B2 (en) Information processing system for reducing load on a server
JP6593665B2 (en) Image display system, terminal, method and program
CA3011868C (en) Location determination using crowd sourced information
JP6696818B2 (en) Information processing device and communication terminal
US20220398831A1 (en) Image recognition support apparatus, image recognition support method, and image recognition support program
CN110035392A (en) Whether equipment is located at recognition methods and device and the electronic equipment of target area
JP2823468B2 (en) Radio wave detector
JP2022072228A (en) Learning apparatus, learning method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17746800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17746800

Country of ref document: EP

Kind code of ref document: A1