CN113490270B - Fingerprint database generation method and device - Google Patents
Fingerprint database generation method and device Download PDFInfo
- Publication number
- CN113490270B CN113490270B CN202110638104.5A CN202110638104A CN113490270B CN 113490270 B CN113490270 B CN 113490270B CN 202110638104 A CN202110638104 A CN 202110638104A CN 113490270 B CN113490270 B CN 113490270B
- Authority
- CN
- China
- Prior art keywords
- candidate
- signal
- reference position
- target
- aps
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/006—Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/02—Position-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/0252—Radio frequency fingerprinting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Collating Specific Patterns (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动通信技术领域,特别是涉及一种指纹库生成方法及装置。The present invention relates to the technical field of mobile communication, in particular to a method and device for generating a fingerprint database.
背景技术Background technique
随着移动通信技术的迅速发展,基于WiFi(Wireless Fidelity,移动热点)的室内定位技术广泛应用于多个领域。示例性地,针对室内预先设置的每一参考位置,可以在该参考位置进行信号检测,以确定在该参考位置检测到的各信号的RSSI(Received SignalStrength Indication,接收信号强度),以及各信号所属的AP(Access Point,接入点)(可以称为备选AP)。进而,生成包含该多个参考位置、备选AP和对应的信号强度的指纹库。后续,则可以基于指纹库,对室内的目标对象(例如,手机、智能手环等设备)进行定位。With the rapid development of mobile communication technology, the indoor positioning technology based on WiFi (Wireless Fidelity, mobile hotspot) is widely used in many fields. Exemplarily, for each reference position preset indoors, signal detection can be performed at the reference position to determine the RSSI (Received Signal Strength Indication, received signal strength) of each signal detected at the reference position, and the signal to which each signal belongs. AP (Access Point, access point) (may be referred to as an alternative AP). Further, a fingerprint library including the multiple reference positions, candidate APs and corresponding signal strengths is generated. Subsequently, based on the fingerprint database, indoor target objects (eg, devices such as mobile phones, smart bracelets, etc.) can be located.
相关技术中,针对每一参考位置,可以多次获取在该参考位置检测到的信号的接收信号强度,以及对应的备选AP。然后,针对每一备选AP,计算在该参考位置多次检测到该备选AP发出的信号的接收信号强度的标准差,作为该备选AP在该参考位置的标准差。然后,计算该备选AP在各个参考位置的标准差的平均值,得到该备选AP在各参考位置的平均标准差。进而,从各备选AP中选择对应的平均标准差较小的AP,作为目标AP,并生成包含各参考位置、目标AP和对应的接收信号强度的指纹库。即,能够去除备选AP中发出的信号的波动较大的AP,以提高指纹库的有效性。In the related art, for each reference position, the received signal strength of the signal detected at the reference position and the corresponding candidate AP may be acquired multiple times. Then, for each candidate AP, calculate the standard deviation of the received signal strengths of the signals sent by the candidate AP detected multiple times at the reference position, as the standard deviation of the candidate AP at the reference position. Then, the average value of the standard deviation of the candidate AP at each reference position is calculated to obtain the average standard deviation of the candidate AP at each reference position. Furthermore, an AP with a corresponding smaller average standard deviation is selected from the candidate APs as the target AP, and a fingerprint library including each reference position, the target AP and the corresponding received signal strength is generated. That is, APs with large fluctuations in the signals sent from the candidate APs can be removed, so as to improve the validity of the fingerprint database.
然而,相关技术中,确定出的目标AP中仍存在一类AP,由于该类AP自身性能以及环境因素的影响,可能会导致在同一参考位置并不能每次都检测到该类AP发送的信号。也就是说,检测到这类AP的信号的连续性较差,进而,使得生成的包含有该类AP的指纹库的有效性仍不高。However, in the related art, there is still a type of AP among the determined target APs. Due to the influence of this type of AP's own performance and environmental factors, the signal sent by this type of AP may not be detected every time at the same reference location. . That is to say, the continuity of the detected signal of this type of AP is poor, and further, the generated fingerprint database containing this type of AP is still ineffective.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种指纹库生成方法及装置,以提高指纹库的有效性。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a method and device for generating a fingerprint database, so as to improve the effectiveness of the fingerprint database. The specific technical solutions are as follows:
第一方面,为了达到上述目的,本发明实施例提供了一种指纹库生成方法,所述方法包括:In the first aspect, in order to achieve the above object, an embodiment of the present invention provides a method for generating a fingerprint database, the method comprising:
针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的接入点AP,作为第一备选AP,以及所检测到的信号的接收信号强度,作为第一接收信号强度;For each preset reference position, obtain the access point AP to which the detected signal belongs when performing signal detection at the reference position, as the first candidate AP, and the received signal strength of the detected signal, as the first received signal strength;
针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率;For each first candidate AP, based on the first number of times of signal detection at each reference position and the second number of times of detection of the signal sent by the first candidate AP at each reference position, calculate the first Select the loss rate of AP;
从所述第一备选AP中确定出第二备选AP;其中,所述第二备选AP的损失率,小于所述第一备选AP中其他AP的损失率;A second candidate AP is determined from the first candidate AP; wherein, the loss rate of the second candidate AP is smaller than the loss rate of other APs in the first candidate AP;
针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度;For each second candidate AP, the signal stability of the second candidate AP is calculated based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position;
从所述第二备选AP中确定出目标AP;其中,所述目标AP的信号稳定度,大于所述第二备选AP中其他AP的信号稳定度;Determine the target AP from the second candidate AP; wherein, the signal stability of the target AP is greater than the signal stability of other APs in the second candidate AP;
基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库。Based on each reference position, the target AP and the corresponding first signal strength, a target fingerprint database is generated.
可选的,所述基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率,包括:Optionally, based on the first detection times of signal detection at each reference position, and the second detection times of signals sent by the first candidate AP are detected at each reference position, calculate the number of the first candidate AP. Loss rates, including:
基于在各参考位置进行信号检测的第一检测次数、在各参考位置检测到该第一备选AP发出的信号的第二检测次数,以及第一预设公式,计算该第一备选AP的损失率;其中,所述第一预设公式为:Based on the first number of times of signal detection at each reference position, the second number of times of detection of the signal sent by the first candidate AP at each reference position, and the first preset formula, calculate the value of the first candidate AP loss rate; wherein, the first preset formula is:
LR表示该第一备选AP的损失率;N表示所述各参考位置的数目;mn表示在第n个参考位置检测到该第一备选AP发出的信号的第二检测次数;H表示在第n个参考位置进行信号检测的第一检测次数。LR represents the loss rate of the first candidate AP; N represents the number of the reference positions; m n represents the second detection times when the signal sent by the first candidate AP is detected at the nth reference position; H represents The first number of detections for signal detection at the nth reference position.
可选的,所述基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度,包括:Optionally, calculating the signal stability of the second candidate AP based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position, including:
基于在各参考位置检测到的该第二备选AP发出的信号的第一接收信号强度,以及第二预设公式,计算该第二备选AP的信号稳定度;其中,所述第二预设公式为:Based on the first received signal strength of the signal sent by the second candidate AP detected at each reference position, and the second preset formula, the signal stability of the second candidate AP is calculated; wherein, the second preset Let the formula be:
S表示该第二备选AP的信号稳定度;ε表示预设参数;N表示所述各参考位置的数目;H表示在第n个参考位置进行信号检测的第一检测次数;RSSInh表示在第n个参考位置进行第h次信号检测时,检测到该第二备选AP发出的信号的第一接收信号强度;表示在第n个参考位置检测到该第二备选AP发出的信号的第一接收信号强度的均值。S represents the signal stability of the second candidate AP; ε represents the preset parameter; N represents the number of the reference positions; H represents the first detection times of signal detection at the nth reference position; RSSI nh represents the When the nth reference position performs the hth signal detection, the first received signal strength of the signal sent by the second candidate AP is detected; Indicates the mean value of the first received signal strength at which the signal sent by the second candidate AP is detected at the nth reference position.
可选的,在所述基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库之后,所述方法还包括:Optionally, after the target fingerprint database is generated based on each reference position, the target AP and the corresponding first signal strength, the method further includes:
获取待定位对象接收到的各目标AP发出的信号的接收信号强度,作为第二接收信号强度;Obtain the received signal strength of the signal sent by each target AP received by the object to be located, as the second received signal strength;
基于所述第二接收信号强度、所述目标指纹库和第三预设公式,计算各参考位置对应的目标距离;其中,所述第三预设公式为:Based on the second received signal strength, the target fingerprint database and the third preset formula, the target distance corresponding to each reference position is calculated; wherein, the third preset formula is:
Dn表示第n个参考位置对应的目标距离;N表示所述各参考位置的数目;RSSIi1表示所述待定位对象接收到第i个目标AP发出的信号的第二接收信号强度;RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度;D n represents the target distance corresponding to the nth reference position; N represents the number of the reference positions; RSSI i1 represents the second received signal strength of the signal sent by the i-th target AP received by the object to be located; RSSI i2 Indicates that the first received signal strength of the signal sent by the i-th target AP is detected at the n-th reference position;
按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置;According to the order of the corresponding target distance from small to large, the first number of reference positions are determined from each reference position as the candidate positions;
基于所述备选位置、所述备选位置对应的目标距离和第四预设公式,确定所述待定位对象的位置;其中,所述第四预设公式为:Based on the candidate position, the target distance corresponding to the candidate position, and a fourth preset formula, the position of the object to be positioned is determined; wherein, the fourth preset formula is:
q表示所述待定位对象的位置;K表示所述第一数目;Dg表示第g个备选位置对应的目标距离;pg表示第g个备选位置。q represents the position of the object to be positioned; K represents the first number; D g represents the target distance corresponding to the g-th candidate position; p g represents the g-th candidate position.
可选的,从所述第一备选AP中确定出第二备选AP,包括:Optionally, determining a second candidate AP from the first candidate AP, including:
从所述第一备选AP中确定出损失率小于第一预设阈值的AP,作为第二备选AP;An AP whose loss rate is less than the first preset threshold is determined from the first candidate APs as a second candidate AP;
或者,or,
按照损失率从小到大的顺序,从所述第一备选AP中确定前第二数目个AP,作为第二备选AP。In order of the loss rate from small to large, the first and second number of APs are determined from the first candidate APs as the second candidate APs.
可选的,从所述第二备选AP中确定出目标AP,包括:Optionally, determining the target AP from the second candidate AP, including:
从所述第二备选AP中确定出信号稳定度大于第二预设阈值的AP,作为目标AP;An AP whose signal stability is greater than a second preset threshold is determined from the second candidate APs as a target AP;
或者,or,
按照信号稳定度从大到小的顺序,从所述第二备选AP中确定前第三数目个AP,作为目标AP。In descending order of signal stability, the first third number of APs are determined from the second candidate APs as target APs.
第二方面,为了达到上述目的,本发明实施例提供了一种指纹库生成装置,所述装置包括:In the second aspect, in order to achieve the above object, an embodiment of the present invention provides an apparatus for generating a fingerprint database, and the apparatus includes:
获取模块,用于针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的接入点AP,作为第一备选AP,以及所检测到的信号的接收信号强度,作为第一接收信号强度;The acquisition module is configured to acquire, for each preset reference position, the access point AP to which the detected signal belongs when performing signal detection at the reference position, as the first candidate AP, and the the received signal strength, as the first received signal strength;
第一确定模块,用于针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率;The first determination module is used for, for each first candidate AP, based on the first detection times of signal detection at each reference position, and the second detection of the signal sent by the first candidate AP at each reference position times, calculate the loss rate of the first candidate AP;
第二确定模块,用于从所述第一备选AP中确定出第二备选AP;其中,所述第二备选AP的损失率,小于所述第一备选AP中其他AP的损失率;The second determination module is configured to determine a second candidate AP from the first candidate AP; wherein, the loss rate of the second candidate AP is smaller than the loss of other APs in the first candidate AP Rate;
第三确定模块,用于针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度;The third determining module is configured to, for each second candidate AP, calculate the distribution of the first received signal strength of the signal sent by the second candidate AP at each reference position, and calculate the second candidate AP's signal stability;
第四确定模块,用于从所述第二备选AP中确定出目标AP;其中,所述目标AP的信号稳定度,大于所述第二备选AP中其他AP的信号稳定度;a fourth determining module, configured to determine a target AP from the second candidate AP; wherein, the signal stability of the target AP is greater than the signal stability of other APs in the second candidate AP;
生成模块,用于基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库。The generating module is configured to generate a target fingerprint database based on each reference position, the target AP and the corresponding first signal strength.
可选的,所述第一确定模块,具体用于基于在各参考位置进行信号检测的第一检测次数、在各参考位置检测到该第一备选AP发出的信号的第二检测次数,以及第一预设公式,计算该第一备选AP的损失率;其中,所述第一预设公式为:Optionally, the first determination module is specifically configured to be based on the first detection times of signal detection at each reference position, the second detection times of signals sent by the first candidate AP are detected at each reference position, and The first preset formula is used to calculate the loss rate of the first candidate AP; wherein, the first preset formula is:
LR表示该第一备选AP的损失率;N表示所述各参考位置的数目;mn表示在第n个参考位置检测到该第一备选AP发出的信号的第二检测次数;H表示在第n个参考位置进行信号检测的第一检测次数。LR represents the loss rate of the first candidate AP; N represents the number of the reference positions; m n represents the second detection times when the signal sent by the first candidate AP is detected at the nth reference position; H represents The first number of detections for signal detection at the nth reference position.
可选的,所述第三确定模块,具体用于基于在各参考位置检测到的该第二备选AP发出的信号的第一接收信号强度,以及第二预设公式,计算该第二备选AP的信号稳定度;其中,所述第二预设公式为:Optionally, the third determining module is specifically configured to calculate the second backup signal based on the first received signal strength of the signal sent by the second candidate AP detected at each reference position and the second preset formula. Select the signal stability of the AP; wherein, the second preset formula is:
S表示该第二备选AP的信号稳定度;ε表示预设参数;N表示所述各参考位置的数目;H表示在第n个参考位置进行信号检测的第一检测次数;RSSInh表示在第n个参考位置进行第h次信号检测时,检测到该第二备选AP发出的信号的第一接收信号强度;表示在第n个参考位置检测到该第二备选AP发出的信号的第一接收信号强度的均值。S represents the signal stability of the second candidate AP; ε represents the preset parameter; N represents the number of the reference positions; H represents the first detection times of signal detection at the nth reference position; RSSI nh represents the When the nth reference position performs the hth signal detection, the first received signal strength of the signal sent by the second candidate AP is detected; Indicates the mean value of the first received signal strength at which the signal sent by the second candidate AP is detected at the nth reference position.
可选的,所述装置还包括:Optionally, the device further includes:
处理模块,用于在所述生成模块执行基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库之后,执行获取待定位对象接收到的各目标AP发出的信号的接收信号强度,作为第二接收信号强度;The processing module is configured to, after the generation module generates the target fingerprint database based on each reference position, the target AP and the corresponding first signal strength, perform the acquisition of the signals sent by the target APs received by the object to be located. signal strength, as the second received signal strength;
基于所述第二接收信号强度、所述目标指纹库和第三预设公式,计算各参考位置对应的目标距离;其中,所述第三预设公式为:Based on the second received signal strength, the target fingerprint database and the third preset formula, the target distance corresponding to each reference position is calculated; wherein, the third preset formula is:
Dn表示第n个参考位置对应的目标距离;N表示所述各参考位置的数目;RSSIi1表示所述待定位对象接收到第i个目标AP发出的信号的第二接收信号强度;RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度;D n represents the target distance corresponding to the nth reference position; N represents the number of the reference positions; RSSI i1 represents the second received signal strength of the signal sent by the i-th target AP received by the object to be located; RSSI i2 Indicates that the first received signal strength of the signal sent by the i-th target AP is detected at the n-th reference position;
按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置;According to the order of the corresponding target distance from small to large, the first number of reference positions are determined from each reference position as the candidate positions;
基于所述备选位置、所述备选位置对应的目标距离和第四预设公式,确定所述待定位对象的位置;其中,所述第四预设公式为:Based on the candidate position, the target distance corresponding to the candidate position, and a fourth preset formula, the position of the object to be positioned is determined; wherein, the fourth preset formula is:
q表示所述待定位对象的位置;K表示所述第一数目;Dg表示第g个备选位置对应的目标距离;pg表示第g个备选位置。q represents the position of the object to be positioned; K represents the first number; D g represents the target distance corresponding to the g-th candidate position; p g represents the g-th candidate position.
可选的,所述第二确定模块,具体用于从所述第一备选AP中确定出损失率小于第一预设阈值的AP,作为第二备选AP;Optionally, the second determining module is specifically configured to determine, from the first candidate APs, an AP whose loss rate is less than the first preset threshold, as the second candidate AP;
或者,or,
按照损失率从小到大的顺序,从所述第一备选AP中确定前第二数目个AP,作为第二备选AP。In order of the loss rate from small to large, the first and second number of APs are determined from the first candidate APs as the second candidate APs.
可选的,所述第四确定模块,具体用于从所述第二备选AP中确定出信号稳定度大于第二预设阈值的AP,作为目标AP;Optionally, the fourth determining module is specifically configured to determine, from the second candidate APs, an AP whose signal stability is greater than a second preset threshold as a target AP;
或者,or,
按照信号稳定度从大到小的顺序,从所述第二备选AP中确定前第三数目个AP,作为目标AP。In descending order of signal stability, the first third number of APs are determined from the second candidate APs as target APs.
本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述任一所述的指纹库生成方法步骤。The processor is configured to implement any of the above-mentioned steps of the fingerprint database generation method when executing the program stored in the memory.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的指纹库生成方法步骤。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned steps of the fingerprint database generation method is implemented.
本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一所述的指纹库生成方法。Embodiments of the present invention also provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute any of the above-described fingerprint database generation methods.
本发明实施例有益效果:Beneficial effects of the embodiment of the present invention:
本发明实施例提供的一种指纹库生成方法,可以针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的AP,作为第一备选AP,以及检测到的信号的接收信号强度,作为第一接收信号强度;针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率;从第一备选AP中确定出第二备选AP;第二备选AP的损失率小于第一备选AP中其他AP的损失率;针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度;从第二备选AP中确定出目标AP;目标AP的信号稳定度大于第二备选AP中其他AP的信号稳定度;基于各参考位置、目标AP和对应的第一信号强度,生成目标指纹库。A method for generating a fingerprint database provided by an embodiment of the present invention can, for each preset reference position, obtain the AP to which the detected signal belongs when performing signal detection at the reference position, as the first candidate AP, and The received signal strength of the detected signal is taken as the first received signal strength; for each first candidate AP, based on the first detection times of signal detection at each reference position, and the detection of the first device at each reference position. Select the second detection times of the signal sent by the AP, and calculate the loss rate of the first candidate AP; determine the second candidate AP from the first candidate AP; the loss rate of the second candidate AP is smaller than the first candidate AP The loss rate of other APs in the AP; for each second candidate AP, the second candidate AP is calculated based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position The target AP is determined from the second candidate AP; the signal stability of the target AP is greater than the signal stability of other APs in the second candidate AP; based on each reference position, the target AP and the corresponding first signal intensity, generate the target fingerprint library.
基于上述处理,由于在各参考位置检测到每一第一备选AP发出的信号的次数可以表示该第一备选AP发出的信号的连续性,则该第一备选AP的损失率可以表示该第一备选AP发出的信号的连续性。相应的,确定出的损失率较小的第二备选AP,即为发出的信号的连续性较高的AP。即,确定出目标AP发出的信号的连续性也较高,进而,可以提高指纹库的有效性。Based on the above processing, since the number of times the signal sent by each first candidate AP is detected at each reference position can represent the continuity of the signal sent by the first candidate AP, the loss rate of the first candidate AP can represent The continuity of the signal sent by the first candidate AP. Correspondingly, the determined second candidate AP with a smaller loss rate is an AP with higher continuity of the sent signal. That is, it is determined that the continuity of the signal sent by the target AP is also high, and further, the effectiveness of the fingerprint database can be improved.
当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other embodiments can also be obtained according to these drawings.
图1为本发明实施例提供的一种指纹库生成方法的流程图;1 is a flowchart of a method for generating a fingerprint database according to an embodiment of the present invention;
图2为本发明实施例提供的另一种指纹库生成方法的流程图;2 is a flowchart of another fingerprint database generation method provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种指纹库生成方法的流程图;3 is a flowchart of another method for generating a fingerprint database according to an embodiment of the present invention;
图4为本发明实施例提供的另一种指纹库生成方法的流程图;4 is a flowchart of another method for generating a fingerprint database according to an embodiment of the present invention;
图5为本发明实施例提供的一种室内场景的示意图;FIG. 5 is a schematic diagram of an indoor scene provided by an embodiment of the present invention;
图6为本发明实施例提供的一种室内定位方法的流程图;6 is a flowchart of an indoor positioning method according to an embodiment of the present invention;
图7为本发明实施例提供的一种指纹库生成装置的结构图;7 is a structural diagram of an apparatus for generating a fingerprint database according to an embodiment of the present invention;
图8为本发明实施例提供的一种电子设备的结构图。FIG. 8 is a structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员基于本申请所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art based on the present application fall within the protection scope of the present invention.
相关技术中,确定出的目标AP中仍存在一类AP,由于该类AP自身性能以及环境因素的影响,可能会导致在同一参考位置并不能每次都检测到该类AP发送的信号。也就是说,检测到这类AP的信号的连续性较差,进而,使得生成的包含有该类AP的指纹库的有效性仍不高。In the related art, there is still a type of AP in the determined target AP. Due to the influence of the performance of this type of AP and environmental factors, the signal sent by this type of AP may not be detected every time at the same reference position. That is to say, the continuity of the detected signal of this type of AP is poor, and further, the generated fingerprint database containing this type of AP is still ineffective.
为了解决上述问题,参见图1,图1为本发明实施例提供的一种指纹库生成方法的流程图,该方法应用于电子设备,电子设备可以为终端,或者也可以为服务器,电子设备用于生成指纹库。该方法可以包括以下步骤:In order to solve the above problem, refer to FIG. 1, which is a flowchart of a method for generating a fingerprint database according to an embodiment of the present invention. The method is applied to an electronic device, and the electronic device may be a terminal or a server. to generate fingerprint database. The method may include the following steps:
S101:针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的AP,作为第一备选AP,以及所检测到的信号的接收信号强度,作为第一接收信号强度。S101: For each preset reference position, obtain the AP to which the detected signal belongs when performing signal detection at the reference position, as the first candidate AP, and the received signal strength of the detected signal, as the first candidate AP a received signal strength.
S102:针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率。S102: For each first candidate AP, based on the first detection times of signal detection at each reference position and the second detection times of signals sent by the first candidate AP at each reference position, calculate the The loss rate of an alternative AP.
S103:从第一备选AP中确定出第二备选AP。S103: Determine a second candidate AP from the first candidate AP.
其中,第二备选AP的损失率小于第一备选AP中其他AP的损失率。Wherein, the loss rate of the second candidate AP is lower than the loss rate of other APs in the first candidate AP.
S104:针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度。S104: For each second candidate AP, calculate the signal stability of the second candidate AP based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position.
S105:从第二备选AP中确定出目标AP。S105: Determine the target AP from the second candidate AP.
其中,目标AP的信号稳定度大于第二备选AP中其他AP的信号稳定度。The signal stability of the target AP is greater than the signal stability of other APs in the second candidate AP.
S106:基于各参考位置、目标AP和对应的第一信号强度,生成目标指纹库。S106: Generate a target fingerprint database based on each reference position, the target AP, and the corresponding first signal strength.
基于本发明实施例提供的指纹库生成方法,由于在各参考位置检测到每一第一备选AP发出的信号的次数可以表示该第一备选AP发出的信号的连续性,则该第一备选AP的损失率可以表示该第一备选AP发出的信号的连续性。相应的,确定出的损失率较小的第二备选AP,即为发出的信号的连续性较高的AP。即,确定出目标AP发出的信号的连续性也较高,进而,可以提高指纹库的有效性。Based on the fingerprint database generation method provided by the embodiment of the present invention, since the number of times that the signal sent by each first candidate AP is detected at each reference position can indicate the continuity of the signal sent by the first candidate AP, the first candidate AP can The loss rate of the candidate AP may represent the continuity of the signal sent by the first candidate AP. Correspondingly, the determined second candidate AP with a smaller loss rate is an AP with higher continuity of the sent signal. That is, it is determined that the continuity of the signal sent by the target AP is also high, and further, the effectiveness of the fingerprint database can be improved.
在步骤S101中,一种实现方式中,技术人员可以在室内(例如,商场、写字楼等)设置多个参考位置。然后,由技术人员使用检测设备(例如,手机,智能手环等)在每一参考位置进行多次信号检测,得到对应的检测数据。检测数据可以包括:每一次在每一参考位置进行信号检测时,所检测到的信号所属的AP,以及所检测到的信号的接收信号强度。进而,可以将检测数据存储至电子设备。In step S101, in an implementation manner, a technician may set multiple reference positions indoors (eg, shopping malls, office buildings, etc.). Then, a technician uses a detection device (eg, a mobile phone, a smart bracelet, etc.) to perform multiple signal detections at each reference position to obtain corresponding detection data. The detection data may include: each time signal detection is performed at each reference position, the AP to which the detected signal belongs, and the received signal strength of the detected signal. Furthermore, the detection data can be stored in the electronic device.
相应的,针对预设的每一参考位置,电子设备可以获取在该参考位置进行信号检测时,所检测到的信号所属的AP(即第一备选AP),也就是说在该参考位置可以接收到第一备选AP发出的信号。Correspondingly, for each preset reference position, the electronic device can obtain the AP (ie the first candidate AP) to which the detected signal belongs when performing signal detection at the reference position, that is to say, the reference position can The signal sent by the first candidate AP is received.
电子设备还可以获取在该参考位置所检测到的信号的接收信号强度(即第一接收信号强度)。在该参考位置所检测到的信号的接收信号强度可以为该信号的幅度。The electronic device may also acquire the received signal strength (ie, the first received signal strength) of the signal detected at the reference location. The received signal strength of the signal detected at the reference location may be the amplitude of the signal.
在步骤S102中,一个第一备选AP的LR(Loss Rate,损失率)越小表示该第一备选AP发出的信号的连续性越高。In step S102, the smaller the LR (Loss Rate, loss rate) of a first candidate AP is, the higher the continuity of the signal sent by the first candidate AP is.
针对每一参考位置,由于第一备选AP自身性能以及环境因素(例如,第一备选AP与该参考位置之间的距离、遮挡物等)的影响,在该参考位置进行多次信号检测时,并不是每一次均可以检测到第一备选AP发出的信号。如果在该参考位置接收到第一备选AP发出的信号的次数较少,则表明该第一备选AP发出的信号的连续性较低。因此,针对每一第一备选AP,电子设备可以基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率。For each reference position, due to the influence of the first candidate AP's own performance and environmental factors (for example, the distance between the first candidate AP and the reference position, obstructions, etc.), multiple signal detections are performed at the reference position , the signal sent by the first candidate AP may not be detected every time. If the number of times the signal sent by the first candidate AP is received at the reference position is small, it indicates that the continuity of the signal sent by the first candidate AP is low. Therefore, for each first candidate AP, the electronic device may, based on the first detection times of signal detection at each reference position, and the second detection times of signals sent by the first candidate AP at each reference position, Calculate the loss rate of the first candidate AP.
在本发明的一个实施例中,在图1的基础上,参见图2,步骤S102可以包括以下步骤:In an embodiment of the present invention, on the basis of FIG. 1, referring to FIG. 2, step S102 may include the following steps:
S1021:针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数、在各参考位置检测到该第一备选AP发出的信号的第二检测次数,以及第一预设公式,计算该第一备选AP的损失率。S1021: For each first candidate AP, based on the first detection times of signal detection at each reference position, the second detection times of signals sent by the first candidate AP at each reference position, and the first Set a formula to calculate the loss rate of the first candidate AP.
其中,第一预设公式为:Among them, the first preset formula is:
LR表示该第一备选AP的损失率;N表示各参考位置的数目;mn表示在第n个参考位置检测到该第一备选AP发出的信号的第二检测次数;H表示在第n个参考位置进行信号检测的第一检测次数。表示在各参考位置进行信号检测时,检测到该第一备选AP发出的信号的总检测次数。LR represents the loss rate of the first candidate AP; N represents the number of each reference position; m n represents the second detection times of the signal sent by the first candidate AP at the nth reference position; The first detection times for signal detection at the n reference positions. Indicates the total number of times of detection of the signal sent by the first candidate AP when the signal is detected at each reference position.
另外,电子设备还可以从各参考位置选取一部分参考位置,基于在选取的参考位置进行信号检测的第一检测次数、以及在选取的参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率,可以减少计算量,提高生成指纹库的效率。In addition, the electronic device may also select a part of reference positions from each reference position, based on the first number of times of signal detection at the selected reference position and the second number of times when the signal sent by the first candidate AP is detected at the selected reference position The number of detections is calculated, and the loss rate of the first candidate AP is calculated, which can reduce the amount of calculation and improve the efficiency of generating the fingerprint database.
在步骤S103中,针对每一第一备选AP,如果该第一备选AP为不可用AP,则在每一参考位置接收到该第一备选AP发出的信号的次数较少,也就是该第一备选AP发出的信号的连续性较低。由于一个第一备选AP的损失率越小表示该第一备选AP发出的信号的连续性越高。因此,电子设备可以从第一备选AP中确定出损失率较小的第二备选AP。In step S103, for each first candidate AP, if the first candidate AP is an unavailable AP, the number of times the signal sent by the first candidate AP is received at each reference position is less, that is The continuity of the signal sent by the first candidate AP is low. The smaller the loss rate of a first candidate AP, the higher the continuity of the signal sent by the first candidate AP. Therefore, the electronic device can determine the second candidate AP with a smaller loss rate from the first candidate AP.
电子设备可以按照以下两种方式,基于第一备选AP的损失率从第一备选AP中确定出第二备选AP。The electronic device may determine the second candidate AP from the first candidate APs based on the loss rate of the first candidate AP in the following two ways.
方式一:从第一备选AP中确定出损失率小于第一预设阈值的AP,作为第二备选AP。Manner 1: An AP whose loss rate is less than the first preset threshold is determined from the first candidate APs as the second candidate AP.
一种实现方式中,第一预设阈值可以由技术人员根据经验设置,例如,第一预设阈值可以为0.1,或者第一预设阈值也可以为0.2,但并不限于此。In an implementation manner, the first preset threshold may be set by a technician according to experience, for example, the first preset threshold may be 0.1, or the first preset threshold may also be 0.2, but not limited thereto.
针对每一第一备选AP,电子设备可以判断该第一备选AP的损失率是否小于第一预设阈值。如果该第一备选AP的损失率小于第一预设阈值,则电子设备可以确定该第一备选AP为第二备选AP。For each first candidate AP, the electronic device may determine whether the loss rate of the first candidate AP is less than a first preset threshold. If the loss rate of the first candidate AP is less than the first preset threshold, the electronic device may determine that the first candidate AP is the second candidate AP.
方式二:按照损失率从小到大的顺序,从第一备选AP中确定前第二数目个AP,作为第二备选AP。Mode 2: According to the order of the loss rate from small to large, the first and second number of APs are determined from the first candidate APs as the second candidate APs.
一种实现方式中,第二数目可以由技术人员根据经验设置,例如,第二数目可以为第一备选AP的总数目的10%,或者第二数目可以为第一备选AP的总数目的15%,但并不限于此。In an implementation manner, the second number may be set by a technician based on experience, for example, the second number may be 10% of the total number of the first candidate APs, or the second number may be 15% of the total number of the first candidate APs. %, but not limited to this.
在步骤S104中,在确定出第二备选AP之后,如果一个第二备选AP发出的信号波动较大,即该第二备选AP的信号稳定度较小,则该第二备选AP为不可用AP。因此,电子设备可以基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度。后续,基于第二备选AP的信号稳定度,从第二备选AP中确定出目标AP。In step S104, after the second candidate AP is determined, if the signal sent by a second candidate AP fluctuates greatly, that is, the signal stability of the second candidate AP is low, the second candidate AP is an unavailable AP. Therefore, the electronic device may calculate the signal stability of the second candidate AP based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position. Subsequently, based on the signal stability of the second candidate AP, the target AP is determined from the second candidate AP.
在本发明的一个实施例中,在图1的基础上,参见图3,步骤S104可以包括以下步骤:In an embodiment of the present invention, on the basis of FIG. 1 , referring to FIG. 3 , step S104 may include the following steps:
S1041:针对每一第二备选AP,基于在各参考位置检测到的该第二备选AP发出的信号的第一接收信号强度,以及第二预设公式,计算该第二备选AP的信号稳定度。S1041: For each second candidate AP, based on the first received signal strength of the signal sent by the second candidate AP detected at each reference position, and the second preset formula, calculate the second candidate AP's signal stability.
其中,第二预设公式为:Wherein, the second preset formula is:
S表示该第二备选AP的信号稳定度;ε表示预设参数;N表示各参考位置的数目;H表示在第n个参考位置进行信号检测的第一检测次数;RSSInh表示在第n个参考位置进行第h次信号检测时,检测到该第二备选AP发出的信号的第一接收信号强度;表示在第n个参考位置检测到该第二备选AP发出的信号的第一接收信号强度的均值。ε可以由技术人员根据经验设置,ε为趋于0的数值,例如,ε可以为0.0001,或者ε也可以为0.00001,但并不限于此。S represents the signal stability of the second candidate AP; ε represents a preset parameter; N represents the number of each reference position; H represents the first detection times of signal detection at the nth reference position; RSSI nh represents the nth reference position. When the h-th signal detection is performed at each reference position, the first received signal strength of the signal sent by the second candidate AP is detected; Indicates the mean value of the first received signal strength at which the signal sent by the second candidate AP is detected at the nth reference position. ε can be set by a skilled person according to experience, and ε is a value that tends to 0. For example, ε can be 0.0001, or ε can also be 0.00001, but it is not limited thereto.
一种实现方式中,针对每一第二备选AP,在各参考位置多次检测到该第二备选AP发出的信号的接收信号强度的标准差为:In an implementation manner, for each second candidate AP, the standard deviation of the received signal strength of the signal sent by the second candidate AP is detected multiple times at each reference position:
该第二备选AP在各个参考位置的标准差的平均值为:The average value of the standard deviation of the second candidate AP at each reference position is:
N表示各参考位置的数目;H表示在第n个参考位置进行信号检测的第一检测次数;RSSInh表示在第n个参考位置进行第h次信号检测时,检测到该第二备选AP发出的信号的第一接收信号强度;表示在第n个参考位置检测到该第二备选AP发出的信号的第一接收信号强度的均值。N represents the number of each reference location; H represents the first detection times of signal detection at the nth reference location; RSSI nh represents the second candidate AP is detected when the hth signal detection is performed at the nth reference location the first received signal strength of the transmitted signal; Indicates the mean value of the first received signal strength at which the signal sent by the second candidate AP is detected at the nth reference position.
针对每一第二备选AP,由于该第二备选AP自身性能以及环境因素影响,并不是在每一参考位置均可以检测到该第二备选AP发出的信号。在基于上述公式(2)计算该第二备选AP的信号稳定度时,如果在某一参考位置未检测到该第二备选AP发出的信号,如果直接用于0表示在该参考位置检测到该第二备选AP发出的信号的第一接收信号强度,会导致后续计算结果不具有参考性。For each second candidate AP, due to the influence of the second candidate AP's own performance and environmental factors, not every reference position can detect the signal sent by the second candidate AP. When calculating the signal stability of the second candidate AP based on the above formula (2), if the signal sent by the second candidate AP is not detected at a certain reference position, if it is directly used for 0, it means that the signal is detected at the reference position The first received signal strength of the signal sent by the second candidate AP may cause subsequent calculation results to be non-referenced.
接收信号强度的单位是dBm,且接收信号强度的数值为负,接收信号强度越大其数值越接近0。因此,可以用-100dBm表示在该参考位置检测到该第二备选AP发出的信号的第一接收信号强度,-100dBm表示检测到的信号强度十分微弱。The unit of the received signal strength is dBm, and the value of the received signal strength is negative. The greater the received signal strength, the closer the value is to 0. Therefore, -100dBm can be used to indicate that the first received signal strength of the signal sent by the second candidate AP is detected at the reference position, and -100dBm indicates that the detected signal strength is very weak.
基于上述处理,确定出的目标AP为损失率较小,且信号稳定度较大的AP,也就是说目标AP发出的信号的连续性高,且信号波动较小。进而,可以提高生成的目标指纹库的有效性。后续,基于目标指纹库进行定位时,可以提高定位的准确度。Based on the above processing, the determined target AP is an AP with a small loss rate and high signal stability, that is to say, the signal sent by the target AP has high continuity and small signal fluctuation. Further, the effectiveness of the generated target fingerprint library can be improved. Subsequently, when positioning is performed based on the target fingerprint database, the positioning accuracy can be improved.
在步骤S105中,由于不可用AP的信号稳定度较小。因此,电子设备可以从第二备选AP中确定出信号稳定度较大的第二备选AP,作为目标AP。电子设备可以按照以下两种方式,基于第二备选AP的信号稳定度从第二备选AP中确定出目标AP。In step S105, the signal stability of the AP is small due to the unavailable AP. Therefore, the electronic device can determine the second candidate AP with higher signal stability from the second candidate APs as the target AP. The electronic device may determine the target AP from the second candidate APs based on the signal stability of the second candidate AP in the following two ways.
方式1:从第二备选AP中确定出信号稳定度大于第二预设阈值的AP,作为目标AP。Manner 1: An AP whose signal stability is greater than the second preset threshold is determined from the second candidate APs as a target AP.
一种实现方式中,第二预设阈值可以由技术人员根据经验设置,例如,第二预设阈值可以为0.15,或者第二预设阈值也可以为0.2,但并不限于此。In an implementation manner, the second preset threshold may be set by a technician according to experience, for example, the second preset threshold may be 0.15, or the second preset threshold may also be 0.2, but not limited thereto.
针对每一第二备选AP,电子设备可以判断该第二备选AP的信号稳定度是否大于第二预设阈值。如果该第二备选AP的信号稳定度大于第二预设阈值,则电子设备可以确定该第为备选AP为目标AP。For each second candidate AP, the electronic device may determine whether the signal stability of the second candidate AP is greater than a second preset threshold. If the signal stability of the second candidate AP is greater than the second preset threshold, the electronic device may determine that the first candidate AP is the target AP.
方式2:按照信号稳定度从大到小的顺序,从第二备选AP中确定前第三数目个AP,作为目标AP。Mode 2: According to the descending order of signal stability, determine the first third number of APs from the second candidate APs as target APs.
一种实现方式中,第三数目可以由技术人员根据经验设置,例如,第三数目可以为第二备选AP的总数目的10%,或者第三数目可以为第二备选AP的总数目的15%,但并不限于此。In an implementation manner, the third number may be set by the technical personnel according to experience, for example, the third number may be 10% of the total number of the second candidate APs, or the third number may be 15% of the total number of the second candidate APs. %, but not limited to this.
在步骤S106中,一种实现方式中,针对每一参考位置,电子设备可以从多次在该参考位置检测到的目标AP对应的第一信号强度中,选择其中一次在该参考位置检测到的目标AP对应的第一信号强度。然后,电子设备可以将选择的各目标AP对应的第一信号强度作为该参考位置的指纹,可以得到包含各参考位置、目标AP和对应的第一信号强度的目标指纹库。In step S106, in an implementation manner, for each reference position, the electronic device may select one of the first signal strengths corresponding to the target AP detected at the reference position for one time from the first signal strength detected at the reference position. The first signal strength corresponding to the target AP. Then, the electronic device can use the first signal strength corresponding to each selected target AP as the fingerprint of the reference position, and can obtain a target fingerprint database including each reference position, target AP and the corresponding first signal strength.
另一种实现方式中,针对每一参考位置,电子设备可以计算多次在该参考位置检测到的目标AP对应的第一信号强度的平均值。然后,电子设备可以将各目标AP对应的第一信号强度的平均值作为该参考位置的指纹,进而,可以得到包含各参考位置、目标AP和对应的第一信号强度的平均值的目标指纹库。In another implementation manner, for each reference position, the electronic device may calculate the average value of the first signal strengths corresponding to the target AP detected at the reference position for multiple times. Then, the electronic device can use the average value of the first signal strength corresponding to each target AP as the fingerprint of the reference position, and further, can obtain a target fingerprint database including the average value of each reference position, the target AP and the corresponding first signal strength .
后续,可以基于已经建立的目标指纹库,对室内的待定位对象进行定位。Subsequently, the indoor object to be located can be located based on the established target fingerprint database.
一种实现方式中,电子设备可以获取待定位对象接收到的各目标AP发出的信号的第二接收信号强度。然后,电子设备可以基于第二接收信号强度和目标指纹库,计算各参考位置对应的Euclidean距离(欧式距离)。按照对应的欧式距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置。进而,电子设备可以基于备选位置和备选位置对应的欧式距离,确定待定位对象的位置(可以称为目标位置)。In an implementation manner, the electronic device may acquire the second received signal strength of the signal sent by each target AP received by the object to be located. Then, the electronic device may calculate the Euclidean distance (Euclidean distance) corresponding to each reference position based on the second received signal strength and the target fingerprint database. According to the corresponding Euclidean distance from small to large, the first number of reference positions are determined from the reference positions as candidate positions. Furthermore, the electronic device may determine the position of the object to be positioned (which may be referred to as a target position) based on the candidate position and the Euclidean distance corresponding to the candidate position.
另一种实现方式中,为了提高确定出的待定位对象的目标位置的准确度,参见图4,在图1的基础上,该方法还可以包括以下步骤:In another implementation manner, in order to improve the accuracy of the determined target position of the object to be located, referring to FIG. 4 , on the basis of FIG. 1 , the method may further include the following steps:
S107:获取待定位对象接收到的各目标AP发出的信号的接收信号强度,作为第二接收信号强度。S107: Acquire the received signal strength of the signal sent by each target AP received by the object to be located, as the second received signal strength.
S108:基于第二接收信号强度、目标指纹库和第三预设公式,计算各参考位置对应的目标距离。S108: Calculate the target distance corresponding to each reference position based on the second received signal strength, the target fingerprint database, and the third preset formula.
其中,第三预设公式为:Among them, the third preset formula is:
Dn表示第n个参考位置对应的目标距离;N表示各参考位置的数目;RSSIi1表示待定位对象接收到第i个目标AP发出的信号的第二接收信号强度;RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度。D n represents the target distance corresponding to the n-th reference position; N represents the number of each reference position; RSSI i1 represents the second received signal strength of the signal sent by the i-th target AP received by the object to be located; RSSI i2 represents the n-th received signal strength The first received signal strength of the signal sent by the ith target AP is detected at the reference position.
S109:按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置。S109: According to the order of the corresponding target distances from small to large, determine the first number of reference positions from the reference positions as candidate positions.
S1010:基于备选位置、备选位置对应的目标距离和第四预设公式,确定待定位对象的位置。S1010: Determine the position of the object to be positioned based on the candidate position, the target distance corresponding to the candidate position, and a fourth preset formula.
其中,第四预设公式为:Among them, the fourth preset formula is:
q表示待定位对象的位置;K表示第一数目;Dg表示第g个备选位置对应的目标距离;pg表示第g个备选位置。q represents the position of the object to be positioned; K represents the first number; D g represents the target distance corresponding to the g-th candidate position; p g represents the g-th candidate position.
一种实现方式中,待定位对象可以接收各目标AP发出的信号。因此,在对室内的待定位对象进行定位时,电子设备可以获取待定位对象接收到的各目标AP发出的信号的接收信号强度(即第二接收信号强度)。In an implementation manner, the object to be located may receive signals sent by each target AP. Therefore, when locating the indoor object to be located, the electronic device can obtain the received signal strength (ie, the second received signal strength) of the signal sent by each target AP received by the object to be located.
然后,电子设备可以基于第二接收信号强度、目标指纹库和上述公式(5),计算各参考位置对应的目标距离。另外,如果目标指纹库中包含各参考位置、目标AP和对应的第一信号强度,则上述公式(5)中RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度。Then, the electronic device may calculate the target distance corresponding to each reference position based on the second received signal strength, the target fingerprint database and the above formula (5). In addition, if the target fingerprint database contains each reference position, target AP and the corresponding first signal strength, RSSI i2 in the above formula (5) indicates that the signal sent by the i-th target AP is detected at the n-th reference position. a received signal strength.
如果目标指纹库中包含各参考位置、目标AP和对应的第一信号强度的平均值,则上述公式(5)中RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度的平均值。If the target fingerprint database contains the average value of each reference position, target AP and the corresponding first signal strength, RSSI i2 in the above formula (5) indicates that the signal sent by the i-th target AP is detected at the n-th reference position. The average value of the first received signal strength.
一个参考位置对应的目标距离为Manhattan距离(曼哈顿距离),目标距离可以表示该参考位置与待定位对象所在的目标位置之间的距离。The target distance corresponding to a reference position is the Manhattan distance (Manhattan distance), and the target distance may represent the distance between the reference position and the target position where the object to be located is located.
进而,电子设备可以按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置。备选位置也就是与目标位置之间的距离较小的参考位置。进而,电子设备可以基于备选位置、备选位置对应的目标距离和上述公式(6),计算待定位对象的目标位置。Further, the electronic device may determine the first number of reference positions from the reference positions as candidate positions in order of the corresponding target distances from small to large. An alternative position is a reference position with a smaller distance from the target position. Furthermore, the electronic device may calculate the target position of the object to be positioned based on the candidate position, the target distance corresponding to the candidate position, and the above formula (6).
基于上述处理,基于生成的目标指纹库对待定位对象进行定位,由于目标指纹库中仅包含目标AP对应的第一信号强度。相对于第一备选AP,目标AP的数目较少,可以减少计算量,进而可以提高定位效率。Based on the above processing, the object to be located is located based on the generated target fingerprint database, because the target fingerprint database only includes the first signal strength corresponding to the target AP. Compared with the first candidate AP, the number of target APs is smaller, which can reduce the amount of calculation and further improve the positioning efficiency.
参见图5,图5为本发明实施例提供的一种室内场景的示意图。图5所示的室内场景为教学楼,图5中901-918所示的区域为不同的教室。图5中黑色的圆点表示预设的多个参考位置。本发明实施例中在每一个参考位置进行了50次信号检测,得到每一参考位置对应的50组检测数据。进而,可以基于在各参考位置的检测数据,从各第一备选AP中确定出目标AP,并基于目标AP生成目标指纹库。Referring to FIG. 5, FIG. 5 is a schematic diagram of an indoor scene according to an embodiment of the present invention. The indoor scene shown in Figure 5 is a teaching building, and the areas shown by 901-918 in Figure 5 are different classrooms. The black circles in Fig. 5 represent multiple preset reference positions. In the embodiment of the present invention, 50 signal detections are performed at each reference position, and 50 sets of detection data corresponding to each reference position are obtained. Furthermore, a target AP may be determined from each of the first candidate APs based on the detection data at each reference position, and a target fingerprint database may be generated based on the target AP.
参见图6,图6为本发明实施例提供的一种室内定位方法的流程图。Referring to FIG. 6, FIG. 6 is a flowchart of an indoor positioning method provided by an embodiment of the present invention.
在离线(Off-line)阶段,针对预设的每一参考位置,电子设备可以获取在该参考位置进行信号检测时,所检测到的信号所属的第一备选AP,以及所检测到的信号的第一接收信号强度。图6中第一备选AP的数目为x。In the Off-line phase, for each preset reference position, the electronic device can obtain the first candidate AP to which the detected signal belongs when performing signal detection at the reference position, and the detected signal the first received signal strength. The number of the first candidate APs in FIG. 6 is x.
step1:计算损失率。step1: Calculate the loss rate.
针对每一第一备选AP,电子设备可以基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率。然后。电子设备可以从x个第一备选AP中确定出损失率较小的第二备选AP。图6中第二备选AP的数目为y。For each first candidate AP, the electronic device may calculate the number of the The loss rate of the first candidate AP. Then. The electronic device may determine a second candidate AP with a smaller loss rate from the x first candidate APs. The number of second candidate APs in FIG. 6 is y.
step2:计算信号稳定度。step2: Calculate the signal stability.
针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度。图6中参考位置的数目为N。然后。电子设备可以从y个第二备选AP中确定出信号稳定度较大的目标AP,目标AP的数目为q。进而,电子设备可以基于各参考位置、目标AP和对应的第一信号强度生成目标指纹库。例如,目标指纹库中第n个参考位置的指纹为:For each second candidate AP, the signal stability of the second candidate AP is calculated based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position. The number of reference positions in FIG. 6 is N. Then. The electronic device may determine a target AP with higher signal stability from the y second candidate APs, and the number of target APs is q. Furthermore, the electronic device may generate a target fingerprint database based on each reference position, the target AP and the corresponding first signal strength. For example, the fingerprint of the nth reference position in the target fingerprint database is:
(Xn,Yn)RSSIn=[RSSInAP1,RSSInAP2,……,RSSInAPq]( Xn , Yn ) RSSIn =[ RSSInAP1 , RSSInAP2 ,..., RSSInAPq ]
(Xn,Yn)RSSIn表示第n个参考位置的指纹,(Xn,Yn)表示第n个参考位置的坐标,RSSInAPq表示在第n个参考位置多次检测到第q个目标AP发出的信号的第一接收信号强度的平均值。(X n , Y n ) RSSI n denotes the fingerprint of the nth reference position, (X n , Y n ) denotes the coordinates of the nth reference position, RSSI nAPq denotes that the qth reference position is detected multiple times at the nth reference position The average value of the first received signal strength of the signal sent by the target AP.
在线(On-line)阶段,电子设备获取的待定位对象接收到的各目标AP发出的信号的第二接收信号强度为:[RSSIAP1,RSSIAP2,……,RSSIAPq]。In the online (On-line) stage, the second received signal strengths of the signals sent by each target AP and received by the object to be located obtained by the electronic device are: [RSSI AP1 , RSSI AP2 , …, RSSI APq ].
step3:计算各参考位置对应的目标距离。step3: Calculate the target distance corresponding to each reference position.
电子设备可以基于第二接收信号强度和目标指纹库,计算各参考位置对应的目标距离。然后,电子设备可以按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置。进而,电子设备可以基于备选位置和备选位置对应的目标距离,确定待定位对象的位置。The electronic device may calculate the target distance corresponding to each reference position based on the second received signal strength and the target fingerprint database. Then, the electronic device may determine the first first number of reference positions from the reference positions as candidate positions in order of the corresponding target distances from small to large. Furthermore, the electronic device may determine the position of the object to be positioned based on the candidate position and the target distance corresponding to the candidate position.
与图1的方法实施例相对应,参见图7,图7为本发明实施例提供的一种指纹库生成装置的结构图,所述装置包括:Corresponding to the method embodiment in FIG. 1 , refer to FIG. 7 , which is a structural diagram of an apparatus for generating a fingerprint database according to an embodiment of the present invention, where the apparatus includes:
获取模块701,用于针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的接入点AP,作为第一备选AP,以及所检测到的信号的接收信号强度,作为第一接收信号强度;The obtaining
第一确定模块702,用于针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率;The
第二确定模块703,用于从所述第一备选AP中确定出第二备选AP;其中,所述第二备选AP的损失率,小于所述第一备选AP中其他AP的损失率;The
第三确定模块704,用于针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度;The third determining
第四确定模块705,用于从所述第二备选AP中确定出目标AP;其中,所述目标AP的信号稳定度,大于所述第二备选AP中其他AP的信号稳定度;a
生成模块706,用于基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库。The
可选的,所述第一确定模块702,具体用于基于在各参考位置进行信号检测的第一检测次数、在各参考位置检测到该第一备选AP发出的信号的第二检测次数,以及第一预设公式,计算该第一备选AP的损失率;其中,所述第一预设公式为:Optionally, the first determining
LR表示该第一备选AP的损失率;N表示所述各参考位置的数目;mn表示在第n个参考位置检测到该第一备选AP发出的信号的第二检测次数;H表示在第n个参考位置进行信号检测的第一检测次数。LR represents the loss rate of the first candidate AP; N represents the number of the reference positions; m n represents the second detection times when the signal sent by the first candidate AP is detected at the nth reference position; H represents The first number of detections for signal detection at the nth reference position.
可选的,所述第三确定模块704,具体用于基于在各参考位置检测到的该第二备选AP发出的信号的第一接收信号强度,以及第二预设公式,计算该第二备选AP的信号稳定度;其中,所述第二预设公式为:Optionally, the third determining
S表示该第二备选AP的信号稳定度;ε表示预设参数;N表示所述各参考位置的数目;H表示在第n个参考位置进行信号检测的第一检测次数;RSSInh表示在第n个参考位置进行第h次信号检测时,检测到该第二备选AP发出的信号的第一接收信号强度;表示在第n个参考位置检测到该第二备选AP发出的信号的第一接收信号强度的均值。S represents the signal stability of the second candidate AP; ε represents the preset parameter; N represents the number of the reference positions; H represents the first detection times of signal detection at the nth reference position; RSSI nh represents the When the nth reference position performs the hth signal detection, the first received signal strength of the signal sent by the second candidate AP is detected; Indicates the mean value of the first received signal strength at which the signal sent by the second candidate AP is detected at the nth reference position.
可选的,所述装置还包括:Optionally, the device further includes:
处理模块,用于在所述生成模块执行基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库之后,执行获取待定位对象接收到的各目标AP发出的信号的接收信号强度,作为第二接收信号强度;The processing module is configured to, after the generation module generates the target fingerprint database based on each reference position, the target AP and the corresponding first signal strength, perform the acquisition of the signals sent by the target APs received by the object to be located. signal strength, as the second received signal strength;
基于所述第二接收信号强度、所述目标指纹库和第三预设公式,计算各参考位置对应的目标距离;其中,所述第三预设公式为:Based on the second received signal strength, the target fingerprint database and the third preset formula, the target distance corresponding to each reference position is calculated; wherein, the third preset formula is:
Dn表示第n个参考位置对应的目标距离;N表示所述各参考位置的数目;RSSIi1表示所述待定位对象接收到第i个目标AP发出的信号的第二接收信号强度;RSSIi2表示在第n个参考位置检测到第i个目标AP发出的信号的第一接收信号强度;D n represents the target distance corresponding to the nth reference position; N represents the number of the reference positions; RSSI i1 represents the second received signal strength of the signal sent by the i-th target AP received by the object to be located; RSSI i2 Indicates that the first received signal strength of the signal sent by the i-th target AP is detected at the n-th reference position;
按照对应的目标距离从小到大的顺序,从各参考位置中确定出前第一数目个参考位置,作为备选位置;According to the order of the corresponding target distance from small to large, the first number of reference positions are determined from each reference position as the candidate positions;
基于所述备选位置、所述备选位置对应的目标距离和第四预设公式,确定所述待定位对象的位置;其中,所述第四预设公式为:Based on the candidate position, the target distance corresponding to the candidate position, and a fourth preset formula, the position of the object to be positioned is determined; wherein, the fourth preset formula is:
q表示所述待定位对象的位置;K表示所述第一数目;Dg表示第g个备选位置对应的目标距离;pg表示第g个备选位置。q represents the position of the object to be positioned; K represents the first number; D g represents the target distance corresponding to the g-th candidate position; p g represents the g-th candidate position.
可选的,所述第二确定模块703,具体用于从所述第一备选AP中确定出损失率小于第一预设阈值的AP,作为第二备选AP;Optionally, the second determining
或者,or,
按照损失率从小到大的顺序,从所述第一备选AP中确定前第二数目个AP,作为第二备选AP。In order of the loss rate from small to large, the first and second number of APs are determined from the first candidate APs as the second candidate APs.
可选的,所述第四确定模块705,具体用于从所述第二备选AP中确定出信号稳定度大于第二预设阈值的AP,作为目标AP;Optionally, the fourth determining
或者,or,
按照信号稳定度从大到小的顺序,从所述第二备选AP中确定前第三数目个AP,作为目标AP。In descending order of signal stability, the first third number of APs are determined from the second candidate APs as target APs.
基于本发明实施例提供的指纹库生成装置,由于在各参考位置检测到每一第一备选AP发出的信号的次数可以表示该第一备选AP发出的信号的连续性,则该第一备选AP的损失率可以表示该第一备选AP发出的信号的连续性。相应的,确定出的损失率较小的第二备选AP,即为发出的信号的连续性较高的AP。即,确定出目标AP发出的信号的连续性也较高,进而,可以提高指纹库的有效性。Based on the fingerprint database generation device provided by the embodiment of the present invention, since the number of times the signal sent by each first candidate AP is detected at each reference position can indicate the continuity of the signal sent by the first candidate AP, the first candidate AP can The loss rate of the candidate AP may represent the continuity of the signal sent by the first candidate AP. Correspondingly, the determined second candidate AP with a smaller loss rate is an AP with higher continuity of the sent signal. That is, it is determined that the continuity of the signal sent by the target AP is also high, and further, the effectiveness of the fingerprint database can be improved.
本发明实施例还提供了一种电子设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 8 , including a
存储器803,用于存放计算机程序;a
处理器801,用于执行存储器803上所存放的程序时,实现如下步骤:When the
针对预设的每一参考位置,获取在该参考位置进行信号检测时,所检测到的信号所属的接入点AP,作为第一备选AP,以及所检测到的信号的接收信号强度,作为第一接收信号强度;For each preset reference position, obtain the access point AP to which the detected signal belongs when performing signal detection at the reference position, as the first candidate AP, and the received signal strength of the detected signal, as the first received signal strength;
针对每一第一备选AP,基于在各参考位置进行信号检测的第一检测次数,以及在各参考位置检测到该第一备选AP发出的信号的第二检测次数,计算该第一备选AP的损失率;For each first candidate AP, based on the first number of times of signal detection at each reference position and the second number of times of detection of the signal sent by the first candidate AP at each reference position, calculate the first Select the loss rate of AP;
从所述第一备选AP中确定出第二备选AP;其中,所述第二备选AP的损失率,小于所述第一备选AP中其他AP的损失率;A second candidate AP is determined from the first candidate AP; wherein, the loss rate of the second candidate AP is smaller than the loss rate of other APs in the first candidate AP;
针对每一第二备选AP,基于在各参考位置检测到该第二备选AP发出的信号的第一接收信号强度的分布情况,计算该第二备选AP的信号稳定度;For each second candidate AP, the signal stability of the second candidate AP is calculated based on the distribution of the first received signal strength of the signal sent by the second candidate AP detected at each reference position;
从所述第二备选AP中确定出目标AP;其中,所述目标AP的信号稳定度,大于所述第二备选AP中其他AP的信号稳定度;Determine the target AP from the second candidate AP; wherein, the signal stability of the target AP is greater than the signal stability of other APs in the second candidate AP;
基于各参考位置、所述目标AP和对应的第一信号强度,生成目标指纹库。上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Based on each reference position, the target AP and the corresponding first signal strength, a target fingerprint database is generated. The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
基于本发明实施例提供的电子设备,由于在各参考位置检测到每一第一备选AP发出的信号的次数可以表示该第一备选AP发出的信号的连续性,则该第一备选AP的损失率可以表示该第一备选AP发出的信号的连续性。相应的,确定出的损失率较小的第二备选AP,即为发出的信号的连续性较高的AP。即,确定出目标AP发出的信号的连续性也较高,进而,可以提高指纹库的有效性。Based on the electronic device provided by the embodiment of the present invention, since the number of times that the signal sent by each first candidate AP is detected at each reference position can indicate the continuity of the signal sent by the first candidate AP, the first candidate AP The loss rate of the AP may represent the continuity of the signal sent by the first candidate AP. Correspondingly, the determined second candidate AP with a smaller loss rate is an AP with higher continuity of the sent signal. That is, it is determined that the continuity of the signal sent by the target AP is also high, and further, the effectiveness of the fingerprint database can be improved.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一指纹库生成方法的步骤。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above fingerprint libraries can be generated. steps of the method.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一指纹库生成方法。In yet another embodiment provided by the present invention, there is also provided a computer program product including instructions, which, when running on a computer, enables the computer to execute any of the fingerprint database generation methods in the foregoing embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质和计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus, electronic device, computer-readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts.
以上所述仅为本发明的较佳实施例,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638104.5A CN113490270B (en) | 2021-06-08 | 2021-06-08 | Fingerprint database generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110638104.5A CN113490270B (en) | 2021-06-08 | 2021-06-08 | Fingerprint database generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113490270A CN113490270A (en) | 2021-10-08 |
CN113490270B true CN113490270B (en) | 2022-07-22 |
Family
ID=77935030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110638104.5A Active CN113490270B (en) | 2021-06-08 | 2021-06-08 | Fingerprint database generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113490270B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106804060A (en) * | 2017-03-07 | 2017-06-06 | 京信通信技术(广州)有限公司 | A kind of fingerprint positioning method and device |
CN108712714A (en) * | 2018-04-02 | 2018-10-26 | 北京邮电大学 | The selection method and device of AP in a kind of interior WLAN fingerprint locations |
CN108966121A (en) * | 2018-06-20 | 2018-12-07 | 华南师范大学 | A kind of fingerprint base update method suitable for fingerprinting localization algorithm |
-
2021
- 2021-06-08 CN CN202110638104.5A patent/CN113490270B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106804060A (en) * | 2017-03-07 | 2017-06-06 | 京信通信技术(广州)有限公司 | A kind of fingerprint positioning method and device |
CN108712714A (en) * | 2018-04-02 | 2018-10-26 | 北京邮电大学 | The selection method and device of AP in a kind of interior WLAN fingerprint locations |
CN108966121A (en) * | 2018-06-20 | 2018-12-07 | 华南师范大学 | A kind of fingerprint base update method suitable for fingerprinting localization algorithm |
Non-Patent Citations (1)
Title |
---|
基于RSSI值的室内定位算法研究;周向;《长江大学》;20210215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113490270A (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019062734A1 (en) | Indoor positioning method and device based on wi-fi hot spots | |
CN110602736B (en) | Field strength prediction method, device and computer equipment | |
CN113219504B (en) | Positioning information determining method and device | |
CN105717485B (en) | Indoor positioning method and device | |
CN112218306B (en) | Method and device for predicting coverage performance of base station and computer equipment | |
CN107071788B (en) | A method and device for spectrum sensing in a cognitive wireless network | |
CN108566677B (en) | Fingerprint positioning method and device | |
CN108495265B (en) | Indoor positioning method, device and computing device | |
CN113490270B (en) | Fingerprint database generation method and device | |
CN107484241B (en) | A Method and Device Based on Geo-Fingerprint Positioning under a Millimeter Wave Channel | |
CN108680897B (en) | Indoor positioning method, device, electronic device and storage medium | |
CN109121080B (en) | Indoor positioning method and device, mobile terminal and storage medium | |
CN115022960A (en) | Location identification method, apparatus, and processor-readable storage medium | |
CN109831737B (en) | A confidence-based Bluetooth positioning method, device, device and system | |
CN108540926A (en) | A kind of construction method and device of wireless signal fingerprint | |
CN107613466A (en) | Indoor positioning method based on fingerprint similarity in ultra-dense wireless network | |
CN111343573A (en) | Fingerprint positioning method and device for calibrating online RSSI (received Signal Strength indicator) value according to environmental difference | |
TW202122825A (en) | Dynamic power positioning method and dynamic power positioning system thereof | |
CN114423076B (en) | Fingerprint data generation method and device, electronic equipment and storage medium | |
CN108834053A (en) | A positioning method, device and equipment | |
CN113009415B (en) | Dynamic power positioning method and dynamic power positioning system | |
CN111277950B (en) | Positioning method, device and equipment based on arrival time difference and arrival frequency difference | |
CN108419248A (en) | A test data processing method and device | |
CN109788431B (en) | Bluetooth positioning method, device, equipment and system based on adjacent node group | |
CN114332608A (en) | Target detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |